@feedmepos/mf-connect 0.1.0-beta.9 → 0.1.0-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/Analytic-D1vIDmhJ.js +620 -0
- package/dist/{App-DQUbRsdA.js → App-DHrfWG8l.js} +249 -250
- package/dist/Broadcast-B2rxZAZi.js +216 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D-BFllvG.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D2a9rcXK.js} +20 -20
- package/dist/Card-Dr6pTTM0.js +824 -0
- package/dist/Collections-0tbg0MFt.js +441 -0
- package/dist/Credit-KbB_7Jq-.js +214 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C_ZKNWzb.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-we7ADwFk.js} +999 -1018
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-VBNyvZCJ.js +344 -0
- package/dist/Experience-C_Q9Iml8.js +211 -0
- package/dist/Game-BwODw7M6.js +250 -0
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +144 -0
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → MainLayout-DpZC6o3R.js} +53 -19
- package/dist/Marketing-QOKTAS_T.js +309 -0
- package/dist/Member-d7RIGRm1.js +92 -0
- package/dist/MemberList-CK9629ew.js +1737 -0
- package/dist/MemberOverview-C2n9oJZh.js +58 -0
- package/dist/{MemberTransactions-zSxSnUkK.js → MemberTransactions-D-pnlXiP.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-3VS7JnK6.js +203 -0
- package/dist/Mission-BAKDm4VZ.js +248 -0
- package/dist/Point-Puu0jKz0.js +220 -0
- package/dist/Promotion-DRIaUvJi.js +244 -0
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CTKKhH-r.js → RuleGroup.vue_vue_type_script_setup_true_lang-DTdfYGya.js} +557 -557
- package/dist/Segment-DpBxGuuu.js +435 -0
- package/dist/Setting-DLB2ywCp.js +1870 -0
- package/dist/Store-8DO6ITWc.js +1513 -0
- package/dist/StoreRewards-DZfqUeYR.js +429 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-2Jqj_rKv.js → StoreTransactions.vue_vue_type_script_setup_true_lang-RTfozD01.js} +10 -10
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BkdSj0cX.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BGI78ycg.js} +1 -1
- package/dist/{Tier-Cpl0FV8L.js → Tier-BnQRujpX.js} +453 -481
- package/dist/{Title-CbMDd1Et.js → Title-BPf1tUFx.js} +295 -314
- package/dist/Transaction-ese0oNrz.js +36 -0
- package/dist/Voucher--gtOZQx1.js +485 -0
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
- package/dist/app-Bt59niI-.js +2974 -0
- package/dist/{app-VxaUCtgl.js → app-DHE61XdR.js} +1 -1
- package/dist/app.js +3 -5
- package/dist/{business-DR7jpnLz.js → business-BSo7EPan.js} +1 -1
- package/dist/{campaign-MqcTb329.js → campaign-CsOje3Ap.js} +3 -5
- package/dist/{collection.fn-CvEoe61K.js → collection.fn-BYQfFJOr.js} +2 -2
- package/dist/dto-CfEXSCq6.js +1145 -0
- package/dist/{effect-BjjQeiQg.js → effect-Bn_ofYS3.js} +9 -9
- package/dist/{export-B8cvWh5n.js → export-CMR243CF.js} +3 -3
- package/dist/{helper-DfgVNY7B.js → helper-BqOQRtvW.js} +1 -1
- package/dist/index-BLDYTxnc.js +28058 -0
- package/dist/{index-C2JNcGc-.js → index-BWnFs-Cb.js} +281 -299
- package/dist/{index-B5NufbUt.js → index-BaBNmzUb.js} +1 -1
- package/dist/{index-CWR3qYjb.js → index-Boo5np6l.js} +1 -1
- package/dist/{index-BsfWRB8R.js → index-CC1GV8OW.js} +1 -1
- package/dist/{index-0UYoh1-7.js → index-CHO4_zsT.js} +1 -1
- package/dist/{index-2P9w5u3m.js → index-DEZsrQ2f.js} +3 -3
- package/dist/{index-C7zMfUgy.js → index-D_f2lmK2.js} +1 -1
- package/dist/{index-Dap5R3vr.js → index-Da142OER.js} +66 -78
- package/dist/index-DbP04yeg.js +11 -0
- package/dist/{index-DBy30v8N.js → index-DtPe-TEm.js} +3 -3
- package/dist/{index-CJ8Uh2Ja.js → index-FvlaxwGB.js} +3 -3
- package/dist/{index.esm2017-D1X3PgpO.js → index.esm2017-ePm--Atp.js} +55 -55
- package/dist/{loading-CJ3nOovJ.js → loading-KNmEMBUB.js} +460 -469
- package/dist/{membership-B1cmSRyk.js → membership-DKoVIS1a.js} +3 -3
- package/dist/money-CkD3zl5C.js +15 -0
- package/dist/number-BDsGpOXm.js +12 -0
- package/dist/{rule-ChWyR-0j.js → rule-CzamI50_.js} +2 -2
- package/dist/{rule-builder-CSmOONdb.js → rule-builder-DHf6wfaQ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-Cug7aRK0.js → template-CFAIPoD7.js} +63 -63
- package/dist/{usePagination-BeF5K3M7.js → usePagination-JoYaROkV.js} +85 -85
- package/dist/{xlsx-CfgPFFvp.js → xlsx-BDJMaozs.js} +517 -517
- package/package.json +4 -7
- package/dist/Analytic-CMXUjK_F.js +0 -622
- package/dist/Broadcast-DowFtHv6.js +0 -223
- package/dist/Card-C7rhL0pV.js +0 -825
- package/dist/Collections-B-1wlk3r.js +0 -453
- package/dist/Credit-DDjozmoF.js +0 -220
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-pwMuIgs5.js +0 -345
- package/dist/Experience-BbE-c1Op.js +0 -221
- package/dist/Game-DQdRpaN-.js +0 -255
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +0 -144
- package/dist/MainLayout-B1aJoR95.js +0 -41
- package/dist/Marketing-Dgmxzg4h.js +0 -316
- package/dist/Member-w23oRVwN.js +0 -69
- package/dist/MemberList-BLIdjznQ.js +0 -1735
- package/dist/MemberOverview-wL_ailso.js +0 -58
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Dy_lMdZA.js +0 -432
- package/dist/Mission-Cjt0E083.js +0 -261
- package/dist/Point-CQJL3Ewu.js +0 -222
- package/dist/Promotion-BYViH3bu.js +0 -247
- package/dist/Segment-B9Jj1ak0.js +0 -437
- package/dist/Setting-DXWbgRxs.js +0 -1901
- package/dist/Store-Dswk2e_z.js +0 -1511
- package/dist/StoreRewards-CNUhG_Ue.js +0 -401
- package/dist/Transaction-BB-kk-84.js +0 -39
- package/dist/Voucher-b1_Jlm6X.js +0 -490
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-pG-SrXp9.js +0 -56
- package/dist/app-DCHKJoql.js +0 -5639
- package/dist/dto-jcK3TGB7.js +0 -2770
- package/dist/index-Cv7pLAYq.js +0 -3
- package/dist/index-LrSSauN2.js +0 -29193
- package/dist/money-BEATdGS6.js +0 -15
- package/dist/number-CeAYAKCp.js +0 -12
- package/dist/vue-i18n-BRhKDHdF.js +0 -2365
- package/dist/zod-Bg2FbC-D.js +0 -90
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { z as e, F as
|
|
3
|
-
import "./index-
|
|
4
|
-
import { R as
|
|
5
|
-
import { i as o } from "./helper-
|
|
6
|
-
import { d as K, e as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as U, ref as B, resolveComponent as c, openBlock as r, createBlock as C, unref as O, withCtx as g, renderSlot as T, createElementBlock as d, toDisplayString as u, createCommentVNode as P, createVNode as I, normalizeClass as L, createElementVNode as H, Fragment as k, renderList as Y } from "vue";
|
|
2
|
+
import { z as e, F as m, m as f } from "./loading-KNmEMBUB.js";
|
|
3
|
+
import "./index-D_f2lmK2.js";
|
|
4
|
+
import { R as a } from "./rule-builder-DHf6wfaQ.js";
|
|
5
|
+
import { i as o } from "./helper-BqOQRtvW.js";
|
|
6
|
+
import { d as K, e as j } from "./index-FvlaxwGB.js";
|
|
7
|
+
const W = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "fm-typo-en-body-lg-400 mb-4"
|
|
10
|
-
},
|
|
10
|
+
}, X = {
|
|
11
11
|
key: 1,
|
|
12
12
|
class: "fm-typo-en-body-lg-400"
|
|
13
|
-
},
|
|
13
|
+
}, q = { class: "rounded-md bg-white shadow-md max-h-[300px] overflow-y-scroll pl-4 py-12" }, ue = /* @__PURE__ */ U({
|
|
14
14
|
__name: "CustomSelect",
|
|
15
15
|
props: {
|
|
16
16
|
label: {
|
|
@@ -36,41 +36,41 @@ const X = {
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
emits: ["update:model-value"],
|
|
39
|
-
setup(
|
|
40
|
-
const
|
|
41
|
-
return (
|
|
42
|
-
const
|
|
43
|
-
return
|
|
44
|
-
"show-popover":
|
|
45
|
-
onPopoverChanged:
|
|
46
|
-
"z-index":
|
|
39
|
+
setup(t, { emit: N }) {
|
|
40
|
+
const v = N, s = B(!1);
|
|
41
|
+
return (b, _) => {
|
|
42
|
+
const M = c("FmIcon"), w = c("FmField"), A = c("FmMenuItem"), F = c("FmPopover");
|
|
43
|
+
return r(), C(F, {
|
|
44
|
+
"show-popover": O(s),
|
|
45
|
+
onPopoverChanged: _[0] || (_[0] = (i) => s.value = i),
|
|
46
|
+
"z-index": t.zIndex
|
|
47
47
|
}, {
|
|
48
48
|
"popover-button": g(() => [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
T(b.$slots, "popover-button", {}, () => [
|
|
50
|
+
t.label ? (r(), d("div", W, u(t.label), 1)) : P("", !0),
|
|
51
|
+
I(w, null, {
|
|
52
52
|
append: g(() => [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
name:
|
|
53
|
+
T(b.$slots, "append"),
|
|
54
|
+
I(M, {
|
|
55
|
+
name: O(s) ? "expand_less" : "expand_more",
|
|
56
56
|
size: "md",
|
|
57
57
|
color: "black"
|
|
58
58
|
}, null, 8, ["name"])
|
|
59
59
|
]),
|
|
60
60
|
default: g(() => {
|
|
61
|
-
var
|
|
61
|
+
var i;
|
|
62
62
|
return [
|
|
63
|
-
|
|
64
|
-
var
|
|
65
|
-
return (
|
|
66
|
-
}).map((
|
|
63
|
+
t.multiselect ? (r(), d("div", X, u(t.items.filter((n) => {
|
|
64
|
+
var p;
|
|
65
|
+
return (p = t.modelValue) == null ? void 0 : p.includes(n.value);
|
|
66
|
+
}).map((n) => n.label).join(", ")), 1)) : (r(), d("div", {
|
|
67
67
|
key: 0,
|
|
68
|
-
class:
|
|
69
|
-
"text-fm-color-typo-secondary": !
|
|
70
|
-
(
|
|
68
|
+
class: L(["fm-typo-en-body-lg-400", {
|
|
69
|
+
"text-fm-color-typo-secondary": !t.items.find(
|
|
70
|
+
(n) => n.value == t.modelValue
|
|
71
71
|
)
|
|
72
72
|
}])
|
|
73
|
-
}, u(((
|
|
73
|
+
}, u(((i = t.items.find((n) => n.value == t.modelValue)) == null ? void 0 : i.label) || t.placeholder), 3))
|
|
74
74
|
];
|
|
75
75
|
}),
|
|
76
76
|
_: 3
|
|
@@ -78,24 +78,24 @@ const X = {
|
|
|
78
78
|
])
|
|
79
79
|
]),
|
|
80
80
|
default: g(() => [
|
|
81
|
-
|
|
82
|
-
(
|
|
83
|
-
var
|
|
84
|
-
return
|
|
85
|
-
class:
|
|
86
|
-
"has-checkbox":
|
|
87
|
-
key:
|
|
88
|
-
"model-value":
|
|
89
|
-
label:
|
|
81
|
+
H("div", q, [
|
|
82
|
+
(r(!0), d(k, null, Y(t.items, (i) => {
|
|
83
|
+
var n, p;
|
|
84
|
+
return r(), C(A, {
|
|
85
|
+
class: L(`${t.multiselect ? (n = t.modelValue) != null && n.some((l) => l == i.value) ? "bg-fm-color-system-warning-100" : "" : t.modelValue == i.value}`),
|
|
86
|
+
"has-checkbox": t.multiselect,
|
|
87
|
+
key: i.value,
|
|
88
|
+
"model-value": t.multiselect ? (p = t.modelValue) == null ? void 0 : p.some((l) => l == i.value) : t.modelValue == i.value,
|
|
89
|
+
label: i.label,
|
|
90
90
|
onClick: (l) => {
|
|
91
91
|
var E;
|
|
92
|
-
if (l.stopPropagation(), !
|
|
93
|
-
|
|
92
|
+
if (l.stopPropagation(), !t.multiselect)
|
|
93
|
+
s.value = !1, v("update:model-value", i.value);
|
|
94
94
|
else {
|
|
95
|
-
const
|
|
96
|
-
|
|
95
|
+
const V = (E = t.modelValue) == null ? void 0 : E.some((y) => y == i.value);
|
|
96
|
+
v(
|
|
97
97
|
"update:model-value",
|
|
98
|
-
|
|
98
|
+
V ? (t.modelValue ?? []).filter((y) => y !== i.value) : [...t.modelValue ?? [], i.value]
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
@@ -107,36 +107,36 @@ const X = {
|
|
|
107
107
|
}, 8, ["show-popover", "z-index"]);
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
}),
|
|
110
|
+
}), fe = {
|
|
111
111
|
PROMOTION: {
|
|
112
112
|
name: "Promotion Template",
|
|
113
113
|
description: "Promotion template for campaign creation.",
|
|
114
114
|
steps: [
|
|
115
115
|
{
|
|
116
|
-
name: "
|
|
116
|
+
name: "General information",
|
|
117
117
|
groups: [
|
|
118
118
|
{
|
|
119
|
-
name: "
|
|
119
|
+
name: "General",
|
|
120
120
|
fields: [
|
|
121
121
|
{
|
|
122
|
-
label: "
|
|
122
|
+
label: "Campaign name",
|
|
123
123
|
property: "campaign.name",
|
|
124
124
|
type: "text"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
label: "
|
|
127
|
+
label: "Campaign description",
|
|
128
128
|
property: "campaign.description",
|
|
129
129
|
type: "textarea"
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
|
-
label: "
|
|
132
|
+
label: "Campaign period",
|
|
133
133
|
property: "campaign.timeframeOptions",
|
|
134
134
|
type: "timeframe"
|
|
135
135
|
}
|
|
136
136
|
]
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
|
-
name: "
|
|
139
|
+
name: "Trigger",
|
|
140
140
|
fields: [
|
|
141
141
|
{
|
|
142
142
|
label: void 0,
|
|
@@ -149,10 +149,10 @@ const X = {
|
|
|
149
149
|
]
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
|
-
name: "
|
|
152
|
+
name: "Discount",
|
|
153
153
|
groups: [
|
|
154
154
|
{
|
|
155
|
-
name: "
|
|
155
|
+
name: "Discount",
|
|
156
156
|
fields: [
|
|
157
157
|
{
|
|
158
158
|
label: void 0,
|
|
@@ -164,10 +164,10 @@ const X = {
|
|
|
164
164
|
]
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
|
-
name: "
|
|
167
|
+
name: "Terms and conditions",
|
|
168
168
|
groups: [
|
|
169
169
|
{
|
|
170
|
-
name: "
|
|
170
|
+
name: "Time limitation",
|
|
171
171
|
fields: [
|
|
172
172
|
{
|
|
173
173
|
label: void 0,
|
|
@@ -178,7 +178,7 @@ const X = {
|
|
|
178
178
|
]
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
|
-
name: "
|
|
181
|
+
name: "Target audience",
|
|
182
182
|
fields: [
|
|
183
183
|
{
|
|
184
184
|
label: void 0,
|
|
@@ -223,7 +223,7 @@ const X = {
|
|
|
223
223
|
effect: null,
|
|
224
224
|
event: {
|
|
225
225
|
type: "MAKING_ORDER",
|
|
226
|
-
rule:
|
|
226
|
+
rule: a.scaffoldGroup()
|
|
227
227
|
},
|
|
228
228
|
group: null,
|
|
229
229
|
targetLocation: null,
|
|
@@ -240,30 +240,30 @@ const X = {
|
|
|
240
240
|
description: "Voucher template for campaign creation.",
|
|
241
241
|
steps: [
|
|
242
242
|
{
|
|
243
|
-
name: "
|
|
243
|
+
name: "General information",
|
|
244
244
|
groups: [
|
|
245
245
|
{
|
|
246
|
-
name: "
|
|
246
|
+
name: "General",
|
|
247
247
|
fields: [
|
|
248
248
|
{
|
|
249
|
-
label: "
|
|
249
|
+
label: "Campaign name",
|
|
250
250
|
property: "campaign.name",
|
|
251
251
|
type: "text"
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
|
-
label: "
|
|
254
|
+
label: "Campaign description",
|
|
255
255
|
property: "campaign.description",
|
|
256
256
|
type: "textarea"
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
|
-
label: "
|
|
259
|
+
label: "Campaign period",
|
|
260
260
|
property: "campaign.timeframeOptions",
|
|
261
261
|
type: "timeframe"
|
|
262
262
|
}
|
|
263
263
|
]
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
|
-
name: "
|
|
266
|
+
name: "Trigger",
|
|
267
267
|
fields: [
|
|
268
268
|
{
|
|
269
269
|
label: void 0,
|
|
@@ -291,10 +291,10 @@ const X = {
|
|
|
291
291
|
]
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
|
-
name: "
|
|
294
|
+
name: "Discount",
|
|
295
295
|
groups: [
|
|
296
296
|
{
|
|
297
|
-
name: "
|
|
297
|
+
name: "Discount",
|
|
298
298
|
fields: [
|
|
299
299
|
{
|
|
300
300
|
label: void 0,
|
|
@@ -304,20 +304,20 @@ const X = {
|
|
|
304
304
|
]
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
|
-
name: "
|
|
307
|
+
name: "Voucher detail",
|
|
308
308
|
fields: [
|
|
309
309
|
{
|
|
310
|
-
label: "
|
|
310
|
+
label: "Voucher name",
|
|
311
311
|
property: "configs.name",
|
|
312
312
|
type: "text"
|
|
313
313
|
},
|
|
314
314
|
{
|
|
315
|
-
label: "
|
|
315
|
+
label: "Voucher description",
|
|
316
316
|
property: "configs.description",
|
|
317
317
|
type: "textarea"
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
|
-
label: "Voucher
|
|
320
|
+
label: "Voucher image",
|
|
321
321
|
property: "configs.image",
|
|
322
322
|
type: "image"
|
|
323
323
|
}
|
|
@@ -326,10 +326,10 @@ const X = {
|
|
|
326
326
|
]
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
|
-
name: "
|
|
329
|
+
name: "Terms and conditions",
|
|
330
330
|
groups: [
|
|
331
331
|
{
|
|
332
|
-
name: "
|
|
332
|
+
name: "Time limitation",
|
|
333
333
|
fields: [
|
|
334
334
|
{
|
|
335
335
|
label: void 0,
|
|
@@ -345,7 +345,7 @@ const X = {
|
|
|
345
345
|
}
|
|
346
346
|
},
|
|
347
347
|
{
|
|
348
|
-
name: "
|
|
348
|
+
name: "Spending criteria",
|
|
349
349
|
fields: [
|
|
350
350
|
{
|
|
351
351
|
label: void 0,
|
|
@@ -359,7 +359,7 @@ const X = {
|
|
|
359
359
|
}
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
|
-
name: "
|
|
362
|
+
name: "Feedback criteria",
|
|
363
363
|
fields: [
|
|
364
364
|
{
|
|
365
365
|
label: void 0,
|
|
@@ -373,7 +373,7 @@ const X = {
|
|
|
373
373
|
}
|
|
374
374
|
},
|
|
375
375
|
{
|
|
376
|
-
name: "
|
|
376
|
+
name: "Target audience",
|
|
377
377
|
fields: [
|
|
378
378
|
{
|
|
379
379
|
label: void 0,
|
|
@@ -388,7 +388,7 @@ const X = {
|
|
|
388
388
|
]
|
|
389
389
|
},
|
|
390
390
|
{
|
|
391
|
-
name: "
|
|
391
|
+
name: "Voucher usage configuration",
|
|
392
392
|
fields: [
|
|
393
393
|
{
|
|
394
394
|
label: void 0,
|
|
@@ -400,10 +400,10 @@ const X = {
|
|
|
400
400
|
]
|
|
401
401
|
},
|
|
402
402
|
{
|
|
403
|
-
name: "
|
|
403
|
+
name: "Configuration",
|
|
404
404
|
groups: [
|
|
405
405
|
{
|
|
406
|
-
name: "
|
|
406
|
+
name: "Location",
|
|
407
407
|
fields: [
|
|
408
408
|
{
|
|
409
409
|
label: "Target location",
|
|
@@ -451,7 +451,7 @@ const X = {
|
|
|
451
451
|
]
|
|
452
452
|
},
|
|
453
453
|
{
|
|
454
|
-
name: "
|
|
454
|
+
name: "Notify message",
|
|
455
455
|
fields: [
|
|
456
456
|
{
|
|
457
457
|
label: "Notification message",
|
|
@@ -480,7 +480,7 @@ const X = {
|
|
|
480
480
|
code: "",
|
|
481
481
|
event: {
|
|
482
482
|
type: "BILL_COMPLETED",
|
|
483
|
-
rule:
|
|
483
|
+
rule: a.scaffoldGroup()
|
|
484
484
|
},
|
|
485
485
|
group: null,
|
|
486
486
|
targetLocation: null,
|
|
@@ -514,25 +514,25 @@ const X = {
|
|
|
514
514
|
description: "Broadcast template for campaign creation.",
|
|
515
515
|
steps: [
|
|
516
516
|
{
|
|
517
|
-
name: "
|
|
517
|
+
name: "General information",
|
|
518
518
|
groups: [
|
|
519
519
|
{
|
|
520
|
-
name: "
|
|
520
|
+
name: "General",
|
|
521
521
|
fields: [
|
|
522
522
|
{
|
|
523
|
-
label: "
|
|
523
|
+
label: "Campaign name",
|
|
524
524
|
property: "campaign.name",
|
|
525
525
|
type: "text"
|
|
526
526
|
},
|
|
527
527
|
{
|
|
528
|
-
label: "
|
|
528
|
+
label: "Campaign description",
|
|
529
529
|
property: "campaign.description",
|
|
530
530
|
type: "textarea"
|
|
531
531
|
}
|
|
532
532
|
]
|
|
533
533
|
},
|
|
534
534
|
{
|
|
535
|
-
name: "
|
|
535
|
+
name: "Trigger",
|
|
536
536
|
fields: [
|
|
537
537
|
{
|
|
538
538
|
label: void 0,
|
|
@@ -543,7 +543,7 @@ const X = {
|
|
|
543
543
|
]
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
|
-
name: "
|
|
546
|
+
name: "Broadcast configuration",
|
|
547
547
|
fields: [
|
|
548
548
|
{
|
|
549
549
|
label: void 0,
|
|
@@ -560,10 +560,10 @@ const X = {
|
|
|
560
560
|
]
|
|
561
561
|
},
|
|
562
562
|
{
|
|
563
|
-
name: "
|
|
563
|
+
name: "Terms and conditions",
|
|
564
564
|
groups: [
|
|
565
565
|
{
|
|
566
|
-
name: "
|
|
566
|
+
name: "Target audience",
|
|
567
567
|
fields: [
|
|
568
568
|
{
|
|
569
569
|
label: void 0,
|
|
@@ -573,7 +573,7 @@ const X = {
|
|
|
573
573
|
]
|
|
574
574
|
},
|
|
575
575
|
{
|
|
576
|
-
name: "
|
|
576
|
+
name: "Feedback criteria",
|
|
577
577
|
fields: [
|
|
578
578
|
{
|
|
579
579
|
label: void 0,
|
|
@@ -589,10 +589,10 @@ const X = {
|
|
|
589
589
|
]
|
|
590
590
|
},
|
|
591
591
|
{
|
|
592
|
-
name: "
|
|
592
|
+
name: "Configuration",
|
|
593
593
|
groups: [
|
|
594
594
|
{
|
|
595
|
-
name: "
|
|
595
|
+
name: "Content",
|
|
596
596
|
fields: [
|
|
597
597
|
{
|
|
598
598
|
label: void 0,
|
|
@@ -602,7 +602,7 @@ const X = {
|
|
|
602
602
|
]
|
|
603
603
|
},
|
|
604
604
|
{
|
|
605
|
-
name: "
|
|
605
|
+
name: "Location",
|
|
606
606
|
fields: [
|
|
607
607
|
{
|
|
608
608
|
label: void 0,
|
|
@@ -625,17 +625,17 @@ const X = {
|
|
|
625
625
|
image: "",
|
|
626
626
|
event: {
|
|
627
627
|
type: "SCHEDULE",
|
|
628
|
-
rule:
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
628
|
+
rule: a.setRuleToGroup(
|
|
629
|
+
a.scaffoldGroup(),
|
|
630
|
+
a.setRuleToGroup(
|
|
631
|
+
a.scaffoldGroup("g_schedule"),
|
|
632
632
|
[
|
|
633
|
-
|
|
633
|
+
a.constructEntry(
|
|
634
634
|
"trigger.date",
|
|
635
635
|
"_rrule",
|
|
636
636
|
"RRULE:FREQ=DAILY;INTERVAL=1;BYHOUR=0;BYMINUTE=0;BYSECOND=0;WKST=SU"
|
|
637
637
|
),
|
|
638
|
-
|
|
638
|
+
a.constructEntry(
|
|
639
639
|
"trigger.time",
|
|
640
640
|
"_isOnTime",
|
|
641
641
|
"00:00"
|
|
@@ -665,30 +665,30 @@ const X = {
|
|
|
665
665
|
description: "Experience template for campaign creation.",
|
|
666
666
|
steps: [
|
|
667
667
|
{
|
|
668
|
-
name: "
|
|
668
|
+
name: "General information",
|
|
669
669
|
groups: [
|
|
670
670
|
{
|
|
671
|
-
name: "
|
|
671
|
+
name: "General",
|
|
672
672
|
fields: [
|
|
673
673
|
{
|
|
674
|
-
label: "
|
|
674
|
+
label: "Campaign name",
|
|
675
675
|
property: "campaign.name",
|
|
676
676
|
type: "text"
|
|
677
677
|
},
|
|
678
678
|
{
|
|
679
|
-
label: "
|
|
679
|
+
label: "Campaign description",
|
|
680
680
|
property: "campaign.description",
|
|
681
681
|
type: "textarea"
|
|
682
682
|
},
|
|
683
683
|
{
|
|
684
|
-
label: "
|
|
684
|
+
label: "Campaign period",
|
|
685
685
|
property: "campaign.timeframeOptions",
|
|
686
686
|
type: "timeframe"
|
|
687
687
|
}
|
|
688
688
|
]
|
|
689
689
|
},
|
|
690
690
|
{
|
|
691
|
-
name: "
|
|
691
|
+
name: "Trigger",
|
|
692
692
|
fields: [
|
|
693
693
|
{
|
|
694
694
|
label: void 0,
|
|
@@ -716,10 +716,10 @@ const X = {
|
|
|
716
716
|
]
|
|
717
717
|
},
|
|
718
718
|
{
|
|
719
|
-
name: "
|
|
719
|
+
name: "Terms and conditions",
|
|
720
720
|
groups: [
|
|
721
721
|
{
|
|
722
|
-
name: "
|
|
722
|
+
name: "Time limitation",
|
|
723
723
|
fields: [
|
|
724
724
|
{
|
|
725
725
|
label: void 0,
|
|
@@ -735,7 +735,7 @@ const X = {
|
|
|
735
735
|
}
|
|
736
736
|
},
|
|
737
737
|
{
|
|
738
|
-
name: "
|
|
738
|
+
name: "Spending criteria",
|
|
739
739
|
fields: [
|
|
740
740
|
{
|
|
741
741
|
label: void 0,
|
|
@@ -749,7 +749,7 @@ const X = {
|
|
|
749
749
|
}
|
|
750
750
|
},
|
|
751
751
|
{
|
|
752
|
-
name: "
|
|
752
|
+
name: "Feedback criteria",
|
|
753
753
|
fields: [
|
|
754
754
|
{
|
|
755
755
|
label: void 0,
|
|
@@ -763,7 +763,7 @@ const X = {
|
|
|
763
763
|
}
|
|
764
764
|
},
|
|
765
765
|
{
|
|
766
|
-
name: "
|
|
766
|
+
name: "Target audience",
|
|
767
767
|
fields: [
|
|
768
768
|
{
|
|
769
769
|
label: void 0,
|
|
@@ -775,10 +775,10 @@ const X = {
|
|
|
775
775
|
]
|
|
776
776
|
},
|
|
777
777
|
{
|
|
778
|
-
name: "
|
|
778
|
+
name: "Configuration",
|
|
779
779
|
groups: [
|
|
780
780
|
{
|
|
781
|
-
name: "
|
|
781
|
+
name: "Earning type",
|
|
782
782
|
fields: [
|
|
783
783
|
{
|
|
784
784
|
label: void 0,
|
|
@@ -794,7 +794,7 @@ const X = {
|
|
|
794
794
|
]
|
|
795
795
|
},
|
|
796
796
|
{
|
|
797
|
-
name: "
|
|
797
|
+
name: "Location",
|
|
798
798
|
fields: [
|
|
799
799
|
{
|
|
800
800
|
label: "Target location",
|
|
@@ -829,7 +829,7 @@ const X = {
|
|
|
829
829
|
image: "",
|
|
830
830
|
event: {
|
|
831
831
|
type: "BILL_COMPLETED",
|
|
832
|
-
rule:
|
|
832
|
+
rule: a.scaffoldGroup()
|
|
833
833
|
},
|
|
834
834
|
group: null,
|
|
835
835
|
targetLocation: null,
|
|
@@ -852,30 +852,30 @@ const X = {
|
|
|
852
852
|
description: "Point template for campaign creation.",
|
|
853
853
|
steps: [
|
|
854
854
|
{
|
|
855
|
-
name: "
|
|
855
|
+
name: "General information",
|
|
856
856
|
groups: [
|
|
857
857
|
{
|
|
858
|
-
name: "
|
|
858
|
+
name: "General",
|
|
859
859
|
fields: [
|
|
860
860
|
{
|
|
861
|
-
label: "
|
|
861
|
+
label: "Campaign name",
|
|
862
862
|
property: "campaign.name",
|
|
863
863
|
type: "text"
|
|
864
864
|
},
|
|
865
865
|
{
|
|
866
|
-
label: "
|
|
866
|
+
label: "Campaign description",
|
|
867
867
|
property: "campaign.description",
|
|
868
868
|
type: "textarea"
|
|
869
869
|
},
|
|
870
870
|
{
|
|
871
|
-
label: "
|
|
871
|
+
label: "Campaign period",
|
|
872
872
|
property: "campaign.timeframeOptions",
|
|
873
873
|
type: "timeframe"
|
|
874
874
|
}
|
|
875
875
|
]
|
|
876
876
|
},
|
|
877
877
|
{
|
|
878
|
-
name: "
|
|
878
|
+
name: "Trigger",
|
|
879
879
|
fields: [
|
|
880
880
|
{
|
|
881
881
|
label: void 0,
|
|
@@ -903,10 +903,10 @@ const X = {
|
|
|
903
903
|
]
|
|
904
904
|
},
|
|
905
905
|
{
|
|
906
|
-
name: "
|
|
906
|
+
name: "Terms and conditions",
|
|
907
907
|
groups: [
|
|
908
908
|
{
|
|
909
|
-
name: "
|
|
909
|
+
name: "Time limitation",
|
|
910
910
|
fields: [
|
|
911
911
|
{
|
|
912
912
|
label: void 0,
|
|
@@ -922,7 +922,7 @@ const X = {
|
|
|
922
922
|
}
|
|
923
923
|
},
|
|
924
924
|
{
|
|
925
|
-
name: "
|
|
925
|
+
name: "Spending criteria",
|
|
926
926
|
fields: [
|
|
927
927
|
{
|
|
928
928
|
label: void 0,
|
|
@@ -936,7 +936,7 @@ const X = {
|
|
|
936
936
|
}
|
|
937
937
|
},
|
|
938
938
|
{
|
|
939
|
-
name: "
|
|
939
|
+
name: "Feedback criteria",
|
|
940
940
|
fields: [
|
|
941
941
|
{
|
|
942
942
|
label: void 0,
|
|
@@ -950,7 +950,7 @@ const X = {
|
|
|
950
950
|
}
|
|
951
951
|
},
|
|
952
952
|
{
|
|
953
|
-
name: "
|
|
953
|
+
name: "Target audience",
|
|
954
954
|
fields: [
|
|
955
955
|
{
|
|
956
956
|
label: void 0,
|
|
@@ -962,10 +962,10 @@ const X = {
|
|
|
962
962
|
]
|
|
963
963
|
},
|
|
964
964
|
{
|
|
965
|
-
name: "
|
|
965
|
+
name: "Configuration",
|
|
966
966
|
groups: [
|
|
967
967
|
{
|
|
968
|
-
name: "
|
|
968
|
+
name: "Earning type",
|
|
969
969
|
fields: [
|
|
970
970
|
{
|
|
971
971
|
label: void 0,
|
|
@@ -981,7 +981,7 @@ const X = {
|
|
|
981
981
|
]
|
|
982
982
|
},
|
|
983
983
|
{
|
|
984
|
-
name: "
|
|
984
|
+
name: "Location",
|
|
985
985
|
fields: [
|
|
986
986
|
{
|
|
987
987
|
label: "Target location",
|
|
@@ -1016,7 +1016,7 @@ const X = {
|
|
|
1016
1016
|
image: "",
|
|
1017
1017
|
event: {
|
|
1018
1018
|
type: "BILL_COMPLETED",
|
|
1019
|
-
rule:
|
|
1019
|
+
rule: a.scaffoldGroup()
|
|
1020
1020
|
},
|
|
1021
1021
|
group: null,
|
|
1022
1022
|
targetLocation: null,
|
|
@@ -1039,30 +1039,30 @@ const X = {
|
|
|
1039
1039
|
description: "Credit template for campaign creation.",
|
|
1040
1040
|
steps: [
|
|
1041
1041
|
{
|
|
1042
|
-
name: "
|
|
1042
|
+
name: "General information",
|
|
1043
1043
|
groups: [
|
|
1044
1044
|
{
|
|
1045
|
-
name: "
|
|
1045
|
+
name: "General",
|
|
1046
1046
|
fields: [
|
|
1047
1047
|
{
|
|
1048
|
-
label: "
|
|
1048
|
+
label: "Campaign name",
|
|
1049
1049
|
property: "campaign.name",
|
|
1050
1050
|
type: "text"
|
|
1051
1051
|
},
|
|
1052
1052
|
{
|
|
1053
|
-
label: "
|
|
1053
|
+
label: "Campaign description",
|
|
1054
1054
|
property: "campaign.description",
|
|
1055
1055
|
type: "textarea"
|
|
1056
1056
|
},
|
|
1057
1057
|
{
|
|
1058
|
-
label: "
|
|
1058
|
+
label: "Campaign period",
|
|
1059
1059
|
property: "campaign.timeframeOptions",
|
|
1060
1060
|
type: "timeframe"
|
|
1061
1061
|
}
|
|
1062
1062
|
]
|
|
1063
1063
|
},
|
|
1064
1064
|
{
|
|
1065
|
-
name: "
|
|
1065
|
+
name: "Trigger",
|
|
1066
1066
|
fields: [
|
|
1067
1067
|
{
|
|
1068
1068
|
label: void 0,
|
|
@@ -1090,10 +1090,10 @@ const X = {
|
|
|
1090
1090
|
]
|
|
1091
1091
|
},
|
|
1092
1092
|
{
|
|
1093
|
-
name: "
|
|
1093
|
+
name: "Terms and conditions",
|
|
1094
1094
|
groups: [
|
|
1095
1095
|
{
|
|
1096
|
-
name: "
|
|
1096
|
+
name: "Time limitation",
|
|
1097
1097
|
fields: [
|
|
1098
1098
|
{
|
|
1099
1099
|
label: void 0,
|
|
@@ -1109,7 +1109,7 @@ const X = {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
},
|
|
1111
1111
|
{
|
|
1112
|
-
name: "
|
|
1112
|
+
name: "Spending criteria",
|
|
1113
1113
|
fields: [
|
|
1114
1114
|
{
|
|
1115
1115
|
label: void 0,
|
|
@@ -1123,7 +1123,7 @@ const X = {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
},
|
|
1125
1125
|
{
|
|
1126
|
-
name: "
|
|
1126
|
+
name: "Feedback criteria",
|
|
1127
1127
|
fields: [
|
|
1128
1128
|
{
|
|
1129
1129
|
label: void 0,
|
|
@@ -1137,7 +1137,7 @@ const X = {
|
|
|
1137
1137
|
}
|
|
1138
1138
|
},
|
|
1139
1139
|
{
|
|
1140
|
-
name: "
|
|
1140
|
+
name: "Target audience",
|
|
1141
1141
|
fields: [
|
|
1142
1142
|
{
|
|
1143
1143
|
label: void 0,
|
|
@@ -1149,10 +1149,10 @@ const X = {
|
|
|
1149
1149
|
]
|
|
1150
1150
|
},
|
|
1151
1151
|
{
|
|
1152
|
-
name: "
|
|
1152
|
+
name: "Configuration",
|
|
1153
1153
|
groups: [
|
|
1154
1154
|
{
|
|
1155
|
-
name: "
|
|
1155
|
+
name: "Earning type",
|
|
1156
1156
|
fields: [
|
|
1157
1157
|
{
|
|
1158
1158
|
label: void 0,
|
|
@@ -1168,7 +1168,7 @@ const X = {
|
|
|
1168
1168
|
]
|
|
1169
1169
|
},
|
|
1170
1170
|
{
|
|
1171
|
-
name: "
|
|
1171
|
+
name: "Location",
|
|
1172
1172
|
fields: [
|
|
1173
1173
|
{
|
|
1174
1174
|
label: "Target location",
|
|
@@ -1203,7 +1203,7 @@ const X = {
|
|
|
1203
1203
|
image: "",
|
|
1204
1204
|
event: {
|
|
1205
1205
|
type: "BILL_COMPLETED",
|
|
1206
|
-
rule:
|
|
1206
|
+
rule: a.scaffoldGroup()
|
|
1207
1207
|
},
|
|
1208
1208
|
group: null,
|
|
1209
1209
|
targetLocation: null,
|
|
@@ -1226,30 +1226,30 @@ const X = {
|
|
|
1226
1226
|
description: "Token template for campaign creation.",
|
|
1227
1227
|
steps: [
|
|
1228
1228
|
{
|
|
1229
|
-
name: "
|
|
1229
|
+
name: "General information",
|
|
1230
1230
|
groups: [
|
|
1231
1231
|
{
|
|
1232
|
-
name: "
|
|
1232
|
+
name: "General",
|
|
1233
1233
|
fields: [
|
|
1234
1234
|
{
|
|
1235
|
-
label: "
|
|
1235
|
+
label: "Campaign name",
|
|
1236
1236
|
property: "campaign.name",
|
|
1237
1237
|
type: "text"
|
|
1238
1238
|
},
|
|
1239
1239
|
{
|
|
1240
|
-
label: "
|
|
1240
|
+
label: "Campaign description",
|
|
1241
1241
|
property: "campaign.description",
|
|
1242
1242
|
type: "textarea"
|
|
1243
1243
|
},
|
|
1244
1244
|
{
|
|
1245
|
-
label: "
|
|
1245
|
+
label: "Campaign period",
|
|
1246
1246
|
property: "campaign.timeframeOptions",
|
|
1247
1247
|
type: "timeframe"
|
|
1248
1248
|
}
|
|
1249
1249
|
]
|
|
1250
1250
|
},
|
|
1251
1251
|
{
|
|
1252
|
-
name: "
|
|
1252
|
+
name: "Trigger",
|
|
1253
1253
|
fields: [
|
|
1254
1254
|
{
|
|
1255
1255
|
label: void 0,
|
|
@@ -1277,10 +1277,10 @@ const X = {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
},
|
|
1279
1279
|
{
|
|
1280
|
-
name: "
|
|
1280
|
+
name: "Terms and conditions",
|
|
1281
1281
|
groups: [
|
|
1282
1282
|
{
|
|
1283
|
-
name: "
|
|
1283
|
+
name: "Time limitation",
|
|
1284
1284
|
fields: [
|
|
1285
1285
|
{
|
|
1286
1286
|
label: void 0,
|
|
@@ -1296,7 +1296,7 @@ const X = {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
},
|
|
1298
1298
|
{
|
|
1299
|
-
name: "
|
|
1299
|
+
name: "Spending criteria",
|
|
1300
1300
|
fields: [
|
|
1301
1301
|
{
|
|
1302
1302
|
label: void 0,
|
|
@@ -1310,7 +1310,7 @@ const X = {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
},
|
|
1312
1312
|
{
|
|
1313
|
-
name: "
|
|
1313
|
+
name: "Feedback criteria",
|
|
1314
1314
|
fields: [
|
|
1315
1315
|
{
|
|
1316
1316
|
label: void 0,
|
|
@@ -1324,7 +1324,7 @@ const X = {
|
|
|
1324
1324
|
}
|
|
1325
1325
|
},
|
|
1326
1326
|
{
|
|
1327
|
-
name: "
|
|
1327
|
+
name: "Target audience",
|
|
1328
1328
|
fields: [
|
|
1329
1329
|
{
|
|
1330
1330
|
label: void 0,
|
|
@@ -1336,10 +1336,10 @@ const X = {
|
|
|
1336
1336
|
]
|
|
1337
1337
|
},
|
|
1338
1338
|
{
|
|
1339
|
-
name: "
|
|
1339
|
+
name: "Configuration",
|
|
1340
1340
|
groups: [
|
|
1341
1341
|
{
|
|
1342
|
-
name: "
|
|
1342
|
+
name: "Earning type",
|
|
1343
1343
|
fields: [
|
|
1344
1344
|
{
|
|
1345
1345
|
label: void 0,
|
|
@@ -1355,7 +1355,7 @@ const X = {
|
|
|
1355
1355
|
]
|
|
1356
1356
|
},
|
|
1357
1357
|
{
|
|
1358
|
-
name: "
|
|
1358
|
+
name: "Location",
|
|
1359
1359
|
fields: [
|
|
1360
1360
|
{
|
|
1361
1361
|
label: "Target location",
|
|
@@ -1367,10 +1367,10 @@ const X = {
|
|
|
1367
1367
|
]
|
|
1368
1368
|
},
|
|
1369
1369
|
{
|
|
1370
|
-
name: "
|
|
1370
|
+
name: "Game configuration",
|
|
1371
1371
|
groups: [
|
|
1372
1372
|
{
|
|
1373
|
-
name: "
|
|
1373
|
+
name: "Game type",
|
|
1374
1374
|
fields: [
|
|
1375
1375
|
{
|
|
1376
1376
|
label: "Select a game where you want your customer to play",
|
|
@@ -1382,10 +1382,10 @@ const X = {
|
|
|
1382
1382
|
]
|
|
1383
1383
|
},
|
|
1384
1384
|
{
|
|
1385
|
-
name: "
|
|
1385
|
+
name: "Reward pool",
|
|
1386
1386
|
groups: [
|
|
1387
1387
|
{
|
|
1388
|
-
name: "
|
|
1388
|
+
name: "Reward pool",
|
|
1389
1389
|
fields: [
|
|
1390
1390
|
{
|
|
1391
1391
|
label: "Configure the reward type and weightage given to your customer.",
|
|
@@ -1410,7 +1410,7 @@ const X = {
|
|
|
1410
1410
|
image: "",
|
|
1411
1411
|
event: {
|
|
1412
1412
|
type: "BILL_COMPLETED",
|
|
1413
|
-
rule:
|
|
1413
|
+
rule: a.scaffoldGroup()
|
|
1414
1414
|
},
|
|
1415
1415
|
group: null,
|
|
1416
1416
|
targetLocation: null,
|
|
@@ -1428,7 +1428,7 @@ const X = {
|
|
|
1428
1428
|
game: {
|
|
1429
1429
|
event: {
|
|
1430
1430
|
type: "GAME_COMPLETED",
|
|
1431
|
-
rule:
|
|
1431
|
+
rule: a.scaffoldGroup()
|
|
1432
1432
|
},
|
|
1433
1433
|
name: "rewardpool_",
|
|
1434
1434
|
targetLocation: null,
|
|
@@ -1452,30 +1452,30 @@ const X = {
|
|
|
1452
1452
|
description: "Mission template for campaign creation.",
|
|
1453
1453
|
steps: [
|
|
1454
1454
|
{
|
|
1455
|
-
name: "
|
|
1455
|
+
name: "General information",
|
|
1456
1456
|
groups: [
|
|
1457
1457
|
{
|
|
1458
|
-
name: "
|
|
1458
|
+
name: "General",
|
|
1459
1459
|
fields: [
|
|
1460
1460
|
{
|
|
1461
|
-
label: "
|
|
1461
|
+
label: "Campaign name",
|
|
1462
1462
|
property: "campaign.name",
|
|
1463
1463
|
type: "text"
|
|
1464
1464
|
},
|
|
1465
1465
|
{
|
|
1466
|
-
label: "
|
|
1466
|
+
label: "Campaign description",
|
|
1467
1467
|
property: "campaign.description",
|
|
1468
1468
|
type: "textarea"
|
|
1469
1469
|
},
|
|
1470
1470
|
{
|
|
1471
|
-
label: "
|
|
1471
|
+
label: "Campaign period",
|
|
1472
1472
|
property: "campaign.timeframeOptions",
|
|
1473
1473
|
type: "timeframe"
|
|
1474
1474
|
}
|
|
1475
1475
|
]
|
|
1476
1476
|
},
|
|
1477
1477
|
{
|
|
1478
|
-
name: "
|
|
1478
|
+
name: "Trigger",
|
|
1479
1479
|
fields: [
|
|
1480
1480
|
{
|
|
1481
1481
|
label: void 0,
|
|
@@ -1503,10 +1503,10 @@ const X = {
|
|
|
1503
1503
|
]
|
|
1504
1504
|
},
|
|
1505
1505
|
{
|
|
1506
|
-
name: "
|
|
1506
|
+
name: "Terms and conditions",
|
|
1507
1507
|
groups: [
|
|
1508
1508
|
{
|
|
1509
|
-
name: "
|
|
1509
|
+
name: "Time limitation",
|
|
1510
1510
|
fields: [
|
|
1511
1511
|
{
|
|
1512
1512
|
label: void 0,
|
|
@@ -1522,7 +1522,7 @@ const X = {
|
|
|
1522
1522
|
}
|
|
1523
1523
|
},
|
|
1524
1524
|
{
|
|
1525
|
-
name: "
|
|
1525
|
+
name: "Feedback criteria",
|
|
1526
1526
|
fields: [
|
|
1527
1527
|
{
|
|
1528
1528
|
label: void 0,
|
|
@@ -1536,7 +1536,7 @@ const X = {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
},
|
|
1538
1538
|
{
|
|
1539
|
-
name: "
|
|
1539
|
+
name: "Target audience",
|
|
1540
1540
|
fields: [
|
|
1541
1541
|
{
|
|
1542
1542
|
label: void 0,
|
|
@@ -1546,7 +1546,7 @@ const X = {
|
|
|
1546
1546
|
]
|
|
1547
1547
|
},
|
|
1548
1548
|
{
|
|
1549
|
-
name: "
|
|
1549
|
+
name: "Spending criteria",
|
|
1550
1550
|
fields: [
|
|
1551
1551
|
{
|
|
1552
1552
|
label: void 0,
|
|
@@ -1562,7 +1562,7 @@ const X = {
|
|
|
1562
1562
|
]
|
|
1563
1563
|
},
|
|
1564
1564
|
{
|
|
1565
|
-
name: "
|
|
1565
|
+
name: "Configuration",
|
|
1566
1566
|
groups: [
|
|
1567
1567
|
// {
|
|
1568
1568
|
// name: 'Earning type',
|
|
@@ -1576,7 +1576,7 @@ const X = {
|
|
|
1576
1576
|
// ],
|
|
1577
1577
|
// },
|
|
1578
1578
|
{
|
|
1579
|
-
name: "
|
|
1579
|
+
name: "Location",
|
|
1580
1580
|
fields: [
|
|
1581
1581
|
{
|
|
1582
1582
|
label: "Target location",
|
|
@@ -1588,7 +1588,7 @@ const X = {
|
|
|
1588
1588
|
]
|
|
1589
1589
|
},
|
|
1590
1590
|
{
|
|
1591
|
-
name: "
|
|
1591
|
+
name: "Mission configuration",
|
|
1592
1592
|
groups: [
|
|
1593
1593
|
{
|
|
1594
1594
|
name: void 0,
|
|
@@ -1601,7 +1601,7 @@ const X = {
|
|
|
1601
1601
|
]
|
|
1602
1602
|
},
|
|
1603
1603
|
{
|
|
1604
|
-
name: "
|
|
1604
|
+
name: "Earning type",
|
|
1605
1605
|
fields: [
|
|
1606
1606
|
{
|
|
1607
1607
|
label: void 0,
|
|
@@ -1612,7 +1612,7 @@ const X = {
|
|
|
1612
1612
|
]
|
|
1613
1613
|
},
|
|
1614
1614
|
{
|
|
1615
|
-
name: "
|
|
1615
|
+
name: "Validity configuration",
|
|
1616
1616
|
fields: [
|
|
1617
1617
|
{
|
|
1618
1618
|
label: void 0,
|
|
@@ -1622,7 +1622,7 @@ const X = {
|
|
|
1622
1622
|
]
|
|
1623
1623
|
},
|
|
1624
1624
|
{
|
|
1625
|
-
name: "
|
|
1625
|
+
name: "Mission participation",
|
|
1626
1626
|
fields: [
|
|
1627
1627
|
{
|
|
1628
1628
|
label: void 0,
|
|
@@ -1635,10 +1635,10 @@ const X = {
|
|
|
1635
1635
|
]
|
|
1636
1636
|
},
|
|
1637
1637
|
{
|
|
1638
|
-
name: "
|
|
1638
|
+
name: "Reward setup",
|
|
1639
1639
|
groups: [
|
|
1640
1640
|
{
|
|
1641
|
-
name: "
|
|
1641
|
+
name: "Configure reward",
|
|
1642
1642
|
fields: [
|
|
1643
1643
|
{
|
|
1644
1644
|
label: "Configure the reward type given to your customer.",
|
|
@@ -1665,7 +1665,7 @@ const X = {
|
|
|
1665
1665
|
},
|
|
1666
1666
|
event: {
|
|
1667
1667
|
type: "BILL_COMPLETED",
|
|
1668
|
-
rule:
|
|
1668
|
+
rule: a.scaffoldGroup()
|
|
1669
1669
|
},
|
|
1670
1670
|
mission: {
|
|
1671
1671
|
type: "STAMP",
|
|
@@ -1688,46 +1688,46 @@ const X = {
|
|
|
1688
1688
|
}
|
|
1689
1689
|
}
|
|
1690
1690
|
};
|
|
1691
|
-
|
|
1691
|
+
a.scaffoldGroup(), o("STAMP", {
|
|
1692
1692
|
business: null,
|
|
1693
1693
|
noCampaign: !1
|
|
1694
1694
|
});
|
|
1695
1695
|
({
|
|
1696
|
-
...
|
|
1696
|
+
...a.scaffoldGroup()
|
|
1697
1697
|
}, o("VOUCHER", {
|
|
1698
1698
|
name: "",
|
|
1699
1699
|
business: null,
|
|
1700
1700
|
noCampaign: !1
|
|
1701
1701
|
}));
|
|
1702
1702
|
({
|
|
1703
|
-
...
|
|
1703
|
+
...a.scaffoldGroup()
|
|
1704
1704
|
}, o("VOUCHER", {
|
|
1705
1705
|
name: "",
|
|
1706
1706
|
business: null,
|
|
1707
1707
|
noCampaign: !1
|
|
1708
1708
|
}));
|
|
1709
1709
|
({
|
|
1710
|
-
...
|
|
1710
|
+
...a.scaffoldGroup()
|
|
1711
1711
|
});
|
|
1712
1712
|
({
|
|
1713
|
-
...
|
|
1713
|
+
...a.scaffoldGroup()
|
|
1714
1714
|
});
|
|
1715
1715
|
({
|
|
1716
|
-
...
|
|
1716
|
+
...a.scaffoldGroup()
|
|
1717
1717
|
});
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
[
|
|
1718
|
+
a.setRuleToGroup(
|
|
1719
|
+
a.scaffoldGroup(),
|
|
1720
|
+
a.setRuleToGroup(
|
|
1721
|
+
a.scaffoldGroup("g_user"),
|
|
1722
|
+
[a.constructEntry("user.member", "_isIn", [!0])],
|
|
1723
1723
|
"&&"
|
|
1724
1724
|
)
|
|
1725
1725
|
);
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1726
|
+
a.setRuleToGroup(a.scaffoldGroup(), [
|
|
1727
|
+
a.setRuleToGroup(
|
|
1728
|
+
a.scaffoldGroup("g_user"),
|
|
1729
1729
|
[
|
|
1730
|
-
|
|
1730
|
+
a.constructEntry("user.birthday", "_isRange", {
|
|
1731
1731
|
op: "this",
|
|
1732
1732
|
unit: "month",
|
|
1733
1733
|
ignoreYear: !0
|
|
@@ -1737,88 +1737,88 @@ t.setRuleToGroup(t.scaffoldGroup(), [
|
|
|
1737
1737
|
)
|
|
1738
1738
|
]);
|
|
1739
1739
|
({
|
|
1740
|
-
...
|
|
1740
|
+
...a.scaffoldGroup()
|
|
1741
1741
|
});
|
|
1742
1742
|
({
|
|
1743
|
-
...
|
|
1743
|
+
...a.scaffoldGroup()
|
|
1744
1744
|
});
|
|
1745
1745
|
({
|
|
1746
|
-
...
|
|
1746
|
+
...a.scaffoldGroup()
|
|
1747
1747
|
}, o("VOUCHER", {
|
|
1748
1748
|
name: "",
|
|
1749
1749
|
business: null,
|
|
1750
1750
|
noCampaign: !1
|
|
1751
1751
|
}));
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1752
|
+
a.setRuleToGroup(
|
|
1753
|
+
a.scaffoldGroup(),
|
|
1754
|
+
a.setRuleToGroup(
|
|
1755
|
+
a.scaffoldGroup("g_schedule"),
|
|
1756
1756
|
[
|
|
1757
|
-
|
|
1758
|
-
|
|
1757
|
+
a.constructEntry("trigger.date", "_isOnDate", ""),
|
|
1758
|
+
a.constructEntry("trigger.time", "_isOnTime", "00:00")
|
|
1759
1759
|
],
|
|
1760
1760
|
"&&"
|
|
1761
1761
|
)
|
|
1762
1762
|
);
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1763
|
+
a.setRuleToGroup(a.scaffoldGroup(), [
|
|
1764
|
+
a.setRuleToGroup(
|
|
1765
|
+
a.scaffoldGroup("g_schedule"),
|
|
1766
1766
|
[
|
|
1767
|
-
|
|
1767
|
+
a.constructEntry(
|
|
1768
1768
|
"trigger.date",
|
|
1769
1769
|
"_rrule",
|
|
1770
1770
|
"RRULE:FREQ=MONTHLY;INTERVAL=1;BYHOUR=0;BYMINUTE=0;BYSECOND=0;WKST=SU;BYMONTHDAY=1"
|
|
1771
1771
|
),
|
|
1772
|
-
|
|
1772
|
+
a.constructEntry("trigger.time", "_isOnTime", "00:00")
|
|
1773
1773
|
],
|
|
1774
1774
|
"&&"
|
|
1775
1775
|
)
|
|
1776
1776
|
]);
|
|
1777
|
-
({ ...
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1777
|
+
({ ...a.scaffoldGroup() });
|
|
1778
|
+
a.setRuleToGroup(
|
|
1779
|
+
a.scaffoldGroup(),
|
|
1780
|
+
a.setRuleToGroup(
|
|
1781
|
+
a.scaffoldGroup("g_schedule"),
|
|
1782
1782
|
[
|
|
1783
|
-
|
|
1783
|
+
a.constructEntry(
|
|
1784
1784
|
"trigger.date",
|
|
1785
1785
|
"_rrule",
|
|
1786
1786
|
"RRULE:FREQ=WEEKLY;INTERVAL=1;BYHOUR=0;BYMINUTE=0;BYSECOND=0;WKST=SU;BYDAY=MO"
|
|
1787
1787
|
),
|
|
1788
|
-
|
|
1788
|
+
a.constructEntry("trigger.time", "_isOnTime", "00:00")
|
|
1789
1789
|
],
|
|
1790
1790
|
"&&"
|
|
1791
1791
|
)
|
|
1792
1792
|
);
|
|
1793
|
-
|
|
1793
|
+
a.scaffoldGroup(), a.scaffoldGroup(), o("GAME", {
|
|
1794
1794
|
name: "Token",
|
|
1795
1795
|
business: null,
|
|
1796
1796
|
noCampaign: !1
|
|
1797
1797
|
});
|
|
1798
1798
|
({
|
|
1799
|
-
...
|
|
1799
|
+
...a.scaffoldGroup()
|
|
1800
1800
|
}, o("VOUCHER", {
|
|
1801
1801
|
name: "",
|
|
1802
1802
|
business: null,
|
|
1803
1803
|
noCampaign: !1
|
|
1804
1804
|
}));
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1805
|
+
a.setRuleToGroup(a.scaffoldGroup(), [
|
|
1806
|
+
a.setRuleToGroup(
|
|
1807
|
+
a.scaffoldGroup("g_schedule"),
|
|
1808
1808
|
[
|
|
1809
|
-
|
|
1809
|
+
a.constructEntry(
|
|
1810
1810
|
"trigger.date",
|
|
1811
1811
|
"_rrule",
|
|
1812
1812
|
"RRULE:FREQ=MONTHLY;INTERVAL=1;BYHOUR=0;BYMINUTE=0;BYSECOND=0;WKST=SU;BYMONTHDAY=1"
|
|
1813
1813
|
),
|
|
1814
|
-
|
|
1814
|
+
a.constructEntry("trigger.time", "_isOnTime", "00:00")
|
|
1815
1815
|
],
|
|
1816
1816
|
"&&"
|
|
1817
1817
|
),
|
|
1818
|
-
|
|
1819
|
-
|
|
1818
|
+
a.setRuleToGroup(
|
|
1819
|
+
a.scaffoldGroup("g_user"),
|
|
1820
1820
|
[
|
|
1821
|
-
|
|
1821
|
+
a.constructEntry("user.birthday", "_isRange", {
|
|
1822
1822
|
op: "this",
|
|
1823
1823
|
unit: "month",
|
|
1824
1824
|
ignoreYear: !0
|
|
@@ -1832,24 +1832,24 @@ t.setRuleToGroup(t.scaffoldGroup(), [
|
|
|
1832
1832
|
noCampaign: !1
|
|
1833
1833
|
});
|
|
1834
1834
|
({
|
|
1835
|
-
...
|
|
1835
|
+
...a.scaffoldGroup()
|
|
1836
1836
|
});
|
|
1837
1837
|
({
|
|
1838
|
-
...
|
|
1838
|
+
...a.scaffoldGroup()
|
|
1839
1839
|
});
|
|
1840
1840
|
({
|
|
1841
|
-
...
|
|
1841
|
+
...a.scaffoldGroup()
|
|
1842
1842
|
});
|
|
1843
1843
|
({
|
|
1844
|
-
...
|
|
1844
|
+
...a.scaffoldGroup()
|
|
1845
1845
|
});
|
|
1846
1846
|
({
|
|
1847
|
-
...
|
|
1847
|
+
...a.scaffoldGroup()
|
|
1848
1848
|
});
|
|
1849
1849
|
({
|
|
1850
|
-
...
|
|
1850
|
+
...a.scaffoldGroup()
|
|
1851
1851
|
});
|
|
1852
|
-
const
|
|
1852
|
+
const z = e.enum([
|
|
1853
1853
|
"MEMBER_REWARD",
|
|
1854
1854
|
"PAID_LOYALTY",
|
|
1855
1855
|
"COLLECT_FEEDBACK",
|
|
@@ -1859,7 +1859,7 @@ const Q = e.enum([
|
|
|
1859
1859
|
"BROADCAST",
|
|
1860
1860
|
"BIRTHDAY",
|
|
1861
1861
|
"GAME"
|
|
1862
|
-
]),
|
|
1862
|
+
]), Q = e.enum([
|
|
1863
1863
|
"text",
|
|
1864
1864
|
"number",
|
|
1865
1865
|
"textarea",
|
|
@@ -1886,100 +1886,82 @@ const Q = e.enum([
|
|
|
1886
1886
|
"rule_feedback",
|
|
1887
1887
|
"rule_birthday",
|
|
1888
1888
|
"promotion_game_type"
|
|
1889
|
-
]),
|
|
1889
|
+
]), J = e.object({
|
|
1890
1890
|
label: e.string().optional(),
|
|
1891
1891
|
property: e.string().or(e.any()),
|
|
1892
|
-
type:
|
|
1892
|
+
type: Q,
|
|
1893
1893
|
extras: e.string().optional(),
|
|
1894
1894
|
isRuleChildren: e.boolean().optional()
|
|
1895
|
-
}),
|
|
1895
|
+
}), $ = e.object({
|
|
1896
1896
|
name: e.string().optional(),
|
|
1897
|
-
fields: e.array(
|
|
1897
|
+
fields: e.array(J),
|
|
1898
1898
|
condition: e.object({
|
|
1899
1899
|
not: e.boolean().optional(),
|
|
1900
1900
|
property: e.string(),
|
|
1901
1901
|
value: e.any()
|
|
1902
1902
|
}).optional()
|
|
1903
|
-
}),
|
|
1903
|
+
}), Z = e.object({
|
|
1904
1904
|
name: e.string(),
|
|
1905
|
-
groups: e.array(
|
|
1905
|
+
groups: e.array($)
|
|
1906
1906
|
});
|
|
1907
1907
|
e.object({
|
|
1908
|
-
_id:
|
|
1908
|
+
_id: m,
|
|
1909
1909
|
name: e.string(),
|
|
1910
1910
|
description: e.string().nullish(),
|
|
1911
|
-
steps: e.array(
|
|
1912
|
-
intention: e.array(
|
|
1911
|
+
steps: e.array(Z).min(1),
|
|
1912
|
+
intention: e.array(z),
|
|
1913
1913
|
defaultValue: e.any()
|
|
1914
1914
|
}).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
|
|
1915
|
-
const
|
|
1915
|
+
const ee = {
|
|
1916
1916
|
collectionName: "Businesses",
|
|
1917
1917
|
transform: {
|
|
1918
1918
|
_id: "oid"
|
|
1919
1919
|
}
|
|
1920
1920
|
};
|
|
1921
1921
|
e.object({
|
|
1922
|
-
_id:
|
|
1922
|
+
_id: m,
|
|
1923
1923
|
ownerId: e.string(),
|
|
1924
1924
|
name: e.string(),
|
|
1925
1925
|
credit: e.number(),
|
|
1926
1926
|
forceSend: e.boolean().optional()
|
|
1927
|
-
}).describe(f.describe(
|
|
1928
|
-
const
|
|
1927
|
+
}).describe(f.describe(ee));
|
|
1928
|
+
const h = e.enum(["PHONE"]), ae = e.enum(["MOCEAN", "SLACK"]), te = e.enum(["PENDING", "COMPLETED", "FAILED"]), ie = e.enum([
|
|
1929
1929
|
"General",
|
|
1930
1930
|
"Otp",
|
|
1931
1931
|
"Marketing",
|
|
1932
1932
|
"Ordering",
|
|
1933
1933
|
"MemberInvitation"
|
|
1934
|
-
]),
|
|
1935
|
-
type:
|
|
1936
|
-
}),
|
|
1937
|
-
type: e.literal(
|
|
1938
|
-
provider:
|
|
1934
|
+
]), ne = e.object({
|
|
1935
|
+
type: h
|
|
1936
|
+
}), D = ne.extend({
|
|
1937
|
+
type: e.literal(h.enum.PHONE),
|
|
1938
|
+
provider: ae,
|
|
1939
1939
|
usage: ie.optional()
|
|
1940
|
-
}),
|
|
1940
|
+
}), oe = {
|
|
1941
1941
|
collectionName: "Notifications",
|
|
1942
1942
|
transform: { _id: "oid", business: "oid" }
|
|
1943
1943
|
};
|
|
1944
1944
|
e.object({
|
|
1945
|
-
_id:
|
|
1946
|
-
business:
|
|
1945
|
+
_id: m,
|
|
1946
|
+
business: m,
|
|
1947
1947
|
target: e.string(),
|
|
1948
1948
|
title: e.string().optional(),
|
|
1949
1949
|
message: e.string(),
|
|
1950
|
-
option:
|
|
1951
|
-
status:
|
|
1950
|
+
option: D,
|
|
1951
|
+
status: te,
|
|
1952
1952
|
ref: e.string().optional()
|
|
1953
|
-
}).describe(f.describe(
|
|
1953
|
+
}).describe(f.describe(oe));
|
|
1954
1954
|
e.object({
|
|
1955
1955
|
target: e.string(),
|
|
1956
1956
|
title: e.string().optional(),
|
|
1957
1957
|
message: e.string(),
|
|
1958
|
-
option:
|
|
1958
|
+
option: D,
|
|
1959
1959
|
ref: e.string().optional()
|
|
1960
1960
|
});
|
|
1961
1961
|
e.object({
|
|
1962
1962
|
phone: e.string(),
|
|
1963
1963
|
message: e.string()
|
|
1964
1964
|
});
|
|
1965
|
-
const C = e.object({
|
|
1966
|
-
name: e.string(),
|
|
1967
|
-
address: e.string()
|
|
1968
|
-
}), re = e.object({
|
|
1969
|
-
filename: e.string(),
|
|
1970
|
-
content: e.instanceof(Uint8Array)
|
|
1971
|
-
});
|
|
1972
|
-
e.object({
|
|
1973
|
-
from: C,
|
|
1974
|
-
to: e.array(C),
|
|
1975
|
-
subject: e.string(),
|
|
1976
|
-
html: e.string().optional(),
|
|
1977
|
-
attachments: e.array(re).optional()
|
|
1978
|
-
});
|
|
1979
|
-
e.object({
|
|
1980
|
-
subject: e.string(),
|
|
1981
|
-
body: e.string()
|
|
1982
|
-
});
|
|
1983
1965
|
e.enum(["send_notification", "TRIGGER_EVENT"]);
|
|
1984
1966
|
e.enum([
|
|
1985
1967
|
"campaign.general",
|
|
@@ -2007,15 +1989,15 @@ e.object({
|
|
|
2007
1989
|
claimIds: e.array(e.string()),
|
|
2008
1990
|
billId: e.string()
|
|
2009
1991
|
});
|
|
2010
|
-
var
|
|
2011
|
-
e.nativeEnum(
|
|
1992
|
+
var x = /* @__PURE__ */ ((t) => (t[t.feedMe = 0] = "feedMe", t[t.business = 1] = "business", t[t.restaurant = 2] = "restaurant", t))(x || {});
|
|
1993
|
+
e.nativeEnum(x);
|
|
2012
1994
|
e.enum(["manage", "create", "read", "update", "delete"]);
|
|
2013
1995
|
e.enum(["all", "restaurant", "business", "delivery", "agent"]);
|
|
2014
1996
|
e.enum(["quota"]);
|
|
2015
|
-
var
|
|
2016
|
-
e.nativeEnum(
|
|
1997
|
+
var S = /* @__PURE__ */ ((t) => (t.marketing = "business::marketing", t.campaign = "business::campaign", t.counter = "business::counter", t.permission = "business::permission", t.role = "business::role", t))(S || {});
|
|
1998
|
+
e.nativeEnum(S);
|
|
2017
1999
|
e.enum(["restaurant"]);
|
|
2018
|
-
const
|
|
2000
|
+
const re = e.object({
|
|
2019
2001
|
label: e.string(),
|
|
2020
2002
|
subject: e.union([e.string(), e.array(e.string())]),
|
|
2021
2003
|
actions: e.union([e.string(), e.array(e.string())]),
|
|
@@ -2025,12 +2007,12 @@ const le = e.object({
|
|
|
2025
2007
|
reason: e.string().optional()
|
|
2026
2008
|
});
|
|
2027
2009
|
e.object({
|
|
2028
|
-
_id:
|
|
2010
|
+
_id: m,
|
|
2029
2011
|
businessId: e.string(),
|
|
2030
2012
|
userId: e.string(),
|
|
2031
2013
|
email: e.string().nullish(),
|
|
2032
2014
|
phoneNo: e.string().nullish(),
|
|
2033
|
-
permissions: e.array(e.lazy(() =>
|
|
2015
|
+
permissions: e.array(e.lazy(() => re))
|
|
2034
2016
|
}).describe(
|
|
2035
2017
|
f.describe({
|
|
2036
2018
|
collectionName: "PermissionUsers",
|
|
@@ -2039,27 +2021,27 @@ e.object({
|
|
|
2039
2021
|
}
|
|
2040
2022
|
})
|
|
2041
2023
|
);
|
|
2042
|
-
const
|
|
2024
|
+
const R = e.object({
|
|
2043
2025
|
userId: e.string(),
|
|
2044
2026
|
level: e.number(),
|
|
2045
2027
|
role: e.string().optional(),
|
|
2046
2028
|
businessId: e.string().optional(),
|
|
2047
2029
|
restaurantId: e.string().optional()
|
|
2048
|
-
}),
|
|
2030
|
+
}), pe = e.function().args(e.any(), R).returns(e.boolean()), le = e.function().args(R).returns(e.promise(e.array(e.any())));
|
|
2049
2031
|
e.object({
|
|
2050
|
-
isAdmin:
|
|
2051
|
-
getRules:
|
|
2032
|
+
isAdmin: pe,
|
|
2033
|
+
getRules: le
|
|
2052
2034
|
});
|
|
2053
2035
|
e.object({
|
|
2054
2036
|
transactions: e.array(K),
|
|
2055
|
-
collections: e.array(
|
|
2037
|
+
collections: e.array(j)
|
|
2056
2038
|
});
|
|
2057
|
-
const
|
|
2039
|
+
const G = e.enum([
|
|
2058
2040
|
"ROCK_PAPER_SCISSOR"
|
|
2059
2041
|
]);
|
|
2060
|
-
|
|
2042
|
+
G.enum.ROCK_PAPER_SCISSOR + "";
|
|
2061
2043
|
e.object({
|
|
2062
|
-
type:
|
|
2044
|
+
type: G
|
|
2063
2045
|
});
|
|
2064
2046
|
e.object({
|
|
2065
2047
|
host: e.string().url(),
|
|
@@ -2087,7 +2069,7 @@ e.object({
|
|
|
2087
2069
|
email: e.string().optional()
|
|
2088
2070
|
});
|
|
2089
2071
|
export {
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2072
|
+
z as F,
|
|
2073
|
+
fe as T,
|
|
2074
|
+
ue as _
|
|
2093
2075
|
};
|