@feedmepos/mf-connect 0.1.110-prod → 0.1.112-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-BIuwkgjE.js → App-CFJcQZEE.js} +522 -500
- package/dist/{Bin-B6PDvhj7.js → Bin-DaqUNsSV.js} +8 -8
- package/dist/{Broadcast-BsUYu9Kq.js → Broadcast-CdAN6JCa.js} +82 -79
- package/dist/{CampaignAnalytic-D0_Kh2Sv.js → CampaignAnalytic-CpP7lgTX.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-bfMr_7XS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BQiQVQBN.js} +49 -31
- package/dist/Card-Bmz5p5Pq.js +1085 -0
- package/dist/{Collections-B0umkbKL.js → Collections-BKND60cK.js} +9 -9
- package/dist/{Credit-DMrHYtmf.js → Credit-DQ_tDm8l.js} +11 -11
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-IuEHozwd.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CCwpsEWf.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C06_qwVx.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bn-lauCv.js} +34 -32
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CHCLAOYT.js → EffectSheet.vue_vue_type_style_index_0_lang-wUV_beN0.js} +6 -6
- package/dist/{Experience-3xvTI41j.js → Experience-BOE6jLIS.js} +86 -83
- package/dist/{FileSaver.min-CEjHOYSg.js → FileSaver.min-D0CP0E3N.js} +1 -1
- package/dist/{Game-Drkfnm94.js → Game-B-8by2dp.js} +12 -12
- package/dist/GiftCardSetup-CdqZd1ee.js +748 -0
- package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-BVTu4uTR.js +424 -0
- package/dist/Goals-xFHNbwt7.js +247 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BYIIaPD9.js → ImageInput.vue_vue_type_script_setup_true_lang-B5Z1AZRV.js} +1 -1
- package/dist/{Index-BNfZ-mAu.js → Index-t6veJ0lU.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CqJLimu2.js → LocationPicker.vue_vue_type_script_setup_true_lang-Deeanc8z.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BnMjqLMU.js → LottieAnimation.vue_vue_type_script_setup_true_lang-B8qOJYoS.js} +1 -1
- package/dist/{LoyaltyDashboard-BmRdWFCw.js → LoyaltyDashboard-DXNBsnM5.js} +1216 -1170
- package/dist/{MainLayout-m4H59w6_.js → MainLayout-CmCboaEn.js} +3 -3
- package/dist/{Marketing-BqdCdc76.js → Marketing-DCq9O5eb.js} +4 -4
- package/dist/{MarketingMaterialEdit-UjCEMJ7c.js → MarketingMaterialEdit-CGLxanxm.js} +6 -6
- package/dist/{Member-BbpQizye.js → Member-BCYmEmhD.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BbL7cw4g.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Djrfmj9g.js} +26 -24
- package/dist/{MemberImportHistory-FYMyd_uX.js → MemberImportHistory-D-5NAOfo.js} +7 -7
- package/dist/{MemberList-CFtv0HI5.js → MemberList-IySTKOT_.js} +14 -14
- package/dist/{MemberTransactions-BYpugGs7.js → MemberTransactions-BgQZvc5O.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CDzQ0rnK.js → MessageInput.vue_vue_type_script_setup_true_lang-N8PCSKBx.js} +3369 -3290
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BlhwugZQ.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_JNdYsBu.js} +1 -1
- package/dist/{Mission-BMhY1kl1.js → Mission-DtaTKWE2.js} +83 -80
- package/dist/{Overview-BmZelkd_.js → Overview-D-uC2-Pi.js} +4 -4
- package/dist/{Overview-E0KL28Fc.js → Overview-DVMdPa97.js} +57 -55
- package/dist/{Point-BX5p9ZVF.js → Point-jnPIgHMZ.js} +119 -110
- package/dist/{Promotion-D662WYaR.js → Promotion-mdQg-RSh.js} +89 -86
- package/dist/{Queue-CI5rumWZ.js → Queue-D8YY1lbn.js} +20 -18
- package/dist/{Record-DRZVEW0I.js → Record-Dh-rN7a0.js} +9 -9
- package/dist/{Review-yMVGBErp.js → Review-C8B-SIR8.js} +2 -2
- package/dist/{ReviewFacebookCallback-Docv-Uil.js → ReviewFacebookCallback-C3eyH0pS.js} +5 -5
- package/dist/{ReviewGoogleCallback-3xVh_G7M.js → ReviewGoogleCallback-pNF2ICvQ.js} +5 -5
- package/dist/{Reward-lzBLyu0x.js → Reward-D7KPnzXt.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bs32tPvC.js → RewardGroup.vue_vue_type_script_setup_true_lang-C87CDjxP.js} +25 -23
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-fNwFSHL1.js → RuleGroup.vue_vue_type_script_setup_true_lang-D1S2sLOK.js} +17 -15
- package/dist/{Segment-BRPf66q8.js → Segment-Ct8JRTjV.js} +32 -30
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DQmbCewC.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-w-UpWetC.js} +38 -36
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-fHX_ftax.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbEX2h2u.js} +4 -4
- package/dist/{Setting-D5k2jymY.js → Setting-C3Binnn_.js} +56 -56
- package/dist/{SettingAdvertisements-1Oc29mzb.js → SettingAdvertisements-BrB-dGPs.js} +12 -12
- package/dist/{Settings-B3OCofxq.js → Settings-D6h2QM6X.js} +5 -5
- package/dist/Store-EKPfHEmY.js +2622 -0
- package/dist/{StoreRewards-C7_RKZ00.js → StoreRewards-B208ENOi.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dy7_GFoi.js +1264 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BW-HTNMr.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-B2KJeL5Y.js} +2 -2
- package/dist/{Tier-8pGUR8GA.js → Tier-CjYiCZy_.js} +342 -338
- package/dist/{Title-DnYVX2k8.js → Title-BXkVolaL.js} +34 -32
- package/dist/Transaction-D1T3aIC3.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-ATWU025y.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-flUDCSA5.js} +6 -6
- package/dist/Voucher-DnQ8jNjI.js +837 -0
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-C1dCFS2S.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Z9GDpO4z.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CbUdt4GK.js → ZodTextField.vue_vue_type_script_setup_true_lang-Dcw8Oi-t.js} +2 -2
- package/dist/{app-DoUnw6pe.js → app-BtGohMqA.js} +6211 -5092
- package/dist/app.js +1 -1
- package/dist/base.export-DulNMo7e.js +75 -0
- package/dist/{business-B-PlsFIY.js → business-Bla8vvZH.js} +1 -1
- package/dist/{campaign-yUUxyk0R.js → campaign-BIPNFBY5.js} +2 -2
- package/dist/{campaign-GkMET7FI.js → campaign-DYqAyRCY.js} +8 -8
- package/dist/{campaign.enum-DbPiwqfi.js → campaign.enum-liUaxkcy.js} +1 -1
- package/dist/{campaign.fn-CF5mOcSE.js → campaign.fn-J7hYcX_7.js} +98 -98
- package/dist/{collectible.enum-CbOzGIud.js → collectible.enum-C0FfRMrW.js} +1 -1
- package/dist/{collection.fn-BByCTXVz.js → collection.fn-DdDMfaFO.js} +2 -2
- package/dist/currency-BrVnqxQ1.js +7 -0
- package/dist/{effect-jriAOaEq.js → effect-gfVmfrm9.js} +1 -1
- package/dist/{email-addresses-DH4xgace.js → email-addresses-Dy8NFNBw.js} +2 -2
- package/dist/{helper-CQjM35T_.js → helper-CMhQctQK.js} +1 -1
- package/dist/{index-v3DTwO9s.js → index-B6x6s8mu.js} +1805 -2128
- package/dist/{index-iZDBfoRk.js → index-BOZ3oVHd.js} +2 -2
- package/dist/{index-MtVkfI7s.js → index-BqKrePY8.js} +3 -3
- package/dist/{index-BLOFQAMK.js → index-C5rRuwhC.js} +1 -1
- package/dist/{index-BHYKmUkc.js → index-C67-z1uf.js} +11 -6
- package/dist/{index-CptAtzHf.js → index-CLiJUFmJ.js} +2 -2
- package/dist/{index-DEmV6_BZ.js → index-CUFuU2eJ.js} +10 -8
- package/dist/index-CZqwIQXi.js +738 -0
- package/dist/{index-D1vRPik1.js → index-CghtzuVO.js} +1 -1
- package/dist/{index-DszI88g9.js → index-Culx-Z9v.js} +20 -14
- package/dist/{index-Dr68iOIO.js → index-D1T4Yf4t.js} +1 -1
- package/dist/{index-Duqxyi9L.js → index-D6RDVy95.js} +1112 -34
- package/dist/index-DKmtDBKS.js +53 -0
- package/dist/{index-De9f7Fwe.js → index-Dalmv1m4.js} +5 -5
- package/dist/{index-DKZEN-aI.js → index-DvW-3flw.js} +4 -3
- package/dist/{index-CCBpqK6M.js → index-dyMdi0Rt.js} +1 -1
- package/dist/index-otcusTFM.js +171 -0
- package/dist/{index-BlKeV6aM.js → index-qJOEwQ_z.js} +4 -1
- package/dist/{index-BPTCREXM.js → index-v1exQSyU.js} +1 -1
- package/dist/{index.esm2017-DvOnDQUA.js → index.esm2017-BLKRIlb9.js} +1 -1
- package/dist/{loading-DO3WUS3q.js → loading-BkJ3h_4U.js} +1 -1
- package/dist/{lodash-6izwukKR.js → lodash-C0Kbs8lQ.js} +1 -1
- package/dist/{member-import-hKbS-7lM.js → member-import-trpK8l8R.js} +1 -1
- package/dist/{membership-buZOqdNV.js → membership-TV1CoyKQ.js} +3 -3
- package/dist/{money-WR6-v2Bl.js → money-BM-DK9iD.js} +1 -1
- package/dist/{number-CjEejmUn.js → number-BclgE86R.js} +1 -1
- package/dist/{objectid-BvtNS241.js → objectid-C2XvpEgx.js} +12 -12
- package/dist/onboarding-BLuoXyCY.js +131 -0
- package/dist/onboardingSetup-BLmLAgIV.js +17 -0
- package/dist/{plugins-BLcKp-ww.js → plugins-3_mD58dh.js} +3 -3
- package/dist/{reward-DCNR2-_F.js → reward-Bo4szVCU.js} +1 -1
- package/dist/{rule-BsdMlDuH.js → rule-Bwy5-zD7.js} +3 -3
- package/dist/{rule-builder-C2z6Ki1X.js → rule-builder-Co_1uuj4.js} +1 -1
- package/dist/{template-DuuTNfO4.js → template-fImyGLa7.js} +7 -7
- package/dist/{timezone-nMBfnPp_.js → timezone-DQ7TNXmV.js} +1 -1
- package/dist/{transaction.fn-CYC2Uh5Y.js → transaction.fn-OT7ucfCB.js} +2 -2
- package/dist/{trigger-CtlvsU7_.js → trigger-BJKHGcNG.js} +14 -14
- package/dist/{useMarketingMaterialActions-Dec-VZh7.js → useMarketingMaterialActions-BX3C1Gga.js} +3 -3
- package/dist/{usePagination-DvJ9IfI_.js → usePagination-Qp0qoWBj.js} +1 -1
- package/dist/{user-CYOAXuDw.js → user-BcE3fiEa.js} +1 -1
- package/dist/{vue-i18n-Cy0bIZpQ.js → vue-i18n-BQmB8Ex1.js} +99 -99
- package/dist/{xlsx-Ct_b6gSU.js → xlsx-DYZ421PG.js} +584 -584
- package/dist/{zod-DZR76_dr.js → zod-DestzeIp.js} +1 -1
- package/package.json +1 -1
- package/dist/Card-D5sknDf_.js +0 -910
- package/dist/Store-B8WVn8ZA.js +0 -1997
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CmqgxDJ6.js +0 -1008
- package/dist/Transaction-YJkVkePM.js +0 -39
- package/dist/Voucher-BcCzreI3.js +0 -443
- package/dist/export-CN3lbc2j.js +0 -97
|
@@ -0,0 +1,738 @@
|
|
|
1
|
+
import { z as e, F as t, b as y, m as p, d as K } from "./index-DvW-3flw.js";
|
|
2
|
+
import { F as h } from "./campaign.enum-liUaxkcy.js";
|
|
3
|
+
import { d as F, F as D, e as d, f as V, g as f, h as c, i as J, c as Y } from "./index-BqKrePY8.js";
|
|
4
|
+
import { A as M, B as A, C as q, E as Z } from "./index-B6x6s8mu.js";
|
|
5
|
+
import { c as u } from "./index-Culx-Z9v.js";
|
|
6
|
+
e.object({
|
|
7
|
+
location: t,
|
|
8
|
+
memberId: t,
|
|
9
|
+
nettTotal: y,
|
|
10
|
+
remark: e.string().optional()
|
|
11
|
+
});
|
|
12
|
+
const $ = e.enum(["COUNTER", "POS"]);
|
|
13
|
+
e.object({
|
|
14
|
+
id: e.string(),
|
|
15
|
+
userId: e.string(),
|
|
16
|
+
name: e.string().nullish(),
|
|
17
|
+
birthday: e.string().nullish(),
|
|
18
|
+
phoneNumber: e.string().nullish(),
|
|
19
|
+
balance: e.number().nullish(),
|
|
20
|
+
level: e.number().nullish(),
|
|
21
|
+
mostPurchasedItems: e.array(e.string()).nullish()
|
|
22
|
+
});
|
|
23
|
+
const X = {
|
|
24
|
+
collectionName: "Bills"
|
|
25
|
+
}, Q = e.object({
|
|
26
|
+
_id: e.string(),
|
|
27
|
+
items: e.record(e.string(), e.number()).nullish(),
|
|
28
|
+
// business: z.string(),
|
|
29
|
+
// adjustments: z.record(FdoBillAdjustment),
|
|
30
|
+
// refundedFrom: z.string().nullish(),
|
|
31
|
+
user: e.string().nullish(),
|
|
32
|
+
memberid: e.string().nullish(),
|
|
33
|
+
// roundToNearest: z.number().nullish(),
|
|
34
|
+
nettTotal: y,
|
|
35
|
+
adjustedTotal: y.optional(),
|
|
36
|
+
// activeItems: z.array(z.string()),
|
|
37
|
+
remark: e.string().nullish(),
|
|
38
|
+
createdAt: e.coerce.date(),
|
|
39
|
+
completedAt: e.coerce.date(),
|
|
40
|
+
location: e.string(),
|
|
41
|
+
channel: $.optional()
|
|
42
|
+
}).transform((a) => ({
|
|
43
|
+
...a,
|
|
44
|
+
createdTime: a.createdAt,
|
|
45
|
+
completedTime: a.completedAt,
|
|
46
|
+
get amount() {
|
|
47
|
+
return a.nettTotal.amount / 10 ** a.nettTotal.precision;
|
|
48
|
+
},
|
|
49
|
+
get adjustmentAmount() {
|
|
50
|
+
return a.adjustedTotal ? a.adjustedTotal.amount / 10 ** a.adjustedTotal.precision : void 0;
|
|
51
|
+
}
|
|
52
|
+
})).describe(p.describe(X)), ee = e.object({
|
|
53
|
+
_id: e.string(),
|
|
54
|
+
rating: e.coerce.number(),
|
|
55
|
+
user: e.string().optional(),
|
|
56
|
+
restaurant: e.string(),
|
|
57
|
+
message: e.string(),
|
|
58
|
+
submittedAt: e.coerce.date()
|
|
59
|
+
}), o = e.enum([
|
|
60
|
+
"SIMPLE_CLAIM",
|
|
61
|
+
"LINK_CLAIM",
|
|
62
|
+
"BILL_COMPLETED",
|
|
63
|
+
"SCHEDULE",
|
|
64
|
+
"BIRTHDAY",
|
|
65
|
+
"FEEDBACK",
|
|
66
|
+
"ENTER_SEGMENT",
|
|
67
|
+
"MEMBERSHIP_JOINED",
|
|
68
|
+
"TIER_UPGRADED",
|
|
69
|
+
"MAKING_ORDER",
|
|
70
|
+
"ISSUE_REWARD",
|
|
71
|
+
"MEMBER_REWARD",
|
|
72
|
+
"GAME_COMPLETED",
|
|
73
|
+
"PAGINATE_SCHEDULE",
|
|
74
|
+
"REFERRAL_ADDED",
|
|
75
|
+
"MEMBER_IMPORTED",
|
|
76
|
+
"SEGMENTATION_IMPORTED"
|
|
77
|
+
]), we = o.extract([
|
|
78
|
+
"BILL_COMPLETED",
|
|
79
|
+
"FEEDBACK",
|
|
80
|
+
"GAME_COMPLETED",
|
|
81
|
+
"MAKING_ORDER",
|
|
82
|
+
"MEMBERSHIP_JOINED",
|
|
83
|
+
"SCHEDULE",
|
|
84
|
+
"SIMPLE_CLAIM",
|
|
85
|
+
"TIER_UPGRADED",
|
|
86
|
+
"ISSUE_REWARD"
|
|
87
|
+
]);
|
|
88
|
+
e.enum(["START_OF", "BEFORE"]);
|
|
89
|
+
e.enum(["WEEK", "MONTH"]);
|
|
90
|
+
const te = e.enum([
|
|
91
|
+
"WAITING",
|
|
92
|
+
"ACTIVE",
|
|
93
|
+
"COMPLETED",
|
|
94
|
+
"FAILED"
|
|
95
|
+
]), i = e.object({
|
|
96
|
+
// type: F_EVENT_TYPE,
|
|
97
|
+
rule: F.optional()
|
|
98
|
+
}), ne = i.extend({
|
|
99
|
+
type: e.literal(o.enum.BILL_COMPLETED)
|
|
100
|
+
}), oe = i.extend({
|
|
101
|
+
type: e.literal(o.enum.FEEDBACK)
|
|
102
|
+
}), ie = i.extend({
|
|
103
|
+
type: e.literal(o.enum.SIMPLE_CLAIM)
|
|
104
|
+
});
|
|
105
|
+
i.extend({
|
|
106
|
+
type: e.literal(o.enum.ENTER_SEGMENT),
|
|
107
|
+
segment: e.string()
|
|
108
|
+
});
|
|
109
|
+
const ae = i.extend({
|
|
110
|
+
type: e.literal(o.enum.MEMBER_REWARD)
|
|
111
|
+
}), le = i.extend({
|
|
112
|
+
type: e.literal(o.enum.SCHEDULE)
|
|
113
|
+
// option: FdoCronRule,
|
|
114
|
+
}), se = i.extend({
|
|
115
|
+
type: e.literal(o.enum.MEMBERSHIP_JOINED)
|
|
116
|
+
}), re = i.extend({
|
|
117
|
+
type: e.literal(o.enum.TIER_UPGRADED)
|
|
118
|
+
}), de = i.extend({
|
|
119
|
+
type: e.literal(o.enum.MAKING_ORDER)
|
|
120
|
+
}), ce = i.extend({
|
|
121
|
+
type: e.literal(o.enum.ISSUE_REWARD)
|
|
122
|
+
}), me = i.extend({
|
|
123
|
+
type: e.literal(o.enum.GAME_COMPLETED)
|
|
124
|
+
});
|
|
125
|
+
i.extend({
|
|
126
|
+
type: e.literal(o.enum.REFERRAL_ADDED)
|
|
127
|
+
});
|
|
128
|
+
i.extend({
|
|
129
|
+
type: e.literal(o.enum.MEMBER_IMPORTED)
|
|
130
|
+
});
|
|
131
|
+
const ue = e.discriminatedUnion("type", [
|
|
132
|
+
ie,
|
|
133
|
+
ne,
|
|
134
|
+
le,
|
|
135
|
+
oe,
|
|
136
|
+
se,
|
|
137
|
+
re,
|
|
138
|
+
de,
|
|
139
|
+
ce,
|
|
140
|
+
ae,
|
|
141
|
+
me
|
|
142
|
+
]);
|
|
143
|
+
e.object({
|
|
144
|
+
_id: t,
|
|
145
|
+
type: o,
|
|
146
|
+
ref: e.string(),
|
|
147
|
+
status: te.optional(),
|
|
148
|
+
context: e.record(e.string(), e.any()).optional(),
|
|
149
|
+
failedReason: e.any().optional()
|
|
150
|
+
}).describe(JSON.stringify({ collectionName: "EventLogs" }));
|
|
151
|
+
const l = e.object({
|
|
152
|
+
type: o,
|
|
153
|
+
context: e.any(),
|
|
154
|
+
businessIds: e.array(t).optional(),
|
|
155
|
+
campaignIds: e.array(t).optional(),
|
|
156
|
+
slackWebhookUrl: e.string().optional(),
|
|
157
|
+
emittedAt: e.coerce.date().default(/* @__PURE__ */ new Date())
|
|
158
|
+
}), Ee = l.extend({
|
|
159
|
+
type: e.literal(o.enum.BILL_COMPLETED),
|
|
160
|
+
context: e.object({
|
|
161
|
+
bill: Q,
|
|
162
|
+
rawBill: e.any()
|
|
163
|
+
})
|
|
164
|
+
}), pe = l.extend({
|
|
165
|
+
type: e.literal(o.enum.SCHEDULE),
|
|
166
|
+
context: e.object({
|
|
167
|
+
triggeredAt: e.coerce.date()
|
|
168
|
+
})
|
|
169
|
+
}), ge = l.extend({
|
|
170
|
+
type: e.literal(o.enum.PAGINATE_SCHEDULE),
|
|
171
|
+
context: e.object({
|
|
172
|
+
triggeredAt: e.coerce.date(),
|
|
173
|
+
business: t,
|
|
174
|
+
skip: e.coerce.number(),
|
|
175
|
+
limit: e.coerce.number()
|
|
176
|
+
})
|
|
177
|
+
}), be = l.extend({
|
|
178
|
+
type: e.literal(o.enum.FEEDBACK),
|
|
179
|
+
context: e.object({
|
|
180
|
+
feedback: ee
|
|
181
|
+
})
|
|
182
|
+
}), ye = l.extend({
|
|
183
|
+
type: e.literal(o.enum.MEMBERSHIP_JOINED),
|
|
184
|
+
context: e.object({
|
|
185
|
+
user: M
|
|
186
|
+
})
|
|
187
|
+
}), Ce = l.extend({
|
|
188
|
+
type: e.literal(o.enum.TIER_UPGRADED),
|
|
189
|
+
context: e.object({
|
|
190
|
+
transaction: A
|
|
191
|
+
})
|
|
192
|
+
}), Re = l.extend({
|
|
193
|
+
type: e.literal(o.enum.ISSUE_REWARD),
|
|
194
|
+
context: e.object({
|
|
195
|
+
transaction: A,
|
|
196
|
+
collection: q
|
|
197
|
+
})
|
|
198
|
+
}), _e = l.extend({
|
|
199
|
+
type: e.literal(o.enum.REFERRAL_ADDED),
|
|
200
|
+
context: e.object({
|
|
201
|
+
user: M
|
|
202
|
+
})
|
|
203
|
+
}), T = e.object({
|
|
204
|
+
ref: t,
|
|
205
|
+
originalName: e.string(),
|
|
206
|
+
mimeType: e.string(),
|
|
207
|
+
size: e.number(),
|
|
208
|
+
fbFilePath: e.string(),
|
|
209
|
+
isFbFileDeleted: e.boolean().nullish()
|
|
210
|
+
}), Ie = e.object({
|
|
211
|
+
resetCollectionExpiryBalance: e.boolean().nullish()
|
|
212
|
+
}), he = l.extend({
|
|
213
|
+
type: e.literal(o.enum.MEMBER_IMPORTED),
|
|
214
|
+
context: e.object({
|
|
215
|
+
business: e.string(),
|
|
216
|
+
file: T,
|
|
217
|
+
config: Ie.optional()
|
|
218
|
+
})
|
|
219
|
+
}), Fe = l.extend({
|
|
220
|
+
type: e.literal(o.enum.SEGMENTATION_IMPORTED),
|
|
221
|
+
context: e.object({
|
|
222
|
+
business: e.string(),
|
|
223
|
+
segment: e.string(),
|
|
224
|
+
file: T
|
|
225
|
+
})
|
|
226
|
+
});
|
|
227
|
+
e.discriminatedUnion("type", [
|
|
228
|
+
Ee,
|
|
229
|
+
pe,
|
|
230
|
+
be,
|
|
231
|
+
ye,
|
|
232
|
+
Ce,
|
|
233
|
+
Re,
|
|
234
|
+
ge,
|
|
235
|
+
_e,
|
|
236
|
+
he,
|
|
237
|
+
Fe
|
|
238
|
+
]);
|
|
239
|
+
const De = {
|
|
240
|
+
collectionName: "Locations",
|
|
241
|
+
transform: {
|
|
242
|
+
_id: "oid",
|
|
243
|
+
business: "oid"
|
|
244
|
+
}
|
|
245
|
+
}, O = e.object({
|
|
246
|
+
_id: t,
|
|
247
|
+
business: t,
|
|
248
|
+
name: e.string(),
|
|
249
|
+
code: e.string().nullish(),
|
|
250
|
+
otp: e.string().nullish(),
|
|
251
|
+
otpExpiredAt: e.coerce.date().nullish(),
|
|
252
|
+
apiToken: e.string().nullish()
|
|
253
|
+
}).describe(p.describe(De));
|
|
254
|
+
e.object({
|
|
255
|
+
_id: t,
|
|
256
|
+
name: e.string(),
|
|
257
|
+
location: t,
|
|
258
|
+
os: e.string(),
|
|
259
|
+
apiToken: e.string().nullish()
|
|
260
|
+
}).describe(
|
|
261
|
+
p.describe({
|
|
262
|
+
collectionName: "LocationDevices",
|
|
263
|
+
transform: {
|
|
264
|
+
_id: "oid",
|
|
265
|
+
location: "oid"
|
|
266
|
+
}
|
|
267
|
+
})
|
|
268
|
+
);
|
|
269
|
+
e.object({
|
|
270
|
+
_id: e.string(),
|
|
271
|
+
name: e.string()
|
|
272
|
+
});
|
|
273
|
+
const C = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), R = e.number().min(0, "Weight need to be at least 0"), _ = e.number().int("Must be integer").min(0, "Threshold need to be at least 0"), L = e.object({
|
|
274
|
+
type: e.literal(C.enum.NO_REWARD),
|
|
275
|
+
collectible: e.null(),
|
|
276
|
+
weight: R
|
|
277
|
+
}), P = e.object({
|
|
278
|
+
type: e.literal(C.enum.VOUCHER),
|
|
279
|
+
collectible: t,
|
|
280
|
+
collectibleConfig: e.lazy(() => D._def.right.options[0]),
|
|
281
|
+
earningOption: e.lazy(() => d)
|
|
282
|
+
}), b = e.object({
|
|
283
|
+
type: e.literal(C.enum.LOYALTY),
|
|
284
|
+
collectible: t,
|
|
285
|
+
earningOption: e.lazy(() => d),
|
|
286
|
+
validityOption: e.lazy(() => V)
|
|
287
|
+
}), x = P.extend({
|
|
288
|
+
weight: R
|
|
289
|
+
}), S = b.extend({
|
|
290
|
+
weight: e.number().min(0, "Weight need to be at least 0")
|
|
291
|
+
}), ve = b.extend({
|
|
292
|
+
validityOption: f,
|
|
293
|
+
weight: R
|
|
294
|
+
}), fe = e.discriminatedUnion("type", [
|
|
295
|
+
x,
|
|
296
|
+
S,
|
|
297
|
+
L
|
|
298
|
+
]), I = e.discriminatedUnion("type", [
|
|
299
|
+
x.extend({
|
|
300
|
+
collectible: t.nullish(),
|
|
301
|
+
business: t.nullish()
|
|
302
|
+
}),
|
|
303
|
+
S.extend({
|
|
304
|
+
collectible: t.nullish(),
|
|
305
|
+
business: t.nullish()
|
|
306
|
+
}),
|
|
307
|
+
L
|
|
308
|
+
]), N = P.extend({
|
|
309
|
+
threshold: _
|
|
310
|
+
}), B = b.extend({
|
|
311
|
+
threshold: _
|
|
312
|
+
}), ze = b.extend({
|
|
313
|
+
validityOption: f,
|
|
314
|
+
threshold: _
|
|
315
|
+
}), j = e.discriminatedUnion("type", [
|
|
316
|
+
N,
|
|
317
|
+
B
|
|
318
|
+
]), Me = e.discriminatedUnion("type", [
|
|
319
|
+
N.extend({
|
|
320
|
+
collectible: t.nullish(),
|
|
321
|
+
business: t.nullish()
|
|
322
|
+
}),
|
|
323
|
+
B.extend({
|
|
324
|
+
collectible: t.nullish(),
|
|
325
|
+
collectibleConfig: D.nullish(),
|
|
326
|
+
business: t.nullish()
|
|
327
|
+
})
|
|
328
|
+
]), Ae = e.enum(["PROGRESSIVE", "STAMP"]), Te = e.object({
|
|
329
|
+
type: Ae,
|
|
330
|
+
end: e.number().int().min(0, "Threshold need to be at least 1"),
|
|
331
|
+
rewards: e.array(e.lazy(() => j)).nullish()
|
|
332
|
+
}).superRefine((a, m) => {
|
|
333
|
+
a.type == "STAMP" && a.end > 40 && (m.addIssue({
|
|
334
|
+
code: "custom",
|
|
335
|
+
path: [],
|
|
336
|
+
message: "Stamp mission can have at most 40 threshold"
|
|
337
|
+
}), m.addIssue({
|
|
338
|
+
code: "custom",
|
|
339
|
+
path: ["end"],
|
|
340
|
+
message: "Stamp mission can have at most 40 threshold"
|
|
341
|
+
}));
|
|
342
|
+
}), Oe = {
|
|
343
|
+
collectionName: "Groups",
|
|
344
|
+
transform: {
|
|
345
|
+
_id: "oid",
|
|
346
|
+
business: "oid"
|
|
347
|
+
},
|
|
348
|
+
lookups: {
|
|
349
|
+
business: {
|
|
350
|
+
fromCollection: "Businesses",
|
|
351
|
+
as: "pf_business"
|
|
352
|
+
},
|
|
353
|
+
pf_campaigns: {
|
|
354
|
+
fromCollection: "Campaigns",
|
|
355
|
+
as: "pf_campaigns",
|
|
356
|
+
localField: "_id",
|
|
357
|
+
foreignField: "group"
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}, He = e.object({
|
|
361
|
+
_id: t,
|
|
362
|
+
name: e.string().min(1).max(300),
|
|
363
|
+
business: t,
|
|
364
|
+
pf_campaigns: e.array(e.any()).optional()
|
|
365
|
+
}).describe(p.describe(Oe)), Le = e.object({
|
|
366
|
+
from: e.string().email().nullish(),
|
|
367
|
+
name: e.string().min(1).max(50).nullish()
|
|
368
|
+
}), Pe = e.object({
|
|
369
|
+
_id: e.string(),
|
|
370
|
+
url: e.string(),
|
|
371
|
+
targetLocation: e.array(t).nullish(),
|
|
372
|
+
// null/empty = all locations
|
|
373
|
+
order: e.number().optional()
|
|
374
|
+
}), U = e.object({
|
|
375
|
+
type: e.literal(h.enum.MEMBERSHIP),
|
|
376
|
+
business: t,
|
|
377
|
+
name: e.string().min(1).max(50),
|
|
378
|
+
image: e.string().nullish(),
|
|
379
|
+
url: e.string().nullish(),
|
|
380
|
+
tiers: e.array(e.lazy(() => Z)),
|
|
381
|
+
titles: e.array(t),
|
|
382
|
+
tierCycleEnable: e.boolean().optional(),
|
|
383
|
+
tierCycle: e.lazy(() => F).nullish(),
|
|
384
|
+
welcomeMessage: u.optional(),
|
|
385
|
+
advertisements: e.union([e.array(e.string()), e.array(Pe)]).optional(),
|
|
386
|
+
cardEnable: e.boolean().optional(),
|
|
387
|
+
design: e.array(
|
|
388
|
+
e.object({
|
|
389
|
+
_id: t,
|
|
390
|
+
image: e.string()
|
|
391
|
+
})
|
|
392
|
+
).optional(),
|
|
393
|
+
targetLocation: e.array(t).nullish(),
|
|
394
|
+
brand: e.string().nullish(),
|
|
395
|
+
email: Le.nullish(),
|
|
396
|
+
freeCreditAsDiscount: e.boolean().optional(),
|
|
397
|
+
pf_title: e.array(e.lazy(() => c)).optional(),
|
|
398
|
+
pf_targetLocation: e.array(e.lazy(() => O)).optional(),
|
|
399
|
+
allowedPhoneCountries: e.union([
|
|
400
|
+
e.array(e.string().regex(/^\+\d{1,4}$/)),
|
|
401
|
+
e.null()
|
|
402
|
+
]).optional(),
|
|
403
|
+
// new structure
|
|
404
|
+
group: e.string().nullish(),
|
|
405
|
+
templateId: t.nullish()
|
|
406
|
+
}), n = h.exclude(["MEMBERSHIP"]), s = e.object({
|
|
407
|
+
_id: t.nullish(),
|
|
408
|
+
type: n,
|
|
409
|
+
// common information
|
|
410
|
+
business: t,
|
|
411
|
+
name: e.string().min(1).max(50),
|
|
412
|
+
image: e.string().nullish(),
|
|
413
|
+
description: e.string().max(500).nullish(),
|
|
414
|
+
timeframeOptions: J.superRefine((a, m) => {
|
|
415
|
+
a.start && a.end && a.end < a.start && m.addIssue({
|
|
416
|
+
code: "custom",
|
|
417
|
+
path: [],
|
|
418
|
+
params: {
|
|
419
|
+
i18n: "connectZodCustom:timeframe.end_before_start"
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
}).nullish(),
|
|
423
|
+
targetLocation: e.array(t).nullish(),
|
|
424
|
+
event: ue,
|
|
425
|
+
config: Y.nullish(),
|
|
426
|
+
currentReceive: e.coerce.number().optional(),
|
|
427
|
+
// new group structure
|
|
428
|
+
group: t.nullish(),
|
|
429
|
+
templateId: t.nullish(),
|
|
430
|
+
pf_targetLocation: e.array(e.lazy(() => O)).optional(),
|
|
431
|
+
deletedAt: e.coerce.date().optional()
|
|
432
|
+
}), r = {
|
|
433
|
+
[n.enum.VOUCHER]: [
|
|
434
|
+
"BILL_COMPLETED",
|
|
435
|
+
"FEEDBACK",
|
|
436
|
+
"MEMBERSHIP_JOINED",
|
|
437
|
+
"TIER_UPGRADED",
|
|
438
|
+
"SCHEDULE",
|
|
439
|
+
"SIMPLE_CLAIM"
|
|
440
|
+
],
|
|
441
|
+
[n.enum.PROMOTION]: ["MAKING_ORDER"],
|
|
442
|
+
[n.enum.POINT]: [
|
|
443
|
+
"BILL_COMPLETED",
|
|
444
|
+
"FEEDBACK",
|
|
445
|
+
"MEMBERSHIP_JOINED",
|
|
446
|
+
"TIER_UPGRADED",
|
|
447
|
+
"SCHEDULE"
|
|
448
|
+
],
|
|
449
|
+
[n.enum.CREDIT]: [
|
|
450
|
+
"BILL_COMPLETED",
|
|
451
|
+
"FEEDBACK",
|
|
452
|
+
"MEMBERSHIP_JOINED",
|
|
453
|
+
"TIER_UPGRADED",
|
|
454
|
+
"SCHEDULE"
|
|
455
|
+
],
|
|
456
|
+
[n.enum.BROADCAST]: [
|
|
457
|
+
"SCHEDULE",
|
|
458
|
+
"ISSUE_REWARD",
|
|
459
|
+
"FEEDBACK"
|
|
460
|
+
],
|
|
461
|
+
[n.enum.COIN]: [
|
|
462
|
+
"BILL_COMPLETED",
|
|
463
|
+
"FEEDBACK",
|
|
464
|
+
"MEMBERSHIP_JOINED",
|
|
465
|
+
"TIER_UPGRADED",
|
|
466
|
+
"SCHEDULE"
|
|
467
|
+
],
|
|
468
|
+
[n.enum.REWARD_POOL]: ["GAME_COMPLETED"],
|
|
469
|
+
[n.enum.GAME]: [
|
|
470
|
+
"BILL_COMPLETED",
|
|
471
|
+
"FEEDBACK",
|
|
472
|
+
"MEMBERSHIP_JOINED",
|
|
473
|
+
"TIER_UPGRADED",
|
|
474
|
+
"SCHEDULE",
|
|
475
|
+
"SIMPLE_CLAIM"
|
|
476
|
+
],
|
|
477
|
+
[n.enum.MISSION]: [
|
|
478
|
+
"BILL_COMPLETED",
|
|
479
|
+
"FEEDBACK",
|
|
480
|
+
"SCHEDULE"
|
|
481
|
+
]
|
|
482
|
+
}, G = s.extend({
|
|
483
|
+
type: e.literal(n.enum.VOUCHER),
|
|
484
|
+
// event
|
|
485
|
+
code: e.string().min(0).max(15).regex(/^[A-Za-z0-9\-_.@]*$/, {
|
|
486
|
+
message: "Code can only contain letters, numbers, and - _ . @"
|
|
487
|
+
}).optional(),
|
|
488
|
+
event: i.merge(
|
|
489
|
+
e.object({
|
|
490
|
+
type: e.enum(r[n.enum.VOUCHER])
|
|
491
|
+
})
|
|
492
|
+
),
|
|
493
|
+
earningOption: d.default({
|
|
494
|
+
amount: 1,
|
|
495
|
+
type: "FIXED"
|
|
496
|
+
}),
|
|
497
|
+
collectible: t,
|
|
498
|
+
hideInApp: e.boolean().optional(),
|
|
499
|
+
notify: e.boolean().optional(),
|
|
500
|
+
notifyMessage: e.lazy(() => u).optional(),
|
|
501
|
+
notifyCampaign: t.nullish(),
|
|
502
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
503
|
+
pf_notifyCampaign: e.lazy(() => E).optional()
|
|
504
|
+
}), xe = e.object({
|
|
505
|
+
gameType: e.string()
|
|
506
|
+
}), w = s.extend({
|
|
507
|
+
type: e.literal(n.enum.PROMOTION),
|
|
508
|
+
// event
|
|
509
|
+
event: i.merge(
|
|
510
|
+
e.object({
|
|
511
|
+
type: e.enum(r[n.enum.PROMOTION])
|
|
512
|
+
})
|
|
513
|
+
),
|
|
514
|
+
effect: e.custom().superRefine((a, m) => {
|
|
515
|
+
a || m.addIssue({
|
|
516
|
+
code: "custom",
|
|
517
|
+
path: [],
|
|
518
|
+
params: {
|
|
519
|
+
i18n: "connectZodCustom:campaign.effect_required"
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
}),
|
|
523
|
+
gameConfig: xe.nullish()
|
|
524
|
+
}), v = s.extend({
|
|
525
|
+
type: e.literal(n.enum.POINT),
|
|
526
|
+
// event
|
|
527
|
+
event: i.merge(
|
|
528
|
+
e.object({
|
|
529
|
+
type: e.enum(r[n.enum.POINT])
|
|
530
|
+
})
|
|
531
|
+
),
|
|
532
|
+
earningOption: d,
|
|
533
|
+
collectible: t,
|
|
534
|
+
notify: e.boolean().optional(),
|
|
535
|
+
notifyMessage: e.lazy(() => u).optional(),
|
|
536
|
+
notifyCampaign: t.nullish(),
|
|
537
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
538
|
+
pf_notifyCampaign: e.lazy(() => E).optional()
|
|
539
|
+
}), z = s.extend({
|
|
540
|
+
type: e.literal(n.enum.CREDIT),
|
|
541
|
+
// event
|
|
542
|
+
event: i.merge(
|
|
543
|
+
e.object({
|
|
544
|
+
type: e.enum(r[n.enum.CREDIT])
|
|
545
|
+
})
|
|
546
|
+
),
|
|
547
|
+
earningOption: d,
|
|
548
|
+
collectible: t,
|
|
549
|
+
notify: e.boolean().optional(),
|
|
550
|
+
notifyMessage: e.lazy(() => u).optional(),
|
|
551
|
+
notifyCampaign: t.nullish(),
|
|
552
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
553
|
+
pf_notifyCampaign: e.lazy(() => E).optional()
|
|
554
|
+
}), E = s.extend({
|
|
555
|
+
type: e.literal(n.enum.BROADCAST),
|
|
556
|
+
// event
|
|
557
|
+
event: i.merge(
|
|
558
|
+
e.object({
|
|
559
|
+
type: e.enum(r[n.enum.BROADCAST])
|
|
560
|
+
})
|
|
561
|
+
),
|
|
562
|
+
message: u,
|
|
563
|
+
linkedCampaign: t.nullish()
|
|
564
|
+
}), H = s.extend({
|
|
565
|
+
type: e.literal(n.enum.COIN),
|
|
566
|
+
// event
|
|
567
|
+
event: i.merge(
|
|
568
|
+
e.object({
|
|
569
|
+
type: e.enum(r[n.enum.COIN])
|
|
570
|
+
})
|
|
571
|
+
),
|
|
572
|
+
earningOption: d,
|
|
573
|
+
collectible: t,
|
|
574
|
+
notify: e.boolean().optional(),
|
|
575
|
+
notifyMessage: e.lazy(() => u).optional(),
|
|
576
|
+
notifyCampaign: t.nullish(),
|
|
577
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
578
|
+
pf_notifyCampaign: e.lazy(() => E).optional()
|
|
579
|
+
}), g = s.extend({
|
|
580
|
+
type: e.literal(n.enum.REWARD_POOL),
|
|
581
|
+
// event
|
|
582
|
+
event: i.merge(
|
|
583
|
+
e.object({
|
|
584
|
+
type: e.enum(r[n.enum.REWARD_POOL])
|
|
585
|
+
})
|
|
586
|
+
),
|
|
587
|
+
rewards: e.array(e.lazy(() => fe)).min(1, "Requires at least 1 reward")
|
|
588
|
+
}), W = s.extend({
|
|
589
|
+
type: e.literal(n.enum.GAME),
|
|
590
|
+
// event
|
|
591
|
+
event: i.merge(
|
|
592
|
+
e.object({
|
|
593
|
+
type: e.enum(r[n.enum.GAME])
|
|
594
|
+
})
|
|
595
|
+
),
|
|
596
|
+
earningOption: d,
|
|
597
|
+
collectible: t,
|
|
598
|
+
game: e.lazy(() => g).optional(),
|
|
599
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
600
|
+
rewardPool: t.optional()
|
|
601
|
+
}), k = s.extend({
|
|
602
|
+
type: e.literal(n.enum.MISSION),
|
|
603
|
+
event: i.merge(
|
|
604
|
+
e.object({
|
|
605
|
+
type: e.enum(r[n.enum.MISSION])
|
|
606
|
+
})
|
|
607
|
+
),
|
|
608
|
+
earningOption: d,
|
|
609
|
+
collectible: t,
|
|
610
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
611
|
+
mission: e.lazy(() => Te),
|
|
612
|
+
rewards: e.array(e.lazy(() => j)).min(1, "Requires at least 1 reward")
|
|
613
|
+
}), Se = {
|
|
614
|
+
collectionName: "Campaigns",
|
|
615
|
+
transform: {
|
|
616
|
+
_id: "oid",
|
|
617
|
+
business: "oid",
|
|
618
|
+
collectible: "oid",
|
|
619
|
+
templateId: "oid",
|
|
620
|
+
group: "oid",
|
|
621
|
+
notifyCampaign: "oid",
|
|
622
|
+
linkedCampaign: "oid",
|
|
623
|
+
rewardPool: "oid"
|
|
624
|
+
},
|
|
625
|
+
lookups: {
|
|
626
|
+
business: {
|
|
627
|
+
fromCollection: "Businesses",
|
|
628
|
+
as: "pf_business"
|
|
629
|
+
},
|
|
630
|
+
targetLocation: {
|
|
631
|
+
fromCollection: "Locations",
|
|
632
|
+
as: "pf_targetLocation"
|
|
633
|
+
},
|
|
634
|
+
collectible: {
|
|
635
|
+
fromCollection: "CollectibleConfigs",
|
|
636
|
+
as: "pf_collectible"
|
|
637
|
+
},
|
|
638
|
+
titles: {
|
|
639
|
+
fromCollection: "CollectibleConfigs",
|
|
640
|
+
as: "pf_title"
|
|
641
|
+
},
|
|
642
|
+
templateId: {
|
|
643
|
+
fromCollection: "Templates",
|
|
644
|
+
as: "template"
|
|
645
|
+
},
|
|
646
|
+
notifyCampaign: {
|
|
647
|
+
fromCollection: "Campaigns",
|
|
648
|
+
as: "pf_notifyCampaign"
|
|
649
|
+
},
|
|
650
|
+
rewardPool: {
|
|
651
|
+
fromCollection: "Campaigns",
|
|
652
|
+
as: "game"
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}, We = e.object({ _id: t }).and(
|
|
656
|
+
e.discriminatedUnion("type", [
|
|
657
|
+
U,
|
|
658
|
+
G,
|
|
659
|
+
w,
|
|
660
|
+
v,
|
|
661
|
+
z,
|
|
662
|
+
E,
|
|
663
|
+
H,
|
|
664
|
+
g,
|
|
665
|
+
W,
|
|
666
|
+
k
|
|
667
|
+
])
|
|
668
|
+
).describe(p.describe(Se)), ke = e.discriminatedUnion("type", [
|
|
669
|
+
G.extend({
|
|
670
|
+
business: t.nullish()
|
|
671
|
+
}),
|
|
672
|
+
w.extend({
|
|
673
|
+
business: t.nullish()
|
|
674
|
+
}),
|
|
675
|
+
v.extend({
|
|
676
|
+
business: t.nullish()
|
|
677
|
+
}),
|
|
678
|
+
z.extend({
|
|
679
|
+
business: t.nullish()
|
|
680
|
+
}),
|
|
681
|
+
E.extend({
|
|
682
|
+
business: t.nullish()
|
|
683
|
+
}),
|
|
684
|
+
H.extend({
|
|
685
|
+
business: t.nullish()
|
|
686
|
+
}),
|
|
687
|
+
g.extend({
|
|
688
|
+
rewards: e.array(e.lazy(() => I)).min(1, "Requires at least 1 reward")
|
|
689
|
+
}),
|
|
690
|
+
W.extend({
|
|
691
|
+
business: t.nullish(),
|
|
692
|
+
game: g.extend({
|
|
693
|
+
business: t.nullish(),
|
|
694
|
+
rewards: e.array(e.lazy(() => I)).min(1, "Requires at least 1 reward")
|
|
695
|
+
})
|
|
696
|
+
}),
|
|
697
|
+
k.extend({
|
|
698
|
+
business: t.nullish(),
|
|
699
|
+
rewards: e.array(e.lazy(() => Me)).min(1, "Requires at least 1 reward")
|
|
700
|
+
})
|
|
701
|
+
]);
|
|
702
|
+
U.pick({
|
|
703
|
+
business: !0,
|
|
704
|
+
name: !0,
|
|
705
|
+
image: !0,
|
|
706
|
+
// url: true,
|
|
707
|
+
tiers: !0,
|
|
708
|
+
// titles: true,
|
|
709
|
+
cardEnable: !0,
|
|
710
|
+
design: !0,
|
|
711
|
+
targetLocation: !0,
|
|
712
|
+
brand: !0,
|
|
713
|
+
email: !0,
|
|
714
|
+
freeCreditAsDiscount: !0,
|
|
715
|
+
allowedPhoneCountries: !0,
|
|
716
|
+
pf_title: !0,
|
|
717
|
+
pf_targetLocation: !0
|
|
718
|
+
}).extend({
|
|
719
|
+
allowedPhoneCountryDetails: e.array(K).nullish()
|
|
720
|
+
});
|
|
721
|
+
export {
|
|
722
|
+
r as C,
|
|
723
|
+
n as F,
|
|
724
|
+
o as a,
|
|
725
|
+
We as b,
|
|
726
|
+
we as c,
|
|
727
|
+
ue as d,
|
|
728
|
+
He as e,
|
|
729
|
+
ke as f,
|
|
730
|
+
ve as g,
|
|
731
|
+
I as h,
|
|
732
|
+
Ae as i,
|
|
733
|
+
ze as j,
|
|
734
|
+
Me as k,
|
|
735
|
+
Te as l,
|
|
736
|
+
U as m,
|
|
737
|
+
te as n
|
|
738
|
+
};
|