@feedmepos/mf-connect 0.1.2-prod → 0.1.4-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-07T9poLx.js +423 -0
- package/dist/{App-CRTD0U-N.js → App-C6MukSCT.js} +276 -275
- package/dist/Broadcast-CzsgeZNO.js +223 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C5zUv0Zx.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BirunpzI.js} +8 -8
- package/dist/Card-DQnyWZZf.js +824 -0
- package/dist/{Collections-BgbWoLWI.js → Collections-BV7CSqRw.js} +4 -4
- package/dist/Credit-CxsbYGLZ.js +220 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C137bE1q.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BKSZYxvb.js} +918 -901
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-DpsrI-Z3.js +345 -0
- package/dist/Experience-eMUbhq7h.js +221 -0
- package/dist/Game-CxAG2ViS.js +255 -0
- package/dist/Marketing-CozMj2Y5.js +316 -0
- package/dist/Member-DM1dj3F5.js +69 -0
- package/dist/{MemberList-ISy05wGZ.js → MemberList-DNjK9BbG.js} +14 -14
- package/dist/{MemberTransactions-CXvhJngX.js → MemberTransactions-CsjN3LZA.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Ca1LO__F.js → MessageInput.vue_vue_type_script_setup_true_lang-DVQE9v2R.js} +2 -2
- package/dist/Mission-BugvTPPH.js +261 -0
- package/dist/Point-D8BjGtqT.js +222 -0
- package/dist/Promotion-mc9KBzoJ.js +253 -0
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-D1eQ3i5D.js → RuleGroup.vue_vue_type_script_setup_true_lang-B2H3D_kZ.js} +15 -15
- package/dist/Segment-DZRFA-Pb.js +565 -0
- package/dist/Setting-DxNhR44e.js +1871 -0
- package/dist/Store-CdkJWpjV.js +1530 -0
- package/dist/StoreRewards-Cdturia8.js +400 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-nhS5Dhhk.js → StoreTransactions.vue_vue_type_script_setup_true_lang-D7GcOiUM.js} +10 -10
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DWlpmE56.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-nuCOrrLE.js} +1 -1
- package/dist/{Tier-DLrOmrnK.js → Tier-I_MMd39Y.js} +470 -445
- package/dist/{Title-MHQuel7h.js → Title-DK5gmUvo.js} +298 -282
- package/dist/Transaction-BXpTIMS_.js +39 -0
- package/dist/Voucher-BQ5h2G0I.js +490 -0
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-eAP99wyg.js +141 -0
- package/dist/app-CL2Wxzv5.js +5639 -0
- package/dist/{app-BjOpRVdv.js → app-DTAyCT-G.js} +1 -1
- package/dist/app.js +4 -3
- package/dist/{business-DveMDDHY.js → business-B9OUlaFZ.js} +1 -1
- package/dist/{campaign-CMb05XLt.js → campaign-CNbUA51l.js} +2 -2
- package/dist/{collection.fn-BjaBPYMU.js → collection.fn-D_i45T4Q.js} +2 -2
- package/dist/dto-B4208_es.js +2770 -0
- package/dist/{effect-CxAdSlyD.js → effect-Ye_yr8et.js} +1 -1
- package/dist/{email-addresses-Dtr5OALQ.js → email-addresses-Gm7Dyaxy.js} +1 -1
- package/dist/{export-DuBekrcg.js → export-Buee5oUV.js} +3 -3
- package/dist/{helper-DL6hnmtJ.js → helper-BBlHhMFc.js} +1 -1
- package/dist/{index-raYm7Ew2.js → index-BxJgFvym.js} +2 -2
- package/dist/{index-gcsOy_cD.js → index-ByaM-yoc.js} +91 -86
- package/dist/{index-DISwCnfH.js → index-C0QHb5SL.js} +2 -2
- package/dist/{index-Cibwzgac.js → index-C363BG5A.js} +3 -3
- package/dist/{index-BZAlqAaJ.js → index-CLL3no-v.js} +1 -1
- package/dist/{index-CAQpU5Rv.js → index-ChSVaFk3.js} +1 -1
- package/dist/{index-BSIUoSG3.js → index-Co9n8I_5.js} +3 -3
- package/dist/index-CoGNKU8v.js +3 -0
- package/dist/{index-Dx4pkNRc.js → index-DHGcUMVN.js} +1 -1
- package/dist/{index-CgPlJqkX.js → index-DWWtZSrm.js} +1 -1
- package/dist/{index-CGHNWhkM.js → index-DdVZgYE4.js} +258 -256
- package/dist/{index-BBBytzpn.js → index-Dx3HwWcb.js} +1 -1
- package/dist/{index.esm2017-Bs9CWbrs.js → index.esm2017-Dd02dg_O.js} +38 -38
- package/dist/{loading-Dj5bx8fg.js → loading-Or1ZDzDS.js} +11 -11
- package/dist/{membership-B2avlZoN.js → membership-B8h5ku-v.js} +3 -3
- package/dist/{money-CNSWtAf-.js → money-CmsKAJBT.js} +1 -1
- package/dist/{number-BA58pjU6.js → number-iEhp7Uai.js} +1 -1
- package/dist/{rule-BWazFYuZ.js → rule-BORkgSMK.js} +3 -3
- package/dist/{rule-builder-RIloDQBn.js → rule-builder-DEfkSr68.js} +1 -1
- package/dist/{template-u01r84LY.js → template-C_Y7bhlI.js} +4 -4
- package/dist/{usePagination--B6Wt7C1.js → usePagination-Ci8-uZvb.js} +1 -1
- package/dist/vue-i18n-BXzrZRP6.js +2365 -0
- package/package.json +7 -4
- package/dist/Analytic-AqWU_lJy.js +0 -620
- package/dist/Broadcast-utWSrzP9.js +0 -216
- package/dist/Card-x6qnEaIt.js +0 -823
- package/dist/Credit-CojzmUnh.js +0 -214
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-8l3Dt_Lo.js +0 -344
- package/dist/Experience-CPjovKWF.js +0 -211
- package/dist/Game-DWcjPfZP.js +0 -250
- package/dist/Marketing-CwoI0pFF.js +0 -309
- package/dist/Member-oRcVGr20.js +0 -92
- package/dist/Mission-Y8s5MQIC.js +0 -248
- package/dist/Point-0Fw3qLIW.js +0 -220
- package/dist/Promotion-vqM23NPX.js +0 -244
- package/dist/Segment-lgzMRCyd.js +0 -564
- package/dist/Setting-CFGB53S0.js +0 -1870
- package/dist/Store-fJlew3HJ.js +0 -1533
- package/dist/StoreRewards-DWq34E4p.js +0 -429
- package/dist/Transaction-CYqMFEzc.js +0 -36
- package/dist/Voucher-B0QCX_nG.js +0 -485
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +0 -140
- package/dist/app-SOHUUM08.js +0 -2974
- package/dist/dto-CY7JrHkZ.js +0 -1145
- package/dist/index-BMxu_XL-.js +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ur = Object.defineProperty;
|
|
2
2
|
var ir = (S, b, h) => b in S ? ur(S, b, { enumerable: !0, configurable: !0, writable: !0, value: h }) : S[b] = h;
|
|
3
3
|
var pn = (S, b, h) => ir(S, typeof b != "symbol" ? b + "" : b, h);
|
|
4
|
-
import { u as V } from "./usePagination
|
|
4
|
+
import { u as V } from "./usePagination-Ci8-uZvb.js";
|
|
5
5
|
import { g as ar } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
6
6
|
class fr {
|
|
7
7
|
constructor() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var g = Object.defineProperty;
|
|
2
2
|
var b = (s, e, o) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[e] = o;
|
|
3
3
|
var d = (s, e, o) => b(s, typeof e != "symbol" ? e + "" : e, o);
|
|
4
|
-
import { u as a, w as f } from "./usePagination
|
|
5
|
-
import { u as h } from "./loading-
|
|
4
|
+
import { u as a, w as f } from "./usePagination-Ci8-uZvb.js";
|
|
5
|
+
import { u as h } from "./loading-Or1ZDzDS.js";
|
|
6
6
|
import { h as x } from "./moment-BWErdI6_.js";
|
|
7
|
-
import { m as w } from "./index-
|
|
7
|
+
import { m as w } from "./index-DHGcUMVN.js";
|
|
8
8
|
class y {
|
|
9
9
|
constructor() {
|
|
10
10
|
d(this, "records", []);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as o, F as e, m as r } from "./loading-
|
|
2
|
-
import { n as d, o as u, p as m, m as a } from "./index-
|
|
1
|
+
import { z as o, F as e, m as r } from "./loading-Or1ZDzDS.js";
|
|
2
|
+
import { n as d, o as u, p as m, m as a } from "./index-ChSVaFk3.js";
|
|
3
3
|
const b = o.enum([
|
|
4
4
|
"PORTAL",
|
|
5
5
|
"BENEFIT",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { z as e, F as n, e as D, m as p } from "./loading-
|
|
2
|
-
import { e as _, F as T, a as
|
|
3
|
-
import { b as L } from "./index-
|
|
4
|
-
import { d as P, e as ee } from "./index-
|
|
5
|
-
import { d as ne } from "./index-
|
|
1
|
+
import { z as e, F as n, e as D, m as p } from "./loading-Or1ZDzDS.js";
|
|
2
|
+
import { e as _, F as T, a as c, h as X, g as Z, j as d, k as Q, m as $ } from "./index-ChSVaFk3.js";
|
|
3
|
+
import { b as L } from "./index-C363BG5A.js";
|
|
4
|
+
import { d as P, e as ee } from "./index-BxJgFvym.js";
|
|
5
|
+
import { d as ne } from "./index-C0QHb5SL.js";
|
|
6
6
|
const S = e.enum([
|
|
7
7
|
"VOUCHER",
|
|
8
8
|
"PROMOTION",
|
|
@@ -60,7 +60,7 @@ const oe = {
|
|
|
60
60
|
get amount() {
|
|
61
61
|
return o.nettTotal.amount / 10 ** o.nettTotal.precision;
|
|
62
62
|
}
|
|
63
|
-
})).describe(p.describe(oe)),
|
|
63
|
+
})).describe(p.describe(oe)), ae = e.object({
|
|
64
64
|
_id: e.string(),
|
|
65
65
|
rating: e.coerce.number(),
|
|
66
66
|
user: e.string(),
|
|
@@ -95,45 +95,45 @@ const oe = {
|
|
|
95
95
|
]);
|
|
96
96
|
e.enum(["START_OF", "BEFORE"]);
|
|
97
97
|
e.enum(["WEEK", "MONTH"]);
|
|
98
|
-
const
|
|
98
|
+
const a = e.object({
|
|
99
99
|
// type: F_EVENT_TYPE,
|
|
100
100
|
rule: _.optional()
|
|
101
|
-
}),
|
|
101
|
+
}), se = a.extend({
|
|
102
102
|
type: e.literal(i.enum.BILL_COMPLETED)
|
|
103
|
-
}), le =
|
|
103
|
+
}), le = a.extend({
|
|
104
104
|
type: e.literal(i.enum.FEEDBACK)
|
|
105
|
-
}), re =
|
|
105
|
+
}), re = a.extend({
|
|
106
106
|
type: e.literal(i.enum.SIMPLE_CLAIM)
|
|
107
107
|
});
|
|
108
|
-
|
|
108
|
+
a.extend({
|
|
109
109
|
type: e.literal(i.enum.ENTER_SEGMENT),
|
|
110
110
|
segment: e.string()
|
|
111
111
|
});
|
|
112
|
-
const
|
|
112
|
+
const ce = a.extend({
|
|
113
113
|
type: e.literal(i.enum.MEMBER_REWARD)
|
|
114
|
-
}),
|
|
114
|
+
}), de = a.extend({
|
|
115
115
|
type: e.literal(i.enum.SCHEDULE)
|
|
116
116
|
// option: FdoCronRule,
|
|
117
|
-
}), me =
|
|
117
|
+
}), me = a.extend({
|
|
118
118
|
type: e.literal(i.enum.MEMBERSHIP_JOINED)
|
|
119
|
-
}), ue =
|
|
119
|
+
}), ue = a.extend({
|
|
120
120
|
type: e.literal(i.enum.TIER_UPGRADED)
|
|
121
|
-
}), pe =
|
|
121
|
+
}), pe = a.extend({
|
|
122
122
|
type: e.literal(i.enum.MAKING_ORDER)
|
|
123
|
-
}), Ee =
|
|
123
|
+
}), Ee = a.extend({
|
|
124
124
|
type: e.literal(i.enum.ISSUE_REWARD)
|
|
125
|
-
}), ge =
|
|
125
|
+
}), ge = a.extend({
|
|
126
126
|
type: e.literal(i.enum.GAME_COMPLETED)
|
|
127
127
|
}), be = e.discriminatedUnion("type", [
|
|
128
128
|
re,
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
se,
|
|
130
|
+
de,
|
|
131
131
|
le,
|
|
132
132
|
me,
|
|
133
133
|
ue,
|
|
134
134
|
pe,
|
|
135
135
|
Ee,
|
|
136
|
-
|
|
136
|
+
ce,
|
|
137
137
|
ge
|
|
138
138
|
]);
|
|
139
139
|
e.object({
|
|
@@ -149,13 +149,13 @@ const m = e.object({
|
|
|
149
149
|
campaignIds: e.array(n).optional(),
|
|
150
150
|
slackWebhookUrl: e.string().optional(),
|
|
151
151
|
emittedAt: e.coerce.date().default(/* @__PURE__ */ new Date())
|
|
152
|
-
}),
|
|
152
|
+
}), ye = m.extend({
|
|
153
153
|
type: e.literal(i.enum.BILL_COMPLETED),
|
|
154
154
|
context: e.object({
|
|
155
155
|
bill: ie,
|
|
156
156
|
rawBill: e.any()
|
|
157
157
|
})
|
|
158
|
-
}),
|
|
158
|
+
}), Ce = m.extend({
|
|
159
159
|
type: e.literal(i.enum.SCHEDULE),
|
|
160
160
|
context: e.object({
|
|
161
161
|
triggeredAt: e.coerce.date()
|
|
@@ -171,7 +171,7 @@ const m = e.object({
|
|
|
171
171
|
}), _e = m.extend({
|
|
172
172
|
type: e.literal(i.enum.FEEDBACK),
|
|
173
173
|
context: e.object({
|
|
174
|
-
feedback:
|
|
174
|
+
feedback: ae
|
|
175
175
|
})
|
|
176
176
|
}), Ie = m.extend({
|
|
177
177
|
type: e.literal(i.enum.MEMBERSHIP_JOINED),
|
|
@@ -191,8 +191,8 @@ const m = e.object({
|
|
|
191
191
|
})
|
|
192
192
|
});
|
|
193
193
|
e.discriminatedUnion("type", [
|
|
194
|
-
Ce,
|
|
195
194
|
ye,
|
|
195
|
+
Ce,
|
|
196
196
|
_e,
|
|
197
197
|
Ie,
|
|
198
198
|
he,
|
|
@@ -202,8 +202,8 @@ e.discriminatedUnion("type", [
|
|
|
202
202
|
const Oe = e.object({
|
|
203
203
|
from: e.coerce.number(),
|
|
204
204
|
to: e.coerce.number().optional()
|
|
205
|
-
}).superRefine((o,
|
|
206
|
-
o.from && o.to && o.from > o.to &&
|
|
205
|
+
}).superRefine((o, s) => {
|
|
206
|
+
o.from && o.to && o.from > o.to && s.addIssue({
|
|
207
207
|
code: "custom",
|
|
208
208
|
message: "Max experience must be more than min experience"
|
|
209
209
|
});
|
|
@@ -283,21 +283,21 @@ const Te = e.enum(["SMS", "WHATSAPP"]), E = e.object({
|
|
|
283
283
|
content: e.string(),
|
|
284
284
|
language: e.string(),
|
|
285
285
|
imageUrl: e.string().optional()
|
|
286
|
-
}).superRefine((o,
|
|
287
|
-
o.content.length == 0 &&
|
|
286
|
+
}).superRefine((o, s) => {
|
|
287
|
+
o.content.length == 0 && s.addIssue({
|
|
288
288
|
code: e.ZodIssueCode.custom,
|
|
289
289
|
message: "Content is required"
|
|
290
290
|
});
|
|
291
|
-
const
|
|
292
|
-
b.length &&
|
|
291
|
+
const C = /{{(.*?)}}/g, R = [...o.content.matchAll(C)].map((u) => u[1]), M = o.variables, b = R.filter((u) => M.indexOf(u) < 0);
|
|
292
|
+
b.length && s.addIssue({
|
|
293
293
|
code: e.ZodIssueCode.custom,
|
|
294
294
|
message: "Invalid variable(s): " + b.join(", ")
|
|
295
295
|
});
|
|
296
296
|
});
|
|
297
|
-
function Ye(o,
|
|
298
|
-
return o.replace(/{{(.*?)}}/g, (
|
|
299
|
-
const b = R.trim().split(".").reduce((u, q) => (u != null ? u[q] : null) ?? null,
|
|
300
|
-
return b !== null ? b :
|
|
297
|
+
function Ye(o, s) {
|
|
298
|
+
return o.replace(/{{(.*?)}}/g, (C, R) => {
|
|
299
|
+
const b = R.trim().split(".").reduce((u, q) => (u != null ? u[q] : null) ?? null, s);
|
|
300
|
+
return b !== null ? b : C;
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
303
|
const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), f = e.number().min(0, "Weight need to be at least 0"), x = e.number().int("Must be integer").min(0, "Threshold need to be at least 0"), N = e.object({
|
|
@@ -308,11 +308,11 @@ const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), f = e.number().min(0, "We
|
|
|
308
308
|
type: e.literal(h.enum.VOUCHER),
|
|
309
309
|
collectible: n,
|
|
310
310
|
collectibleConfig: e.lazy(() => T._def.right.options[0]),
|
|
311
|
-
earningOption: e.lazy(() =>
|
|
311
|
+
earningOption: e.lazy(() => c)
|
|
312
312
|
}), O = e.object({
|
|
313
313
|
type: e.literal(h.enum.LOYALTY),
|
|
314
314
|
collectible: n,
|
|
315
|
-
earningOption: e.lazy(() =>
|
|
315
|
+
earningOption: e.lazy(() => c),
|
|
316
316
|
validityOption: e.lazy(() => X)
|
|
317
317
|
}), U = B.extend({
|
|
318
318
|
weight: f
|
|
@@ -337,17 +337,17 @@ const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), f = e.number().min(0, "We
|
|
|
337
337
|
N
|
|
338
338
|
]), G = B.extend({
|
|
339
339
|
threshold: x
|
|
340
|
-
}),
|
|
340
|
+
}), z = O.extend({
|
|
341
341
|
threshold: x
|
|
342
|
-
}),
|
|
342
|
+
}), H = e.discriminatedUnion("type", [
|
|
343
343
|
G,
|
|
344
|
-
|
|
344
|
+
z
|
|
345
345
|
]), Pe = e.discriminatedUnion("type", [
|
|
346
346
|
G.extend({
|
|
347
347
|
collectible: n.nullish(),
|
|
348
348
|
business: n.nullish()
|
|
349
349
|
}),
|
|
350
|
-
|
|
350
|
+
z.extend({
|
|
351
351
|
collectible: n.nullish(),
|
|
352
352
|
collectibleConfig: T.nullish(),
|
|
353
353
|
business: n.nullish()
|
|
@@ -358,7 +358,7 @@ const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), f = e.number().min(0, "We
|
|
|
358
358
|
_id: "oid",
|
|
359
359
|
business: "oid"
|
|
360
360
|
}
|
|
361
|
-
},
|
|
361
|
+
}, v = e.object({
|
|
362
362
|
_id: n,
|
|
363
363
|
business: n,
|
|
364
364
|
name: e.string(),
|
|
@@ -383,13 +383,13 @@ e.object({
|
|
|
383
383
|
const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
384
384
|
type: xe,
|
|
385
385
|
end: e.number().int().min(0, "Threshold need to be at least 1"),
|
|
386
|
-
rewards: e.array(e.lazy(() =>
|
|
387
|
-
}).superRefine((o,
|
|
388
|
-
o.type == "STAMP" && o.end > 40 && (
|
|
386
|
+
rewards: e.array(e.lazy(() => H)).nullish()
|
|
387
|
+
}).superRefine((o, s) => {
|
|
388
|
+
o.type == "STAMP" && o.end > 40 && (s.addIssue({
|
|
389
389
|
code: "custom",
|
|
390
390
|
path: [],
|
|
391
391
|
message: "Stamp mission can have at most 40 threshold"
|
|
392
|
-
}),
|
|
392
|
+
}), s.addIssue({
|
|
393
393
|
code: "custom",
|
|
394
394
|
path: ["end"],
|
|
395
395
|
message: "Stamp mission can have at most 40 threshold"
|
|
@@ -439,8 +439,8 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
439
439
|
targetLocation: e.array(n).nullish(),
|
|
440
440
|
brand: e.string().nullish(),
|
|
441
441
|
freeCreditAsDiscount: e.boolean().optional(),
|
|
442
|
-
pf_title: e.array(e.lazy(() =>
|
|
443
|
-
pf_targetLocation: e.array(e.lazy(() =>
|
|
442
|
+
pf_title: e.array(e.lazy(() => d)).optional(),
|
|
443
|
+
pf_targetLocation: e.array(e.lazy(() => v)).optional(),
|
|
444
444
|
// new structure
|
|
445
445
|
group: e.string().nullish(),
|
|
446
446
|
templateId: n.nullish()
|
|
@@ -452,11 +452,13 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
452
452
|
name: e.string().min(1).max(50),
|
|
453
453
|
image: e.string().nullish(),
|
|
454
454
|
description: e.string().max(500).nullish(),
|
|
455
|
-
timeframeOptions: Q.superRefine((o,
|
|
456
|
-
o.start && o.end && o.end < o.start &&
|
|
455
|
+
timeframeOptions: Q.superRefine((o, s) => {
|
|
456
|
+
o.start && o.end && o.end < o.start && s.addIssue({
|
|
457
457
|
code: "custom",
|
|
458
|
-
|
|
459
|
-
|
|
458
|
+
path: [],
|
|
459
|
+
params: {
|
|
460
|
+
i18n: { key: "timeframe.end_before_start" }
|
|
461
|
+
}
|
|
460
462
|
});
|
|
461
463
|
}).nullish(),
|
|
462
464
|
targetLocation: e.array(n).nullish(),
|
|
@@ -466,7 +468,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
466
468
|
// new group structure
|
|
467
469
|
group: n.nullish(),
|
|
468
470
|
templateId: n.nullish(),
|
|
469
|
-
pf_targetLocation: e.array(e.lazy(() =>
|
|
471
|
+
pf_targetLocation: e.array(e.lazy(() => v)).optional()
|
|
470
472
|
}), r = {
|
|
471
473
|
[t.enum.VOUCHER]: [
|
|
472
474
|
"BILL_COMPLETED",
|
|
@@ -517,16 +519,16 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
517
519
|
"FEEDBACK",
|
|
518
520
|
"SCHEDULE"
|
|
519
521
|
]
|
|
520
|
-
},
|
|
522
|
+
}, w = l.extend({
|
|
521
523
|
type: e.literal(t.enum.VOUCHER),
|
|
522
524
|
// event
|
|
523
525
|
code: e.string().min(0).max(15).optional(),
|
|
524
|
-
event:
|
|
526
|
+
event: a.merge(
|
|
525
527
|
e.object({
|
|
526
528
|
type: e.enum(r[t.enum.VOUCHER])
|
|
527
529
|
})
|
|
528
530
|
),
|
|
529
|
-
earningOption:
|
|
531
|
+
earningOption: c.default({
|
|
530
532
|
amount: 1,
|
|
531
533
|
type: "FIXED"
|
|
532
534
|
}),
|
|
@@ -535,59 +537,62 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
535
537
|
notify: e.boolean().optional(),
|
|
536
538
|
notifyMessage: e.lazy(() => E).optional(),
|
|
537
539
|
notifyCampaign: n.nullish(),
|
|
538
|
-
pf_collectible: e.lazy(() =>
|
|
540
|
+
pf_collectible: e.lazy(() => d).optional(),
|
|
539
541
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
540
542
|
}), je = e.object({
|
|
541
543
|
gameType: e.string()
|
|
542
544
|
}), k = l.extend({
|
|
543
545
|
type: e.literal(t.enum.PROMOTION),
|
|
544
546
|
// event
|
|
545
|
-
event:
|
|
547
|
+
event: a.merge(
|
|
546
548
|
e.object({
|
|
547
549
|
type: e.enum(r[t.enum.PROMOTION])
|
|
548
550
|
})
|
|
549
551
|
),
|
|
550
|
-
effect: e.custom().superRefine((o,
|
|
551
|
-
o ||
|
|
552
|
+
effect: e.custom().superRefine((o, s) => {
|
|
553
|
+
o || s.addIssue({
|
|
552
554
|
code: "custom",
|
|
553
|
-
|
|
555
|
+
path: [],
|
|
556
|
+
params: {
|
|
557
|
+
i18n: { key: "zodCustom.campaign.effect_required" }
|
|
558
|
+
}
|
|
554
559
|
});
|
|
555
560
|
}),
|
|
556
561
|
gameConfig: je.nullish()
|
|
557
562
|
}), W = l.extend({
|
|
558
563
|
type: e.literal(t.enum.POINT),
|
|
559
564
|
// event
|
|
560
|
-
event:
|
|
565
|
+
event: a.merge(
|
|
561
566
|
e.object({
|
|
562
567
|
type: e.enum(r[t.enum.POINT])
|
|
563
568
|
})
|
|
564
569
|
),
|
|
565
|
-
earningOption:
|
|
570
|
+
earningOption: c,
|
|
566
571
|
collectible: n,
|
|
567
572
|
notify: e.boolean().optional(),
|
|
568
573
|
notifyMessage: e.lazy(() => E).optional(),
|
|
569
574
|
notifyCampaign: n.nullish(),
|
|
570
|
-
pf_collectible: e.lazy(() =>
|
|
575
|
+
pf_collectible: e.lazy(() => d).optional(),
|
|
571
576
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
572
577
|
}), V = l.extend({
|
|
573
578
|
type: e.literal(t.enum.CREDIT),
|
|
574
579
|
// event
|
|
575
|
-
event:
|
|
580
|
+
event: a.merge(
|
|
576
581
|
e.object({
|
|
577
582
|
type: e.enum(r[t.enum.CREDIT])
|
|
578
583
|
})
|
|
579
584
|
),
|
|
580
|
-
earningOption:
|
|
585
|
+
earningOption: c,
|
|
581
586
|
collectible: n,
|
|
582
587
|
notify: e.boolean().optional(),
|
|
583
588
|
notifyMessage: e.lazy(() => E).optional(),
|
|
584
589
|
notifyCampaign: n.nullish(),
|
|
585
|
-
pf_collectible: e.lazy(() =>
|
|
590
|
+
pf_collectible: e.lazy(() => d).optional(),
|
|
586
591
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
587
592
|
}), g = l.extend({
|
|
588
593
|
type: e.literal(t.enum.BROADCAST),
|
|
589
594
|
// event
|
|
590
|
-
event:
|
|
595
|
+
event: a.merge(
|
|
591
596
|
e.object({
|
|
592
597
|
type: e.enum(r[t.enum.BROADCAST])
|
|
593
598
|
})
|
|
@@ -597,22 +602,22 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
597
602
|
}), K = l.extend({
|
|
598
603
|
type: e.literal(t.enum.COIN),
|
|
599
604
|
// event
|
|
600
|
-
event:
|
|
605
|
+
event: a.merge(
|
|
601
606
|
e.object({
|
|
602
607
|
type: e.enum(r[t.enum.COIN])
|
|
603
608
|
})
|
|
604
609
|
),
|
|
605
|
-
earningOption:
|
|
610
|
+
earningOption: c,
|
|
606
611
|
collectible: n,
|
|
607
612
|
notify: e.boolean().optional(),
|
|
608
613
|
notifyMessage: e.lazy(() => E).optional(),
|
|
609
614
|
notifyCampaign: n.nullish(),
|
|
610
|
-
pf_collectible: e.lazy(() =>
|
|
615
|
+
pf_collectible: e.lazy(() => d).optional(),
|
|
611
616
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
612
|
-
}),
|
|
617
|
+
}), y = l.extend({
|
|
613
618
|
type: e.literal(t.enum.REWARD_POOL),
|
|
614
619
|
// event
|
|
615
|
-
event:
|
|
620
|
+
event: a.merge(
|
|
616
621
|
e.object({
|
|
617
622
|
type: e.enum(r[t.enum.REWARD_POOL])
|
|
618
623
|
})
|
|
@@ -621,28 +626,28 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
621
626
|
}), J = l.extend({
|
|
622
627
|
type: e.literal(t.enum.GAME),
|
|
623
628
|
// event
|
|
624
|
-
event:
|
|
629
|
+
event: a.merge(
|
|
625
630
|
e.object({
|
|
626
631
|
type: e.enum(r[t.enum.GAME])
|
|
627
632
|
})
|
|
628
633
|
),
|
|
629
|
-
earningOption:
|
|
634
|
+
earningOption: c,
|
|
630
635
|
collectible: n,
|
|
631
|
-
game: e.lazy(() =>
|
|
632
|
-
pf_collectible: e.lazy(() =>
|
|
636
|
+
game: e.lazy(() => y).optional(),
|
|
637
|
+
pf_collectible: e.lazy(() => d).optional(),
|
|
633
638
|
rewardPool: n.optional()
|
|
634
639
|
}), Y = l.extend({
|
|
635
640
|
type: e.literal(t.enum.MISSION),
|
|
636
|
-
event:
|
|
641
|
+
event: a.merge(
|
|
637
642
|
e.object({
|
|
638
643
|
type: e.enum(r[t.enum.MISSION])
|
|
639
644
|
})
|
|
640
645
|
),
|
|
641
|
-
earningOption:
|
|
646
|
+
earningOption: c,
|
|
642
647
|
collectible: n,
|
|
643
|
-
pf_collectible: e.lazy(() =>
|
|
648
|
+
pf_collectible: e.lazy(() => d).optional(),
|
|
644
649
|
mission: e.lazy(() => Ne),
|
|
645
|
-
rewards: e.array(e.lazy(() =>
|
|
650
|
+
rewards: e.array(e.lazy(() => H)).min(1, "Requires at least 1 reward")
|
|
646
651
|
}), Ge = {
|
|
647
652
|
collectionName: "Campaigns",
|
|
648
653
|
transform: {
|
|
@@ -688,18 +693,18 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
688
693
|
}, Ze = e.object({ _id: n }).and(
|
|
689
694
|
e.discriminatedUnion("type", [
|
|
690
695
|
Ue,
|
|
691
|
-
|
|
696
|
+
w,
|
|
692
697
|
k,
|
|
693
698
|
W,
|
|
694
699
|
V,
|
|
695
700
|
g,
|
|
696
701
|
K,
|
|
697
|
-
|
|
702
|
+
y,
|
|
698
703
|
J,
|
|
699
704
|
Y
|
|
700
705
|
])
|
|
701
706
|
).describe(p.describe(Ge)), Qe = e.discriminatedUnion("type", [
|
|
702
|
-
|
|
707
|
+
w.extend({
|
|
703
708
|
business: n.nullish()
|
|
704
709
|
}),
|
|
705
710
|
k.extend({
|
|
@@ -717,12 +722,12 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
717
722
|
K.extend({
|
|
718
723
|
business: n.nullish()
|
|
719
724
|
}),
|
|
720
|
-
|
|
725
|
+
y.extend({
|
|
721
726
|
rewards: e.array(e.lazy(() => A)).min(1, "Requires at least 1 reward")
|
|
722
727
|
}),
|
|
723
728
|
J.extend({
|
|
724
729
|
business: n.nullish(),
|
|
725
|
-
game:
|
|
730
|
+
game: y.extend({
|
|
726
731
|
business: n.nullish(),
|
|
727
732
|
rewards: e.array(e.lazy(() => A)).min(1, "Requires at least 1 reward")
|
|
728
733
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as e, F as t, g as f, e as s, d as r, m as a } from "./loading-
|
|
2
|
-
import { e as l } from "./index-
|
|
1
|
+
import { z as e, F as t, g as f, e as s, d as r, m as a } from "./loading-Or1ZDzDS.js";
|
|
2
|
+
import { e as l } from "./index-ChSVaFk3.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
const I = e.object({
|
|
5
5
|
icon: e.string(),
|