@feedmepos/mf-connect 0.1.98-beta.53 → 0.1.98-beta.55

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 (118) hide show
  1. package/dist/{App-GVbZXaOb.js → App-Cw_SF7wy.js} +8 -8
  2. package/dist/{AuditLogs-COC3VF6K.js → AuditLogs-Cw-iziOh.js} +10 -10
  3. package/dist/{Bin-BqN1F26B.js → Bin-B3IwyAnR.js} +8 -8
  4. package/dist/{Broadcast-BXP5eA1_.js → Broadcast-DrxqOsXe.js} +11 -11
  5. package/dist/{CampaignAnalytic-B3Vm1qDu.js → CampaignAnalytic-CIPWAZeN.js} +6 -6
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CkX0_HxH.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-fcuFjICN.js} +6 -7
  7. package/dist/{Card-UnclF25U.js → Card-UQwdG0vG.js} +21 -21
  8. package/dist/{Collections-DjrrHxTV.js → Collections-C4YnGhND.js} +8 -8
  9. package/dist/{Credit-DoDJIxEC.js → Credit-DCk2y4Tm.js} +12 -12
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BM_btYhW.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DqHOH-gI.js} +33 -34
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-ftrIH_p9.js → EffectSheet.vue_vue_type_style_index_0_lang-_B8KkV6r.js} +6 -6
  12. package/dist/{Experience-Dr2Arehy.js → Experience-Db78ZHrz.js} +12 -12
  13. package/dist/{FileSaver.min-D9YchN9l.js → FileSaver.min-DfiXN-cw.js} +1 -1
  14. package/dist/{Game-3dq-RL7M.js → Game-dZl0xglE.js} +13 -13
  15. package/dist/{GiftCardSetup-DD1r4qll.js → GiftCardSetup-C0bikX4h.js} +9 -9
  16. package/dist/{Grab-Ca0WiQpm.js → Grab-DgLocdm2.js} +9 -9
  17. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-D66OFyD2.js → ImageInput.vue_vue_type_script_setup_true_lang-CxvT0OKP.js} +1 -1
  18. package/dist/{Index-8kZCkUM2.js → Index-CdpEW-Cz.js} +10 -10
  19. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CUCAO-YP.js → LocationPicker.vue_vue_type_script_setup_true_lang-BSFgJ_eG.js} +1 -1
  20. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Cggoq2NY.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DqnHquHg.js} +1 -1
  21. package/dist/{LoyaltyDashboard-DT-hdzf3.js → LoyaltyDashboard-C-grmjut.js} +10 -10
  22. package/dist/{MainLayout-7w0y1egK.js → MainLayout-D6B6xRwy.js} +3 -3
  23. package/dist/{Marketing-DPJc-3ff.js → Marketing-BzPTImcn.js} +4 -4
  24. package/dist/{MarketingMaterialEdit-D-hqhuMF.js → MarketingMaterialEdit--ATQqcpX.js} +6 -6
  25. package/dist/Member-BX-8sexf.js +649 -0
  26. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dl8u5fl6.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dkw9Wn1M.js} +23 -23
  27. package/dist/{MemberImportHistory-DAQ65F9g.js → MemberImportHistory-CLbmY4_Y.js} +7 -7
  28. package/dist/{MemberList-D5FzPL99.js → MemberList-DQhtO8LL.js} +14 -14
  29. package/dist/{MemberTransactions-DZaibYxC.js → MemberTransactions-BRZxbhZS.js} +1 -1
  30. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-6xakpZEo.js → MessageInput.vue_vue_type_script_setup_true_lang-azZANLtU.js} +10 -10
  31. package/dist/{Mission-PXCFl4e-.js → Mission-CXE8Gr5g.js} +13 -13
  32. package/dist/{Overview-CcDElaj4.js → Overview-CcLgKLey.js} +4 -4
  33. package/dist/{Overview-BOlwqxBU.js → Overview-Wc_nkop_.js} +19 -19
  34. package/dist/{Point-CDSO_YG3.js → Point-w2r_uzND.js} +12 -12
  35. package/dist/{Promotion-DVw7hepB.js → Promotion-DFT8oAap.js} +13 -13
  36. package/dist/{Queue-DUb4qqpc.js → Queue-DMisBGyP.js} +11 -11
  37. package/dist/{Record-r2Bj4Y-2.js → Record-DaCQ9fWs.js} +9 -9
  38. package/dist/{Review-D5sC1CpN.js → Review-CapDuSOW.js} +2 -2
  39. package/dist/{ReviewFacebookCallback-C-pIS4uj.js → ReviewFacebookCallback-B58jwoO8.js} +5 -5
  40. package/dist/{ReviewGoogleCallback-wKBmFpBe.js → ReviewGoogleCallback-BuKfAzg4.js} +5 -5
  41. package/dist/{Reward-eY6C0L7i.js → Reward-BKmAIDMj.js} +16 -16
  42. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CEXYfR09.js → RewardGroup.vue_vue_type_script_setup_true_lang-CcM0sAI4.js} +12 -12
  43. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-ifUAqLwG.js → RuleGroup.vue_vue_type_script_setup_true_lang-DBw2hSKH.js} +16 -17
  44. package/dist/{Segment-CKXmFk6Q.js → Segment-DvpoSNUk.js} +32 -33
  45. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DD7KLdTt.js → SelectItems.vue_vue_type_script_setup_true_lang-DoXvWKBk.js} +2 -2
  46. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Bl3KaAjj.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C1ll8PAQ.js} +21 -21
  47. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-tpcHzd48.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-mZetZdjJ.js} +4 -4
  48. package/dist/{Setting-K-x016Eq.js → Setting-B5kt3xg-.js} +14 -14
  49. package/dist/{SettingAdvertisements-BGznpHIH.js → SettingAdvertisements-K9K4kJ0K.js} +12 -12
  50. package/dist/{Settings-CrPLvP2-.js → Settings-COKSGA87.js} +5 -5
  51. package/dist/{Store-PbvFQ03o.js → Store-FWqFmQkz.js} +25 -25
  52. package/dist/{StoreRewards-pYNbeyOQ.js → StoreRewards-Bmcaz6FR.js} +15 -15
  53. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-C5YoHPxm.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BNbEQu8Y.js} +23 -23
  54. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DOyli0Kj.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dryke9SW.js} +2 -2
  55. package/dist/{Tier-BHlyTQfq.js → Tier-BNAY4zUT.js} +2238 -601
  56. package/dist/{Title-CSuSHz1O.js → Title-BfWmhZZ_.js} +32 -33
  57. package/dist/{Transaction-bKcfOmz1.js → Transaction-DYTygEuQ.js} +2 -2
  58. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C6Pb93cp.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Ch4s6p4Z.js} +20 -20
  59. package/dist/{Voucher-D_zf4aRU.js → Voucher-BEbl-HsE.js} +14 -14
  60. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-D1VBWUFD.js → VoucherEditor.vue_vue_type_script_setup_true_lang-w2W2qt_7.js} +12 -12
  61. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CRz6uhOz.js → ZodTextField.vue_vue_type_script_setup_true_lang-CBFwmgOo.js} +2 -2
  62. package/dist/{app-DsVK_Z9F.js → app-Do6spNSS.js} +2960 -2928
  63. package/dist/app.js +1 -1
  64. package/dist/{base.export-wsjx1b1F.js → base.export-D-qcrTy9.js} +2 -2
  65. package/dist/{business-emEflb7G.js → business-B77L5zCr.js} +1 -1
  66. package/dist/{campaign-CH1zEmK_.js → campaign-0nB3kGlT.js} +8 -8
  67. package/dist/{campaign-CczdPZEx.js → campaign-P-G3HMdp.js} +2 -2
  68. package/dist/{campaign.enum-jb40hQyq.js → campaign.enum-CiMl44dc.js} +1 -1
  69. package/dist/{campaign.fn-ZvIMg3Jv.js → campaign.fn-DGv2wAqn.js} +31 -31
  70. package/dist/{collectible.enum-Q0sMqRej.js → collectible.enum-CmrLMPA0.js} +1 -1
  71. package/dist/{collection.fn-CpOJTvnW.js → collection.fn-Ctdy8JkU.js} +2 -2
  72. package/dist/{currency-nVkRZfQp.js → currency-B1ZqBYyA.js} +1 -1
  73. package/dist/{duplicateCampaign-DszCNBjZ.js → duplicateCampaign-DsBHk-PC.js} +2 -2
  74. package/dist/{effect-De3cFxjA.js → effect-BE4BASWL.js} +1 -1
  75. package/dist/{email-addresses-BENEAxtQ.js → email-addresses-DxUQ_4QV.js} +209 -201
  76. package/dist/{helper-DjTmaBve.js → helper-BiKiceul.js} +1 -1
  77. package/dist/{index-BMQVCeHN.js → index-4F0WCPZ9.js} +354 -231
  78. package/dist/{index-Wd_vLVMH.js → index-B5vzubou.js} +1384 -1328
  79. package/dist/{index-BEU1eux8.js → index-BAtDTJo_.js} +1 -1
  80. package/dist/{index-P2yevS6i.js → index-BSyn-LO2.js} +1 -1
  81. package/dist/{index-BxRbdJOU.js → index-BncZ0745.js} +1 -1
  82. package/dist/{index-BH4TDRw4.js → index-CY0DaRSA.js} +2 -2
  83. package/dist/{index-fl12LmlG.js → index-CZtFd2Mm.js} +1 -1
  84. package/dist/{index-BlsV0pDI.js → index-CexA3ZNo.js} +9 -9
  85. package/dist/{index-DlAwtfWQ.js → index-CnZuz4FU.js} +3 -3
  86. package/dist/{index-p0RFjPyp.js → index-CsVa3rDe.js} +1 -1
  87. package/dist/{index-CKfVSZcR.js → index-D-9Q09e5.js} +2 -2
  88. package/dist/{index-B-GBUWJi.js → index-DIxLpCbJ.js} +600 -570
  89. package/dist/{index-BanLR_f4.js → index-DwQKXUeH.js} +2 -2
  90. package/dist/{index-vV9W0EhO.js → index-Dz1VDJc9.js} +1 -1
  91. package/dist/{index-DEtIu7G-.js → index-IwteF-7z.js} +3 -3
  92. package/dist/{index-DrSpG2nV.js → index-UhOpaM-R.js} +1 -1
  93. package/dist/{index-DsviWEPT.js → index-fAq8fqc-.js} +109 -108
  94. package/dist/{index-Bj_LrRir.js → index-r1k7ANUt.js} +1 -1
  95. package/dist/{index.esm2017-C-k-2kM3.js → index.esm2017-DN7GSWnA.js} +1 -1
  96. package/dist/{loading-TBGTHWt0.js → loading-weS_D5KN.js} +1 -1
  97. package/dist/{lodash-qQ2ie1zb.js → lodash-BoP2NKA5.js} +1 -1
  98. package/dist/{member-import-B_sizua-.js → member-import-CjV5FVUq.js} +1 -1
  99. package/dist/{membership-DJIuI4sn.js → membership-Fj9ZYUTs.js} +3 -3
  100. package/dist/{money-BOnCYNt8.js → money-X6FLZyEA.js} +1 -1
  101. package/dist/{number-GrW7Sgoo.js → number-DyX5qBY-.js} +1 -1
  102. package/dist/{objectid-DPTR7IEN.js → objectid-CrUq8fo_.js} +5 -5
  103. package/dist/{plugins-D80BsQ8l.js → plugins-Dc-NoCH3.js} +3 -3
  104. package/dist/{reward-ByHQgT7i.js → reward-B59sZKug.js} +1 -1
  105. package/dist/{rule-Djn2x0ov.js → rule-DegJg1Uj.js} +335 -275
  106. package/dist/{template-CR7fSIew.js → template-PaICU_3w.js} +6 -6
  107. package/dist/{timezone-BQH2AZ_H.js → timezone-Bktwc_gB.js} +1 -1
  108. package/dist/{transaction.fn-sp8FkkYr.js → transaction.fn-CtL0hJK5.js} +1 -1
  109. package/dist/{trigger-Y9ted5Uv.js → trigger-y6iOxxCH.js} +5 -5
  110. package/dist/{useMarketingMaterialActions-jZ3QuyxF.js → useMarketingMaterialActions-CGzkoaFi.js} +3 -3
  111. package/dist/{usePagination-pzo4ADvP.js → usePagination-cvobvego.js} +1 -1
  112. package/dist/{user-BtkZFzFm.js → user-DqcwNxjc.js} +1 -1
  113. package/dist/{vue-i18n-DHFwvj0q.js → vue-i18n-CKaxNvA5.js} +391 -391
  114. package/dist/{xlsx-BWsO-8j5.js → xlsx-NQidEwsK.js} +1 -1
  115. package/dist/{zod-BMKVB5Fl.js → zod-De7xWhI3.js} +1 -1
  116. package/package.json +2 -2
  117. package/dist/Member-CkRqgHe4.js +0 -630
  118. package/dist/rule-builder-Dp6YiO8-.js +0 -126
