@feedmepos/mf-connect 0.1.38-beta.8 → 0.1.38-beta.80
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/{Analytic-CJap-Cat.js → Analytic-LOK5TzX0.js} +31 -32
- package/dist/{App-CLTtX1QT.js → App-Bk5Z5u5_.js} +617 -607
- package/dist/AuditLogs-Rezf9EeA.js +1991 -0
- package/dist/{Bin-C2xMLxoE.js → Bin-B8yzS5bD.js} +10 -10
- package/dist/Broadcast-CZ0QCvua.js +266 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BCkD7Xfn.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-iJQS2Ck9.js} +6 -6
- package/dist/{Card-BPrCNLQy.js → Card-BQOv5yB9.js} +145 -140
- package/dist/Collections-qenPlCd2.js +540 -0
- package/dist/Credit-BJLskbVu.js +260 -0
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
- package/dist/DateInput.vue_vue_type_script_setup_true_lang-BN4Q5Y3l.js +54 -0
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js → DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DKWCWOU_.js +3120 -0
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-Dw1qQfnG.js +351 -0
- package/dist/Experience-BjfEiGT8.js +259 -0
- package/dist/{FileSaver.min-NlMItPOc.js → FileSaver.min-C013Tr1o.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
- package/dist/FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js +52 -0
- package/dist/Game-Gw_tFjen.js +330 -0
- package/dist/Grab-Bdv7SaB9.js +300 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-Ba4L39GL.js} +49 -48
- package/dist/{Index-DMdNgISh.js → Index-C67U3YDJ.js} +54 -54
- package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-pQ8sF5KW.js +48 -0
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → LottieAnimation.vue_vue_type_script_setup_true_lang-o-eN3J4i.js} +1 -1
- package/dist/{MainLayout-B1aJoR95.js → MainLayout-DPjqCyJ5.js} +1 -1
- package/dist/Marketing-DtEooXof.js +166 -0
- package/dist/MarketingMaterialEdit-Balw055Y.js +1065 -0
- package/dist/{Member-CnSXGQi_.js → Member-QA7TQnyw.js} +38 -37
- package/dist/{MemberList-DcpEKV1D.js → MemberList-CSJQFYlh.js} +486 -491
- package/dist/{MemberTransactions-DeuuEcO5.js → MemberTransactions-D-46vda_.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DLAEPNsq.js → MessageInput.vue_vue_type_script_setup_true_lang-6a7_lw74.js} +13443 -10607
- package/dist/Mission-DJVxFbX5.js +334 -0
- package/dist/{Overview-elpi-jpI.js → Overview-Btkh3oiI.js} +24 -25
- package/dist/Point-CVdF9GtN.js +262 -0
- package/dist/Promotion-BtmlvUd3.js +396 -0
- package/dist/{Queue-GvBhNEFe.js → Queue-BfiCMsLC.js} +23 -24
- package/dist/{Record-CbSxgo8i.js → Record-B07QGPli.js} +10 -10
- package/dist/Review-BeZ90jW9.js +621 -0
- package/dist/ReviewFacebookCallback-CwAcKaib.js +243 -0
- package/dist/ReviewGoogleCallback-CVK6Yc5E.js +213 -0
- package/dist/{Reward-QCGlrq89.js → Reward-CyXqNpAa.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DSRvoo9z.js → RewardGroup.vue_vue_type_script_setup_true_lang-BICsdgSh.js} +13 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BgKGNK7y.js +1912 -0
- package/dist/{Segment-5PndnEUa.js → Segment-B9g57O7g.js} +273 -274
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DXR7bpzY.js → SelectItems.vue_vue_type_script_setup_true_lang-BwDOXE87.js} +23 -23
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmITlNtt.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DXDcJLYF.js} +12 -12
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-CROBk6cD.js +226 -0
- package/dist/Setting-BHteqZv6.js +2039 -0
- package/dist/SettingAdvertisements-CubrbuSL.js +264 -0
- package/dist/Store-u6LYUnmp.js +1996 -0
- package/dist/StoreRewards-D9h0YnEx.js +535 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-vrYqDGOa.js +1129 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-WgNstmNx.js +7007 -0
- package/dist/{Tier-BKKxG29r.js → Tier-CBdi4sPT.js} +561 -480
- package/dist/{Title-CReZgw8V.js → Title-BegmN7hs.js} +151 -149
- package/dist/{Transaction-HWCmSVaJ.js → Transaction-C6XMd9_r.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-D00AchXo.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BBf4BP4m.js} +7 -7
- package/dist/Voucher-D6hSas_z.js +421 -0
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-ZOlAZ_q5.js +421 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DXF39yC1.js → ZodTextField.vue_vue_type_script_setup_true_lang-Bs8TNiCY.js} +2 -2
- package/dist/app-Duwed9mD.js +59309 -0
- package/dist/app.js +1 -1
- package/dist/{business-Bc-EMd2p.js → business-6oZ8Rgui.js} +11 -8
- package/dist/campaign-CzenWLhs.js +219 -0
- package/dist/campaign-PYce7g0o.js +253 -0
- package/dist/campaign.enum-KHniCp5a.js +26 -0
- package/dist/campaign.fn-dOSgHJcU.js +776 -0
- package/dist/{collectible.enum-C4dM8khp.js → collectible.enum-BZA1DKIB.js} +1 -1
- package/dist/{collection.fn-AjDNdFe1.js → collection.fn-CyfrdKBf.js} +2 -2
- package/dist/dto-DYmM2ud_.js +222 -0
- package/dist/duplicateCampaign-BXaDK8Q6.js +51 -0
- package/dist/effect-DBI_JHbP.js +89 -0
- package/dist/{email-addresses-B0SzUCQM.js → email-addresses-BNs-WN79.js} +2 -2
- package/dist/{export-Bgz6WcNZ.js → export-DTCCKE2m.js} +4 -4
- package/dist/{helper-B1vFwohM.js → helper-CeYr7Anh.js} +22 -7
- package/dist/index-38u-cCwD.js +3431 -0
- package/dist/{index-Cm2sBagk.js → index-BdjY7GRO.js} +1 -1
- package/dist/index-CGMiuxyf.js +85 -0
- package/dist/index-CQZbm9P5.js +8912 -0
- package/dist/index-Cal60fAm.js +48 -0
- package/dist/{index-DT2viYsL.js → index-CnRLkzpg.js} +617 -191
- package/dist/index-CuvNtC_M.js +61 -0
- package/dist/{index-CSQY21Zb.js → index-D-kPBF9C.js} +3 -3
- package/dist/{index-DVQnrex_.js → index-DcFYm1fy.js} +3 -3
- package/dist/index-DjONNxbl.js +30289 -0
- package/dist/{index-26SopNpv.js → index-ItaoypTr.js} +1 -1
- package/dist/index-_jxXI4_v.js +28899 -0
- package/dist/{index-DwT9RLst.js → index-nXfjG8UQ.js} +23 -12
- package/dist/{index-BIRmS75g.js → index-pHQfP2e7.js} +1 -1
- package/dist/{index.esm2017-BAIN70_n.js → index.esm2017-CokFPnqn.js} +185 -185
- package/dist/{loading-C6Ouh0mG.js → loading-fZQi5zP8.js} +1 -1
- package/dist/{lodash-B5I3zXaY.js → lodash-R-DIRmbj.js} +1 -1
- package/dist/{membership-DU0BwIj8.js → membership-CApN5ZJ1.js} +3 -3
- package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
- package/dist/{money-Bg7GuE5s.js → money-C6I6vVy2.js} +1 -1
- package/dist/{number-Ddmqo5D_.js → number-Dq4d381U.js} +1 -1
- package/dist/objectid-Kv5GREBk.js +145 -0
- package/dist/{campaign-BeF8kTyg.js → plugins-9_UvAdJ2.js} +784 -777
- package/dist/remy-NLAa-9Qg.js +46 -0
- package/dist/{reward-CN4gvn4c.js → reward-DXHGeGYY.js} +1 -1
- package/dist/{rule-CpiqqR0c.js → rule-B_XgRDr-.js} +505 -487
- package/dist/rule-builder-BMXyzu8k.js +102 -0
- package/dist/style.css +11 -2
- package/dist/template-CnyTUzQU.js +188 -0
- package/dist/timezone-Izs3ibB-.js +1156 -0
- package/dist/trigger-Dda3NmaE.js +213 -0
- package/dist/usePagination-Byxk4XVn.js +220 -0
- package/dist/user-BZxO8qdh.js +55 -0
- package/dist/{vue-i18n-DVmD9I_o.js → vue-i18n-DDbkmbSf.js} +433 -433
- package/dist/{xlsx-qJHsnW7k.js → xlsx-D8yNl8dN.js} +1 -1
- package/dist/{zod-Bg2FbC-D.js → zod-Xp7TePRP.js} +32 -31
- package/package.json +14 -6
- package/dist/AuditLogs-DW4rwNOn.js +0 -1887
- package/dist/Broadcast-Dhc0j16O.js +0 -227
- package/dist/Collections-CsUJEmqz.js +0 -465
- package/dist/Credit-Mqa-0XJd.js +0 -222
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +0 -108
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DWWLxIq-.js +0 -2185
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BiQGZeDc.js +0 -347
- package/dist/Experience-BD5C3old.js +0 -223
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
- package/dist/Game-D4xsi8Ym.js +0 -278
- package/dist/Marketing-axcQYl8k.js +0 -20073
- package/dist/Mission-BHZiL-GH.js +0 -296
- package/dist/Point-gKvdggAl.js +0 -226
- package/dist/Promotion-7x2F_sFX.js +0 -289
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-AuN9NgcG.js +0 -1751
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DTlv8ZAn.js +0 -147
- package/dist/Setting-Cab47wfH.js +0 -1936
- package/dist/Store-BFL3T9B5.js +0 -1842
- package/dist/StoreRewards-C43dCJtM.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-aAj5-nzZ.js +0 -1029
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-K3OPSYrF.js +0 -139
- package/dist/Voucher-BhUAcPZg.js +0 -384
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-C0YNez2L.js +0 -419
- package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/dist/app-BGaUIdCr.js +0 -7086
- package/dist/app-DccKBdW_.js +0 -33357
- package/dist/campaign-DbJZEU7P.js +0 -96
- package/dist/campaign.enum-PBKYGUQY.js +0 -20
- package/dist/campaign.fn-Cq-4LfQj.js +0 -758
- package/dist/dto-8NvMMYAb.js +0 -214
- package/dist/effect-DZhcEQ5g.js +0 -78
- package/dist/index-CQQedv0M.js +0 -32260
- package/dist/index-CTgQRqQR.js +0 -30038
- package/dist/index-CsaQJMAR.js +0 -66
- package/dist/index-DGaywhpY.js +0 -76
- package/dist/index-DOfLDlI8.js +0 -8861
- package/dist/index-DVpAocyR.js +0 -3120
- package/dist/index-DlJGd8RC.js +0 -121
- package/dist/index-Dm65CTdy.js +0 -38
- package/dist/objectid-MCaJXAgq.js +0 -145
- package/dist/plugins-C-CRzeyC.js +0 -208
- package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
- package/dist/rule-builder-DmkJng-x.js +0 -89
- package/dist/template-DTZgnkl5.js +0 -190
- package/dist/trigger-CPjJ73Rc.js +0 -144
- package/dist/usePagination-BeF5K3M7.js +0 -223
- package/dist/user-8VIt8A1x.js +0 -54
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { z as e, F as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { R as t } from "./rule-builder-
|
|
5
|
-
import { i } from "./helper-
|
|
6
|
-
import { a as
|
|
7
|
-
const
|
|
1
|
+
import { z as e, F as a, m as i, a as P } from "./index-DjONNxbl.js";
|
|
2
|
+
import { A as j, B as J, C as E, D as O, E as r, G as I, H as L } from "./index-38u-cCwD.js";
|
|
3
|
+
import { a as R } from "./index-CQZbm9P5.js";
|
|
4
|
+
import { R as t } from "./rule-builder-BMXyzu8k.js";
|
|
5
|
+
import { i as o } from "./helper-CeYr7Anh.js";
|
|
6
|
+
import { a as p } from "./index-D-kPBF9C.js";
|
|
7
|
+
const x = {
|
|
8
8
|
collectionName: "AuditLogs",
|
|
9
9
|
transform: {
|
|
10
10
|
_id: "oid",
|
|
@@ -17,7 +17,7 @@ const T = {
|
|
|
17
17
|
fromCollection: "Businesses"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, D = e.enum([
|
|
21
21
|
"GET",
|
|
22
22
|
"POST",
|
|
23
23
|
"PUT",
|
|
@@ -26,7 +26,7 @@ const T = {
|
|
|
26
26
|
"OPTIONS",
|
|
27
27
|
"HEAD",
|
|
28
28
|
"ALL"
|
|
29
|
-
]),
|
|
29
|
+
]), w = e.enum([
|
|
30
30
|
"CAMPAIGN",
|
|
31
31
|
"LOCATION",
|
|
32
32
|
"MARKETING MATERIALS",
|
|
@@ -36,31 +36,31 @@ const T = {
|
|
|
36
36
|
"SETTINGS",
|
|
37
37
|
"SEGMENTATION",
|
|
38
38
|
"USER"
|
|
39
|
-
]),
|
|
40
|
-
httpMethod:
|
|
39
|
+
]), A = e.object({
|
|
40
|
+
httpMethod: D,
|
|
41
41
|
url: e.string().min(1),
|
|
42
42
|
userAgent: e.string(),
|
|
43
43
|
host: e.string().min(1),
|
|
44
44
|
params: e.object({}).passthrough().nullish(),
|
|
45
45
|
query: e.object({}).passthrough().nullish(),
|
|
46
46
|
body: e.object({}).passthrough().nullish()
|
|
47
|
-
}),
|
|
47
|
+
}), G = e.object({
|
|
48
48
|
statusCode: e.number().int().min(100).max(599),
|
|
49
49
|
body: e.object({}).passthrough().nullish()
|
|
50
50
|
});
|
|
51
51
|
e.object({
|
|
52
|
-
_id:
|
|
52
|
+
_id: a,
|
|
53
53
|
user: e.string().length(28),
|
|
54
54
|
userName: e.string().min(1),
|
|
55
|
-
userPhoneNumber: e.string().refine((
|
|
56
|
-
moduleType:
|
|
57
|
-
business:
|
|
55
|
+
userPhoneNumber: e.string().refine((n) => j(n)).nullish(),
|
|
56
|
+
moduleType: w,
|
|
57
|
+
business: a.nullish(),
|
|
58
58
|
clientIp: e.string().nullish(),
|
|
59
59
|
timestamp: e.string().datetime(),
|
|
60
|
-
request:
|
|
61
|
-
response:
|
|
62
|
-
}).describe(
|
|
63
|
-
const
|
|
60
|
+
request: A,
|
|
61
|
+
response: G
|
|
62
|
+
}).describe(i.describe(x));
|
|
63
|
+
const Re = {
|
|
64
64
|
PROMOTION: {
|
|
65
65
|
name: "Promotion Template",
|
|
66
66
|
description: "Promotion template for campaign creation.",
|
|
@@ -111,6 +111,11 @@ const pe = {
|
|
|
111
111
|
label: void 0,
|
|
112
112
|
property: "campaign.effect",
|
|
113
113
|
type: "effect"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
label: "connect.template.campaign_image",
|
|
117
|
+
property: "campaign.image",
|
|
118
|
+
type: "image"
|
|
114
119
|
}
|
|
115
120
|
]
|
|
116
121
|
}
|
|
@@ -141,7 +146,7 @@ const pe = {
|
|
|
141
146
|
]
|
|
142
147
|
},
|
|
143
148
|
{
|
|
144
|
-
name: "
|
|
149
|
+
name: "connect.template.game_configuration",
|
|
145
150
|
fields: [
|
|
146
151
|
{
|
|
147
152
|
label: void 0,
|
|
@@ -151,10 +156,10 @@ const pe = {
|
|
|
151
156
|
]
|
|
152
157
|
},
|
|
153
158
|
{
|
|
154
|
-
name: "
|
|
159
|
+
name: "connect.template.location",
|
|
155
160
|
fields: [
|
|
156
161
|
{
|
|
157
|
-
label: "
|
|
162
|
+
label: "connect.template.target_location",
|
|
158
163
|
property: "campaign.targetLocation",
|
|
159
164
|
type: "target_location"
|
|
160
165
|
}
|
|
@@ -270,7 +275,7 @@ const pe = {
|
|
|
270
275
|
type: "textarea"
|
|
271
276
|
},
|
|
272
277
|
{
|
|
273
|
-
label: "
|
|
278
|
+
label: "connect.template.voucher_image",
|
|
274
279
|
property: "configs.image",
|
|
275
280
|
type: "image"
|
|
276
281
|
}
|
|
@@ -359,45 +364,51 @@ const pe = {
|
|
|
359
364
|
name: "connect.template.location",
|
|
360
365
|
fields: [
|
|
361
366
|
{
|
|
362
|
-
label: "
|
|
367
|
+
label: "connect.template.target_location",
|
|
363
368
|
property: "campaign.targetLocation",
|
|
364
369
|
type: "target_location"
|
|
365
370
|
}
|
|
366
371
|
]
|
|
367
372
|
},
|
|
373
|
+
// {
|
|
374
|
+
// name: 'Hide in App (FeedVibe)',
|
|
375
|
+
// fields: [
|
|
376
|
+
// {
|
|
377
|
+
// label: 'Hide',
|
|
378
|
+
// property: 'campaign.hideInApp',
|
|
379
|
+
// type: 'switch',
|
|
380
|
+
// },
|
|
381
|
+
// ],
|
|
382
|
+
// condition: {
|
|
383
|
+
// property: 'campaign.event.type',
|
|
384
|
+
// value: 'SIMPLE_CLAIM',
|
|
385
|
+
// },
|
|
386
|
+
// },
|
|
368
387
|
{
|
|
369
|
-
name: "
|
|
388
|
+
name: "connect.template.redemption",
|
|
370
389
|
fields: [
|
|
371
390
|
{
|
|
372
|
-
label: "
|
|
391
|
+
label: "connect.template.code",
|
|
373
392
|
property: "campaign.code",
|
|
374
393
|
type: "text"
|
|
375
394
|
}
|
|
376
395
|
],
|
|
377
|
-
condition:
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
{
|
|
383
|
-
name: "Hide in App (FeedVibe)",
|
|
384
|
-
fields: [
|
|
396
|
+
condition: [
|
|
397
|
+
{
|
|
398
|
+
property: "campaign.event.type",
|
|
399
|
+
value: "SIMPLE_CLAIM"
|
|
400
|
+
},
|
|
385
401
|
{
|
|
386
|
-
label: "Hide",
|
|
387
402
|
property: "campaign.hideInApp",
|
|
388
|
-
|
|
403
|
+
value: !0
|
|
389
404
|
}
|
|
390
|
-
]
|
|
391
|
-
condition: {
|
|
392
|
-
property: "campaign.event.type",
|
|
393
|
-
value: "SIMPLE_CLAIM"
|
|
394
|
-
}
|
|
405
|
+
]
|
|
395
406
|
},
|
|
396
407
|
{
|
|
397
|
-
name: "
|
|
408
|
+
name: "connect.template.notify_audience",
|
|
398
409
|
fields: [
|
|
399
410
|
{
|
|
400
|
-
label: "
|
|
411
|
+
label: "connect.template.send_notification",
|
|
401
412
|
property: "campaign.notify",
|
|
402
413
|
type: "switch"
|
|
403
414
|
}
|
|
@@ -407,7 +418,7 @@ const pe = {
|
|
|
407
418
|
name: "connect.template.notify_message",
|
|
408
419
|
fields: [
|
|
409
420
|
{
|
|
410
|
-
label: "
|
|
421
|
+
label: "connect.template.notification_message",
|
|
411
422
|
property: "campaign.notifyMessage",
|
|
412
423
|
type: "message",
|
|
413
424
|
extras: "ISSUE_REWARD"
|
|
@@ -455,7 +466,7 @@ const pe = {
|
|
|
455
466
|
// },
|
|
456
467
|
hideInApp: !0
|
|
457
468
|
},
|
|
458
|
-
configs:
|
|
469
|
+
configs: o("VOUCHER", {
|
|
459
470
|
name: "",
|
|
460
471
|
business: null,
|
|
461
472
|
noCampaign: !1
|
|
@@ -481,6 +492,11 @@ const pe = {
|
|
|
481
492
|
label: "connect.template.campaign_description",
|
|
482
493
|
property: "campaign.description",
|
|
483
494
|
type: "textarea"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
label: "connect.template.campaign_period",
|
|
498
|
+
property: "campaign.timeframeOptions",
|
|
499
|
+
type: "timeframe"
|
|
484
500
|
}
|
|
485
501
|
]
|
|
486
502
|
},
|
|
@@ -750,17 +766,17 @@ const pe = {
|
|
|
750
766
|
name: "connect.template.location",
|
|
751
767
|
fields: [
|
|
752
768
|
{
|
|
753
|
-
label: "
|
|
769
|
+
label: "connect.template.target_location",
|
|
754
770
|
property: "campaign.targetLocation",
|
|
755
771
|
type: "target_location"
|
|
756
772
|
}
|
|
757
773
|
]
|
|
758
774
|
}
|
|
759
775
|
// {
|
|
760
|
-
// name: '
|
|
776
|
+
// name: 'connect.template.notify_audience',
|
|
761
777
|
// fields: [
|
|
762
778
|
// {
|
|
763
|
-
// label: '
|
|
779
|
+
// label: 'connect.template.send_notification',
|
|
764
780
|
// property: 'campaign.notify',
|
|
765
781
|
// type: 'switch',
|
|
766
782
|
// },
|
|
@@ -937,17 +953,17 @@ const pe = {
|
|
|
937
953
|
name: "connect.template.location",
|
|
938
954
|
fields: [
|
|
939
955
|
{
|
|
940
|
-
label: "
|
|
956
|
+
label: "connect.template.target_location",
|
|
941
957
|
property: "campaign.targetLocation",
|
|
942
958
|
type: "target_location"
|
|
943
959
|
}
|
|
944
960
|
]
|
|
945
961
|
}
|
|
946
962
|
// {
|
|
947
|
-
// name: '
|
|
963
|
+
// name: 'connect.template.notify_audience',
|
|
948
964
|
// fields: [
|
|
949
965
|
// {
|
|
950
|
-
// label: '
|
|
966
|
+
// label: 'connect.template.send_notification',
|
|
951
967
|
// property: 'campaign.notify',
|
|
952
968
|
// type: 'switch',
|
|
953
969
|
// },
|
|
@@ -1124,17 +1140,17 @@ const pe = {
|
|
|
1124
1140
|
name: "connect.template.location",
|
|
1125
1141
|
fields: [
|
|
1126
1142
|
{
|
|
1127
|
-
label: "
|
|
1143
|
+
label: "connect.template.target_location",
|
|
1128
1144
|
property: "campaign.targetLocation",
|
|
1129
1145
|
type: "target_location"
|
|
1130
1146
|
}
|
|
1131
1147
|
]
|
|
1132
1148
|
}
|
|
1133
1149
|
// {
|
|
1134
|
-
// name: '
|
|
1150
|
+
// name: 'connect.template.notify_audience',
|
|
1135
1151
|
// fields: [
|
|
1136
1152
|
// {
|
|
1137
|
-
// label: '
|
|
1153
|
+
// label: 'connect.template.send_notification',
|
|
1138
1154
|
// property: 'campaign.notify',
|
|
1139
1155
|
// type: 'switch',
|
|
1140
1156
|
// },
|
|
@@ -1313,7 +1329,7 @@ const pe = {
|
|
|
1313
1329
|
name: "connect.template.location",
|
|
1314
1330
|
fields: [
|
|
1315
1331
|
{
|
|
1316
|
-
label: "
|
|
1332
|
+
label: "connect.template.target_location",
|
|
1317
1333
|
property: "campaign.targetLocation",
|
|
1318
1334
|
type: "target_location"
|
|
1319
1335
|
}
|
|
@@ -1328,7 +1344,7 @@ const pe = {
|
|
|
1328
1344
|
name: "connect.template.game_type",
|
|
1329
1345
|
fields: [
|
|
1330
1346
|
{
|
|
1331
|
-
label: "
|
|
1347
|
+
label: "connect.template.select_game",
|
|
1332
1348
|
property: "configs.extras.gameType",
|
|
1333
1349
|
type: "game_type"
|
|
1334
1350
|
}
|
|
@@ -1395,7 +1411,7 @@ const pe = {
|
|
|
1395
1411
|
rewards: []
|
|
1396
1412
|
}
|
|
1397
1413
|
},
|
|
1398
|
-
configs:
|
|
1414
|
+
configs: o("GAME", {
|
|
1399
1415
|
name: "Token",
|
|
1400
1416
|
business: null,
|
|
1401
1417
|
noCampaign: !1
|
|
@@ -1534,7 +1550,7 @@ const pe = {
|
|
|
1534
1550
|
name: "connect.template.location",
|
|
1535
1551
|
fields: [
|
|
1536
1552
|
{
|
|
1537
|
-
label: "
|
|
1553
|
+
label: "connect.template.target_location",
|
|
1538
1554
|
property: "campaign.targetLocation",
|
|
1539
1555
|
type: "target_location"
|
|
1540
1556
|
}
|
|
@@ -1596,7 +1612,7 @@ const pe = {
|
|
|
1596
1612
|
name: "connect.template.configure_reward",
|
|
1597
1613
|
fields: [
|
|
1598
1614
|
{
|
|
1599
|
-
label: "
|
|
1615
|
+
label: "connect.template.configure_reward_customer",
|
|
1600
1616
|
property: "campaign.rewards",
|
|
1601
1617
|
type: "mission_pool",
|
|
1602
1618
|
extras: "campaign"
|
|
@@ -1636,27 +1652,193 @@ const pe = {
|
|
|
1636
1652
|
type: "timeframe"
|
|
1637
1653
|
}
|
|
1638
1654
|
},
|
|
1639
|
-
configs:
|
|
1655
|
+
configs: o("STAMP", {
|
|
1640
1656
|
business: null,
|
|
1641
1657
|
noCampaign: !1
|
|
1642
1658
|
})
|
|
1643
1659
|
}
|
|
1660
|
+
},
|
|
1661
|
+
GRAB: {
|
|
1662
|
+
name: "Grab Campaign Template",
|
|
1663
|
+
description: "Grab campaign template for campaign creation.",
|
|
1664
|
+
steps: [
|
|
1665
|
+
{
|
|
1666
|
+
name: "connect.template.general_information",
|
|
1667
|
+
groups: [
|
|
1668
|
+
{
|
|
1669
|
+
name: "connect.template.general",
|
|
1670
|
+
fields: [
|
|
1671
|
+
{
|
|
1672
|
+
label: "connect.template.campaign_name",
|
|
1673
|
+
property: "campaign.name",
|
|
1674
|
+
type: "text"
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
label: "connect.template.campaign_period",
|
|
1678
|
+
property: "campaign.timeframeOptions",
|
|
1679
|
+
type: "timeframe"
|
|
1680
|
+
}
|
|
1681
|
+
]
|
|
1682
|
+
}
|
|
1683
|
+
]
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
name: "connect.template.discount",
|
|
1687
|
+
groups: [
|
|
1688
|
+
{
|
|
1689
|
+
name: "connect.template.discount",
|
|
1690
|
+
fields: [
|
|
1691
|
+
{
|
|
1692
|
+
label: void 0,
|
|
1693
|
+
property: "campaign.discount",
|
|
1694
|
+
type: "grab_effect"
|
|
1695
|
+
}
|
|
1696
|
+
]
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
name: "connect.template.grab_quota",
|
|
1700
|
+
fields: [
|
|
1701
|
+
{
|
|
1702
|
+
label: void 0,
|
|
1703
|
+
property: "campaign.quotas",
|
|
1704
|
+
type: "grab_quota"
|
|
1705
|
+
}
|
|
1706
|
+
]
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
name: "connect.template.grab_condition",
|
|
1710
|
+
fields: [
|
|
1711
|
+
{
|
|
1712
|
+
label: void 0,
|
|
1713
|
+
property: "campaign.conditions",
|
|
1714
|
+
type: "grab_conditions"
|
|
1715
|
+
}
|
|
1716
|
+
]
|
|
1717
|
+
}
|
|
1718
|
+
]
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
name: "connect.template.terms_conditions",
|
|
1722
|
+
groups: [
|
|
1723
|
+
{
|
|
1724
|
+
name: "Location",
|
|
1725
|
+
fields: [
|
|
1726
|
+
{
|
|
1727
|
+
label: "Target location",
|
|
1728
|
+
property: "campaign.targetLocation",
|
|
1729
|
+
type: "target_location"
|
|
1730
|
+
}
|
|
1731
|
+
]
|
|
1732
|
+
}
|
|
1733
|
+
]
|
|
1734
|
+
}
|
|
1735
|
+
],
|
|
1736
|
+
defaultValue: {
|
|
1737
|
+
templateId: "",
|
|
1738
|
+
campaign: {
|
|
1739
|
+
type: "GRAB",
|
|
1740
|
+
templateId: "",
|
|
1741
|
+
name: "",
|
|
1742
|
+
description: "",
|
|
1743
|
+
image: "",
|
|
1744
|
+
discount: null,
|
|
1745
|
+
group: null,
|
|
1746
|
+
event: {
|
|
1747
|
+
type: "MAKING_ORDER",
|
|
1748
|
+
rule: t.scaffoldGroup()
|
|
1749
|
+
},
|
|
1750
|
+
quotas: {
|
|
1751
|
+
totalCount: 10,
|
|
1752
|
+
totalCountPerUser: 2
|
|
1753
|
+
},
|
|
1754
|
+
conditions: {
|
|
1755
|
+
startTime: "",
|
|
1756
|
+
endTime: "",
|
|
1757
|
+
eaterType: "all",
|
|
1758
|
+
minBasketAmount: 10,
|
|
1759
|
+
bundleQuantity: 2,
|
|
1760
|
+
workingHour: {
|
|
1761
|
+
sun: {
|
|
1762
|
+
periods: [
|
|
1763
|
+
{
|
|
1764
|
+
startTime: "11:30",
|
|
1765
|
+
endTime: "14:00"
|
|
1766
|
+
}
|
|
1767
|
+
]
|
|
1768
|
+
},
|
|
1769
|
+
mon: {
|
|
1770
|
+
periods: [
|
|
1771
|
+
{
|
|
1772
|
+
startTime: "11:30",
|
|
1773
|
+
endTime: "14:00"
|
|
1774
|
+
}
|
|
1775
|
+
]
|
|
1776
|
+
},
|
|
1777
|
+
tue: {
|
|
1778
|
+
periods: [
|
|
1779
|
+
{
|
|
1780
|
+
startTime: "11:30",
|
|
1781
|
+
endTime: "14:00"
|
|
1782
|
+
}
|
|
1783
|
+
]
|
|
1784
|
+
},
|
|
1785
|
+
wed: {
|
|
1786
|
+
periods: [
|
|
1787
|
+
{
|
|
1788
|
+
startTime: "11:30",
|
|
1789
|
+
endTime: "14:00"
|
|
1790
|
+
}
|
|
1791
|
+
]
|
|
1792
|
+
},
|
|
1793
|
+
thu: {
|
|
1794
|
+
periods: [
|
|
1795
|
+
{
|
|
1796
|
+
startTime: "11:30",
|
|
1797
|
+
endTime: "14:00"
|
|
1798
|
+
}
|
|
1799
|
+
]
|
|
1800
|
+
},
|
|
1801
|
+
fri: {
|
|
1802
|
+
periods: [
|
|
1803
|
+
{
|
|
1804
|
+
startTime: "11:30",
|
|
1805
|
+
endTime: "14:00"
|
|
1806
|
+
}
|
|
1807
|
+
]
|
|
1808
|
+
},
|
|
1809
|
+
sat: {
|
|
1810
|
+
periods: [
|
|
1811
|
+
{
|
|
1812
|
+
startTime: "11:30",
|
|
1813
|
+
endTime: "14:00"
|
|
1814
|
+
}
|
|
1815
|
+
]
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
},
|
|
1819
|
+
targetLocation: null,
|
|
1820
|
+
timeframeOptions: {
|
|
1821
|
+
type: "timeframe",
|
|
1822
|
+
property: "__now"
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1644
1826
|
}
|
|
1645
1827
|
};
|
|
1646
|
-
t.scaffoldGroup(),
|
|
1828
|
+
t.scaffoldGroup(), o("STAMP", {
|
|
1647
1829
|
business: null,
|
|
1648
1830
|
noCampaign: !1
|
|
1649
1831
|
});
|
|
1650
1832
|
({
|
|
1651
1833
|
...t.scaffoldGroup()
|
|
1652
|
-
},
|
|
1834
|
+
}, o("VOUCHER", {
|
|
1653
1835
|
name: "",
|
|
1654
1836
|
business: null,
|
|
1655
1837
|
noCampaign: !1
|
|
1656
1838
|
}));
|
|
1657
1839
|
({
|
|
1658
1840
|
...t.scaffoldGroup()
|
|
1659
|
-
},
|
|
1841
|
+
}, o("VOUCHER", {
|
|
1660
1842
|
name: "",
|
|
1661
1843
|
business: null,
|
|
1662
1844
|
noCampaign: !1
|
|
@@ -1712,7 +1894,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
|
|
|
1712
1894
|
});
|
|
1713
1895
|
({
|
|
1714
1896
|
...t.scaffoldGroup()
|
|
1715
|
-
},
|
|
1897
|
+
}, o("VOUCHER", {
|
|
1716
1898
|
name: "",
|
|
1717
1899
|
business: null,
|
|
1718
1900
|
noCampaign: !1
|
|
@@ -1758,14 +1940,14 @@ t.setRuleToGroup(
|
|
|
1758
1940
|
"&&"
|
|
1759
1941
|
)
|
|
1760
1942
|
);
|
|
1761
|
-
t.scaffoldGroup(), t.scaffoldGroup(),
|
|
1943
|
+
t.scaffoldGroup(), t.scaffoldGroup(), o("GAME", {
|
|
1762
1944
|
name: "Token",
|
|
1763
1945
|
business: null,
|
|
1764
1946
|
noCampaign: !1
|
|
1765
1947
|
});
|
|
1766
1948
|
({
|
|
1767
1949
|
...t.scaffoldGroup()
|
|
1768
|
-
},
|
|
1950
|
+
}, o("VOUCHER", {
|
|
1769
1951
|
name: "",
|
|
1770
1952
|
business: null,
|
|
1771
1953
|
noCampaign: !1
|
|
@@ -1794,7 +1976,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
|
|
|
1794
1976
|
],
|
|
1795
1977
|
"&&"
|
|
1796
1978
|
)
|
|
1797
|
-
]),
|
|
1979
|
+
]), o("VOUCHER", {
|
|
1798
1980
|
name: "",
|
|
1799
1981
|
business: null,
|
|
1800
1982
|
noCampaign: !1
|
|
@@ -1817,7 +1999,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
|
|
|
1817
1999
|
({
|
|
1818
2000
|
...t.scaffoldGroup()
|
|
1819
2001
|
});
|
|
1820
|
-
const
|
|
2002
|
+
const M = e.enum([
|
|
1821
2003
|
"MEMBER_REWARD",
|
|
1822
2004
|
"PAID_LOYALTY",
|
|
1823
2005
|
"COLLECT_FEEDBACK",
|
|
@@ -1827,7 +2009,7 @@ const D = e.enum([
|
|
|
1827
2009
|
"BROADCAST",
|
|
1828
2010
|
"BIRTHDAY",
|
|
1829
2011
|
"GAME"
|
|
1830
|
-
]),
|
|
2012
|
+
]), F = e.enum([
|
|
1831
2013
|
"text",
|
|
1832
2014
|
"number",
|
|
1833
2015
|
"textarea",
|
|
@@ -1853,102 +2035,118 @@ const D = e.enum([
|
|
|
1853
2035
|
"rule_bill",
|
|
1854
2036
|
"rule_feedback",
|
|
1855
2037
|
"rule_birthday",
|
|
1856
|
-
"promotion_game_type"
|
|
1857
|
-
|
|
2038
|
+
"promotion_game_type",
|
|
2039
|
+
"grab_effect",
|
|
2040
|
+
"grab_quota",
|
|
2041
|
+
"grab_conditions"
|
|
2042
|
+
]), k = e.object({
|
|
1858
2043
|
label: e.string().optional(),
|
|
2044
|
+
label_locale: e.record(e.string()).nullish(),
|
|
1859
2045
|
property: e.string().or(e.any()),
|
|
1860
|
-
type:
|
|
2046
|
+
type: F,
|
|
1861
2047
|
extras: e.string().optional(),
|
|
1862
2048
|
isRuleChildren: e.boolean().optional()
|
|
1863
|
-
}),
|
|
2049
|
+
}), d = e.object({
|
|
2050
|
+
not: e.boolean().optional(),
|
|
2051
|
+
property: e.string(),
|
|
2052
|
+
value: e.any()
|
|
2053
|
+
}), B = e.object({
|
|
1864
2054
|
name: e.string().optional(),
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
}), w = e.object({
|
|
2055
|
+
name_locale: e.record(e.string()).nullish(),
|
|
2056
|
+
fields: e.array(k),
|
|
2057
|
+
condition: d.optional().or(
|
|
2058
|
+
e.array(d)
|
|
2059
|
+
)
|
|
2060
|
+
}), V = e.object({
|
|
1872
2061
|
name: e.string(),
|
|
1873
|
-
|
|
2062
|
+
name_locale: e.record(e.string()).nullish(),
|
|
2063
|
+
groups: e.array(B)
|
|
1874
2064
|
});
|
|
1875
2065
|
e.object({
|
|
1876
|
-
_id:
|
|
2066
|
+
_id: a,
|
|
1877
2067
|
name: e.string(),
|
|
2068
|
+
name_locale: e.record(e.string()).nullish(),
|
|
1878
2069
|
description: e.string().nullish(),
|
|
1879
|
-
|
|
1880
|
-
|
|
2070
|
+
description_locale: e.record(e.string()).nullish(),
|
|
2071
|
+
steps: e.array(V).min(1),
|
|
2072
|
+
intention: e.array(M),
|
|
1881
2073
|
defaultValue: e.any()
|
|
1882
2074
|
}).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
|
|
1883
|
-
const
|
|
2075
|
+
const Y = {
|
|
1884
2076
|
collectionName: "Businesses",
|
|
1885
2077
|
transform: {
|
|
1886
2078
|
_id: "oid"
|
|
1887
2079
|
}
|
|
1888
2080
|
};
|
|
1889
2081
|
e.object({
|
|
1890
|
-
_id:
|
|
2082
|
+
_id: a,
|
|
1891
2083
|
ownerId: e.string(),
|
|
1892
2084
|
name: e.string(),
|
|
1893
2085
|
credit: e.number(),
|
|
1894
2086
|
forceSend: e.boolean().optional()
|
|
1895
|
-
}).describe(
|
|
1896
|
-
const
|
|
2087
|
+
}).describe(i.describe(Y));
|
|
2088
|
+
const _ = e.enum(["PHONE"]), K = e.enum([
|
|
1897
2089
|
"MOCEAN",
|
|
1898
2090
|
"SLACK",
|
|
1899
2091
|
"SMS",
|
|
1900
2092
|
"EMAIL",
|
|
1901
2093
|
"WHATSAPP"
|
|
1902
|
-
]),
|
|
2094
|
+
]), W = e.enum(["PENDING", "COMPLETED", "FAILED"]), X = e.enum([
|
|
1903
2095
|
"General",
|
|
1904
2096
|
"Otp",
|
|
1905
2097
|
"Marketing",
|
|
1906
2098
|
"Ordering",
|
|
1907
|
-
"MemberInvitation"
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
2099
|
+
"MemberInvitation",
|
|
2100
|
+
"MarketingPromotion"
|
|
2101
|
+
]), q = e.object({
|
|
2102
|
+
type: _
|
|
2103
|
+
}), y = q.extend({
|
|
2104
|
+
type: e.literal(_.enum.PHONE),
|
|
2105
|
+
provider: K,
|
|
2106
|
+
usage: X.optional()
|
|
2107
|
+
}), Q = {
|
|
1915
2108
|
collectionName: "Notifications",
|
|
1916
2109
|
transform: { _id: "oid", business: "oid" }
|
|
1917
2110
|
};
|
|
1918
2111
|
e.object({
|
|
1919
|
-
_id:
|
|
1920
|
-
business:
|
|
2112
|
+
_id: a,
|
|
2113
|
+
business: a,
|
|
1921
2114
|
target: e.string(),
|
|
1922
2115
|
title: e.string().optional(),
|
|
1923
2116
|
message: e.string(),
|
|
1924
|
-
option:
|
|
1925
|
-
status:
|
|
2117
|
+
option: y,
|
|
2118
|
+
status: W,
|
|
1926
2119
|
ref: e.string().optional()
|
|
1927
|
-
}).describe(
|
|
1928
|
-
e.object({
|
|
2120
|
+
}).describe(i.describe(Q));
|
|
2121
|
+
const Z = e.object({
|
|
1929
2122
|
target: e.string(),
|
|
1930
2123
|
title: e.string().optional(),
|
|
1931
2124
|
message: e.string(),
|
|
1932
|
-
option:
|
|
2125
|
+
option: y,
|
|
1933
2126
|
ref: e.string().optional()
|
|
1934
2127
|
});
|
|
2128
|
+
e.object({
|
|
2129
|
+
campaignId: e.string(),
|
|
2130
|
+
notification: Z,
|
|
2131
|
+
business: e.string()
|
|
2132
|
+
});
|
|
1935
2133
|
e.object({
|
|
1936
2134
|
phone: e.string(),
|
|
1937
2135
|
message: e.string()
|
|
1938
2136
|
});
|
|
1939
|
-
const
|
|
2137
|
+
const h = e.object({
|
|
1940
2138
|
name: e.string().optional(),
|
|
1941
2139
|
address: e.string()
|
|
1942
|
-
}),
|
|
2140
|
+
}), $ = e.object({
|
|
1943
2141
|
filename: e.string(),
|
|
1944
2142
|
content: e.instanceof(Uint8Array)
|
|
1945
2143
|
});
|
|
1946
2144
|
e.object({
|
|
1947
|
-
from:
|
|
1948
|
-
to: e.array(
|
|
2145
|
+
from: h.optional(),
|
|
2146
|
+
to: e.array(h),
|
|
1949
2147
|
subject: e.string(),
|
|
1950
2148
|
html: e.string().optional(),
|
|
1951
|
-
attachments: e.array(
|
|
2149
|
+
attachments: e.array($).optional()
|
|
1952
2150
|
});
|
|
1953
2151
|
e.object({
|
|
1954
2152
|
subject: e.string(),
|
|
@@ -1980,14 +2178,15 @@ e.object({
|
|
|
1980
2178
|
userId: e.string().optional(),
|
|
1981
2179
|
ids: e.array(e.string()),
|
|
1982
2180
|
type: e.enum(["DINE_IN", "PICKUP", "DELIVERY"]),
|
|
1983
|
-
restaurantId: e.string()
|
|
2181
|
+
restaurantId: e.string(),
|
|
2182
|
+
orderId: e.string().optional()
|
|
1984
2183
|
});
|
|
1985
2184
|
e.object({
|
|
1986
2185
|
claimIds: e.array(e.string()),
|
|
1987
2186
|
billId: e.string()
|
|
1988
2187
|
});
|
|
1989
2188
|
e.object({
|
|
1990
|
-
amount:
|
|
2189
|
+
amount: P,
|
|
1991
2190
|
member: e.string(),
|
|
1992
2191
|
bill: e.string(),
|
|
1993
2192
|
otp: e.string().nullish(),
|
|
@@ -1996,15 +2195,15 @@ e.object({
|
|
|
1996
2195
|
e.object({
|
|
1997
2196
|
orderId: e.string()
|
|
1998
2197
|
});
|
|
1999
|
-
var
|
|
2000
|
-
e.nativeEnum(
|
|
2198
|
+
var f = /* @__PURE__ */ ((n) => (n[n.feedMe = 0] = "feedMe", n[n.business = 1] = "business", n[n.restaurant = 2] = "restaurant", n))(f || {});
|
|
2199
|
+
e.nativeEnum(f);
|
|
2001
2200
|
e.enum(["manage", "create", "read", "update", "delete"]);
|
|
2002
2201
|
e.enum(["all", "restaurant", "business", "delivery", "agent"]);
|
|
2003
2202
|
e.enum(["quota"]);
|
|
2004
|
-
var
|
|
2005
|
-
e.nativeEnum(
|
|
2203
|
+
var b = /* @__PURE__ */ ((n) => (n.marketing = "business::marketing", n.campaign = "business::campaign", n.counter = "business::counter", n.permission = "business::permission", n.role = "business::role", n))(b || {});
|
|
2204
|
+
e.nativeEnum(b);
|
|
2006
2205
|
e.enum(["restaurant"]);
|
|
2007
|
-
const
|
|
2206
|
+
const ee = e.object({
|
|
2008
2207
|
label: e.string(),
|
|
2009
2208
|
subject: e.union([e.string(), e.array(e.string())]),
|
|
2010
2209
|
actions: e.union([e.string(), e.array(e.string())]),
|
|
@@ -2014,41 +2213,41 @@ const k = e.object({
|
|
|
2014
2213
|
reason: e.string().optional()
|
|
2015
2214
|
});
|
|
2016
2215
|
e.object({
|
|
2017
|
-
_id:
|
|
2216
|
+
_id: a,
|
|
2018
2217
|
businessId: e.string(),
|
|
2019
2218
|
userId: e.string(),
|
|
2020
2219
|
email: e.string().nullish(),
|
|
2021
2220
|
phoneNo: e.string().nullish(),
|
|
2022
|
-
permissions: e.array(e.lazy(() =>
|
|
2221
|
+
permissions: e.array(e.lazy(() => ee))
|
|
2023
2222
|
}).describe(
|
|
2024
|
-
|
|
2223
|
+
i.describe({
|
|
2025
2224
|
collectionName: "PermissionUsers",
|
|
2026
2225
|
transform: {
|
|
2027
2226
|
_id: "oid"
|
|
2028
2227
|
}
|
|
2029
2228
|
})
|
|
2030
2229
|
);
|
|
2031
|
-
const
|
|
2230
|
+
const H = e.object({
|
|
2032
2231
|
userId: e.string(),
|
|
2033
2232
|
level: e.number(),
|
|
2034
2233
|
role: e.string().optional(),
|
|
2035
2234
|
businessId: e.string().optional(),
|
|
2036
2235
|
restaurantId: e.string().optional()
|
|
2037
|
-
}),
|
|
2236
|
+
}), te = e.function().args(e.any(), H).returns(e.boolean()), ae = e.function().args(H).returns(e.promise(e.array(e.any())));
|
|
2038
2237
|
e.object({
|
|
2039
|
-
isAdmin:
|
|
2040
|
-
getRules:
|
|
2238
|
+
isAdmin: te,
|
|
2239
|
+
getRules: ae
|
|
2041
2240
|
});
|
|
2042
2241
|
e.object({
|
|
2043
|
-
transactions: e.array(
|
|
2044
|
-
collections: e.array(
|
|
2242
|
+
transactions: e.array(J),
|
|
2243
|
+
collections: e.array(E)
|
|
2045
2244
|
});
|
|
2046
|
-
const
|
|
2245
|
+
const z = e.enum([
|
|
2047
2246
|
"ROCK_PAPER_SCISSOR"
|
|
2048
2247
|
]);
|
|
2049
|
-
|
|
2248
|
+
z.enum.ROCK_PAPER_SCISSOR + "";
|
|
2050
2249
|
e.object({
|
|
2051
|
-
type:
|
|
2250
|
+
type: z
|
|
2052
2251
|
});
|
|
2053
2252
|
e.object({
|
|
2054
2253
|
host: e.string().url(),
|
|
@@ -2056,6 +2255,22 @@ e.object({
|
|
|
2056
2255
|
token: e.string(),
|
|
2057
2256
|
roomId: e.string()
|
|
2058
2257
|
});
|
|
2258
|
+
e.enum(["FACEBOOK", "INSTAGRAM", "TV", "BRAND_APP"]);
|
|
2259
|
+
const ne = {
|
|
2260
|
+
collectionName: "MarketingMaterials",
|
|
2261
|
+
transform: {
|
|
2262
|
+
_id: "oid",
|
|
2263
|
+
business: "oid"
|
|
2264
|
+
}
|
|
2265
|
+
};
|
|
2266
|
+
e.object({
|
|
2267
|
+
_id: a,
|
|
2268
|
+
business: a,
|
|
2269
|
+
imageUrl: e.string().url(),
|
|
2270
|
+
headline: e.string(),
|
|
2271
|
+
caption: e.string(),
|
|
2272
|
+
editedAt: e.coerce.date()
|
|
2273
|
+
}).describe(i.describe(ne));
|
|
2059
2274
|
e.object({
|
|
2060
2275
|
id: e.number(),
|
|
2061
2276
|
name: e.string(),
|
|
@@ -2075,12 +2290,12 @@ e.object({
|
|
|
2075
2290
|
phone: e.string().optional(),
|
|
2076
2291
|
email: e.string().optional()
|
|
2077
2292
|
});
|
|
2078
|
-
const
|
|
2293
|
+
const oe = e.enum([
|
|
2079
2294
|
"PENDING",
|
|
2080
2295
|
"SUCCESS",
|
|
2081
2296
|
"FAILED",
|
|
2082
2297
|
"RETRYING"
|
|
2083
|
-
]),
|
|
2298
|
+
]), ie = {
|
|
2084
2299
|
collectionName: "WebhookLogs",
|
|
2085
2300
|
transform: {
|
|
2086
2301
|
_id: "oid",
|
|
@@ -2088,39 +2303,39 @@ const K = e.enum([
|
|
|
2088
2303
|
}
|
|
2089
2304
|
};
|
|
2090
2305
|
e.object({
|
|
2091
|
-
_id:
|
|
2092
|
-
business:
|
|
2306
|
+
_id: a,
|
|
2307
|
+
business: a,
|
|
2093
2308
|
type: e.string(),
|
|
2094
2309
|
payload: e.record(e.any()),
|
|
2095
|
-
status:
|
|
2310
|
+
status: oe,
|
|
2096
2311
|
response: e.any().optional(),
|
|
2097
2312
|
error: e.string().optional()
|
|
2098
|
-
}).describe(
|
|
2099
|
-
const
|
|
2313
|
+
}).describe(i.describe(ie));
|
|
2314
|
+
const le = e.enum(["AUTO", "MANUAL"]);
|
|
2100
2315
|
e.enum(["IN_PROGRESS", "COMPLETED"]);
|
|
2101
|
-
const
|
|
2102
|
-
_id:
|
|
2316
|
+
const C = e.object({
|
|
2317
|
+
_id: a,
|
|
2103
2318
|
name: e.string().min(1, "Name is required").max(50),
|
|
2104
|
-
type:
|
|
2105
|
-
event:
|
|
2106
|
-
}),
|
|
2319
|
+
type: le,
|
|
2320
|
+
event: O.optional()
|
|
2321
|
+
}), re = e.object({
|
|
2107
2322
|
from: e.number().int("Must be integer").min(1, "Min referral count need to start from 1"),
|
|
2108
2323
|
to: e.number().int("Must be integer").nullish()
|
|
2109
|
-
}).superRefine((
|
|
2110
|
-
|
|
2324
|
+
}).superRefine((n, U) => {
|
|
2325
|
+
n.from && n.to && n.from > n.to && U.addIssue({
|
|
2111
2326
|
code: "custom",
|
|
2112
2327
|
message: "Max referral count must be more than min referral count"
|
|
2113
2328
|
});
|
|
2114
|
-
}),
|
|
2115
|
-
threshold:
|
|
2116
|
-
rewards: e.array(
|
|
2117
|
-
pf_reward: e.array(
|
|
2118
|
-
}),
|
|
2329
|
+
}), ce = e.object({
|
|
2330
|
+
threshold: re,
|
|
2331
|
+
rewards: e.array(a),
|
|
2332
|
+
pf_reward: e.array(p).optional()
|
|
2333
|
+
}), m = e.object({
|
|
2119
2334
|
id: e.string(),
|
|
2120
2335
|
name: e.string().min(1, "Name is required").max(50, "Name must be less than 50 characters"),
|
|
2121
|
-
rule:
|
|
2122
|
-
rewards: e.array(
|
|
2123
|
-
}),
|
|
2336
|
+
rule: R.optional(),
|
|
2337
|
+
rewards: e.array(ce)
|
|
2338
|
+
}), pe = {
|
|
2124
2339
|
collectionName: "ReferralRecords",
|
|
2125
2340
|
transform: {
|
|
2126
2341
|
_id: "oid",
|
|
@@ -2129,25 +2344,25 @@ const f = e.object({
|
|
|
2129
2344
|
referee: "oid",
|
|
2130
2345
|
refereeReward: "oid"
|
|
2131
2346
|
}
|
|
2132
|
-
},
|
|
2347
|
+
}, me = e.object({
|
|
2133
2348
|
completedAt: e.coerce.date(),
|
|
2134
|
-
criteria:
|
|
2349
|
+
criteria: a,
|
|
2135
2350
|
ref: e.string()
|
|
2136
|
-
}),
|
|
2137
|
-
_id:
|
|
2138
|
-
business:
|
|
2139
|
-
referer:
|
|
2140
|
-
referee:
|
|
2141
|
-
criteria: e.array(
|
|
2142
|
-
reward: e.array(
|
|
2143
|
-
refereeReward: e.array(
|
|
2144
|
-
criteria_progress: e.array(
|
|
2351
|
+
}), se = e.object({
|
|
2352
|
+
_id: a,
|
|
2353
|
+
business: a,
|
|
2354
|
+
referer: a,
|
|
2355
|
+
referee: a,
|
|
2356
|
+
criteria: e.array(C),
|
|
2357
|
+
reward: e.array(m),
|
|
2358
|
+
refereeReward: e.array(a).optional(),
|
|
2359
|
+
criteria_progress: e.array(me),
|
|
2145
2360
|
status: e.string(),
|
|
2146
|
-
pf_referer:
|
|
2147
|
-
pf_referee:
|
|
2148
|
-
pf_refereeReward: e.array(
|
|
2149
|
-
}).describe(
|
|
2150
|
-
|
|
2361
|
+
pf_referer: r.optional(),
|
|
2362
|
+
pf_referee: r.optional(),
|
|
2363
|
+
pf_refereeReward: e.array(p).optional()
|
|
2364
|
+
}).describe(i.describe(pe));
|
|
2365
|
+
se.pick({
|
|
2151
2366
|
_id: !0,
|
|
2152
2367
|
business: !0,
|
|
2153
2368
|
referer: !0,
|
|
@@ -2155,59 +2370,270 @@ Z.pick({
|
|
|
2155
2370
|
criteria_progress: !0,
|
|
2156
2371
|
criteria: !0
|
|
2157
2372
|
}).extend({
|
|
2158
|
-
pf_referee:
|
|
2373
|
+
pf_referee: r.pick({
|
|
2159
2374
|
_id: !0,
|
|
2160
2375
|
name: !0,
|
|
2161
2376
|
phoneNumber: !0,
|
|
2162
2377
|
photoUrl: !0
|
|
2163
2378
|
})
|
|
2164
2379
|
});
|
|
2165
|
-
const
|
|
2380
|
+
const ge = {
|
|
2166
2381
|
collectionName: "ReferralProgram",
|
|
2167
2382
|
transform: {
|
|
2168
2383
|
_id: "oid",
|
|
2169
2384
|
business: "oid"
|
|
2170
2385
|
}
|
|
2171
|
-
},
|
|
2172
|
-
_id:
|
|
2173
|
-
business:
|
|
2386
|
+
}, T = e.object({
|
|
2387
|
+
_id: a,
|
|
2388
|
+
business: a,
|
|
2174
2389
|
term_and_condition: e.string().optional(),
|
|
2175
|
-
refereeReward: e.array(
|
|
2176
|
-
reward: e.array(
|
|
2177
|
-
criteria: e.array(
|
|
2178
|
-
}).describe(
|
|
2390
|
+
refereeReward: e.array(a).optional(),
|
|
2391
|
+
reward: e.array(m),
|
|
2392
|
+
criteria: e.array(C)
|
|
2393
|
+
}).describe(i.describe(ge));
|
|
2179
2394
|
e.object({
|
|
2180
|
-
referer:
|
|
2181
|
-
referee:
|
|
2182
|
-
business:
|
|
2395
|
+
referer: a,
|
|
2396
|
+
referee: a,
|
|
2397
|
+
business: a
|
|
2183
2398
|
});
|
|
2184
2399
|
e.object({
|
|
2185
|
-
program:
|
|
2400
|
+
program: T.pick({
|
|
2186
2401
|
_id: !0,
|
|
2187
2402
|
business: !0,
|
|
2188
2403
|
term_and_condition: !0
|
|
2189
2404
|
}).extend({
|
|
2190
|
-
reward:
|
|
2191
|
-
pf_refereeReward: e.array(
|
|
2405
|
+
reward: m.optional(),
|
|
2406
|
+
pf_refereeReward: e.array(p).optional()
|
|
2192
2407
|
}),
|
|
2193
2408
|
referralCount: e.number(),
|
|
2194
2409
|
successReferralCount: e.number(),
|
|
2195
|
-
referredBy:
|
|
2410
|
+
referredBy: r.pick({
|
|
2196
2411
|
_id: !0,
|
|
2197
2412
|
name: !0,
|
|
2198
2413
|
phoneNumber: !0,
|
|
2199
2414
|
photoUrl: !0
|
|
2200
2415
|
}).optional()
|
|
2201
2416
|
});
|
|
2202
|
-
|
|
2417
|
+
T.extend({
|
|
2203
2418
|
updateReferralRecord: e.boolean().optional()
|
|
2204
2419
|
});
|
|
2420
|
+
const de = e.object({
|
|
2421
|
+
facebookPageId: e.string(),
|
|
2422
|
+
pageName: e.string(),
|
|
2423
|
+
pageProfileImageUrl: e.string(),
|
|
2424
|
+
pageAccessToken: e.string().optional(),
|
|
2425
|
+
locationIds: e.array(a)
|
|
2426
|
+
}), he = e.object({
|
|
2427
|
+
locationId: a.nullable(),
|
|
2428
|
+
googleLocationName: e.string(),
|
|
2429
|
+
displayName: e.string().optional()
|
|
2430
|
+
}), ue = e.object({
|
|
2431
|
+
token: e.string().nullable(),
|
|
2432
|
+
locations: e.array(he)
|
|
2433
|
+
}), _e = e.object({
|
|
2434
|
+
token: e.string().nullable(),
|
|
2435
|
+
pages: e.array(de)
|
|
2436
|
+
});
|
|
2437
|
+
e.object({
|
|
2438
|
+
_id: a,
|
|
2439
|
+
businessId: a,
|
|
2440
|
+
google: ue.nullable(),
|
|
2441
|
+
facebook: _e.nullable()
|
|
2442
|
+
}).describe(
|
|
2443
|
+
i.describe({
|
|
2444
|
+
collectionName: "reviewSourceConfig",
|
|
2445
|
+
transform: {
|
|
2446
|
+
_id: "oid",
|
|
2447
|
+
businessId: "oid"
|
|
2448
|
+
}
|
|
2449
|
+
})
|
|
2450
|
+
);
|
|
2451
|
+
e.object({
|
|
2452
|
+
token: e.string()
|
|
2453
|
+
});
|
|
2454
|
+
e.object({
|
|
2455
|
+
locations: e.array(
|
|
2456
|
+
e.object({
|
|
2457
|
+
googleLocationName: e.string(),
|
|
2458
|
+
locationId: e.string().nullable(),
|
|
2459
|
+
displayName: e.string().optional()
|
|
2460
|
+
})
|
|
2461
|
+
)
|
|
2462
|
+
});
|
|
2463
|
+
e.object({
|
|
2464
|
+
token: e.string()
|
|
2465
|
+
});
|
|
2466
|
+
e.object({
|
|
2467
|
+
pages: e.array(
|
|
2468
|
+
e.object({
|
|
2469
|
+
facebookPageId: e.string(),
|
|
2470
|
+
locationIds: e.array(e.string())
|
|
2471
|
+
})
|
|
2472
|
+
)
|
|
2473
|
+
});
|
|
2474
|
+
const u = e.object({
|
|
2475
|
+
_id: e.string(),
|
|
2476
|
+
name: e.string()
|
|
2477
|
+
});
|
|
2478
|
+
e.object({
|
|
2479
|
+
_id: e.string(),
|
|
2480
|
+
google: e.object({
|
|
2481
|
+
token: e.string().nullable(),
|
|
2482
|
+
locations: e.array(
|
|
2483
|
+
e.object({
|
|
2484
|
+
googleLocationName: e.string(),
|
|
2485
|
+
displayName: e.string().optional(),
|
|
2486
|
+
location: u.nullable()
|
|
2487
|
+
})
|
|
2488
|
+
)
|
|
2489
|
+
}).nullable(),
|
|
2490
|
+
facebook: e.object({
|
|
2491
|
+
token: e.string().nullable(),
|
|
2492
|
+
pages: e.array(
|
|
2493
|
+
e.object({
|
|
2494
|
+
facebookPageId: e.string(),
|
|
2495
|
+
pageName: e.string(),
|
|
2496
|
+
pageProfileImageUrl: e.string(),
|
|
2497
|
+
locations: e.array(u)
|
|
2498
|
+
})
|
|
2499
|
+
)
|
|
2500
|
+
}).nullable()
|
|
2501
|
+
});
|
|
2502
|
+
const v = e.object({
|
|
2503
|
+
name: e.string(),
|
|
2504
|
+
pictureUrl: e.string()
|
|
2505
|
+
}), ye = v.extend({
|
|
2506
|
+
isAnonymous: e.boolean().optional()
|
|
2507
|
+
}), fe = v.extend({
|
|
2508
|
+
id: e.string().optional()
|
|
2509
|
+
}), c = e.object({
|
|
2510
|
+
comment: e.string(),
|
|
2511
|
+
updateTime: e.coerce.date()
|
|
2512
|
+
}), l = e.object({
|
|
2513
|
+
thumbnailUrl: e.string(),
|
|
2514
|
+
thumbnailLabel: e.string(),
|
|
2515
|
+
videoUrl: e.string().optional()
|
|
2516
|
+
}), be = {
|
|
2517
|
+
collectionName: "reviews",
|
|
2518
|
+
transform: {
|
|
2519
|
+
_id: "oid",
|
|
2520
|
+
businessId: "oid",
|
|
2521
|
+
locationId: "oid"
|
|
2522
|
+
},
|
|
2523
|
+
lookups: {
|
|
2524
|
+
reviewerId: {
|
|
2525
|
+
as: "reviewer",
|
|
2526
|
+
fromCollection: "UsersV2"
|
|
2527
|
+
},
|
|
2528
|
+
locationId: {
|
|
2529
|
+
as: "location",
|
|
2530
|
+
fromCollection: "Locations"
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2533
|
+
}, S = e.enum(["google", "facebook", "feedme"]);
|
|
2534
|
+
S.options;
|
|
2535
|
+
e.enum(["google", "facebook"]);
|
|
2536
|
+
const He = e.enum([
|
|
2537
|
+
"createTime_desc",
|
|
2538
|
+
"createTime_asc",
|
|
2539
|
+
"rating_asc",
|
|
2540
|
+
"rating_desc"
|
|
2541
|
+
]);
|
|
2542
|
+
e.object({
|
|
2543
|
+
source: S.optional(),
|
|
2544
|
+
dateFrom: e.coerce.date().optional(),
|
|
2545
|
+
dateTo: e.coerce.date().optional(),
|
|
2546
|
+
locationId: e.string().optional(),
|
|
2547
|
+
sort: He.optional(),
|
|
2548
|
+
limit: e.coerce.number().int().positive().optional(),
|
|
2549
|
+
skip: e.coerce.number().int().min(0).optional()
|
|
2550
|
+
});
|
|
2551
|
+
const N = e.object({
|
|
2552
|
+
name: e.string(),
|
|
2553
|
+
pictureUrl: e.string()
|
|
2554
|
+
}), ze = N.extend({
|
|
2555
|
+
isAnonymous: e.boolean().optional()
|
|
2556
|
+
}), Ce = N.extend({
|
|
2557
|
+
id: e.string().optional()
|
|
2558
|
+
}), s = e.object({
|
|
2559
|
+
_id: a,
|
|
2560
|
+
comment: e.string(),
|
|
2561
|
+
createTime: e.coerce.date(),
|
|
2562
|
+
businessId: a
|
|
2563
|
+
}), Te = s.extend({
|
|
2564
|
+
source: e.literal("google"),
|
|
2565
|
+
reviewer: ze.optional(),
|
|
2566
|
+
reply: c.optional(),
|
|
2567
|
+
mediaItems: e.array(l),
|
|
2568
|
+
starRating: e.number(),
|
|
2569
|
+
locationName: e.string(),
|
|
2570
|
+
locationDisplayName: e.string()
|
|
2571
|
+
}), ve = s.extend({
|
|
2572
|
+
source: e.literal("facebook"),
|
|
2573
|
+
reviewer: Ce.optional(),
|
|
2574
|
+
isPositive: e.boolean().optional(),
|
|
2575
|
+
pageId: e.string(),
|
|
2576
|
+
pageName: e.string()
|
|
2577
|
+
}), Se = s.extend({
|
|
2578
|
+
source: e.literal("feedme"),
|
|
2579
|
+
reviewer: I,
|
|
2580
|
+
reply: c.optional(),
|
|
2581
|
+
starRating: e.number(),
|
|
2582
|
+
location: L.optional(),
|
|
2583
|
+
mediaItems: e.array(l)
|
|
2584
|
+
});
|
|
2585
|
+
e.discriminatedUnion("source", [
|
|
2586
|
+
Te,
|
|
2587
|
+
ve,
|
|
2588
|
+
Se
|
|
2589
|
+
]);
|
|
2590
|
+
e.object({
|
|
2591
|
+
comment: e.string(),
|
|
2592
|
+
starRating: e.number(),
|
|
2593
|
+
locationId: e.string().optional(),
|
|
2594
|
+
mediaItems: e.array(l).optional()
|
|
2595
|
+
});
|
|
2596
|
+
const g = e.object({
|
|
2597
|
+
_id: a,
|
|
2598
|
+
externalId: e.string().optional(),
|
|
2599
|
+
comment: e.string(),
|
|
2600
|
+
createTime: e.coerce.date(),
|
|
2601
|
+
businessId: a
|
|
2602
|
+
}), Ne = g.extend({
|
|
2603
|
+
source: e.literal("google"),
|
|
2604
|
+
reviewer: ye.optional(),
|
|
2605
|
+
reply: c.optional(),
|
|
2606
|
+
mediaItems: e.array(l),
|
|
2607
|
+
starRating: e.number(),
|
|
2608
|
+
locationName: e.string(),
|
|
2609
|
+
locationDisplayName: e.string()
|
|
2610
|
+
}), Ue = g.extend({
|
|
2611
|
+
source: e.literal("facebook"),
|
|
2612
|
+
reviewer: fe.optional(),
|
|
2613
|
+
isPositive: e.boolean().optional(),
|
|
2614
|
+
pageId: e.string(),
|
|
2615
|
+
pageName: e.string()
|
|
2616
|
+
}), Pe = g.extend({
|
|
2617
|
+
source: e.literal("feedme"),
|
|
2618
|
+
reviewerId: a,
|
|
2619
|
+
reviewer: e.any().optional(),
|
|
2620
|
+
reply: c.optional(),
|
|
2621
|
+
starRating: e.number(),
|
|
2622
|
+
locationId: a.optional(),
|
|
2623
|
+
location: e.any().optional(),
|
|
2624
|
+
mediaItems: e.array(l)
|
|
2625
|
+
});
|
|
2626
|
+
e.discriminatedUnion("source", [
|
|
2627
|
+
Ne,
|
|
2628
|
+
Ue,
|
|
2629
|
+
Pe
|
|
2630
|
+
]).describe(i.describe(be));
|
|
2205
2631
|
export {
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2632
|
+
M as F,
|
|
2633
|
+
Re as T,
|
|
2634
|
+
ce as a,
|
|
2635
|
+
C as b,
|
|
2636
|
+
m as c,
|
|
2637
|
+
D as d,
|
|
2638
|
+
w as e
|
|
2213
2639
|
};
|