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

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 (122) hide show
  1. package/dist/{App-BUwQLdzG.js → App-BrL2gHiV.js} +8 -8
  2. package/dist/{AuditLogs-laNQB1ef.js → AuditLogs-BlRoAtoO.js} +11 -11
  3. package/dist/{Bin-Bfboeea_.js → Bin-DWR53mGv.js} +8 -8
  4. package/dist/Broadcast-BZ2y0x8d.js +302 -0
  5. package/dist/{CampaignAnalytic-BiA-5XG3.js → CampaignAnalytic-DB2OaPV_.js} +7 -7
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-VrTN-c_a.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Bs1_gtk6.js} +6 -6
  7. package/dist/{Card-CKHaW8N7.js → Card-B6faC6Qm.js} +21 -21
  8. package/dist/{Collections-DRocQb1D.js → Collections-DekhPkTs.js} +8 -8
  9. package/dist/{Credit-DWaoVhSP.js → Credit-BwOLA7a6.js} +12 -12
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-B7ZdULCu.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DCNKIlok.js} +1 -1
  11. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-3ERieT1j.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D07yq8hu.js} +1830 -996
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-yDUjXV2O.js → EffectSheet.vue_vue_type_style_index_0_lang-CaEBp-Qj.js} +6 -6
  13. package/dist/{Experience-C1_LpneJ.js → Experience-DiW76Zyj.js} +12 -12
  14. package/dist/{FileSaver.min-CWJ-6CFP.js → FileSaver.min-CzzDHyEW.js} +1 -1
  15. package/dist/{Game-DtTYcSZk.js → Game-CHZZ26td.js} +13 -13
  16. package/dist/{GiftCardSetup-B770Rl1Q.js → GiftCardSetup-D573F-re.js} +9 -9
  17. package/dist/{Grab-CN0gmIxT.js → Grab-DyjMfGLW.js} +9 -9
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BaAhKWhX.js → ImageInput.vue_vue_type_script_setup_true_lang-B_Fl95PN.js} +1 -1
  19. package/dist/{Index-0F6aq3f9.js → Index-DVctjU8T.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BrKj8W2H.js → LocationPicker.vue_vue_type_script_setup_true_lang-CJcDgM1A.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DOuHSVdR.js → LottieAnimation.vue_vue_type_script_setup_true_lang-B8q8mLiv.js} +1 -1
  22. package/dist/{LoyaltyDashboard-CtXyDFqa.js → LoyaltyDashboard-C695q1A0.js} +13 -13
  23. package/dist/{MainLayout-BSWLr3gE.js → MainLayout-DLr0qfQy.js} +3 -3
  24. package/dist/{Marketing-Ci2haxRd.js → Marketing-DtJwIJT1.js} +4 -4
  25. package/dist/{MarketingMaterialEdit-Cw6R0bNM.js → MarketingMaterialEdit-Dxq4Thqp.js} +6 -6
  26. package/dist/{Member-DEzSTAQy.js → Member-DLY-tqMO.js} +7 -7
  27. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BrhSxbrI.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DaXSO2Sw.js} +23 -23
  28. package/dist/{MemberImportHistory-BGfNLzma.js → MemberImportHistory-BllKLK-J.js} +7 -7
  29. package/dist/{MemberList-Cq5Gsv3G.js → MemberList-Cw9OUWN0.js} +14 -14
  30. package/dist/{MemberTransactions-BrUVZRtt.js → MemberTransactions-OBVrKAdH.js} +1 -1
  31. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DCQ6Fse-.js → MessageInput.vue_vue_type_script_setup_true_lang-BBg9ZmEZ.js} +4338 -4287
  32. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CETwYfZD.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DWP4DTE8.js} +1 -1
  33. package/dist/{Mission-Do4IonLo.js → Mission-2yRMXtq_.js} +13 -13
  34. package/dist/{Overview-DA90l9Kb.js → Overview-B4OGaAQs.js} +19 -19
  35. package/dist/{Overview-DN-nJxw9.js → Overview-C6GQR5Be.js} +4 -4
  36. package/dist/{Point-DQ4w857n.js → Point-BHByUBQy.js} +12 -12
  37. package/dist/{Promotion-Rgt9LcYi.js → Promotion-DHOf5B8h.js} +13 -13
  38. package/dist/{Queue-SzypUxgD.js → Queue-DMQs5RXl.js} +11 -11
  39. package/dist/{Record-DYvPPhIW.js → Record-DgT-afmi.js} +9 -9
  40. package/dist/{Review-B0TERyHM.js → Review-BgOyos-p.js} +2 -2
  41. package/dist/{ReviewFacebookCallback-BJ5jQ3Dv.js → ReviewFacebookCallback-BYCLYoU9.js} +5 -5
  42. package/dist/{ReviewGoogleCallback-BKQD39dv.js → ReviewGoogleCallback-B5IBSCOt.js} +5 -5
  43. package/dist/{Reward-BexlVT_C.js → Reward-DhcO5T8x.js} +16 -16
  44. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-C-ygqNur.js → RewardGroup.vue_vue_type_script_setup_true_lang-BXk_SS1d.js} +12 -12
  45. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DjxIJcdv.js → RuleGroup.vue_vue_type_script_setup_true_lang-DPFXFu8i.js} +13 -13
  46. package/dist/{Segment-CYa4GjtQ.js → Segment-BM7-ufMg.js} +24 -24
  47. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-b-K-VDJC.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BbiZ4qOP.js} +13 -13
  48. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-t2mlDDtn.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BArVHth8.js} +4 -4
  49. package/dist/{Setting-Dmm5BKdF.js → Setting-BOPSL9ZZ.js} +14 -14
  50. package/dist/{SettingAdvertisements-cy4cRBop.js → SettingAdvertisements-cPCVcdFa.js} +12 -12
  51. package/dist/{Settings-DMQuLDM4.js → Settings-CqoifGTo.js} +5 -5
  52. package/dist/{Store-B7KflfSk.js → Store-CK30TAU9.js} +25 -25
  53. package/dist/{StoreRewards-BKae8uZn.js → StoreRewards-ChZtmuzE.js} +15 -15
  54. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-sbIR-k1R.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DYNiShwp.js} +24 -24
  55. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DRT3N9SD.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BHlC1EE4.js} +2 -2
  56. package/dist/{Tier-BeTz6LHH.js → Tier-CF2KJhuH.js} +24 -24
  57. package/dist/{Title-OEVVw5I-.js → Title-BqUR8e6x.js} +21 -21
  58. package/dist/{Transaction-D-MZjntW.js → Transaction-Cf5o_1V3.js} +2 -2
  59. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-xIEOUOdo.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CfArdf8F.js} +6 -6
  60. package/dist/{Voucher-BJCf3pSa.js → Voucher-BPOp4ic5.js} +14 -14
  61. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BFQ_CYub.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BZmGNLq1.js} +12 -12
  62. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DGDw3Too.js → ZodTextField.vue_vue_type_script_setup_true_lang-DrZ11Ra6.js} +2 -2
  63. package/dist/{app-J8VIC7-H.js → app-DJZhbUaQ.js} +4755 -4225
  64. package/dist/app.js +1 -1
  65. package/dist/{base.export-HYFFI4OS.js → base.export-CoTF6Joo.js} +2 -2
  66. package/dist/{business-BonuheMK.js → business-COH4ZPme.js} +1 -1
  67. package/dist/campaign-8u-VUYGh.js +368 -0
  68. package/dist/{campaign-Ct7jhugP.js → campaign-VQNSG0W_.js} +2 -2
  69. package/dist/{campaign.enum-OzJ9IbAW.js → campaign.enum-DPrWb8U2.js} +1 -1
  70. package/dist/{campaign.fn-CDjxE9B2.js → campaign.fn-D888JeGT.js} +72 -72
  71. package/dist/{collectible.enum-Dw_tlI9E.js → collectible.enum-DvSb1Y88.js} +1 -1
  72. package/dist/{collection.fn-CER0_NEn.js → collection.fn-BwIWKhBK.js} +2 -2
  73. package/dist/{currency-CTUS4vS8.js → currency-Hgkd5sh7.js} +1 -1
  74. package/dist/{duplicateCampaign-CMQ-RMH-.js → duplicateCampaign-Dn25VCVj.js} +2 -2
  75. package/dist/{effect-DBeGoMNE.js → effect-BwgQpATD.js} +1 -1
  76. package/dist/{email-addresses-BH3mQzan.js → email-addresses-C1vr0Uy5.js} +2 -2
  77. package/dist/{helper-DJe_JbKJ.js → helper-zfXDm3Jk.js} +1 -1
  78. package/dist/{index-D9f3AIaO.js → index-7vDEWDqs.js} +3 -3
  79. package/dist/index-Buh_J_zJ.js +14550 -0
  80. package/dist/{index-B14H1rLW.js → index-C2tPMx3P.js} +2 -2
  81. package/dist/{index-BzVTqlVH.js → index-C5hBS5HZ.js} +2 -2
  82. package/dist/{index-CEDhjZzd.js → index-C9Q3V8R9.js} +1 -1
  83. package/dist/{index-CrMBqkKk.js → index-CABF2-Io.js} +101 -98
  84. package/dist/{index-BZKKS7jO.js → index-CacUcTSI.js} +5 -5
  85. package/dist/{index-BOVnM3gL.js → index-CkIQalwo.js} +3 -3
  86. package/dist/{index-CN8VyVEB.js → index-CwCYEijW.js} +1 -1
  87. package/dist/{index-COuceEFz.js → index-D4XMwqKT.js} +1 -1
  88. package/dist/{index-CM9GTQIo.js → index-DlPAztwX.js} +3 -3
  89. package/dist/{index-bJX4zgh0.js → index-DqEB7W_r.js} +1 -1
  90. package/dist/{index-BlwAgY_z.js → index-Vv1-II8J.js} +1 -1
  91. package/dist/{index-BmN_Qcw7.js → index-eEMXtCiV.js} +2 -2
  92. package/dist/{index-BRCB6yJ6.js → index-grYhqqn8.js} +299 -196
  93. package/dist/{index-Bnk3vdb-.js → index-lrP5VxZd.js} +7 -7
  94. package/dist/{index-bGByr1XM.js → index-xzDzb0T3.js} +1 -1
  95. package/dist/{index-CWR2s6Nt.js → index-zZTsUIci.js} +1 -1
  96. package/dist/{index.esm2017-BpCPgTjc.js → index.esm2017-BlBA0-BF.js} +37 -37
  97. package/dist/{loading-D_rPJ-Yc.js → loading-CI7gmifv.js} +1 -1
  98. package/dist/{lodash-BM976Z2I.js → lodash-kft-Uy7N.js} +1 -1
  99. package/dist/{member-import-C5rhD3f8.js → member-import-BTr0LEYS.js} +1 -1
  100. package/dist/{membership-CIQCEKiL.js → membership-Cqia6d3x.js} +3 -3
  101. package/dist/{money-BrMT193t.js → money-bl2w3oEQ.js} +1 -1
  102. package/dist/{number-DOcD1tqL.js → number-Ckzx623S.js} +1 -1
  103. package/dist/objectid-CwK8XcuH.js +145 -0
  104. package/dist/{plugins-696Z9K6A.js → plugins-DzWEv3_R.js} +13 -12
  105. package/dist/{reward-lSVIBiE9.js → reward-S5B2MbnJ.js} +1 -1
  106. package/dist/{rule-BUGAimk8.js → rule-2k1mrjlc.js} +8 -8
  107. package/dist/style.css +1 -1
  108. package/dist/{template-01_h2Gac.js → template-DS_X-0yV.js} +6 -6
  109. package/dist/{timezone-okTdM2YU.js → timezone-ByZC3NaX.js} +1 -1
  110. package/dist/{transaction.fn-Nz0T33ex.js → transaction.fn-CmS0f0MN.js} +1 -1
  111. package/dist/{trigger-CKj1X6zs.js → trigger-uYmkCUpm.js} +5 -5
  112. package/dist/{useMarketingMaterialActions-yKqKaPpe.js → useMarketingMaterialActions-D9hFiGQL.js} +3 -3
  113. package/dist/{usePagination-D6cYlfni.js → usePagination-NBKbsZ4_.js} +1 -1
  114. package/dist/{user-DX5qCQfz.js → user-cCAfW4S5.js} +1 -1
  115. package/dist/{vue-i18n-DowpocqN.js → vue-i18n-BzjgwVzt.js} +511 -511
  116. package/dist/{xlsx-Dv4SuJbw.js → xlsx-DiFT4U5o.js} +440 -440
  117. package/dist/{zod-DVw24Ejy.js → zod-6HGtPTQu.js} +1 -1
  118. package/package.json +4 -1
  119. package/dist/Broadcast-CDz-_eDz.js +0 -269
  120. package/dist/campaign-7CI7gfS5.js +0 -255
  121. package/dist/index-Do36kJeb.js +0 -51
  122. package/dist/objectid-CAdRRoFu.js +0 -145