@@ -1,11 +1,129 @@
1
- import { z as e, F as a, m as i, b as U } from "./index-DEtIu7G-.js";
2
- import { y as P, z as j, A as J, B as r } from "./index-B-GBUWJi.js";
3
- import { d as E } from "./index-Wd_vLVMH.js";
4
- import { R as t } from "./rule-builder-Dp6YiO8-.js";
5
- import { i as o } from "./helper-DjTmaBve.js";
6
- import { d as O } from "./index-DsviWEPT.js";
7
- import { F as d } from "./index-DlAwtfWQ.js";
8
- const I = {
1
+ import { z as e, F as n, m, b as R } from "./index-IwteF-7z.js";
2
+ import { z as L, A as x, B as D, C as g } from "./index-DIxLpCbJ.js";
3
+ import { _ as w, l as C, d as A } from "./index-B5vzubou.js";
4
+ import { i as p } from "./helper-BiKiceul.js";
5
+ import { d as F } from "./index-fAq8fqc-.js";
6
+ import { F as H } from "./index-CnZuz4FU.js";
7
+ function f(o, a) {
8
+ let i = "", r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
9
+ const l = r.length;
10
+ for (let c = 0; c < o; c++)
11
+ i += r.charAt(Math.floor(Math.random() * l));
12
+ return i;
13
+ }
14
+ function b(o) {
15
+ return !o.property && "rules" in o;
16
+ }
17
+ function G(o) {
18
+ return "property" in o && !!o.property;
19
+ }
20
+ const M = "g_schedule";
21
+ function k(o) {
22
+ return o.split(/\r?\n/).filter((a) => !a.trim().toUpperCase().startsWith("DTSTART")).join(`
23
+ `).trim();
24
+ }
25
+ function B(o, a = !1) {
26
+ const i = w.cloneDeep(o);
27
+ if (G(i)) {
28
+ const r = i.conditions;
29
+ return !a && r && typeof r._rrule == "string" && (r._rrule = k(
30
+ r._rrule
31
+ )), i;
32
+ }
33
+ if (b(i))
34
+ for (const r in i.rules) {
35
+ const l = i.rules[r], c = a || b(l) && l.name === M;
36
+ i.rules[r] = B(
37
+ l,
38
+ c
39
+ );
40
+ }
41
+ return i;
42
+ }
43
+ class t {
44
+ static scaffoldGroup(a) {
45
+ return {
46
+ name: a ?? `g_${f(4)}`,
47
+ rules: {},
48
+ logic: ""
49
+ };
50
+ }
51
+ static scaffoldEntry(a) {
52
+ return {
53
+ name: `r_${f(4)}`,
54
+ property: a ?? "",
55
+ conditions: {},
56
+ negated: !1
57
+ };
58
+ }
59
+ static constructEntry(a, i, r, l) {
60
+ return {
61
+ name: l ?? `e_${f(4)}`,
62
+ property: a,
63
+ conditions: {
64
+ [i]: r
65
+ },
66
+ negated: !1
67
+ };
68
+ }
69
+ static getLogic(a) {
70
+ return (a.logic ?? "").includes("||") ? "||" : "&&";
71
+ }
72
+ static constructLogic(a, i) {
73
+ const r = i ?? t.getLogic(a);
74
+ return Object.entries(a.rules).map(([l, c]) => b(c) ? l : `${c.negated ? "!" : ""}${l}`).join(` ${r} `);
75
+ }
76
+ static setRuleToGroup(a, i, r) {
77
+ let l = C.cloneDeep(a);
78
+ return Object.keys(l.rules).length === 0 && (l = t.scaffoldGroup(l.name)), Array.isArray(i) ? i.forEach((c) => {
79
+ l.rules[c.name] = c;
80
+ }) : l.rules[i.name] = i, l.logic = t.constructLogic(l, r), l;
81
+ }
82
+ static removeEntry(a, i, r) {
83
+ const l = C.cloneDeep(a);
84
+ return delete l.rules[i], l.logic = t.constructLogic(l, r), l;
85
+ }
86
+ static constructRule(a) {
87
+ switch (a.type) {
88
+ case "timeframe": {
89
+ const i = a.property, r = t.scaffoldGroup("timeframe"), l = [];
90
+ return (a.start || a.end) && l.push(
91
+ t.constructEntry(i, "_isBetween", {
92
+ start: a.start || void 0,
93
+ end: a.end || void 0
94
+ })
95
+ ), t.setRuleToGroup(r, l, "&&");
96
+ }
97
+ default:
98
+ throw Error("invalid config type");
99
+ }
100
+ }
101
+ static getRules(a) {
102
+ return a && "rules" in a ? Object.values(a.rules) : [];
103
+ }
104
+ static simplify(a) {
105
+ const [i] = Object.entries(a.conditions);
106
+ return i[0], {
107
+ property: a.property,
108
+ operator: i[0],
109
+ equator: i[1]
110
+ };
111
+ }
112
+ static isRuleExceed(a, i) {
113
+ const l = Object.keys(a.rules).length + (Array.isArray(i) ? i.length : 1);
114
+ if (l > 10)
115
+ throw new V(10, l);
116
+ return !0;
117
+ }
118
+ }
119
+ class V extends Error {
120
+ constructor(a, i) {
121
+ super(
122
+ `Maximum of ${a} rules allowed per group. Attempted to add ${i} rules.`
123
+ ), this.name = "MaxRulesExceededError";
124
+ }
125
+ }
126
+ const Y = {
9
127
  collectionName: "AuditLogs",
10
128
  transform: {
11
129
  _id: "oid",
@@ -18,7 +136,7 @@ const I = {
18
136
  fromCollection: "Businesses"
19
137
  }
20
138
  }
21
- }, R = e.enum([
139
+ }, K = e.enum([
22
140
  "GET",
23
141
  "POST",
24
142
  "PUT",
@@ -27,7 +145,7 @@ const I = {
27
145
  "OPTIONS",
28
146
  "HEAD",
29
147
  "ALL"
30
- ]), L = e.enum([
148
+ ]), W = e.enum([
31
149
  "CAMPAIGN",
32
150
  "LOCATION",
33
151
  "MARKETING MATERIALS",
@@ -37,31 +155,31 @@ const I = {
37
155
  "SETTINGS",
38
156
  "SEGMENTATION",
39
157
  "USER"
40
- ]), x = e.object({
41
- httpMethod: R,
158
+ ]), q = e.object({
159
+ httpMethod: K,
42
160
  url: e.string().min(1),
43
161
  userAgent: e.string(),
44
162
  host: e.string().min(1),
45
163
  params: e.object({}).passthrough().nullish(),
46
164
  query: e.object({}).passthrough().nullish(),
47
165
  body: e.object({}).passthrough().nullish()
48
- }), D = e.object({
166
+ }), X = e.object({
49
167
  statusCode: e.number().int().min(100).max(599),
50
168
  body: e.object({}).passthrough().nullish()
51
169
  });
52
170
  e.object({
53
- _id: a,
171
+ _id: n,
54
172
  user: e.string().length(28),
55
173
  userName: e.string().min(1),
56
- userPhoneNumber: e.string().refine((n) => P(n)).nullish(),
57
- moduleType: L,
58
- business: a.nullish(),
174
+ userPhoneNumber: e.string().refine((o) => L(o)).nullish(),
175
+ moduleType: W,
176
+ business: n.nullish(),
59
177
  clientIp: e.string().nullish(),
60
178
  timestamp: e.string().datetime(),
61
- request: x,
62
- response: D
63
- }).describe(i.describe(I));
64
- const De = {
179
+ request: q,
180
+ response: X
181
+ }).describe(m.describe(Y));
182
+ const qe = {
65
183
  PROMOTION: {
66
184
  name: "Promotion Template",
67
185
  description: "Promotion template for campaign creation.",
@@ -467,7 +585,7 @@ const De = {
467
585
  // },
468
586
  hideInApp: !0
469
587
  },
470
- configs: o("VOUCHER", {
588
+ configs: p("VOUCHER", {
471
589
  name: "",
472
590
  business: null,
473
591
  noCampaign: !1
@@ -1412,7 +1530,7 @@ const De = {
1412
1530
  rewards: []
1413
1531
  }
1414
1532
  },
1415
- configs: o("GAME", {
1533
+ configs: p("GAME", {
1416
1534
  name: "Token",
1417
1535
  business: null,
1418
1536
  noCampaign: !1
@@ -1653,7 +1771,7 @@ const De = {
1653
1771
  type: "timeframe"
1654
1772
  }
1655
1773
  },
1656
- configs: o("STAMP", {
1774
+ configs: p("STAMP", {
1657
1775
  business: null,
1658
1776
  noCampaign: !1
1659
1777
  })
@@ -1826,20 +1944,20 @@ const De = {
1826
1944
  }
1827
1945
  }
1828
1946
  };
1829
- t.scaffoldGroup(), o("STAMP", {
1947
+ t.scaffoldGroup(), p("STAMP", {
1830
1948
  business: null,
1831
1949
  noCampaign: !1
1832
1950
  });
1833
1951
  ({
1834
1952
  ...t.scaffoldGroup()
1835
- }, o("VOUCHER", {
1953
+ }, p("VOUCHER", {
1836
1954
  name: "",
1837
1955
  business: null,
1838
1956
  noCampaign: !1
1839
1957
  }));
1840
1958
  ({
1841
1959
  ...t.scaffoldGroup()
1842
- }, o("VOUCHER", {
1960
+ }, p("VOUCHER", {
1843
1961
  name: "",
1844
1962
  business: null,
1845
1963
  noCampaign: !1
@@ -1895,7 +2013,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
1895
2013
  });
1896
2014
  ({
1897
2015
  ...t.scaffoldGroup()
1898
- }, o("VOUCHER", {
2016
+ }, p("VOUCHER", {
1899
2017
  name: "",
1900
2018
  business: null,
1901
2019
  noCampaign: !1
@@ -1941,14 +2059,14 @@ t.setRuleToGroup(
1941
2059
  "&&"
1942
2060
  )
1943
2061
  );
1944
- t.scaffoldGroup(), t.scaffoldGroup(), o("GAME", {
2062
+ t.scaffoldGroup(), t.scaffoldGroup(), p("GAME", {
1945
2063
  name: "Token",
1946
2064
  business: null,
1947
2065
  noCampaign: !1
1948
2066
  });
1949
2067
  ({
1950
2068
  ...t.scaffoldGroup()
1951
- }, o("VOUCHER", {
2069
+ }, p("VOUCHER", {
1952
2070
  name: "",
1953
2071
  business: null,
1954
2072
  noCampaign: !1
@@ -1977,7 +2095,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
1977
2095
  ],
1978
2096
  "&&"
1979
2097
  )
1980
- ]), o("VOUCHER", {
2098
+ ]), p("VOUCHER", {
1981
2099
  name: "",
1982
2100
  business: null,
1983
2101
  noCampaign: !1
@@ -2000,7 +2118,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
2000
2118
  ({
2001
2119
  ...t.scaffoldGroup()
2002
2120
  });
2003
- const w = e.enum([
2121
+ const Q = e.enum([
2004
2122
  "MEMBER_REWARD",
2005
2123
  "PAID_LOYALTY",
2006
2124
  "COLLECT_FEEDBACK",
@@ -2010,7 +2128,7 @@ const w = e.enum([
2010
2128
  "BROADCAST",
2011
2129
  "BIRTHDAY",
2012
2130
  "GAME"
2013
- ]), A = e.enum([
2131
+ ]), $ = e.enum([
2014
2132
  "text",
2015
2133
  "number",
2016
2134
  "textarea",
@@ -2040,114 +2158,114 @@ const w = e.enum([
2040
2158
  "grab_effect",
2041
2159
  "grab_quota",
2042
2160
  "grab_conditions"
2043
- ]), F = e.object({
2161
+ ]), Z = e.object({
2044
2162
  label: e.string().optional(),
2045
2163
  label_locale: e.record(e.string()).nullish(),
2046
2164
  property: e.string().or(e.any()),
2047
- type: A,
2165
+ type: $,
2048
2166
  extras: e.string().optional(),
2049
2167
  isRuleChildren: e.boolean().optional()
2050
- }), h = e.object({
2168
+ }), T = e.object({
2051
2169
  not: e.boolean().optional(),
2052
2170
  property: e.string(),
2053
2171
  value: e.any()
2054
- }), G = e.object({
2172
+ }), ee = e.object({
2055
2173
  name: e.string().optional(),
2056
2174
  name_locale: e.record(e.string()).nullish(),
2057
- fields: e.array(F),
2058
- condition: h.optional().or(
2059
- e.array(h)
2175
+ fields: e.array(Z),
2176
+ condition: T.optional().or(
2177
+ e.array(T)
2060
2178
  )
2061
- }), M = e.object({
2179
+ }), te = e.object({
2062
2180
  name: e.string(),
2063
2181
  name_locale: e.record(e.string()).nullish(),
2064
- groups: e.array(G)
2182
+ groups: e.array(ee)
2065
2183
  });
2066
2184
  e.object({
2067
- _id: a,
2185
+ _id: n,
2068
2186
  name: e.string(),
2069
2187
  name_locale: e.record(e.string()).nullish(),
2070
2188
  description: e.string().nullish(),
2071
2189
  description_locale: e.record(e.string()).nullish(),
2072
- steps: e.array(M).min(1),
2073
- intention: e.array(w),
2190
+ steps: e.array(te).min(1),
2191
+ intention: e.array(Q),
2074
2192
  defaultValue: e.any()
2075
2193
  }).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
2076
- const k = {
2194
+ const ae = {
2077
2195
  collectionName: "Businesses",
2078
2196
  transform: {
2079
2197
  _id: "oid"
2080
2198
  }
2081
2199
  };
2082
2200
  e.object({
2083
- _id: a,
2201
+ _id: n,
2084
2202
  ownerId: e.string(),
2085
2203
  name: e.string(),
2086
2204
  credit: e.number(),
2087
2205
  forceSend: e.boolean().optional()
2088
- }).describe(i.describe(k));
2089
- const y = e.enum(["PHONE"]), B = e.enum([
2206
+ }).describe(m.describe(ae));
2207
+ const S = e.enum(["PHONE"]), ne = e.enum([
2090
2208
  "MOCEAN",
2091
2209
  "SLACK",
2092
2210
  "SMS",
2093
2211
  "EMAIL",
2094
2212
  "WHATSAPP"
2095
- ]), V = e.enum(["PENDING", "COMPLETED", "FAILED"]), Y = e.enum([
2213
+ ]), oe = e.enum(["PENDING", "COMPLETED", "FAILED"]), ie = e.enum([
2096
2214
  "General",
2097
2215
  "Otp",
2098
2216
  "Marketing",
2099
2217
  "Ordering",
2100
2218
  "MemberInvitation",
2101
2219
  "MarketingPromotion"
2102
- ]), K = e.object({
2103
- type: y
2104
- }), f = K.extend({
2105
- type: e.literal(y.enum.PHONE),
2106
- provider: B,
2107
- usage: Y.optional()
2108
- }), W = {
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 = {
2109
2227
  collectionName: "Notifications",
2110
2228
  transform: { _id: "oid", business: "oid" }
2111
2229
  };
2112
2230
  e.object({
2113
- _id: a,
2114
- business: a,
2231
+ _id: n,
2232
+ business: n,
2115
2233
  target: e.string(),
2116
2234
  title: e.string().optional(),
2117
2235
  message: e.string(),
2118
- option: f,
2119
- status: V,
2236
+ option: N,
2237
+ status: oe,
2120
2238
  ref: e.string().optional()
2121
- }).describe(i.describe(W));
2122
- const q = e.object({
2239
+ }).describe(m.describe(re));
2240
+ const ce = e.object({
2123
2241
  target: e.string(),
2124
2242
  title: e.string().optional(),
2125
2243
  message: e.string(),
2126
- option: f,
2244
+ option: N,
2127
2245
  ref: e.string().optional()
2128
2246
  });
2129
2247
  e.object({
2130
2248
  campaignId: e.string(),
2131
- notification: q,
2249
+ notification: ce,
2132
2250
  business: e.string()
2133
2251
  });
2134
2252
  e.object({
2135
2253
  phone: e.string(),
2136
2254
  message: e.string()
2137
2255
  });
2138
- const _ = e.object({
2256
+ const v = e.object({
2139
2257
  name: e.string().optional(),
2140
2258
  address: e.string()
2141
- }), X = e.object({
2259
+ }), pe = e.object({
2142
2260
  filename: e.string(),
2143
2261
  content: e.instanceof(Uint8Array)
2144
2262
  });
2145
2263
  e.object({
2146
- from: _.optional(),
2147
- to: e.array(_),
2264
+ from: v.optional(),
2265
+ to: e.array(v),
2148
2266
  subject: e.string(),
2149
2267
  html: e.string().optional(),
2150
- attachments: e.array(X).optional()
2268
+ attachments: e.array(pe).optional()
2151
2269
  });
2152
2270
  e.object({
2153
2271
  subject: e.string(),
@@ -2187,7 +2305,7 @@ e.object({
2187
2305
  billId: e.string()
2188
2306
  });
2189
2307
  e.object({
2190
- amount: U,
2308
+ amount: R,
2191
2309
  member: e.string(),
2192
2310
  bill: e.string(),
2193
2311
  otp: e.string().nullish(),
@@ -2196,15 +2314,15 @@ e.object({
2196
2314
  e.object({
2197
2315
  orderId: e.string()
2198
2316
  });
2199
- var b = /* @__PURE__ */ ((n) => (n[n.feedMe = 0] = "feedMe", n[n.business = 1] = "business", n[n.restaurant = 2] = "restaurant", n))(b || {});
2200
- e.nativeEnum(b);
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);
2201
2319
  e.enum(["manage", "create", "read", "update", "delete"]);
2202
2320
  e.enum(["all", "restaurant", "business", "delivery", "agent"]);
2203
2321
  e.enum(["quota"]);
2204
- var H = /* @__PURE__ */ ((n) => (n.marketing = "business::marketing", n.campaign = "business::campaign", n.counter = "business::counter", n.permission = "business::permission", n.role = "business::role", n))(H || {});
2205
- e.nativeEnum(H);
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);
2206
2324
  e.enum(["restaurant"]);
2207
- const Q = e.object({
2325
+ const me = e.object({
2208
2326
  label: e.string(),
2209
2327
  subject: e.union([e.string(), e.array(e.string())]),
2210
2328
  actions: e.union([e.string(), e.array(e.string())]),
@@ -2214,41 +2332,41 @@ const Q = e.object({
2214
2332
  reason: e.string().optional()
2215
2333
  });
2216
2334
  e.object({
2217
- _id: a,
2335
+ _id: n,
2218
2336
  businessId: e.string(),
2219
2337
  userId: e.string(),
2220
2338
  email: e.string().nullish(),
2221
2339
  phoneNo: e.string().nullish(),
2222
- permissions: e.array(e.lazy(() => Q))
2340
+ permissions: e.array(e.lazy(() => me))
2223
2341
  }).describe(
2224
- i.describe({
2342
+ m.describe({
2225
2343
  collectionName: "PermissionUsers",
2226
2344
  transform: {
2227
2345
  _id: "oid"
2228
2346
  }
2229
2347
  })
2230
2348
  );
2231
- const z = e.object({
2349
+ const j = e.object({
2232
2350
  userId: e.string(),
2233
2351
  level: e.number(),
2234
2352
  role: e.string().optional(),
2235
2353
  businessId: e.string().optional(),
2236
2354
  restaurantId: e.string().optional()
2237
- }), Z = e.function().args(e.any(), z).returns(e.boolean()), $ = e.function().args(z).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())));
2238
2356
  e.object({
2239
- isAdmin: Z,
2240
- getRules: $
2357
+ isAdmin: se,
2358
+ getRules: ge
2241
2359
  });
2242
2360
  e.object({
2243
- transactions: e.array(j),
2244
- collections: e.array(J)
2361
+ transactions: e.array(x),
2362
+ collections: e.array(D)
2245
2363
  });
2246
- const C = e.enum([
2364
+ const J = e.enum([
2247
2365
  "ROCK_PAPER_SCISSOR"
2248
2366
  ]);
2249
- C.enum.ROCK_PAPER_SCISSOR + "";
2367
+ J.enum.ROCK_PAPER_SCISSOR + "";
2250
2368
  e.object({
2251
- type: C
2369
+ type: J
2252
2370
  });
2253
2371
  e.object({
2254
2372
  host: e.string().url(),
@@ -2257,7 +2375,7 @@ e.object({
2257
2375
  roomId: e.string()
2258
2376
  });
2259
2377
  e.enum(["FACEBOOK", "INSTAGRAM", "TV", "BRAND_APP"]);
2260
- const ee = {
2378
+ const de = {
2261
2379
  collectionName: "MarketingMaterials",
2262
2380
  transform: {
2263
2381
  _id: "oid",
@@ -2265,13 +2383,13 @@ const ee = {
2265
2383
  }
2266
2384
  };
2267
2385
  e.object({
2268
- _id: a,
2269
- business: a,
2386
+ _id: n,
2387
+ business: n,
2270
2388
  imageUrl: e.string().url(),
2271
2389
  headline: e.string(),
2272
2390
  caption: e.string(),
2273
2391
  editedAt: e.coerce.date()
2274
- }).describe(i.describe(ee));
2392
+ }).describe(m.describe(de));
2275
2393
  e.object({
2276
2394
  id: e.number(),
2277
2395
  name: e.string(),
@@ -2291,12 +2409,12 @@ e.object({
2291
2409
  phone: e.string().optional(),
2292
2410
  email: e.string().optional()
2293
2411
  });
2294
- const te = e.enum([
2412
+ const ue = e.enum([
2295
2413
  "PENDING",
2296
2414
  "SUCCESS",
2297
2415
  "FAILED",
2298
2416
  "RETRYING"
2299
- ]), ae = {
2417
+ ]), he = {
2300
2418
  collectionName: "WebhookLogs",
2301
2419
  transform: {
2302
2420
  _id: "oid",
@@ -2304,39 +2422,39 @@ const te = e.enum([
2304
2422
  }
2305
2423
  };
2306
2424
  e.object({
2307
- _id: a,
2308
- business: a,
2425
+ _id: n,
2426
+ business: n,
2309
2427
  type: e.string(),
2310
2428
  payload: e.record(e.any()),
2311
- status: te,
2429
+ status: ue,
2312
2430
  response: e.any().optional(),
2313
2431
  error: e.string().optional()
2314
- }).describe(i.describe(ae));
2315
- const ne = e.enum(["AUTO", "MANUAL"]);
2432
+ }).describe(m.describe(he));
2433
+ const _e = e.enum(["AUTO", "MANUAL"]);
2316
2434
  e.enum(["IN_PROGRESS", "COMPLETED"]);
2317
- const T = e.object({
2318
- _id: a,
2435
+ const E = e.object({
2436
+ _id: n,
2319
2437
  name: e.string().min(1, "Name is required").max(50),
2320
- type: ne,
2321
- event: O.optional()
2322
- }), oe = e.object({
2438
+ type: _e,
2439
+ event: F.optional()
2440
+ }), ye = e.object({
2323
2441
  from: e.number().int("Must be integer").min(1, "Min referral count need to start from 1"),
2324
2442
  to: e.number().int("Must be integer").nullish()
2325
- }).superRefine((n, N) => {
2326
- n.from && n.to && n.from > n.to && N.addIssue({
2443
+ }).superRefine((o, a) => {
2444
+ o.from && o.to && o.from > o.to && a.addIssue({
2327
2445
  code: "custom",
2328
2446
  message: "Max referral count must be more than min referral count"
2329
2447
  });
2330
- }), ie = e.object({
2331
- threshold: oe,
2332
- rewards: e.array(a),
2333
- pf_reward: e.array(d).optional()
2334
- }), u = e.object({
2448
+ }), fe = e.object({
2449
+ threshold: ye,
2450
+ rewards: e.array(n),
2451
+ pf_reward: e.array(H).optional()
2452
+ }), z = e.object({
2335
2453
  id: e.string(),
2336
2454
  name: e.string().min(1, "Name is required").max(50, "Name must be less than 50 characters"),
2337
- rule: E.optional(),
2338
- rewards: e.array(ie)
2339
- }), le = {
2455
+ rule: A.optional(),
2456
+ rewards: e.array(fe)
2457
+ }), be = {
2340
2458
  collectionName: "ReferralRecords",
2341
2459
  transform: {
2342
2460
  _id: "oid",
@@ -2345,25 +2463,25 @@ const T = e.object({
2345
2463
  referee: "oid",
2346
2464
  refereeReward: "oid"
2347
2465
  }
2348
- }, re = e.object({
2466
+ }, He = e.object({
2349
2467
  completedAt: e.coerce.date(),
2350
- criteria: a,
2468
+ criteria: n,
2351
2469
  ref: e.string()
2352
- }), ce = e.object({
2353
- _id: a,
2354
- business: a,
2355
- referer: a,
2356
- referee: a,
2357
- criteria: e.array(T),
2358
- reward: e.array(u),
2359
- refereeReward: e.array(a).optional(),
2360
- criteria_progress: e.array(re),
2470
+ }), ze = e.object({
2471
+ _id: n,
2472
+ business: n,
2473
+ referer: n,
2474
+ referee: n,
2475
+ criteria: e.array(E),
2476
+ reward: e.array(z),
2477
+ refereeReward: e.array(n).optional(),
2478
+ criteria_progress: e.array(He),
2361
2479
  status: e.string(),
2362
- pf_referer: r.optional(),
2363
- pf_referee: r.optional(),
2364
- pf_refereeReward: e.array(d).optional()
2365
- }).describe(i.describe(le));
2366
- ce.pick({
2480
+ pf_referer: g.optional(),
2481
+ pf_referee: g.optional(),
2482
+ pf_refereeReward: e.array(H).optional()
2483
+ }).describe(m.describe(be));
2484
+ ze.pick({
2367
2485
  _id: !0,
2368
2486
  business: !0,
2369
2487
  referer: !0,
@@ -2371,83 +2489,83 @@ ce.pick({
2371
2489
  criteria_progress: !0,
2372
2490
  criteria: !0
2373
2491
  }).extend({
2374
- pf_referee: r.pick({
2492
+ pf_referee: g.pick({
2375
2493
  _id: !0,
2376
2494
  name: !0,
2377
2495
  phoneNumber: !0,
2378
2496
  photoUrl: !0
2379
2497
  })
2380
2498
  });
2381
- const pe = {
2499
+ const Ce = {
2382
2500
  collectionName: "ReferralProgram",
2383
2501
  transform: {
2384
2502
  _id: "oid",
2385
2503
  business: "oid"
2386
2504
  }
2387
- }, v = e.object({
2388
- _id: a,
2389
- business: a,
2505
+ }, O = e.object({
2506
+ _id: n,
2507
+ business: n,
2390
2508
  term_and_condition: e.string().optional(),
2391
- refereeReward: e.array(a).optional(),
2392
- reward: e.array(u),
2393
- criteria: e.array(T)
2394
- }).describe(i.describe(pe));
2509
+ refereeReward: e.array(n).optional(),
2510
+ reward: e.array(z),
2511
+ criteria: e.array(E)
2512
+ }).describe(m.describe(Ce));
2395
2513
  e.object({
2396
- referer: a,
2397
- referee: a,
2398
- business: a
2514
+ referer: n,
2515
+ referee: n,
2516
+ business: n
2399
2517
  });
2400
2518
  e.object({
2401
- program: v.pick({
2519
+ program: O.pick({
2402
2520
  _id: !0,
2403
2521
  business: !0,
2404
2522
  term_and_condition: !0
2405
2523
  }).extend({
2406
- reward: u.optional(),
2407
- pf_refereeReward: e.array(d).optional()
2524
+ reward: z.optional(),
2525
+ pf_refereeReward: e.array(H).optional()
2408
2526
  }),
2409
2527
  referralCount: e.number(),
2410
2528
  successReferralCount: e.number(),
2411
- referredBy: r.pick({
2529
+ referredBy: g.pick({
2412
2530
  _id: !0,
2413
2531
  name: !0,
2414
2532
  phoneNumber: !0,
2415
2533
  photoUrl: !0
2416
2534
  }).optional()
2417
2535
  });
2418
- v.extend({
2536
+ O.extend({
2419
2537
  updateReferralRecord: e.boolean().optional()
2420
2538
  });
2421
- const me = e.object({
2539
+ const Te = e.object({
2422
2540
  facebookPageId: e.string(),
2423
2541
  pageName: e.string(),
2424
2542
  pageProfileImageUrl: e.string(),
2425
2543
  pageAccessToken: e.string().optional(),
2426
- locationIds: e.array(a)
2427
- }), se = e.object({
2428
- locationId: a.nullable(),
2544
+ locationIds: e.array(n)
2545
+ }), ve = e.object({
2546
+ locationId: n.nullable(),
2429
2547
  googleLocationName: e.string(),
2430
2548
  displayName: e.string().optional()
2431
- }), ge = e.object({
2549
+ }), Se = e.object({
2432
2550
  accessToken: e.string().nullable(),
2433
2551
  refreshToken: e.string().nullable(),
2434
2552
  accessTokenExpiresAt: e.date().nullable(),
2435
- locations: e.array(se),
2553
+ locations: e.array(ve),
2436
2554
  lastSyncTime: e.coerce.date().nullish(),
2437
2555
  syncFrequency: e.number().int().min(1).max(30).default(30)
2438
- }), de = e.object({
2556
+ }), Ne = e.object({
2439
2557
  token: e.string().nullable(),
2440
- pages: e.array(me),
2558
+ pages: e.array(Te),
2441
2559
  lastSyncTime: e.coerce.date().nullish(),
2442
2560
  syncFrequency: e.number().int().min(1).max(30).default(30)
2443
2561
  });
2444
2562
  e.object({
2445
- _id: a,
2446
- businessId: a,
2447
- google: ge.nullable(),
2448
- facebook: de.nullable()
2563
+ _id: n,
2564
+ businessId: n,
2565
+ google: Se.nullable(),
2566
+ facebook: Ne.nullable()
2449
2567
  }).describe(
2450
- i.describe({
2568
+ m.describe({
2451
2569
  collectionName: "ReviewSourceConfig",
2452
2570
  transform: {
2453
2571
  _id: "oid",
@@ -2509,27 +2627,27 @@ e.object({
2509
2627
  syncFrequency: e.number().int().min(1).max(30)
2510
2628
  }).nullable()
2511
2629
  });
2512
- const c = e.object({
2630
+ const d = e.object({
2513
2631
  name: e.string(),
2514
2632
  pictureUrl: e.string(),
2515
2633
  phoneNumber: e.string().optional()
2516
- }), ue = c.extend({
2634
+ }), Ue = d.extend({
2517
2635
  isAnonymous: e.boolean().optional()
2518
- }), he = c.extend({
2636
+ }), Pe = d.extend({
2519
2637
  id: e.string().optional()
2520
- }), p = e.object({
2638
+ }), u = e.object({
2521
2639
  comment: e.string(),
2522
2640
  updateTime: e.coerce.date()
2523
2641
  });
2524
2642
  e.object({
2525
2643
  comment: e.string().trim().min(1).max(4096)
2526
2644
  });
2527
- const l = e.object({
2645
+ const s = e.object({
2528
2646
  externalId: e.string().optional(),
2529
2647
  thumbnailUrl: e.string(),
2530
2648
  thumbnailLabel: e.string(),
2531
2649
  videoUrl: e.string().optional()
2532
- }), _e = {
2650
+ }), je = {
2533
2651
  collectionName: "Reviews",
2534
2652
  transform: {
2535
2653
  _id: "oid",
@@ -2537,31 +2655,31 @@ const l = e.object({
2537
2655
  reviewerId: "oid",
2538
2656
  restaurantId: "oid"
2539
2657
  }
2540
- }, S = e.enum([
2658
+ }, I = e.enum([
2541
2659
  "google",
2542
2660
  "facebook",
2543
2661
  "feedme",
2544
2662
  "feedvibe"
2545
2663
  ]);
2546
- S.options;
2664
+ I.options;
2547
2665
  e.enum(["google", "facebook"]);
2548
- const ye = e.enum([
2666
+ const Je = e.enum([
2549
2667
  "createTime_desc",
2550
2668
  "createTime_asc",
2551
2669
  "rating_asc",
2552
2670
  "rating_desc"
2553
2671
  ]);
2554
2672
  e.object({
2555
- source: S.array().optional(),
2673
+ source: I.array().optional(),
2556
2674
  dateFrom: e.string().datetime({ offset: !0 }).optional(),
2557
2675
  dateTo: e.string().datetime({ offset: !0 }).optional(),
2558
2676
  locationId: e.string().optional(),
2559
2677
  excludeDeleted: e.boolean().optional(),
2560
- sort: ye.optional(),
2678
+ sort: Je.optional(),
2561
2679
  limit: e.coerce.number().int().positive().optional(),
2562
2680
  skip: e.coerce.number().int().min(0).optional()
2563
2681
  });
2564
- const we = e.object({
2682
+ const Xe = e.object({
2565
2683
  averageScore: e.number(),
2566
2684
  total: e.number().int().nonnegative(),
2567
2685
  starCounts: e.array(
@@ -2570,54 +2688,54 @@ const we = e.object({
2570
2688
  count: e.number().int().nonnegative()
2571
2689
  })
2572
2690
  )
2573
- }), m = e.object({
2691
+ }), h = e.object({
2574
2692
  name: e.string(),
2575
2693
  pictureUrl: e.string().optional(),
2576
2694
  phoneNumber: e.string().optional()
2577
- }), fe = m.extend({
2695
+ }), Ee = h.extend({
2578
2696
  _id: e.string().optional()
2579
- }), be = m.extend({
2697
+ }), Oe = h.extend({
2580
2698
  _id: e.string()
2581
- }), He = m.extend({
2699
+ }), Ie = h.extend({
2582
2700
  isAnonymous: e.boolean().optional()
2583
- }), ze = m.extend({
2701
+ }), Re = h.extend({
2584
2702
  id: e.string().optional()
2585
- }), s = e.object({
2586
- _id: a,
2703
+ }), _ = e.object({
2704
+ _id: n,
2587
2705
  comment: e.string(),
2588
2706
  createTime: e.coerce.date(),
2589
2707
  updateTime: e.coerce.date().nullish(),
2590
- restaurantId: a,
2708
+ restaurantId: n,
2591
2709
  restaurantName: e.string()
2592
- }), Ce = s.extend({
2710
+ }), Le = _.extend({
2593
2711
  source: e.literal("google"),
2594
2712
  externalId: e.string().min(1),
2595
2713
  translatedComment: e.string().optional(),
2596
- reviewer: He.optional(),
2597
- reply: p.optional(),
2598
- mediaItems: e.array(l),
2714
+ reviewer: Ie.optional(),
2715
+ reply: u.optional(),
2716
+ mediaItems: e.array(s),
2599
2717
  starRating: e.number(),
2600
2718
  locationName: e.string(),
2601
2719
  locationDisplayName: e.string(),
2602
2720
  originalUrl: e.string().optional()
2603
- }), Te = s.extend({
2721
+ }), xe = _.extend({
2604
2722
  source: e.literal("facebook"),
2605
2723
  externalId: e.string().min(1),
2606
- reviewer: ze.optional(),
2724
+ reviewer: Re.optional(),
2607
2725
  isPositive: e.boolean().optional(),
2608
2726
  pageId: e.string(),
2609
2727
  pageName: e.string()
2610
- }), ve = s.extend({
2728
+ }), De = _.extend({
2611
2729
  source: e.literal("feedme"),
2612
- reviewer: fe.optional(),
2613
- reply: p.optional(),
2730
+ reviewer: Ee.optional(),
2731
+ reply: u.optional(),
2614
2732
  starRating: e.number(),
2615
- mediaItems: e.array(l),
2733
+ mediaItems: e.array(s),
2616
2734
  billId: e.string()
2617
- }), Se = s.extend({
2735
+ }), we = _.extend({
2618
2736
  source: e.literal("feedvibe"),
2619
2737
  externalId: e.string().min(1),
2620
- reviewer: be.optional(),
2738
+ reviewer: Oe.optional(),
2621
2739
  rating: e.object({
2622
2740
  overall: e.number(),
2623
2741
  food: e.number(),
@@ -2625,66 +2743,67 @@ const we = e.object({
2625
2743
  atmosphere: e.number()
2626
2744
  }),
2627
2745
  verified: e.boolean(),
2628
- mediaItems: e.array(l).default([])
2746
+ mediaItems: e.array(s).default([])
2629
2747
  });
2630
2748
  e.discriminatedUnion("source", [
2631
- Ce,
2632
- Te,
2633
- ve,
2634
- Se
2749
+ Le,
2750
+ xe,
2751
+ De,
2752
+ we
2635
2753
  ]);
2636
2754
  e.object({
2637
2755
  comment: e.string(),
2638
2756
  starRating: e.number(),
2639
2757
  billId: e.string(),
2640
2758
  isAnonymous: e.boolean(),
2641
- mediaItems: e.array(l).optional()
2759
+ mediaItems: e.array(s).optional()
2642
2760
  });
2643
2761
  e.object({
2644
2762
  name: e.string().trim().min(1),
2645
2763
  phoneNumber: e.string().trim().min(1).optional()
2646
2764
  });
2647
- const g = e.object({
2648
- _id: a,
2649
- businessId: a,
2765
+ const y = e.object({
2766
+ _id: n,
2767
+ businessId: n,
2650
2768
  comment: e.string(),
2651
2769
  createTime: e.coerce.date(),
2652
2770
  updateTime: e.coerce.date().nullish(),
2653
- restaurantId: a,
2771
+ restaurantId: n,
2654
2772
  restaurantName: e.string(),
2655
2773
  deletedAt: e.coerce.date().optional()
2656
- }), Ne = g.extend({
2774
+ }), Ae = y.extend({
2657
2775
  source: e.literal("google"),
2658
2776
  externalId: e.string().min(1),
2659
2777
  translatedComment: e.string().optional(),
2660
- reviewer: ue.optional(),
2661
- reply: p.optional(),
2662
- mediaItems: e.array(l),
2778
+ reviewer: Ue.optional(),
2779
+ reply: u.optional(),
2780
+ mediaItems: e.array(s),
2663
2781
  starRating: e.number(),
2664
2782
  locationName: e.string(),
2665
2783
  locationDisplayName: e.string(),
2666
2784
  originalUrl: e.string().optional()
2667
- }), Ue = g.extend({
2785
+ }), Fe = y.extend({
2668
2786
  source: e.literal("facebook"),
2669
2787
  externalId: e.string().min(1),
2670
- reviewer: he.optional(),
2788
+ reviewer: Pe.optional(),
2671
2789
  isPositive: e.boolean().optional(),
2672
2790
  pageId: e.string(),
2673
2791
  pageName: e.string()
2674
- }), Pe = g.extend({
2792
+ }), Ge = y.extend({
2675
2793
  source: e.literal("feedme"),
2676
2794
  isAnonymous: e.boolean(),
2677
- reviewerId: a.optional(),
2678
- reviewer: c.optional(),
2679
- reply: p.optional(),
2795
+ metadata: e.record(e.string(), e.unknown()).optional(),
2796
+ reviewerId: n.optional(),
2797
+ reviewer: d.optional(),
2798
+ reply: u.optional(),
2680
2799
  starRating: e.number(),
2681
2800
  billId: e.string(),
2682
- mediaItems: e.array(l)
2683
- }), je = g.extend({
2801
+ mediaItems: e.array(s)
2802
+ }), Me = y.extend({
2684
2803
  source: e.literal("feedvibe"),
2685
2804
  externalId: e.string().min(1),
2686
- reviewerId: a,
2687
- reviewer: c,
2805
+ reviewerId: n,
2806
+ reviewer: d,
2688
2807
  rating: e.object({
2689
2808
  overall: e.number(),
2690
2809
  food: e.number(),
@@ -2692,22 +2811,26 @@ const g = e.object({
2692
2811
  atmosphere: e.number()
2693
2812
  }),
2694
2813
  verified: e.boolean(),
2695
- mediaItems: e.array(l).default([])
2814
+ mediaItems: e.array(s).default([])
2696
2815
  });
2697
2816
  e.discriminatedUnion("source", [
2698
- Ne,
2699
- Ue,
2700
- Pe,
2701
- je
2702
- ]).describe(i.describe(_e));
2817
+ Ae,
2818
+ Fe,
2819
+ Ge,
2820
+ Me
2821
+ ]).describe(m.describe(je));
2703
2822
  export {
2704
- w as F,
2705
- De as T,
2706
- ie as a,
2707
- T as b,
2708
- u as c,
2709
- R as d,
2710
- L as e,
2711
- we as f,
2712
- p as g
2823
+ Q as F,
2824
+ 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
2713
2836
  };