@feedmepos/mf-connect 0.1.114-prod → 0.1.115-prod
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.
- package/dist/{App-DMYXrCc7.js → App-CvtSY8ZO.js} +350 -338
- package/dist/{Bin-CHZolo56.js → Bin-B3gS9QVZ.js} +8 -8
- package/dist/Broadcast-DAeb-HaN.js +305 -0
- package/dist/{CampaignAnalytic-DgZvsUoF.js → CampaignAnalytic-BfTaHVem.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C42uL_JO.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zsei4OfG.js} +9 -9
- package/dist/{Card-wRFTJwJ9.js → Card-JFeVIwFs.js} +22 -22
- package/dist/{Collections-9G-_9Etz.js → Collections-xcDpEhIm.js} +9 -9
- package/dist/{Credit-Bl7IDMCU.js → Credit-C9HJZjDS.js} +11 -11
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BVLJeofG.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DSqVY91w.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D_jXVE2I.js +3494 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Q1f6EQW3.js → EffectSheet.vue_vue_type_style_index_0_lang-C3J0rCTt.js} +6 -6
- package/dist/{Experience-Cs2iViLv.js → Experience-DszS8gto.js} +12 -12
- package/dist/{FileSaver.min-B3Levdbu.js → FileSaver.min-CFVQKaC-.js} +1 -1
- package/dist/{Game-oXURgzan.js → Game-DhgeN7E2.js} +12 -12
- package/dist/{GiftCardSetup-C2Wu-dRl.js → GiftCardSetup-CWm6IhrS.js} +10 -10
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Da2e89Um.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BuKADvmK.js} +7 -7
- package/dist/{Goals-B_xEM7gf.js → Goals-DtRVierH.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BRJR1heE.js → ImageInput.vue_vue_type_script_setup_true_lang-DlEFyu6h.js} +1 -1
- package/dist/{Index-kuT6W6R_.js → Index-DFRcu_qE.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-7JqHfSk-.js → LocationPicker.vue_vue_type_script_setup_true_lang-B3Br4Xvi.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CI_4S7tW.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CjNJj3qj.js} +1 -1
- package/dist/{LoyaltyDashboard-CqxHdZcm.js → LoyaltyDashboard-BWHKDPzk.js} +15 -15
- package/dist/{MainLayout-CAERFIms.js → MainLayout-BmpNNAiE.js} +3 -3
- package/dist/{Marketing-KgcwGErU.js → Marketing-BKK45Eve.js} +4 -4
- package/dist/{MarketingMaterialEdit-BvIthCHG.js → MarketingMaterialEdit-x3c_N7Gs.js} +6 -6
- package/dist/{Member-B8VZEn9t.js → Member-xEzrBW_p.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-B31lVLKh.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DRoC-I0t.js} +24 -24
- package/dist/{MemberImportHistory-D9tgHnTS.js → MemberImportHistory-CEQpBBF8.js} +7 -7
- package/dist/{MemberList-Hw_xQY1i.js → MemberList-CCvzkHv8.js} +14 -14
- package/dist/{MemberTransactions-DiBO4plw.js → MemberTransactions-Bmh39J2W.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CbFt5X89.js → MessageInput.vue_vue_type_script_setup_true_lang-D3Pmk80l.js} +4228 -4176
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BE_-Ed4z.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DIBKAwHP.js} +1 -1
- package/dist/{Mission-DpYei3aF.js → Mission-CpUo2Bgw.js} +13 -13
- package/dist/{Overview-CARquJCS.js → Overview-CwQqQ1Tn.js} +4 -4
- package/dist/{Overview-BFQMmyT6.js → Overview-DcDZmDXA.js} +20 -20
- package/dist/{Point-Dd2ykwNv.js → Point-CUNQsQIx.js} +13 -13
- package/dist/{Promotion-DXl-W7np.js → Promotion-Cqdim7aW.js} +13 -13
- package/dist/{Queue-Cd3N-4iB.js → Queue-CNBVh1UG.js} +30 -30
- package/dist/{Record-C3HdDsh5.js → Record-BYwz4l4o.js} +9 -9
- package/dist/{Review-Bif3Ub9Z.js → Review-CqLcZFj8.js} +2 -2
- package/dist/{ReviewFacebookCallback-mJF54-9l.js → ReviewFacebookCallback-DbSCILNN.js} +5 -5
- package/dist/{ReviewGoogleCallback-i-RNLlLm.js → ReviewGoogleCallback-Dg8R7QlO.js} +5 -5
- package/dist/{Reward-DHxzrR_7.js → Reward-M8GZ8eHq.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DcrFlcSo.js → RewardGroup.vue_vue_type_script_setup_true_lang-BkM9-Sx-.js} +13 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-39f3I4BB.js → RuleGroup.vue_vue_type_script_setup_true_lang-CnaL93TF.js} +15 -15
- package/dist/{Segment-Cjpxordk.js → Segment-CrMi6xrp.js} +126 -126
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-6u21xBu6.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DKH5_9db.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BOXVzfer.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CyeAQ-hg.js} +4 -4
- package/dist/{Setting-Dl9MelHz.js → Setting-BnFRI0Se.js} +15 -14
- package/dist/{SettingAdvertisements-aog5fz32.js → SettingAdvertisements-Dh7v4c1D.js} +12 -12
- package/dist/{Settings-DvCCClIP.js → Settings-BvT8_tkQ.js} +5 -5
- package/dist/{Store-Bq3kw1l2.js → Store-CV-BmK5b.js} +26 -26
- package/dist/{StoreRewards-ZGXKEM09.js → StoreRewards-DPhSLvSZ.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DscLAF0p.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CDu1QySl.js} +24 -24
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-l_v4FHO0.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dqz6jTlH.js} +2 -2
- package/dist/{Tier-CfgpEHY7.js → Tier-ChvYps23.js} +25 -25
- package/dist/{Title-B2itYWeD.js → Title-v-Ivswr1.js} +23 -23
- package/dist/{Transaction-hJ5ygIcf.js → Transaction-CRqE1Ix0.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-8BgGlpTh.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B0Uh9iuj.js} +6 -6
- package/dist/{Voucher-TG47pGR3.js → Voucher-Bg8FOuzD.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CjuXCTxg.js → VoucherEditor.vue_vue_type_script_setup_true_lang-HKxivQMF.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BRs-gbP0.js → ZodTextField.vue_vue_type_script_setup_true_lang-8d290Dcp.js} +2 -2
- package/dist/{app-tPHYkJcQ.js → app-DdNKsn2Q.js} +2100 -1480
- package/dist/app.js +1 -1
- package/dist/{base.export-BHDVnGj2.js → base.export-R97FrSQL.js} +2 -2
- package/dist/{business-HLyWfrXY.js → business-Ce8vq3wQ.js} +1 -1
- package/dist/{campaign-5zFgUNLw.js → campaign-BTllt2LH.js} +2 -2
- package/dist/campaign-C19If7bW.js +373 -0
- package/dist/{campaign.enum-BOkDnP2g.js → campaign.enum-9CCbalR4.js} +1 -1
- package/dist/{campaign.fn-BIAoVtJj.js → campaign.fn-B4g03h0A.js} +3 -3
- package/dist/{collectible.enum-BbZSAfys.js → collectible.enum-MvqF7mSg.js} +1 -1
- package/dist/{collection.fn-DPSgBHnz.js → collection.fn-CR0bD33S.js} +2 -2
- package/dist/{currency-BVrMqU6-.js → currency-DmlguGIM.js} +1 -1
- package/dist/{effect-BBifVx76.js → effect-Dx3zfl28.js} +1 -1
- package/dist/{email-addresses-9C7xHTNv.js → email-addresses-De5PGOY4.js} +2 -2
- package/dist/feature-flag-CD9V1V0h.js +868 -0
- package/dist/{helper-C08jyQNK.js → helper-CEiv7SaO.js} +1 -1
- package/dist/{index-Dk-jg0wN.js → index-649OZ_e1.js} +2 -2
- package/dist/{index-96ZiAKj_.js → index-B8meeQoD.js} +1 -1
- package/dist/{index-CUle4c2B.js → index-B8yWVB8P.js} +1 -1
- package/dist/index-BAXKd9Gg.js +14571 -0
- package/dist/{index-BgwZGunW.js → index-BDPnyro2.js} +1 -1
- package/dist/{index-D24Q28cH.js → index-BR9h5DTI.js} +1 -1
- package/dist/{index-B_334Y_i.js → index-BVdYxi3l.js} +1 -1
- package/dist/{index-NJSI4wX4.js → index-BW6eb3n6.js} +276 -173
- package/dist/{index-hSRM1smQ.js → index-BYI9ttxy.js} +3 -3
- package/dist/{index-DZ-q5O-V.js → index-BquSqx6K.js} +1 -1
- package/dist/{index-kCbkOivd.js → index-CBJy9bxB.js} +1 -1
- package/dist/{index-Dhyqf1s8.js → index-CPODug8b.js} +3 -3
- package/dist/{index-CEe1kJ0T.js → index-CWUrODxL.js} +1 -1
- package/dist/{index-DnRMNmUA.js → index-CqOCJTeR.js} +89 -83
- package/dist/{index-C_WoO58V.js → index-D4d3l0gw.js} +3 -3
- package/dist/{index-hIUtD2eY.js → index-DT3S00_Y.js} +8 -8
- package/dist/{index-Yo0tP8KJ.js → index-IZRfmmde.js} +5 -5
- package/dist/{index-ihw-WFCa.js → index-__UT3_Ey.js} +2 -2
- package/dist/{index-Ciw2TZxV.js → index-xct3mnu8.js} +3 -2
- package/dist/{index.esm2017-hN99SQTb.js → index.esm2017-AVbZ9btd.js} +34 -34
- package/dist/{loading-CVuY4vQ4.js → loading-BvHm1m3K.js} +1 -1
- package/dist/{lodash-GFl9_FMH.js → lodash-Dvrceo7x.js} +1 -1
- package/dist/{member-import-CshTzabx.js → member-import-c9avpiSS.js} +1 -1
- package/dist/{membership-S0KES3Ex.js → membership-D-pZS634.js} +3 -3
- package/dist/{money-JxdX8ru4.js → money-D4skwMkD.js} +1 -1
- package/dist/{number-BRLwa-mB.js → number-DJ6ncfT6.js} +1 -1
- package/dist/objectid-DEMM_jdR.js +145 -0
- package/dist/{onboarding-BSKYeyP7.js → onboarding-t7R1d3h-.js} +3 -3
- package/dist/{onboardingSetup-BqT52VRm.js → onboardingSetup-lTaJc0oT.js} +2 -2
- package/dist/{plugins-BR_wmMFJ.js → plugins-DQNOWwRC.js} +3 -3
- package/dist/{reward-CpCGg_W2.js → reward-BK150pjm.js} +1 -1
- package/dist/{rule-Dbg9e8MO.js → rule-COcdAnUu.js} +3 -3
- package/dist/{rule-builder-BEIjxsE0.js → rule-builder-Deufb6h_.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-CS-lExgI.js → template-DeebIqJ_.js} +7 -7
- package/dist/{timezone-CDVa-xPr.js → timezone-BP6UC4KL.js} +1 -1
- package/dist/{transaction.fn-DrTBoF9T.js → transaction.fn-BY0hzon0.js} +2 -2
- package/dist/{trigger-wqGwQfB2.js → trigger-DVBjVPbN.js} +5 -5
- package/dist/{useMarketingMaterialActions-DC0gIyIZ.js → useMarketingMaterialActions-DpQCQHFI.js} +3 -3
- package/dist/{usePagination-fODgpZZ8.js → usePagination-QT552XyF.js} +1 -1
- package/dist/{user-DaLUK1dk.js → user-CmAxNc7T.js} +1 -1
- package/dist/{vue-i18n-Dx-KXojZ.js → vue-i18n-Cze706-f.js} +245 -245
- package/dist/{xlsx-Bl4_Dtrq.js → xlsx-DAczoc8y.js} +440 -440
- package/dist/{zod-CAzWyVqj.js → zod-Aj-GuVQL.js} +1 -1
- package/package.json +7 -2
- package/dist/Broadcast-ByWvxVhW.js +0 -271
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DGpQfV5T.js +0 -2431
- package/dist/campaign-awCRccgX.js +0 -228
- package/dist/index-CoNJdOx7.js +0 -51
- package/dist/objectid-CEHN25HN.js +0 -145
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { z as e, F as a, m as i, b as
|
|
2
|
-
import { d as
|
|
3
|
-
import { R as t } from "./rule-builder-
|
|
4
|
-
import { i as o } from "./helper-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import { z as e, F as a, m as i, b as O } from "./index-BYI9ttxy.js";
|
|
2
|
+
import { d as I } from "./index-CPODug8b.js";
|
|
3
|
+
import { R as t } from "./rule-builder-Deufb6h_.js";
|
|
4
|
+
import { i as o } from "./helper-CEiv7SaO.js";
|
|
5
|
+
import { e as u, b as H, f as r } from "./index-BAXKd9Gg.js";
|
|
6
|
+
import { B as R, C as L, A as c } from "./index-IZRfmmde.js";
|
|
7
|
+
import { d as x } from "./index-CqOCJTeR.js";
|
|
8
|
+
import { F as _ } from "./index-D4d3l0gw.js";
|
|
9
|
+
const Fe = {
|
|
9
10
|
PROMOTION: {
|
|
10
11
|
name: "Promotion Template",
|
|
11
12
|
description: "Promotion template for campaign creation.",
|
|
@@ -1653,7 +1654,7 @@ t.scaffoldGroup(), o("STAMP", {
|
|
|
1653
1654
|
business: null,
|
|
1654
1655
|
noCampaign: !1
|
|
1655
1656
|
});
|
|
1656
|
-
const
|
|
1657
|
+
const Me = {
|
|
1657
1658
|
_id: "",
|
|
1658
1659
|
intention: [],
|
|
1659
1660
|
name: "Spend and get voucher",
|
|
@@ -2071,7 +2072,7 @@ const Oe = {
|
|
|
2071
2072
|
({
|
|
2072
2073
|
...t.scaffoldGroup()
|
|
2073
2074
|
});
|
|
2074
|
-
const
|
|
2075
|
+
const Ge = {
|
|
2075
2076
|
_id: "",
|
|
2076
2077
|
intention: [],
|
|
2077
2078
|
name: "Spend and earn points",
|
|
@@ -2497,7 +2498,7 @@ t.scaffoldGroup(), t.scaffoldGroup(), o("GAME", {
|
|
|
2497
2498
|
business: null,
|
|
2498
2499
|
noCampaign: !1
|
|
2499
2500
|
});
|
|
2500
|
-
const
|
|
2501
|
+
const ke = {
|
|
2501
2502
|
_id: "",
|
|
2502
2503
|
intention: [],
|
|
2503
2504
|
name: "Welcome voucher",
|
|
@@ -2897,7 +2898,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
|
|
|
2897
2898
|
({
|
|
2898
2899
|
...t.scaffoldGroup()
|
|
2899
2900
|
});
|
|
2900
|
-
const
|
|
2901
|
+
const D = e.enum([
|
|
2901
2902
|
"MEMBER_REWARD",
|
|
2902
2903
|
"PAID_LOYALTY",
|
|
2903
2904
|
"COLLECT_FEEDBACK",
|
|
@@ -2907,7 +2908,7 @@ const O = e.enum([
|
|
|
2907
2908
|
"BROADCAST",
|
|
2908
2909
|
"BIRTHDAY",
|
|
2909
2910
|
"GAME"
|
|
2910
|
-
]),
|
|
2911
|
+
]), w = e.enum([
|
|
2911
2912
|
"text",
|
|
2912
2913
|
"number",
|
|
2913
2914
|
"textarea",
|
|
@@ -2934,28 +2935,28 @@ const O = e.enum([
|
|
|
2934
2935
|
"rule_feedback",
|
|
2935
2936
|
"rule_birthday",
|
|
2936
2937
|
"promotion_game_type"
|
|
2937
|
-
]),
|
|
2938
|
+
]), A = e.object({
|
|
2938
2939
|
label: e.string().optional(),
|
|
2939
2940
|
label_locale: e.record(e.string()).nullish(),
|
|
2940
2941
|
property: e.string().or(e.any()),
|
|
2941
|
-
type:
|
|
2942
|
+
type: w,
|
|
2942
2943
|
extras: e.string().optional(),
|
|
2943
2944
|
isRuleChildren: e.boolean().optional()
|
|
2944
|
-
}),
|
|
2945
|
+
}), f = e.object({
|
|
2945
2946
|
not: e.boolean().optional(),
|
|
2946
2947
|
property: e.string(),
|
|
2947
2948
|
value: e.any()
|
|
2948
|
-
}),
|
|
2949
|
+
}), F = e.object({
|
|
2949
2950
|
name: e.string().optional(),
|
|
2950
2951
|
name_locale: e.record(e.string()).nullish(),
|
|
2951
|
-
fields: e.array(
|
|
2952
|
-
condition:
|
|
2953
|
-
e.array(
|
|
2952
|
+
fields: e.array(A),
|
|
2953
|
+
condition: f.optional().or(
|
|
2954
|
+
e.array(f)
|
|
2954
2955
|
)
|
|
2955
|
-
}),
|
|
2956
|
+
}), M = e.object({
|
|
2956
2957
|
name: e.string(),
|
|
2957
2958
|
name_locale: e.record(e.string()).nullish(),
|
|
2958
|
-
groups: e.array(
|
|
2959
|
+
groups: e.array(F)
|
|
2959
2960
|
});
|
|
2960
2961
|
e.object({
|
|
2961
2962
|
_id: a,
|
|
@@ -2963,11 +2964,11 @@ e.object({
|
|
|
2963
2964
|
name_locale: e.record(e.string()).nullish(),
|
|
2964
2965
|
description: e.string().nullish(),
|
|
2965
2966
|
description_locale: e.record(e.string()).nullish(),
|
|
2966
|
-
steps: e.array(
|
|
2967
|
-
intention: e.array(
|
|
2967
|
+
steps: e.array(M).min(1),
|
|
2968
|
+
intention: e.array(D),
|
|
2968
2969
|
defaultValue: e.any()
|
|
2969
2970
|
}).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
|
|
2970
|
-
const
|
|
2971
|
+
const G = {
|
|
2971
2972
|
collectionName: "Businesses",
|
|
2972
2973
|
transform: {
|
|
2973
2974
|
_id: "oid"
|
|
@@ -2979,69 +2980,171 @@ e.object({
|
|
|
2979
2980
|
name: e.string(),
|
|
2980
2981
|
credit: e.number(),
|
|
2981
2982
|
forceSend: e.boolean().optional()
|
|
2982
|
-
}).describe(i.describe(
|
|
2983
|
-
const
|
|
2983
|
+
}).describe(i.describe(G));
|
|
2984
|
+
const z = e.enum(["PHONE"]), k = e.enum([
|
|
2984
2985
|
"MOCEAN",
|
|
2985
2986
|
"SLACK",
|
|
2986
2987
|
"SMS",
|
|
2987
2988
|
"EMAIL",
|
|
2988
2989
|
"WHATSAPP"
|
|
2989
|
-
]),
|
|
2990
|
+
]), B = e.enum(["PENDING", "COMPLETED", "FAILED"]), V = e.enum([
|
|
2990
2991
|
"General",
|
|
2991
2992
|
"Otp",
|
|
2992
2993
|
"Marketing",
|
|
2993
2994
|
"Ordering",
|
|
2994
2995
|
"MemberInvitation",
|
|
2995
2996
|
"MarketingPromotion"
|
|
2996
|
-
]),
|
|
2997
|
-
type:
|
|
2998
|
-
}),
|
|
2999
|
-
type: e.literal(
|
|
3000
|
-
provider:
|
|
3001
|
-
usage:
|
|
3002
|
-
}),
|
|
2997
|
+
]), W = e.object({
|
|
2998
|
+
type: z
|
|
2999
|
+
}), C = W.extend({
|
|
3000
|
+
type: e.literal(z.enum.PHONE),
|
|
3001
|
+
provider: k,
|
|
3002
|
+
usage: V.optional()
|
|
3003
|
+
}), T = e.enum([
|
|
3004
|
+
"Accepted",
|
|
3005
|
+
"PartiallyAccepted",
|
|
3006
|
+
"Queued",
|
|
3007
|
+
"Unknown",
|
|
3008
|
+
"Failed"
|
|
3009
|
+
]), Y = e.enum([
|
|
3010
|
+
"PENDING",
|
|
3011
|
+
"SUBMITTED",
|
|
3012
|
+
"SETTLED",
|
|
3013
|
+
"FAILED"
|
|
3014
|
+
]), v = e.object({
|
|
3015
|
+
channel: e.string(),
|
|
3016
|
+
status: e.string(),
|
|
3017
|
+
statusDetails: e.string().nullish()
|
|
3018
|
+
}), K = {
|
|
3003
3019
|
collectionName: "Notifications",
|
|
3004
|
-
transform: {
|
|
3020
|
+
transform: {
|
|
3021
|
+
_id: "oid",
|
|
3022
|
+
business: "oid",
|
|
3023
|
+
campaign: "oid",
|
|
3024
|
+
member: "oid"
|
|
3025
|
+
}
|
|
3005
3026
|
};
|
|
3006
3027
|
e.object({
|
|
3007
3028
|
_id: a,
|
|
3008
3029
|
business: a,
|
|
3009
|
-
|
|
3030
|
+
status: B,
|
|
3031
|
+
ref: e.string().optional(),
|
|
3010
3032
|
title: e.string().optional(),
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3033
|
+
// Single-channel fields. Absent on multi-channel dispatches, which carry
|
|
3034
|
+
// their content per channel in the submitted request instead.
|
|
3035
|
+
target: e.string().optional(),
|
|
3036
|
+
message: e.string().optional(),
|
|
3037
|
+
option: C.optional(),
|
|
3038
|
+
// Multi-channel dispatch fields.
|
|
3039
|
+
campaign: a.nullish(),
|
|
3040
|
+
member: a.nullish(),
|
|
3041
|
+
/**
|
|
3042
|
+
* The scheduled run this dispatch belongs to. With campaign and member it
|
|
3043
|
+
* identifies one intended send, so a redelivered queue job is recognised
|
|
3044
|
+
* rather than sent twice.
|
|
3045
|
+
*/
|
|
3046
|
+
runAt: e.coerce.date().nullish(),
|
|
3047
|
+
mode: u.nullish(),
|
|
3048
|
+
channels: e.array(H).nullish(),
|
|
3049
|
+
/**
|
|
3050
|
+
* Local submission state, kept separate from the upstream outcome so an
|
|
3051
|
+
* interrupted worker can tell "never sent" from "sent, result unknown".
|
|
3052
|
+
*/
|
|
3053
|
+
state: Y.nullish(),
|
|
3054
|
+
outcome: T.nullish(),
|
|
3055
|
+
/** Upstream correlation id, preserved even when the request failed. */
|
|
3056
|
+
requestId: e.string().nullish(),
|
|
3057
|
+
attempts: e.array(v).nullish(),
|
|
3058
|
+
/** Credit consumed upstream, recorded for reconciliation. */
|
|
3059
|
+
creditUsed: r.nullish(),
|
|
3060
|
+
balanceAfter: r.nullish(),
|
|
3061
|
+
error: e.string().nullish(),
|
|
3062
|
+
createdAt: e.coerce.date().nullish(),
|
|
3063
|
+
submittedAt: e.coerce.date().nullish(),
|
|
3064
|
+
settledAt: e.coerce.date().nullish()
|
|
3065
|
+
}).describe(i.describe(K));
|
|
3066
|
+
const X = e.object({
|
|
3017
3067
|
target: e.string(),
|
|
3018
3068
|
title: e.string().optional(),
|
|
3019
3069
|
message: e.string(),
|
|
3020
|
-
option:
|
|
3070
|
+
option: C,
|
|
3021
3071
|
ref: e.string().optional()
|
|
3072
|
+
}), q = e.object({
|
|
3073
|
+
memberId: e.string(),
|
|
3074
|
+
name: e.string().nullish(),
|
|
3075
|
+
phoneNumber: e.string().nullish(),
|
|
3076
|
+
email: e.string().nullish(),
|
|
3077
|
+
/**
|
|
3078
|
+
* Shared Firebase uid required by App Inbox and Push, sourced from
|
|
3079
|
+
* `FdoUserV2.externalMemberId`. Optional there, so it can legitimately be
|
|
3080
|
+
* absent for a member; upstream decides what that means for a channel.
|
|
3081
|
+
*/
|
|
3082
|
+
firebaseUid: e.string().nullish()
|
|
3083
|
+
});
|
|
3084
|
+
e.object({
|
|
3085
|
+
businessId: e.string(),
|
|
3086
|
+
forceSend: e.boolean(),
|
|
3087
|
+
mode: u,
|
|
3088
|
+
channels: e.array(
|
|
3089
|
+
e.enum(["SMS", "WHATSAPP", "EMAIL", "APP_INBOX", "PUSH_NOTIFICATION"])
|
|
3090
|
+
),
|
|
3091
|
+
metadata: e.object({
|
|
3092
|
+
source: e.string(),
|
|
3093
|
+
refValue: e.string()
|
|
3094
|
+
}),
|
|
3095
|
+
content: e.record(e.string(), e.unknown())
|
|
3022
3096
|
});
|
|
3023
3097
|
e.object({
|
|
3098
|
+
requestId: e.string().nullish(),
|
|
3099
|
+
status: T.nullish(),
|
|
3100
|
+
attempts: e.array(v).nullish(),
|
|
3101
|
+
creditUsed: r.nullish(),
|
|
3102
|
+
balance: r.nullish()
|
|
3103
|
+
});
|
|
3104
|
+
const Q = e.object({
|
|
3024
3105
|
campaignId: e.string(),
|
|
3025
|
-
|
|
3026
|
-
|
|
3106
|
+
business: e.string(),
|
|
3107
|
+
runAt: e.coerce.date(),
|
|
3108
|
+
recipient: q,
|
|
3109
|
+
/** Personalised, editor-data-free content keyed by channel. */
|
|
3110
|
+
content: e.record(e.string(), e.unknown()),
|
|
3111
|
+
mode: u,
|
|
3112
|
+
channels: e.array(H)
|
|
3113
|
+
});
|
|
3114
|
+
e.object({
|
|
3115
|
+
campaignId: e.string(),
|
|
3116
|
+
/** Absent only on multi-channel jobs, which carry `dispatch` instead. */
|
|
3117
|
+
notification: X.optional(),
|
|
3118
|
+
business: e.string(),
|
|
3119
|
+
/**
|
|
3120
|
+
* Present only for multi-channel broadcasts. When set the job takes the
|
|
3121
|
+
* multi-channel dispatch path; when absent the legacy single-channel path
|
|
3122
|
+
* runs unchanged.
|
|
3123
|
+
*/
|
|
3124
|
+
dispatch: Q.optional()
|
|
3125
|
+
}).superRefine((n, h) => {
|
|
3126
|
+
!n.notification && !n.dispatch && h.addIssue({
|
|
3127
|
+
code: e.ZodIssueCode.custom,
|
|
3128
|
+
message: "Job must carry either a notification or a dispatch"
|
|
3129
|
+
});
|
|
3027
3130
|
});
|
|
3028
3131
|
e.object({
|
|
3029
3132
|
phone: e.string(),
|
|
3030
3133
|
message: e.string()
|
|
3031
3134
|
});
|
|
3032
|
-
const
|
|
3135
|
+
const b = e.object({
|
|
3033
3136
|
name: e.string().optional(),
|
|
3034
3137
|
address: e.string()
|
|
3035
|
-
}),
|
|
3138
|
+
}), Z = e.object({
|
|
3036
3139
|
filename: e.string(),
|
|
3037
3140
|
content: e.instanceof(Uint8Array)
|
|
3038
3141
|
});
|
|
3039
3142
|
e.object({
|
|
3040
|
-
from:
|
|
3041
|
-
to: e.array(
|
|
3143
|
+
from: b.optional(),
|
|
3144
|
+
to: e.array(b),
|
|
3042
3145
|
subject: e.string(),
|
|
3043
3146
|
html: e.string().optional(),
|
|
3044
|
-
attachments: e.array(
|
|
3147
|
+
attachments: e.array(Z).optional()
|
|
3045
3148
|
});
|
|
3046
3149
|
e.object({
|
|
3047
3150
|
subject: e.string(),
|
|
@@ -3081,7 +3184,7 @@ e.object({
|
|
|
3081
3184
|
billId: e.string()
|
|
3082
3185
|
});
|
|
3083
3186
|
e.object({
|
|
3084
|
-
amount:
|
|
3187
|
+
amount: O,
|
|
3085
3188
|
member: e.string(),
|
|
3086
3189
|
bill: e.string(),
|
|
3087
3190
|
otp: e.string().nullish(),
|
|
@@ -3090,15 +3193,15 @@ e.object({
|
|
|
3090
3193
|
e.object({
|
|
3091
3194
|
orderId: e.string()
|
|
3092
3195
|
});
|
|
3093
|
-
var
|
|
3094
|
-
e.nativeEnum(
|
|
3196
|
+
var S = /* @__PURE__ */ ((n) => (n[n.feedMe = 0] = "feedMe", n[n.business = 1] = "business", n[n.restaurant = 2] = "restaurant", n))(S || {});
|
|
3197
|
+
e.nativeEnum(S);
|
|
3095
3198
|
e.enum(["manage", "create", "read", "update", "delete"]);
|
|
3096
3199
|
e.enum(["all", "restaurant", "business", "delivery", "agent"]);
|
|
3097
3200
|
e.enum(["quota"]);
|
|
3098
|
-
var
|
|
3099
|
-
e.nativeEnum(
|
|
3201
|
+
var N = /* @__PURE__ */ ((n) => (n.marketing = "business::marketing", n.campaign = "business::campaign", n.counter = "business::counter", n.permission = "business::permission", n.role = "business::role", n))(N || {});
|
|
3202
|
+
e.nativeEnum(N);
|
|
3100
3203
|
e.enum(["restaurant"]);
|
|
3101
|
-
const
|
|
3204
|
+
const $ = e.object({
|
|
3102
3205
|
label: e.string(),
|
|
3103
3206
|
subject: e.union([e.string(), e.array(e.string())]),
|
|
3104
3207
|
actions: e.union([e.string(), e.array(e.string())]),
|
|
@@ -3113,7 +3216,7 @@ e.object({
|
|
|
3113
3216
|
userId: e.string(),
|
|
3114
3217
|
email: e.string().nullish(),
|
|
3115
3218
|
phoneNo: e.string().nullish(),
|
|
3116
|
-
permissions: e.array(e.lazy(() =>
|
|
3219
|
+
permissions: e.array(e.lazy(() => $))
|
|
3117
3220
|
}).describe(
|
|
3118
3221
|
i.describe({
|
|
3119
3222
|
collectionName: "PermissionUsers",
|
|
@@ -3122,27 +3225,27 @@ e.object({
|
|
|
3122
3225
|
}
|
|
3123
3226
|
})
|
|
3124
3227
|
);
|
|
3125
|
-
const
|
|
3228
|
+
const U = e.object({
|
|
3126
3229
|
userId: e.string(),
|
|
3127
3230
|
level: e.number(),
|
|
3128
3231
|
role: e.string().optional(),
|
|
3129
3232
|
businessId: e.string().optional(),
|
|
3130
3233
|
restaurantId: e.string().optional()
|
|
3131
|
-
}),
|
|
3234
|
+
}), ee = e.function().args(e.any(), U).returns(e.boolean()), te = e.function().args(U).returns(e.promise(e.array(e.any())));
|
|
3132
3235
|
e.object({
|
|
3133
|
-
isAdmin:
|
|
3134
|
-
getRules:
|
|
3236
|
+
isAdmin: ee,
|
|
3237
|
+
getRules: te
|
|
3135
3238
|
});
|
|
3136
3239
|
e.object({
|
|
3137
|
-
transactions: e.array(
|
|
3138
|
-
collections: e.array(
|
|
3240
|
+
transactions: e.array(R),
|
|
3241
|
+
collections: e.array(L)
|
|
3139
3242
|
});
|
|
3140
|
-
const
|
|
3243
|
+
const P = e.enum([
|
|
3141
3244
|
"ROCK_PAPER_SCISSOR"
|
|
3142
3245
|
]);
|
|
3143
|
-
|
|
3246
|
+
P.enum.ROCK_PAPER_SCISSOR + "";
|
|
3144
3247
|
e.object({
|
|
3145
|
-
type:
|
|
3248
|
+
type: P
|
|
3146
3249
|
});
|
|
3147
3250
|
e.object({
|
|
3148
3251
|
host: e.string().url(),
|
|
@@ -3151,7 +3254,7 @@ e.object({
|
|
|
3151
3254
|
roomId: e.string()
|
|
3152
3255
|
});
|
|
3153
3256
|
e.enum(["FACEBOOK", "INSTAGRAM", "TV", "BRAND_APP"]);
|
|
3154
|
-
const
|
|
3257
|
+
const ae = {
|
|
3155
3258
|
collectionName: "MarketingMaterials",
|
|
3156
3259
|
transform: {
|
|
3157
3260
|
_id: "oid",
|
|
@@ -3165,7 +3268,7 @@ e.object({
|
|
|
3165
3268
|
headline: e.string(),
|
|
3166
3269
|
caption: e.string(),
|
|
3167
3270
|
editedAt: e.coerce.date()
|
|
3168
|
-
}).describe(i.describe(
|
|
3271
|
+
}).describe(i.describe(ae));
|
|
3169
3272
|
e.object({
|
|
3170
3273
|
id: e.number(),
|
|
3171
3274
|
name: e.string(),
|
|
@@ -3185,12 +3288,12 @@ e.object({
|
|
|
3185
3288
|
phone: e.string().optional(),
|
|
3186
3289
|
email: e.string().optional()
|
|
3187
3290
|
});
|
|
3188
|
-
const
|
|
3291
|
+
const ne = e.enum([
|
|
3189
3292
|
"PENDING",
|
|
3190
3293
|
"SUCCESS",
|
|
3191
3294
|
"FAILED",
|
|
3192
3295
|
"RETRYING"
|
|
3193
|
-
]),
|
|
3296
|
+
]), oe = {
|
|
3194
3297
|
collectionName: "WebhookLogs",
|
|
3195
3298
|
transform: {
|
|
3196
3299
|
_id: "oid",
|
|
@@ -3202,35 +3305,35 @@ e.object({
|
|
|
3202
3305
|
business: a,
|
|
3203
3306
|
type: e.string(),
|
|
3204
3307
|
payload: e.record(e.any()),
|
|
3205
|
-
status:
|
|
3308
|
+
status: ne,
|
|
3206
3309
|
response: e.any().optional(),
|
|
3207
3310
|
error: e.string().optional()
|
|
3208
|
-
}).describe(i.describe(
|
|
3209
|
-
const
|
|
3311
|
+
}).describe(i.describe(oe));
|
|
3312
|
+
const ie = e.enum(["AUTO", "MANUAL"]);
|
|
3210
3313
|
e.enum(["IN_PROGRESS", "COMPLETED"]);
|
|
3211
|
-
const
|
|
3314
|
+
const j = e.object({
|
|
3212
3315
|
_id: a,
|
|
3213
3316
|
name: e.string().min(1, "Name is required").max(50),
|
|
3214
|
-
type:
|
|
3215
|
-
event:
|
|
3216
|
-
}),
|
|
3317
|
+
type: ie,
|
|
3318
|
+
event: x.optional()
|
|
3319
|
+
}), le = e.object({
|
|
3217
3320
|
from: e.number().int("Must be integer").min(1, "Min referral count need to start from 1"),
|
|
3218
3321
|
to: e.number().int("Must be integer").nullish()
|
|
3219
|
-
}).superRefine((n,
|
|
3220
|
-
n.from && n.to && n.from > n.to &&
|
|
3322
|
+
}).superRefine((n, h) => {
|
|
3323
|
+
n.from && n.to && n.from > n.to && h.addIssue({
|
|
3221
3324
|
code: "custom",
|
|
3222
3325
|
message: "Max referral count must be more than min referral count"
|
|
3223
3326
|
});
|
|
3224
|
-
}),
|
|
3225
|
-
threshold:
|
|
3327
|
+
}), re = e.object({
|
|
3328
|
+
threshold: le,
|
|
3226
3329
|
rewards: e.array(a),
|
|
3227
|
-
pf_reward: e.array(
|
|
3228
|
-
}),
|
|
3330
|
+
pf_reward: e.array(_).optional()
|
|
3331
|
+
}), y = e.object({
|
|
3229
3332
|
id: e.string(),
|
|
3230
3333
|
name: e.string().min(1, "Name is required").max(50, "Name must be less than 50 characters"),
|
|
3231
|
-
rule:
|
|
3232
|
-
rewards: e.array(
|
|
3233
|
-
}),
|
|
3334
|
+
rule: I.optional(),
|
|
3335
|
+
rewards: e.array(re)
|
|
3336
|
+
}), ce = {
|
|
3234
3337
|
collectionName: "ReferralRecords",
|
|
3235
3338
|
transform: {
|
|
3236
3339
|
_id: "oid",
|
|
@@ -3239,25 +3342,25 @@ const T = e.object({
|
|
|
3239
3342
|
referee: "oid",
|
|
3240
3343
|
refereeReward: "oid"
|
|
3241
3344
|
}
|
|
3242
|
-
},
|
|
3345
|
+
}, pe = e.object({
|
|
3243
3346
|
completedAt: e.coerce.date(),
|
|
3244
3347
|
criteria: a,
|
|
3245
3348
|
ref: e.string()
|
|
3246
|
-
}),
|
|
3349
|
+
}), me = e.object({
|
|
3247
3350
|
_id: a,
|
|
3248
3351
|
business: a,
|
|
3249
3352
|
referer: a,
|
|
3250
3353
|
referee: a,
|
|
3251
|
-
criteria: e.array(
|
|
3252
|
-
reward: e.array(
|
|
3354
|
+
criteria: e.array(j),
|
|
3355
|
+
reward: e.array(y),
|
|
3253
3356
|
refereeReward: e.array(a).optional(),
|
|
3254
|
-
criteria_progress: e.array(
|
|
3357
|
+
criteria_progress: e.array(pe),
|
|
3255
3358
|
status: e.string(),
|
|
3256
|
-
pf_referer:
|
|
3257
|
-
pf_referee:
|
|
3258
|
-
pf_refereeReward: e.array(
|
|
3259
|
-
}).describe(i.describe(
|
|
3260
|
-
|
|
3359
|
+
pf_referer: c.optional(),
|
|
3360
|
+
pf_referee: c.optional(),
|
|
3361
|
+
pf_refereeReward: e.array(_).optional()
|
|
3362
|
+
}).describe(i.describe(ce));
|
|
3363
|
+
me.pick({
|
|
3261
3364
|
_id: !0,
|
|
3262
3365
|
business: !0,
|
|
3263
3366
|
referer: !0,
|
|
@@ -3265,77 +3368,77 @@ ae.pick({
|
|
|
3265
3368
|
criteria_progress: !0,
|
|
3266
3369
|
criteria: !0
|
|
3267
3370
|
}).extend({
|
|
3268
|
-
pf_referee:
|
|
3371
|
+
pf_referee: c.pick({
|
|
3269
3372
|
_id: !0,
|
|
3270
3373
|
name: !0,
|
|
3271
3374
|
phoneNumber: !0,
|
|
3272
3375
|
photoUrl: !0
|
|
3273
3376
|
})
|
|
3274
3377
|
});
|
|
3275
|
-
const
|
|
3378
|
+
const se = {
|
|
3276
3379
|
collectionName: "ReferralProgram",
|
|
3277
3380
|
transform: {
|
|
3278
3381
|
_id: "oid",
|
|
3279
3382
|
business: "oid"
|
|
3280
3383
|
}
|
|
3281
|
-
},
|
|
3384
|
+
}, J = e.object({
|
|
3282
3385
|
_id: a,
|
|
3283
3386
|
business: a,
|
|
3284
3387
|
term_and_condition: e.string().optional(),
|
|
3285
3388
|
refereeReward: e.array(a).optional(),
|
|
3286
|
-
reward: e.array(
|
|
3287
|
-
criteria: e.array(
|
|
3288
|
-
}).describe(i.describe(
|
|
3389
|
+
reward: e.array(y),
|
|
3390
|
+
criteria: e.array(j)
|
|
3391
|
+
}).describe(i.describe(se));
|
|
3289
3392
|
e.object({
|
|
3290
3393
|
referer: a,
|
|
3291
3394
|
referee: a,
|
|
3292
3395
|
business: a
|
|
3293
3396
|
});
|
|
3294
3397
|
e.object({
|
|
3295
|
-
program:
|
|
3398
|
+
program: J.pick({
|
|
3296
3399
|
_id: !0,
|
|
3297
3400
|
business: !0,
|
|
3298
3401
|
term_and_condition: !0
|
|
3299
3402
|
}).extend({
|
|
3300
|
-
reward:
|
|
3301
|
-
pf_refereeReward: e.array(
|
|
3403
|
+
reward: y.optional(),
|
|
3404
|
+
pf_refereeReward: e.array(_).optional()
|
|
3302
3405
|
}),
|
|
3303
3406
|
referralCount: e.number(),
|
|
3304
3407
|
successReferralCount: e.number(),
|
|
3305
|
-
referredBy:
|
|
3408
|
+
referredBy: c.pick({
|
|
3306
3409
|
_id: !0,
|
|
3307
3410
|
name: !0,
|
|
3308
3411
|
phoneNumber: !0,
|
|
3309
3412
|
photoUrl: !0
|
|
3310
3413
|
}).optional()
|
|
3311
3414
|
});
|
|
3312
|
-
|
|
3415
|
+
J.extend({
|
|
3313
3416
|
updateReferralRecord: e.boolean().optional()
|
|
3314
3417
|
});
|
|
3315
|
-
const
|
|
3418
|
+
const ge = e.object({
|
|
3316
3419
|
facebookPageId: e.string(),
|
|
3317
3420
|
pageName: e.string(),
|
|
3318
3421
|
pageProfileImageUrl: e.string(),
|
|
3319
3422
|
pageAccessToken: e.string().optional(),
|
|
3320
3423
|
locationIds: e.array(a)
|
|
3321
|
-
}),
|
|
3424
|
+
}), de = e.object({
|
|
3322
3425
|
locationId: a.nullable(),
|
|
3323
3426
|
googleLocationName: e.string(),
|
|
3324
3427
|
displayName: e.string().optional()
|
|
3325
|
-
}),
|
|
3428
|
+
}), he = e.object({
|
|
3326
3429
|
accessToken: e.string().nullable(),
|
|
3327
3430
|
refreshToken: e.string().nullable(),
|
|
3328
3431
|
accessTokenExpiresAt: e.date().nullable(),
|
|
3329
|
-
locations: e.array(
|
|
3330
|
-
}),
|
|
3432
|
+
locations: e.array(de)
|
|
3433
|
+
}), ue = e.object({
|
|
3331
3434
|
token: e.string().nullable(),
|
|
3332
|
-
pages: e.array(
|
|
3435
|
+
pages: e.array(ge)
|
|
3333
3436
|
});
|
|
3334
3437
|
e.object({
|
|
3335
3438
|
_id: a,
|
|
3336
3439
|
businessId: a,
|
|
3337
|
-
google:
|
|
3338
|
-
facebook:
|
|
3440
|
+
google: he.nullable(),
|
|
3441
|
+
facebook: ue.nullable()
|
|
3339
3442
|
}).describe(
|
|
3340
3443
|
i.describe({
|
|
3341
3444
|
collectionName: "ReviewSourceConfig",
|
|
@@ -3395,15 +3498,15 @@ e.object({
|
|
|
3395
3498
|
)
|
|
3396
3499
|
}).nullable()
|
|
3397
3500
|
});
|
|
3398
|
-
const
|
|
3501
|
+
const p = e.object({
|
|
3399
3502
|
name: e.string(),
|
|
3400
3503
|
pictureUrl: e.string(),
|
|
3401
3504
|
phoneNumber: e.string().optional()
|
|
3402
|
-
}),
|
|
3505
|
+
}), _e = p.extend({
|
|
3403
3506
|
isAnonymous: e.boolean().optional()
|
|
3404
|
-
}),
|
|
3507
|
+
}), ye = p.extend({
|
|
3405
3508
|
id: e.string().optional()
|
|
3406
|
-
}),
|
|
3509
|
+
}), m = e.object({
|
|
3407
3510
|
comment: e.string(),
|
|
3408
3511
|
updateTime: e.coerce.date()
|
|
3409
3512
|
});
|
|
@@ -3415,7 +3518,7 @@ const l = e.object({
|
|
|
3415
3518
|
thumbnailUrl: e.string(),
|
|
3416
3519
|
thumbnailLabel: e.string(),
|
|
3417
3520
|
videoUrl: e.string().optional()
|
|
3418
|
-
}),
|
|
3521
|
+
}), fe = {
|
|
3419
3522
|
collectionName: "Reviews",
|
|
3420
3523
|
transform: {
|
|
3421
3524
|
_id: "oid",
|
|
@@ -3423,31 +3526,31 @@ const l = e.object({
|
|
|
3423
3526
|
reviewerId: "oid",
|
|
3424
3527
|
restaurantId: "oid"
|
|
3425
3528
|
}
|
|
3426
|
-
},
|
|
3529
|
+
}, E = e.enum([
|
|
3427
3530
|
"google",
|
|
3428
3531
|
"facebook",
|
|
3429
3532
|
"feedme",
|
|
3430
3533
|
"feedvibe"
|
|
3431
3534
|
]);
|
|
3432
|
-
|
|
3535
|
+
E.options;
|
|
3433
3536
|
e.enum(["google", "facebook"]);
|
|
3434
|
-
const
|
|
3537
|
+
const be = e.enum([
|
|
3435
3538
|
"createTime_desc",
|
|
3436
3539
|
"createTime_asc",
|
|
3437
3540
|
"rating_asc",
|
|
3438
3541
|
"rating_desc"
|
|
3439
3542
|
]);
|
|
3440
3543
|
e.object({
|
|
3441
|
-
source:
|
|
3544
|
+
source: E.array().optional(),
|
|
3442
3545
|
dateFrom: e.string().datetime({ offset: !0 }).optional(),
|
|
3443
3546
|
dateTo: e.string().datetime({ offset: !0 }).optional(),
|
|
3444
3547
|
locationId: e.string().optional(),
|
|
3445
3548
|
excludeDeleted: e.boolean().optional(),
|
|
3446
|
-
sort:
|
|
3549
|
+
sort: be.optional(),
|
|
3447
3550
|
limit: e.coerce.number().int().positive().optional(),
|
|
3448
3551
|
skip: e.coerce.number().int().min(0).optional()
|
|
3449
3552
|
});
|
|
3450
|
-
const
|
|
3553
|
+
const Be = e.object({
|
|
3451
3554
|
averageScore: e.number(),
|
|
3452
3555
|
total: e.number().int().nonnegative(),
|
|
3453
3556
|
starCounts: e.array(
|
|
@@ -3456,54 +3559,54 @@ const Le = e.object({
|
|
|
3456
3559
|
count: e.number().int().nonnegative()
|
|
3457
3560
|
})
|
|
3458
3561
|
)
|
|
3459
|
-
}),
|
|
3562
|
+
}), s = e.object({
|
|
3460
3563
|
name: e.string(),
|
|
3461
3564
|
pictureUrl: e.string().optional(),
|
|
3462
3565
|
phoneNumber: e.string().optional()
|
|
3463
|
-
}),
|
|
3566
|
+
}), He = s.extend({
|
|
3464
3567
|
_id: e.string().optional()
|
|
3465
|
-
}),
|
|
3568
|
+
}), ze = s.extend({
|
|
3466
3569
|
_id: e.string()
|
|
3467
|
-
}),
|
|
3570
|
+
}), Ce = s.extend({
|
|
3468
3571
|
isAnonymous: e.boolean().optional()
|
|
3469
|
-
}),
|
|
3572
|
+
}), Te = s.extend({
|
|
3470
3573
|
id: e.string().optional()
|
|
3471
|
-
}),
|
|
3574
|
+
}), g = e.object({
|
|
3472
3575
|
_id: a,
|
|
3473
3576
|
comment: e.string(),
|
|
3474
3577
|
createTime: e.coerce.date(),
|
|
3475
3578
|
updateTime: e.coerce.date().nullish(),
|
|
3476
3579
|
restaurantId: a,
|
|
3477
3580
|
restaurantName: e.string()
|
|
3478
|
-
}),
|
|
3581
|
+
}), ve = g.extend({
|
|
3479
3582
|
source: e.literal("google"),
|
|
3480
3583
|
externalId: e.string().min(1),
|
|
3481
3584
|
translatedComment: e.string().optional(),
|
|
3482
|
-
reviewer:
|
|
3483
|
-
reply:
|
|
3585
|
+
reviewer: Ce.optional(),
|
|
3586
|
+
reply: m.optional(),
|
|
3484
3587
|
mediaItems: e.array(l),
|
|
3485
3588
|
starRating: e.number(),
|
|
3486
3589
|
locationName: e.string(),
|
|
3487
3590
|
locationDisplayName: e.string(),
|
|
3488
3591
|
originalUrl: e.string().optional()
|
|
3489
|
-
}),
|
|
3592
|
+
}), Se = g.extend({
|
|
3490
3593
|
source: e.literal("facebook"),
|
|
3491
3594
|
externalId: e.string().min(1),
|
|
3492
|
-
reviewer:
|
|
3595
|
+
reviewer: Te.optional(),
|
|
3493
3596
|
isPositive: e.boolean().optional(),
|
|
3494
3597
|
pageId: e.string(),
|
|
3495
3598
|
pageName: e.string()
|
|
3496
|
-
}),
|
|
3599
|
+
}), Ne = g.extend({
|
|
3497
3600
|
source: e.literal("feedme"),
|
|
3498
|
-
reviewer:
|
|
3499
|
-
reply:
|
|
3601
|
+
reviewer: He.optional(),
|
|
3602
|
+
reply: m.optional(),
|
|
3500
3603
|
starRating: e.number(),
|
|
3501
3604
|
mediaItems: e.array(l),
|
|
3502
3605
|
billId: e.string()
|
|
3503
|
-
}),
|
|
3606
|
+
}), Ue = g.extend({
|
|
3504
3607
|
source: e.literal("feedvibe"),
|
|
3505
3608
|
externalId: e.string().min(1),
|
|
3506
|
-
reviewer:
|
|
3609
|
+
reviewer: ze.optional(),
|
|
3507
3610
|
rating: e.object({
|
|
3508
3611
|
overall: e.number(),
|
|
3509
3612
|
food: e.number(),
|
|
@@ -3514,10 +3617,10 @@ const Le = e.object({
|
|
|
3514
3617
|
mediaItems: e.array(l).default([])
|
|
3515
3618
|
});
|
|
3516
3619
|
e.discriminatedUnion("source", [
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3620
|
+
ve,
|
|
3621
|
+
Se,
|
|
3622
|
+
Ne,
|
|
3623
|
+
Ue
|
|
3521
3624
|
]);
|
|
3522
3625
|
e.object({
|
|
3523
3626
|
comment: e.string(),
|
|
@@ -3530,7 +3633,7 @@ e.object({
|
|
|
3530
3633
|
name: e.string().trim().min(1),
|
|
3531
3634
|
phoneNumber: e.string().trim().min(1).optional()
|
|
3532
3635
|
});
|
|
3533
|
-
const
|
|
3636
|
+
const d = e.object({
|
|
3534
3637
|
_id: a,
|
|
3535
3638
|
businessId: a,
|
|
3536
3639
|
comment: e.string(),
|
|
@@ -3539,39 +3642,39 @@ const g = e.object({
|
|
|
3539
3642
|
restaurantId: a,
|
|
3540
3643
|
restaurantName: e.string(),
|
|
3541
3644
|
deletedAt: e.coerce.date().optional()
|
|
3542
|
-
}),
|
|
3645
|
+
}), Pe = d.extend({
|
|
3543
3646
|
source: e.literal("google"),
|
|
3544
3647
|
externalId: e.string().min(1),
|
|
3545
3648
|
translatedComment: e.string().optional(),
|
|
3546
|
-
reviewer:
|
|
3547
|
-
reply:
|
|
3649
|
+
reviewer: _e.optional(),
|
|
3650
|
+
reply: m.optional(),
|
|
3548
3651
|
mediaItems: e.array(l),
|
|
3549
3652
|
starRating: e.number(),
|
|
3550
3653
|
locationName: e.string(),
|
|
3551
3654
|
locationDisplayName: e.string(),
|
|
3552
3655
|
originalUrl: e.string().optional()
|
|
3553
|
-
}),
|
|
3656
|
+
}), je = d.extend({
|
|
3554
3657
|
source: e.literal("facebook"),
|
|
3555
3658
|
externalId: e.string().min(1),
|
|
3556
|
-
reviewer:
|
|
3659
|
+
reviewer: ye.optional(),
|
|
3557
3660
|
isPositive: e.boolean().optional(),
|
|
3558
3661
|
pageId: e.string(),
|
|
3559
3662
|
pageName: e.string()
|
|
3560
|
-
}),
|
|
3663
|
+
}), Je = d.extend({
|
|
3561
3664
|
source: e.literal("feedme"),
|
|
3562
3665
|
isAnonymous: e.boolean(),
|
|
3563
3666
|
metadata: e.record(e.string(), e.unknown()).optional(),
|
|
3564
3667
|
reviewerId: a.optional(),
|
|
3565
|
-
reviewer:
|
|
3566
|
-
reply:
|
|
3668
|
+
reviewer: p.optional(),
|
|
3669
|
+
reply: m.optional(),
|
|
3567
3670
|
starRating: e.number(),
|
|
3568
3671
|
billId: e.string(),
|
|
3569
3672
|
mediaItems: e.array(l)
|
|
3570
|
-
}),
|
|
3673
|
+
}), Ee = d.extend({
|
|
3571
3674
|
source: e.literal("feedvibe"),
|
|
3572
3675
|
externalId: e.string().min(1),
|
|
3573
3676
|
reviewerId: a,
|
|
3574
|
-
reviewer:
|
|
3677
|
+
reviewer: p,
|
|
3575
3678
|
rating: e.object({
|
|
3576
3679
|
overall: e.number(),
|
|
3577
3680
|
food: e.number(),
|
|
@@ -3582,20 +3685,20 @@ const g = e.object({
|
|
|
3582
3685
|
mediaItems: e.array(l).default([])
|
|
3583
3686
|
});
|
|
3584
3687
|
e.discriminatedUnion("source", [
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
]).describe(i.describe(
|
|
3688
|
+
Pe,
|
|
3689
|
+
je,
|
|
3690
|
+
Je,
|
|
3691
|
+
Ee
|
|
3692
|
+
]).describe(i.describe(fe));
|
|
3590
3693
|
export {
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3694
|
+
D as F,
|
|
3695
|
+
Me as S,
|
|
3696
|
+
Fe as T,
|
|
3697
|
+
ke as W,
|
|
3698
|
+
Ge as a,
|
|
3699
|
+
re as b,
|
|
3700
|
+
j as c,
|
|
3701
|
+
y as d,
|
|
3702
|
+
Be as e,
|
|
3703
|
+
m as f
|
|
3601
3704
|
};
|