@@ -1,39 +1,40 @@
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) {
1
+ import { z as e, F as n, m, b as A } from "./index-7vDEWDqs.js";
2
+ import { z as F, A as M, B as G, C as g } from "./index-CacUcTSI.js";
3
+ import { _ as k, l as v, f as B } from "./index-CkIQalwo.js";
4
+ import { i as p } from "./helper-zfXDm3Jk.js";
5
+ import { c as z, b as U, d } from "./index-Buh_J_zJ.js";
6
+ import { d as V } from "./index-CABF2-Io.js";
7
+ import { F as T } from "./index-DlPAztwX.js";
8
+ function b(o, a) {
8
9
  let i = "", r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
9
10
  const l = r.length;
10
11
  for (let c = 0; c < o; c++)
11
12
  i += r.charAt(Math.floor(Math.random() * l));
12
13
  return i;
13
14
  }
14
- function b(o) {
15
+ function H(o) {
15
16
  return !o.property && "rules" in o;
16
17
  }
17
- function G(o) {
18
+ function Y(o) {
18
19
  return "property" in o && !!o.property;
19
20
  }
20
- const M = "g_schedule";
21
- function k(o) {
21
+ const W = "g_schedule";
22
+ function K(o) {
22
23
  return o.split(/\r?\n/).filter((a) => !a.trim().toUpperCase().startsWith("DTSTART")).join(`
23
24
  `).trim();
24
25
  }
25
- function B(o, a = !1) {
26
- const i = w.cloneDeep(o);
27
- if (G(i)) {
26
+ function q(o, a = !1) {
27
+ const i = k.cloneDeep(o);
28
+ if (Y(i)) {
28
29
  const r = i.conditions;
29
- return !a && r && typeof r._rrule == "string" && (r._rrule = k(
30
+ return !a && r && typeof r._rrule == "string" && (r._rrule = K(
30
31
  r._rrule
31
32
  )), i;
32
33
  }
33
- if (b(i))
34
+ if (H(i))
34
35
  for (const r in i.rules) {
35
- const l = i.rules[r], c = a || b(l) && l.name === M;
36
- i.rules[r] = B(
36
+ const l = i.rules[r], c = a || H(l) && l.name === W;
37
+ i.rules[r] = q(
37
38
  l,
38
39
  c
39
40
  );
@@ -43,14 +44,14 @@ function B(o, a = !1) {
43
44
  class t {
44
45
  static scaffoldGroup(a) {
45
46
  return {
46
- name: a ?? `g_${f(4)}`,
47
+ name: a ?? `g_${b(4)}`,
47
48
  rules: {},
48
49
  logic: ""
49
50
  };
50
51
  }
51
52
  static scaffoldEntry(a) {
52
53
  return {
53
- name: `r_${f(4)}`,
54
+ name: `r_${b(4)}`,
54
55
  property: a ?? "",
55
56
  conditions: {},
56
57
  negated: !1
@@ -58,7 +59,7 @@ class t {
58
59
  }
59
60
  static constructEntry(a, i, r, l) {
60
61
  return {
61
- name: l ?? `e_${f(4)}`,
62
+ name: l ?? `e_${b(4)}`,
62
63
  property: a,
63
64
  conditions: {
64
65
  [i]: r
@@ -71,16 +72,16 @@ class t {
71
72
  }
72
73
  static constructLogic(a, i) {
73
74
  const r = i ?? t.getLogic(a);
74
- return Object.entries(a.rules).map(([l, c]) => b(c) ? l : `${c.negated ? "!" : ""}${l}`).join(` ${r} `);
75
+ return Object.entries(a.rules).map(([l, c]) => H(c) ? l : `${c.negated ? "!" : ""}${l}`).join(` ${r} `);
75
76
  }
76
77
  static setRuleToGroup(a, i, r) {
77
- let l = C.cloneDeep(a);
78
+ let l = v.cloneDeep(a);
78
79
  return Object.keys(l.rules).length === 0 && (l = t.scaffoldGroup(l.name)), Array.isArray(i) ? i.forEach((c) => {
79
80
  l.rules[c.name] = c;
80
81
  }) : l.rules[i.name] = i, l.logic = t.constructLogic(l, r), l;
81
82
  }
82
83
  static removeEntry(a, i, r) {
83
- const l = C.cloneDeep(a);
84
+ const l = v.cloneDeep(a);
84
85
  return delete l.rules[i], l.logic = t.constructLogic(l, r), l;
85
86
  }
86
87
  static constructRule(a) {
@@ -112,18 +113,18 @@ class t {
112
113
  static isRuleExceed(a, i) {
113
114
  const l = Object.keys(a.rules).length + (Array.isArray(i) ? i.length : 1);
114
115
  if (l > 10)
115
- throw new V(10, l);
116
+ throw new X(10, l);
116
117
  return !0;
117
118
  }
118
119
  }
119
- class V extends Error {
120
+ class X extends Error {
120
121
  constructor(a, i) {
121
122
  super(
122
123
  `Maximum of ${a} rules allowed per group. Attempted to add ${i} rules.`
123
124
  ), this.name = "MaxRulesExceededError";
124
125
  }
125
126
  }
126
- const Y = {
127
+ const Q = {
127
128
  collectionName: "AuditLogs",
128
129
  transform: {
129
130
  _id: "oid",
@@ -136,7 +137,7 @@ const Y = {
136
137
  fromCollection: "Businesses"
137
138
  }
138
139
  }
139
- }, K = e.enum([
140
+ }, $ = e.enum([
140
141
  "GET",
141
142
  "POST",
142
143
  "PUT",
@@ -145,7 +146,7 @@ const Y = {
145
146
  "OPTIONS",
146
147
  "HEAD",
147
148
  "ALL"
148
- ]), W = e.enum([
149
+ ]), Z = e.enum([
149
150
  "CAMPAIGN",
150
151
  "LOCATION",
151
152
  "MARKETING MATERIALS",
@@ -155,15 +156,15 @@ const Y = {
155
156
  "SETTINGS",
156
157
  "SEGMENTATION",
157
158
  "USER"
158
- ]), q = e.object({
159
- httpMethod: K,
159
+ ]), ee = e.object({
160
+ httpMethod: $,
160
161
  url: e.string().min(1),
161
162
  userAgent: e.string(),
162
163
  host: e.string().min(1),
163
164
  params: e.object({}).passthrough().nullish(),
164
165
  query: e.object({}).passthrough().nullish(),
165
166
  body: e.object({}).passthrough().nullish()
166
- }), X = e.object({
167
+ }), te = e.object({
167
168
  statusCode: e.number().int().min(100).max(599),
168
169
  body: e.object({}).passthrough().nullish()
169
170
  });
@@ -171,15 +172,15 @@ e.object({
171
172
  _id: n,
172
173
  user: e.string().length(28),
173
174
  userName: e.string().min(1),
174
- userPhoneNumber: e.string().refine((o) => L(o)).nullish(),
175
- moduleType: W,
175
+ userPhoneNumber: e.string().refine((o) => F(o)).nullish(),
176
+ moduleType: Z,
176
177
  business: n.nullish(),
177
178
  clientIp: e.string().nullish(),
178
179
  timestamp: e.string().datetime(),
179
- request: q,
180
- response: X
181
- }).describe(m.describe(Y));
182
- const qe = {
180
+ request: ee,
181
+ response: te
182
+ }).describe(m.describe(Q));
183
+ const ot = {
183
184
  PROMOTION: {
184
185
  name: "Promotion Template",
185
186
  description: "Promotion template for campaign creation.",
@@ -2118,7 +2119,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
2118
2119
  ({
2119
2120
  ...t.scaffoldGroup()
2120
2121
  });
2121
- const Q = e.enum([
2122
+ const ae = e.enum([
2122
2123
  "MEMBER_REWARD",
2123
2124
  "PAID_LOYALTY",
2124
2125
  "COLLECT_FEEDBACK",
@@ -2128,7 +2129,7 @@ const Q = e.enum([
2128
2129
  "BROADCAST",
2129
2130
  "BIRTHDAY",
2130
2131
  "GAME"
2131
- ]), $ = e.enum([
2132
+ ]), ne = e.enum([
2132
2133
  "text",
2133
2134
  "number",
2134
2135
  "textarea",
@@ -2158,28 +2159,28 @@ const Q = e.enum([
2158
2159
  "grab_effect",
2159
2160
  "grab_quota",
2160
2161
  "grab_conditions"
2161
- ]), Z = e.object({
2162
+ ]), oe = e.object({
2162
2163
  label: e.string().optional(),
2163
2164
  label_locale: e.record(e.string()).nullish(),
2164
2165
  property: e.string().or(e.any()),
2165
- type: $,
2166
+ type: ne,
2166
2167
  extras: e.string().optional(),
2167
2168
  isRuleChildren: e.boolean().optional()
2168
- }), T = e.object({
2169
+ }), S = e.object({
2169
2170
  not: e.boolean().optional(),
2170
2171
  property: e.string(),
2171
2172
  value: e.any()
2172
- }), ee = e.object({
2173
+ }), ie = e.object({
2173
2174
  name: e.string().optional(),
2174
2175
  name_locale: e.record(e.string()).nullish(),
2175
- fields: e.array(Z),
2176
- condition: T.optional().or(
2177
- e.array(T)
2176
+ fields: e.array(oe),
2177
+ condition: S.optional().or(
2178
+ e.array(S)
2178
2179
  )
2179
- }), te = e.object({
2180
+ }), le = e.object({
2180
2181
  name: e.string(),
2181
2182
  name_locale: e.record(e.string()).nullish(),
2182
- groups: e.array(ee)
2183
+ groups: e.array(ie)
2183
2184
  });
2184
2185
  e.object({
2185
2186
  _id: n,
@@ -2187,11 +2188,11 @@ e.object({
2187
2188
  name_locale: e.record(e.string()).nullish(),
2188
2189
  description: e.string().nullish(),
2189
2190
  description_locale: e.record(e.string()).nullish(),
2190
- steps: e.array(te).min(1),
2191
- intention: e.array(Q),
2191
+ steps: e.array(le).min(1),
2192
+ intention: e.array(ae),
2192
2193
  defaultValue: e.any()
2193
2194
  }).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
2194
- const ae = {
2195
+ const re = {
2195
2196
  collectionName: "Businesses",
2196
2197
  transform: {
2197
2198
  _id: "oid"
@@ -2203,69 +2204,171 @@ e.object({
2203
2204
  name: e.string(),
2204
2205
  credit: e.number(),
2205
2206
  forceSend: e.boolean().optional()
2206
- }).describe(m.describe(ae));
2207
- const S = e.enum(["PHONE"]), ne = e.enum([
2207
+ }).describe(m.describe(re));
2208
+ const P = e.enum(["PHONE"]), ce = e.enum([
2208
2209
  "MOCEAN",
2209
2210
  "SLACK",
2210
2211
  "SMS",
2211
2212
  "EMAIL",
2212
2213
  "WHATSAPP"
2213
- ]), oe = e.enum(["PENDING", "COMPLETED", "FAILED"]), ie = e.enum([
2214
+ ]), pe = e.enum(["PENDING", "COMPLETED", "FAILED"]), me = e.enum([
2214
2215
  "General",
2215
2216
  "Otp",
2216
2217
  "Marketing",
2217
2218
  "Ordering",
2218
2219
  "MemberInvitation",
2219
2220
  "MarketingPromotion"
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 = {
2221
+ ]), se = e.object({
2222
+ type: P
2223
+ }), j = se.extend({
2224
+ type: e.literal(P.enum.PHONE),
2225
+ provider: ce,
2226
+ usage: me.optional()
2227
+ }), E = e.enum([
2228
+ "Accepted",
2229
+ "PartiallyAccepted",
2230
+ "Queued",
2231
+ "Unknown",
2232
+ "Failed"
2233
+ ]), ge = e.enum([
2234
+ "PENDING",
2235
+ "SUBMITTED",
2236
+ "SETTLED",
2237
+ "FAILED"
2238
+ ]), J = e.object({
2239
+ channel: e.string(),
2240
+ status: e.string(),
2241
+ statusDetails: e.string().nullish()
2242
+ }), de = {
2227
2243
  collectionName: "Notifications",
2228
- transform: { _id: "oid", business: "oid" }
2244
+ transform: {
2245
+ _id: "oid",
2246
+ business: "oid",
2247
+ campaign: "oid",
2248
+ member: "oid"
2249
+ }
2229
2250
  };
2230
2251
  e.object({
2231
2252
  _id: n,
2232
2253
  business: n,
2233
- target: e.string(),
2254
+ status: pe,
2255
+ ref: e.string().optional(),
2234
2256
  title: e.string().optional(),
2235
- message: e.string(),
2236
- option: N,
2237
- status: oe,
2238
- ref: e.string().optional()
2239
- }).describe(m.describe(re));
2240
- const ce = e.object({
2257
+ // Single-channel fields. Absent on multi-channel dispatches, which carry
2258
+ // their content per channel in the submitted request instead.
2259
+ target: e.string().optional(),
2260
+ message: e.string().optional(),
2261
+ option: j.optional(),
2262
+ // Multi-channel dispatch fields.
2263
+ campaign: n.nullish(),
2264
+ member: n.nullish(),
2265
+ /**
2266
+ * The scheduled run this dispatch belongs to. With campaign and member it
2267
+ * identifies one intended send, so a redelivered queue job is recognised
2268
+ * rather than sent twice.
2269
+ */
2270
+ runAt: e.coerce.date().nullish(),
2271
+ mode: z.nullish(),
2272
+ channels: e.array(U).nullish(),
2273
+ /**
2274
+ * Local submission state, kept separate from the upstream outcome so an
2275
+ * interrupted worker can tell "never sent" from "sent, result unknown".
2276
+ */
2277
+ state: ge.nullish(),
2278
+ outcome: E.nullish(),
2279
+ /** Upstream correlation id, preserved even when the request failed. */
2280
+ requestId: e.string().nullish(),
2281
+ attempts: e.array(J).nullish(),
2282
+ /** Credit consumed upstream, recorded for reconciliation. */
2283
+ creditUsed: d.nullish(),
2284
+ balanceAfter: d.nullish(),
2285
+ error: e.string().nullish(),
2286
+ createdAt: e.coerce.date().nullish(),
2287
+ submittedAt: e.coerce.date().nullish(),
2288
+ settledAt: e.coerce.date().nullish()
2289
+ }).describe(m.describe(de));
2290
+ const ue = e.object({
2241
2291
  target: e.string(),
2242
2292
  title: e.string().optional(),
2243
2293
  message: e.string(),
2244
- option: N,
2294
+ option: j,
2245
2295
  ref: e.string().optional()
2296
+ }), he = e.object({
2297
+ memberId: e.string(),
2298
+ name: e.string().nullish(),
2299
+ phoneNumber: e.string().nullish(),
2300
+ email: e.string().nullish(),
2301
+ /**
2302
+ * Shared Firebase uid required by App Inbox and Push, sourced from
2303
+ * `FdoUserV2.externalMemberId`. Optional there, so it can legitimately be
2304
+ * absent for a member; upstream decides what that means for a channel.
2305
+ */
2306
+ firebaseUid: e.string().nullish()
2307
+ });
2308
+ e.object({
2309
+ businessId: e.string(),
2310
+ forceSend: e.boolean(),
2311
+ mode: z,
2312
+ channels: e.array(
2313
+ e.enum(["SMS", "WHATSAPP", "EMAIL", "APP_INBOX", "PUSH_NOTIFICATION"])
2314
+ ),
2315
+ metadata: e.object({
2316
+ source: e.string(),
2317
+ refValue: e.string()
2318
+ }),
2319
+ content: e.record(e.string(), e.unknown())
2246
2320
  });
2247
2321
  e.object({
2322
+ requestId: e.string().nullish(),
2323
+ status: E.nullish(),
2324
+ attempts: e.array(J).nullish(),
2325
+ creditUsed: d.nullish(),
2326
+ balance: d.nullish()
2327
+ });
2328
+ const _e = e.object({
2248
2329
  campaignId: e.string(),
2249
- notification: ce,
2250
- business: e.string()
2330
+ business: e.string(),
2331
+ runAt: e.coerce.date(),
2332
+ recipient: he,
2333
+ /** Personalised, editor-data-free content keyed by channel. */
2334
+ content: e.record(e.string(), e.unknown()),
2335
+ mode: z,
2336
+ channels: e.array(U)
2337
+ });
2338
+ e.object({
2339
+ campaignId: e.string(),
2340
+ /** Absent only on multi-channel jobs, which carry `dispatch` instead. */
2341
+ notification: ue.optional(),
2342
+ business: e.string(),
2343
+ /**
2344
+ * Present only for multi-channel broadcasts. When set the job takes the
2345
+ * multi-channel dispatch path; when absent the legacy single-channel path
2346
+ * runs unchanged.
2347
+ */
2348
+ dispatch: _e.optional()
2349
+ }).superRefine((o, a) => {
2350
+ !o.notification && !o.dispatch && a.addIssue({
2351
+ code: e.ZodIssueCode.custom,
2352
+ message: "Job must carry either a notification or a dispatch"
2353
+ });
2251
2354
  });
2252
2355
  e.object({
2253
2356
  phone: e.string(),
2254
2357
  message: e.string()
2255
2358
  });
2256
- const v = e.object({
2359
+ const N = e.object({
2257
2360
  name: e.string().optional(),
2258
2361
  address: e.string()
2259
- }), pe = e.object({
2362
+ }), ye = e.object({
2260
2363
  filename: e.string(),
2261
2364
  content: e.instanceof(Uint8Array)
2262
2365
  });
2263
2366
  e.object({
2264
- from: v.optional(),
2265
- to: e.array(v),
2367
+ from: N.optional(),
2368
+ to: e.array(N),
2266
2369
  subject: e.string(),
2267
2370
  html: e.string().optional(),
2268
- attachments: e.array(pe).optional()
2371
+ attachments: e.array(ye).optional()
2269
2372
  });
2270
2373
  e.object({
2271
2374
  subject: e.string(),
@@ -2305,7 +2408,7 @@ e.object({
2305
2408
  billId: e.string()
2306
2409
  });
2307
2410
  e.object({
2308
- amount: R,
2411
+ amount: A,
2309
2412
  member: e.string(),
2310
2413
  bill: e.string(),
2311
2414
  otp: e.string().nullish(),
@@ -2314,15 +2417,15 @@ e.object({
2314
2417
  e.object({
2315
2418
  orderId: e.string()
2316
2419
  });
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);
2420
+ var O = /* @__PURE__ */ ((o) => (o[o.feedMe = 0] = "feedMe", o[o.business = 1] = "business", o[o.restaurant = 2] = "restaurant", o))(O || {});
2421
+ e.nativeEnum(O);
2319
2422
  e.enum(["manage", "create", "read", "update", "delete"]);
2320
2423
  e.enum(["all", "restaurant", "business", "delivery", "agent"]);
2321
2424
  e.enum(["quota"]);
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);
2425
+ var I = /* @__PURE__ */ ((o) => (o.marketing = "business::marketing", o.campaign = "business::campaign", o.counter = "business::counter", o.permission = "business::permission", o.role = "business::role", o))(I || {});
2426
+ e.nativeEnum(I);
2324
2427
  e.enum(["restaurant"]);
2325
- const me = e.object({
2428
+ const fe = e.object({
2326
2429
  label: e.string(),
2327
2430
  subject: e.union([e.string(), e.array(e.string())]),
2328
2431
  actions: e.union([e.string(), e.array(e.string())]),
@@ -2337,7 +2440,7 @@ e.object({
2337
2440
  userId: e.string(),
2338
2441
  email: e.string().nullish(),
2339
2442
  phoneNo: e.string().nullish(),
2340
- permissions: e.array(e.lazy(() => me))
2443
+ permissions: e.array(e.lazy(() => fe))
2341
2444
  }).describe(
2342
2445
  m.describe({
2343
2446
  collectionName: "PermissionUsers",
@@ -2346,27 +2449,27 @@ e.object({
2346
2449
  }
2347
2450
  })
2348
2451
  );
2349
- const j = e.object({
2452
+ const R = e.object({
2350
2453
  userId: e.string(),
2351
2454
  level: e.number(),
2352
2455
  role: e.string().optional(),
2353
2456
  businessId: e.string().optional(),
2354
2457
  restaurantId: e.string().optional()
2355
- }), se = e.function().args(e.any(), j).returns(e.boolean()), ge = e.function().args(j).returns(e.promise(e.array(e.any())));
2458
+ }), be = e.function().args(e.any(), R).returns(e.boolean()), He = e.function().args(R).returns(e.promise(e.array(e.any())));
2356
2459
  e.object({
2357
- isAdmin: se,
2358
- getRules: ge
2460
+ isAdmin: be,
2461
+ getRules: He
2359
2462
  });
2360
2463
  e.object({
2361
- transactions: e.array(x),
2362
- collections: e.array(D)
2464
+ transactions: e.array(M),
2465
+ collections: e.array(G)
2363
2466
  });
2364
- const J = e.enum([
2467
+ const L = e.enum([
2365
2468
  "ROCK_PAPER_SCISSOR"
2366
2469
  ]);
2367
- J.enum.ROCK_PAPER_SCISSOR + "";
2470
+ L.enum.ROCK_PAPER_SCISSOR + "";
2368
2471
  e.object({
2369
- type: J
2472
+ type: L
2370
2473
  });
2371
2474
  e.object({
2372
2475
  host: e.string().url(),
@@ -2375,7 +2478,7 @@ e.object({
2375
2478
  roomId: e.string()
2376
2479
  });
2377
2480
  e.enum(["FACEBOOK", "INSTAGRAM", "TV", "BRAND_APP"]);
2378
- const de = {
2481
+ const ze = {
2379
2482
  collectionName: "MarketingMaterials",
2380
2483
  transform: {
2381
2484
  _id: "oid",
@@ -2389,7 +2492,7 @@ e.object({
2389
2492
  headline: e.string(),
2390
2493
  caption: e.string(),
2391
2494
  editedAt: e.coerce.date()
2392
- }).describe(m.describe(de));
2495
+ }).describe(m.describe(ze));
2393
2496
  e.object({
2394
2497
  id: e.number(),
2395
2498
  name: e.string(),
@@ -2409,12 +2512,12 @@ e.object({
2409
2512
  phone: e.string().optional(),
2410
2513
  email: e.string().optional()
2411
2514
  });
2412
- const ue = e.enum([
2515
+ const Te = e.enum([
2413
2516
  "PENDING",
2414
2517
  "SUCCESS",
2415
2518
  "FAILED",
2416
2519
  "RETRYING"
2417
- ]), he = {
2520
+ ]), Ce = {
2418
2521
  collectionName: "WebhookLogs",
2419
2522
  transform: {
2420
2523
  _id: "oid",
@@ -2426,18 +2529,18 @@ e.object({
2426
2529
  business: n,
2427
2530
  type: e.string(),
2428
2531
  payload: e.record(e.any()),
2429
- status: ue,
2532
+ status: Te,
2430
2533
  response: e.any().optional(),
2431
2534
  error: e.string().optional()
2432
- }).describe(m.describe(he));
2433
- const _e = e.enum(["AUTO", "MANUAL"]);
2535
+ }).describe(m.describe(Ce));
2536
+ const ve = e.enum(["AUTO", "MANUAL"]);
2434
2537
  e.enum(["IN_PROGRESS", "COMPLETED"]);
2435
- const E = e.object({
2538
+ const x = e.object({
2436
2539
  _id: n,
2437
2540
  name: e.string().min(1, "Name is required").max(50),
2438
- type: _e,
2439
- event: F.optional()
2440
- }), ye = e.object({
2541
+ type: ve,
2542
+ event: V.optional()
2543
+ }), Se = e.object({
2441
2544
  from: e.number().int("Must be integer").min(1, "Min referral count need to start from 1"),
2442
2545
  to: e.number().int("Must be integer").nullish()
2443
2546
  }).superRefine((o, a) => {
@@ -2445,16 +2548,16 @@ const E = e.object({
2445
2548
  code: "custom",
2446
2549
  message: "Max referral count must be more than min referral count"
2447
2550
  });
2448
- }), fe = e.object({
2449
- threshold: ye,
2551
+ }), Ne = e.object({
2552
+ threshold: Se,
2450
2553
  rewards: e.array(n),
2451
- pf_reward: e.array(H).optional()
2452
- }), z = e.object({
2554
+ pf_reward: e.array(T).optional()
2555
+ }), C = e.object({
2453
2556
  id: e.string(),
2454
2557
  name: e.string().min(1, "Name is required").max(50, "Name must be less than 50 characters"),
2455
- rule: A.optional(),
2456
- rewards: e.array(fe)
2457
- }), be = {
2558
+ rule: B.optional(),
2559
+ rewards: e.array(Ne)
2560
+ }), Ue = {
2458
2561
  collectionName: "ReferralRecords",
2459
2562
  transform: {
2460
2563
  _id: "oid",
@@ -2463,25 +2566,25 @@ const E = e.object({
2463
2566
  referee: "oid",
2464
2567
  refereeReward: "oid"
2465
2568
  }
2466
- }, He = e.object({
2569
+ }, Pe = e.object({
2467
2570
  completedAt: e.coerce.date(),
2468
2571
  criteria: n,
2469
2572
  ref: e.string()
2470
- }), ze = e.object({
2573
+ }), je = e.object({
2471
2574
  _id: n,
2472
2575
  business: n,
2473
2576
  referer: n,
2474
2577
  referee: n,
2475
- criteria: e.array(E),
2476
- reward: e.array(z),
2578
+ criteria: e.array(x),
2579
+ reward: e.array(C),
2477
2580
  refereeReward: e.array(n).optional(),
2478
- criteria_progress: e.array(He),
2581
+ criteria_progress: e.array(Pe),
2479
2582
  status: e.string(),
2480
2583
  pf_referer: g.optional(),
2481
2584
  pf_referee: g.optional(),
2482
- pf_refereeReward: e.array(H).optional()
2483
- }).describe(m.describe(be));
2484
- ze.pick({
2585
+ pf_refereeReward: e.array(T).optional()
2586
+ }).describe(m.describe(Ue));
2587
+ je.pick({
2485
2588
  _id: !0,
2486
2589
  business: !0,
2487
2590
  referer: !0,
@@ -2496,33 +2599,33 @@ ze.pick({
2496
2599
  photoUrl: !0
2497
2600
  })
2498
2601
  });
2499
- const Ce = {
2602
+ const Ee = {
2500
2603
  collectionName: "ReferralProgram",
2501
2604
  transform: {
2502
2605
  _id: "oid",
2503
2606
  business: "oid"
2504
2607
  }
2505
- }, O = e.object({
2608
+ }, D = e.object({
2506
2609
  _id: n,
2507
2610
  business: n,
2508
2611
  term_and_condition: e.string().optional(),
2509
2612
  refereeReward: e.array(n).optional(),
2510
- reward: e.array(z),
2511
- criteria: e.array(E)
2512
- }).describe(m.describe(Ce));
2613
+ reward: e.array(C),
2614
+ criteria: e.array(x)
2615
+ }).describe(m.describe(Ee));
2513
2616
  e.object({
2514
2617
  referer: n,
2515
2618
  referee: n,
2516
2619
  business: n
2517
2620
  });
2518
2621
  e.object({
2519
- program: O.pick({
2622
+ program: D.pick({
2520
2623
  _id: !0,
2521
2624
  business: !0,
2522
2625
  term_and_condition: !0
2523
2626
  }).extend({
2524
- reward: z.optional(),
2525
- pf_refereeReward: e.array(H).optional()
2627
+ reward: C.optional(),
2628
+ pf_refereeReward: e.array(T).optional()
2526
2629
  }),
2527
2630
  referralCount: e.number(),
2528
2631
  successReferralCount: e.number(),
@@ -2533,37 +2636,37 @@ e.object({
2533
2636
  photoUrl: !0
2534
2637
  }).optional()
2535
2638
  });
2536
- O.extend({
2639
+ D.extend({
2537
2640
  updateReferralRecord: e.boolean().optional()
2538
2641
  });
2539
- const Te = e.object({
2642
+ const Je = e.object({
2540
2643
  facebookPageId: e.string(),
2541
2644
  pageName: e.string(),
2542
2645
  pageProfileImageUrl: e.string(),
2543
2646
  pageAccessToken: e.string().optional(),
2544
2647
  locationIds: e.array(n)
2545
- }), ve = e.object({
2648
+ }), Oe = e.object({
2546
2649
  locationId: n.nullable(),
2547
2650
  googleLocationName: e.string(),
2548
2651
  displayName: e.string().optional()
2549
- }), Se = e.object({
2652
+ }), Ie = e.object({
2550
2653
  accessToken: e.string().nullable(),
2551
2654
  refreshToken: e.string().nullable(),
2552
2655
  accessTokenExpiresAt: e.date().nullable(),
2553
- locations: e.array(ve),
2656
+ locations: e.array(Oe),
2554
2657
  lastSyncTime: e.coerce.date().nullish(),
2555
2658
  syncFrequency: e.number().int().min(1).max(30).default(30)
2556
- }), Ne = e.object({
2659
+ }), Re = e.object({
2557
2660
  token: e.string().nullable(),
2558
- pages: e.array(Te),
2661
+ pages: e.array(Je),
2559
2662
  lastSyncTime: e.coerce.date().nullish(),
2560
2663
  syncFrequency: e.number().int().min(1).max(30).default(30)
2561
2664
  });
2562
2665
  e.object({
2563
2666
  _id: n,
2564
2667
  businessId: n,
2565
- google: Se.nullable(),
2566
- facebook: Ne.nullable()
2668
+ google: Ie.nullable(),
2669
+ facebook: Re.nullable()
2567
2670
  }).describe(
2568
2671
  m.describe({
2569
2672
  collectionName: "ReviewSourceConfig",
@@ -2627,15 +2730,15 @@ e.object({
2627
2730
  syncFrequency: e.number().int().min(1).max(30)
2628
2731
  }).nullable()
2629
2732
  });
2630
- const d = e.object({
2733
+ const u = e.object({
2631
2734
  name: e.string(),
2632
2735
  pictureUrl: e.string(),
2633
2736
  phoneNumber: e.string().optional()
2634
- }), Ue = d.extend({
2737
+ }), Le = u.extend({
2635
2738
  isAnonymous: e.boolean().optional()
2636
- }), Pe = d.extend({
2739
+ }), xe = u.extend({
2637
2740
  id: e.string().optional()
2638
- }), u = e.object({
2741
+ }), h = e.object({
2639
2742
  comment: e.string(),
2640
2743
  updateTime: e.coerce.date()
2641
2744
  });
@@ -2647,7 +2750,7 @@ const s = e.object({
2647
2750
  thumbnailUrl: e.string(),
2648
2751
  thumbnailLabel: e.string(),
2649
2752
  videoUrl: e.string().optional()
2650
- }), je = {
2753
+ }), De = {
2651
2754
  collectionName: "Reviews",
2652
2755
  transform: {
2653
2756
  _id: "oid",
@@ -2655,31 +2758,31 @@ const s = e.object({
2655
2758
  reviewerId: "oid",
2656
2759
  restaurantId: "oid"
2657
2760
  }
2658
- }, I = e.enum([
2761
+ }, w = e.enum([
2659
2762
  "google",
2660
2763
  "facebook",
2661
2764
  "feedme",
2662
2765
  "feedvibe"
2663
2766
  ]);
2664
- I.options;
2767
+ w.options;
2665
2768
  e.enum(["google", "facebook"]);
2666
- const Je = e.enum([
2769
+ const we = e.enum([
2667
2770
  "createTime_desc",
2668
2771
  "createTime_asc",
2669
2772
  "rating_asc",
2670
2773
  "rating_desc"
2671
2774
  ]);
2672
2775
  e.object({
2673
- source: I.array().optional(),
2776
+ source: w.array().optional(),
2674
2777
  dateFrom: e.string().datetime({ offset: !0 }).optional(),
2675
2778
  dateTo: e.string().datetime({ offset: !0 }).optional(),
2676
2779
  locationId: e.string().optional(),
2677
2780
  excludeDeleted: e.boolean().optional(),
2678
- sort: Je.optional(),
2781
+ sort: we.optional(),
2679
2782
  limit: e.coerce.number().int().positive().optional(),
2680
2783
  skip: e.coerce.number().int().min(0).optional()
2681
2784
  });
2682
- const Xe = e.object({
2785
+ const it = e.object({
2683
2786
  averageScore: e.number(),
2684
2787
  total: e.number().int().nonnegative(),
2685
2788
  starCounts: e.array(
@@ -2688,54 +2791,54 @@ const Xe = e.object({
2688
2791
  count: e.number().int().nonnegative()
2689
2792
  })
2690
2793
  )
2691
- }), h = e.object({
2794
+ }), _ = e.object({
2692
2795
  name: e.string(),
2693
2796
  pictureUrl: e.string().optional(),
2694
2797
  phoneNumber: e.string().optional()
2695
- }), Ee = h.extend({
2798
+ }), Ae = _.extend({
2696
2799
  _id: e.string().optional()
2697
- }), Oe = h.extend({
2800
+ }), Fe = _.extend({
2698
2801
  _id: e.string()
2699
- }), Ie = h.extend({
2802
+ }), Me = _.extend({
2700
2803
  isAnonymous: e.boolean().optional()
2701
- }), Re = h.extend({
2804
+ }), Ge = _.extend({
2702
2805
  id: e.string().optional()
2703
- }), _ = e.object({
2806
+ }), y = e.object({
2704
2807
  _id: n,
2705
2808
  comment: e.string(),
2706
2809
  createTime: e.coerce.date(),
2707
2810
  updateTime: e.coerce.date().nullish(),
2708
2811
  restaurantId: n,
2709
2812
  restaurantName: e.string()
2710
- }), Le = _.extend({
2813
+ }), ke = y.extend({
2711
2814
  source: e.literal("google"),
2712
2815
  externalId: e.string().min(1),
2713
2816
  translatedComment: e.string().optional(),
2714
- reviewer: Ie.optional(),
2715
- reply: u.optional(),
2817
+ reviewer: Me.optional(),
2818
+ reply: h.optional(),
2716
2819
  mediaItems: e.array(s),
2717
2820
  starRating: e.number(),
2718
2821
  locationName: e.string(),
2719
2822
  locationDisplayName: e.string(),
2720
2823
  originalUrl: e.string().optional()
2721
- }), xe = _.extend({
2824
+ }), Be = y.extend({
2722
2825
  source: e.literal("facebook"),
2723
2826
  externalId: e.string().min(1),
2724
- reviewer: Re.optional(),
2827
+ reviewer: Ge.optional(),
2725
2828
  isPositive: e.boolean().optional(),
2726
2829
  pageId: e.string(),
2727
2830
  pageName: e.string()
2728
- }), De = _.extend({
2831
+ }), Ve = y.extend({
2729
2832
  source: e.literal("feedme"),
2730
- reviewer: Ee.optional(),
2731
- reply: u.optional(),
2833
+ reviewer: Ae.optional(),
2834
+ reply: h.optional(),
2732
2835
  starRating: e.number(),
2733
2836
  mediaItems: e.array(s),
2734
2837
  billId: e.string()
2735
- }), we = _.extend({
2838
+ }), Ye = y.extend({
2736
2839
  source: e.literal("feedvibe"),
2737
2840
  externalId: e.string().min(1),
2738
- reviewer: Oe.optional(),
2841
+ reviewer: Fe.optional(),
2739
2842
  rating: e.object({
2740
2843
  overall: e.number(),
2741
2844
  food: e.number(),
@@ -2746,10 +2849,10 @@ const Xe = e.object({
2746
2849
  mediaItems: e.array(s).default([])
2747
2850
  });
2748
2851
  e.discriminatedUnion("source", [
2749
- Le,
2750
- xe,
2751
- De,
2752
- we
2852
+ ke,
2853
+ Be,
2854
+ Ve,
2855
+ Ye
2753
2856
  ]);
2754
2857
  e.object({
2755
2858
  comment: e.string(),
@@ -2762,7 +2865,7 @@ e.object({
2762
2865
  name: e.string().trim().min(1),
2763
2866
  phoneNumber: e.string().trim().min(1).optional()
2764
2867
  });
2765
- const y = e.object({
2868
+ const f = e.object({
2766
2869
  _id: n,
2767
2870
  businessId: n,
2768
2871
  comment: e.string(),
@@ -2771,39 +2874,39 @@ const y = e.object({
2771
2874
  restaurantId: n,
2772
2875
  restaurantName: e.string(),
2773
2876
  deletedAt: e.coerce.date().optional()
2774
- }), Ae = y.extend({
2877
+ }), We = f.extend({
2775
2878
  source: e.literal("google"),
2776
2879
  externalId: e.string().min(1),
2777
2880
  translatedComment: e.string().optional(),
2778
- reviewer: Ue.optional(),
2779
- reply: u.optional(),
2881
+ reviewer: Le.optional(),
2882
+ reply: h.optional(),
2780
2883
  mediaItems: e.array(s),
2781
2884
  starRating: e.number(),
2782
2885
  locationName: e.string(),
2783
2886
  locationDisplayName: e.string(),
2784
2887
  originalUrl: e.string().optional()
2785
- }), Fe = y.extend({
2888
+ }), Ke = f.extend({
2786
2889
  source: e.literal("facebook"),
2787
2890
  externalId: e.string().min(1),
2788
- reviewer: Pe.optional(),
2891
+ reviewer: xe.optional(),
2789
2892
  isPositive: e.boolean().optional(),
2790
2893
  pageId: e.string(),
2791
2894
  pageName: e.string()
2792
- }), Ge = y.extend({
2895
+ }), qe = f.extend({
2793
2896
  source: e.literal("feedme"),
2794
2897
  isAnonymous: e.boolean(),
2795
2898
  metadata: e.record(e.string(), e.unknown()).optional(),
2796
2899
  reviewerId: n.optional(),
2797
- reviewer: d.optional(),
2798
- reply: u.optional(),
2900
+ reviewer: u.optional(),
2901
+ reply: h.optional(),
2799
2902
  starRating: e.number(),
2800
2903
  billId: e.string(),
2801
2904
  mediaItems: e.array(s)
2802
- }), Me = y.extend({
2905
+ }), Xe = f.extend({
2803
2906
  source: e.literal("feedvibe"),
2804
2907
  externalId: e.string().min(1),
2805
2908
  reviewerId: n,
2806
- reviewer: d,
2909
+ reviewer: u,
2807
2910
  rating: e.object({
2808
2911
  overall: e.number(),
2809
2912
  food: e.number(),
@@ -2814,23 +2917,23 @@ const y = e.object({
2814
2917
  mediaItems: e.array(s).default([])
2815
2918
  });
2816
2919
  e.discriminatedUnion("source", [
2817
- Ae,
2818
- Fe,
2819
- Ge,
2820
- Me
2821
- ]).describe(m.describe(je));
2920
+ We,
2921
+ Ke,
2922
+ qe,
2923
+ Xe
2924
+ ]).describe(m.describe(De));
2822
2925
  export {
2823
- Q as F,
2926
+ ae as F,
2824
2927
  t as R,
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
2928
+ ot as T,
2929
+ H as a,
2930
+ Ne as b,
2931
+ x as c,
2932
+ C as d,
2933
+ $ as e,
2934
+ Z as f,
2935
+ it as g,
2936
+ h,
2937
+ Y as i,
2938
+ q as s
2836
2939
  };