@feedmepos/mf-connect 0.0.39-prod → 0.1.0-beta.2
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-DSD9TsKr.js +622 -0
- package/dist/{App-X3fNEBF3.js → App-D8a5eW51.js} +250 -249
- package/dist/Broadcast-C8jgMe6g.js +223 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CRYS_tzZ.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-pG8WvV4I.js} +20 -20
- package/dist/Card-C1K7ULPo.js +825 -0
- package/dist/Collections-lMrdPUuM.js +453 -0
- package/dist/Credit-CJfU5tP4.js +220 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DoZyevfa.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYoaa_-x.js} +1042 -1011
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CzEtOmp0.js +345 -0
- package/dist/Experience-Bp2ki8gU.js +221 -0
- package/dist/Game-BpTf6ebE.js +255 -0
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
- package/dist/{MainLayout-DpZC6o3R.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js} +19 -53
- package/dist/MainLayout-B1aJoR95.js +41 -0
- package/dist/Marketing-BiKE2gxA.js +316 -0
- package/dist/Member-BSWyy32a.js +69 -0
- package/dist/MemberList-CHlGREyR.js +1733 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/{MemberTransactions-DueaXBCy.js → MemberTransactions-BzHiXCnp.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-e-zWg08J.js +432 -0
- package/dist/Mission-8IGT3T2C.js +261 -0
- package/dist/Point-CbbJ6ohd.js +222 -0
- package/dist/Promotion-BYXCJa_S.js +247 -0
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-_RX1J0Br.js → RuleGroup.vue_vue_type_script_setup_true_lang-Bruh-umZ.js} +557 -557
- package/dist/Segment-DXDNM0yd.js +437 -0
- package/dist/Setting-CLpvvZTv.js +1901 -0
- package/dist/Store-C6-P6bwc.js +1511 -0
- package/dist/StoreRewards-CUM2irXK.js +401 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CLFiuO5k.js → StoreTransactions.vue_vue_type_script_setup_true_lang-JaRdmqif.js} +10 -10
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CoMQBL4P.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DEb4OBcX.js} +1 -1
- package/dist/{Tier-CftEoP_R.js → Tier-DZTDxWBo.js} +481 -453
- package/dist/{Title-BsavXbYh.js → Title-C2Dr5ceK.js} +314 -295
- package/dist/Transaction-BL4mS29d.js +39 -0
- package/dist/Voucher-Cx0r2-df.js +490 -0
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-DWuAODUF.js +56 -0
- package/dist/{app-BNmAx3zq.js → app-B_xuZ5HB.js} +1 -1
- package/dist/app-wE5HTF_Y.js +5762 -0
- package/dist/app.js +5 -3
- package/dist/{business-DGL4Ayx0.js → business-DSv8zM8C.js} +1 -1
- package/dist/{campaign-D94sS1kM.js → campaign-7y5qquHZ.js} +5 -3
- package/dist/{collection.fn-BHJ1ISqO.js → collection.fn-BxVZQAx0.js} +2 -2
- package/dist/dto-Ew1QwLci.js +2778 -0
- package/dist/{effect-CFRICzlM.js → effect-BzPh8fRI.js} +9 -9
- package/dist/{export-w2o9NYcy.js → export-C9tDplkA.js} +3 -3
- package/dist/{helper-CUDWQ8vq.js → helper-Sz7oQ0F4.js} +1 -1
- package/dist/{index-BGuLhEym.js → index-BQm0C3Jm.js} +3 -3
- package/dist/{index-BjwyxNSp.js → index-C-SOz7jt.js} +1 -1
- package/dist/{index-BcWJcD9f.js → index-C0lpADCo.js} +1 -1
- package/dist/{index-DIq2KVis.js → index-C3_4GUiI.js} +1 -1
- package/dist/{index-BPEV5Tzg.js → index-D-2nFLsg.js} +59 -47
- package/dist/{index-CFMBSL24.js → index-DBMaUGYI.js} +2 -2
- package/dist/{index-CpwFQFTV.js → index-DH_1nOJ_.js} +3 -3
- package/dist/index-Dy4pmQpt.js +29193 -0
- package/dist/{index-BQ6isIeo.js → index-_3qBsogG.js} +1 -1
- package/dist/index-gIRszcHf.js +3 -0
- package/dist/{index-VjUw31dN.js → index-tv4t0Pnh.js} +1 -1
- package/dist/{index-tZ1aqhks.js → index-z0IfdrZk.js} +319 -281
- package/dist/{index.esm2017-zciuPty-.js → index.esm2017-BnKJDxUo.js} +55 -55
- package/dist/{loading-GuXe5bYG.js → loading-Ds-yFYhc.js} +469 -460
- package/dist/{membership-BHWJVI3e.js → membership-DaiVw9qF.js} +3 -3
- package/dist/money-BHtBdZoz.js +15 -0
- package/dist/number-CZhcB8ef.js +12 -0
- package/dist/{rule-MgNa_8FF.js → rule-Cd2M6Ri2.js} +2 -2
- package/dist/{rule-builder-BsBCWzq_.js → rule-builder-B6og27Q1.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-D6k3lusq.js → template-DouRWBpv.js} +63 -63
- package/dist/{usePagination-JoYaROkV.js → usePagination-BeF5K3M7.js} +85 -85
- package/dist/vue-i18n-BTlOChXs.js +2365 -0
- package/dist/{xlsx-ClrA4KOh.js → xlsx-SahfXQ70.js} +517 -517
- package/dist/zod-Bg2FbC-D.js +90 -0
- package/package.json +7 -4
- package/dist/Analytic-DMFueUju.js +0 -620
- package/dist/Broadcast-YIfWIXeA.js +0 -216
- package/dist/Card-BIxlgQm7.js +0 -824
- package/dist/Collections-M6DaHM2W.js +0 -441
- package/dist/Credit-BtRy-xoY.js +0 -214
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-D5DNTBSQ.js +0 -344
- package/dist/Experience-DGm1lnqj.js +0 -211
- package/dist/Game-B8-lG7qq.js +0 -250
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
- package/dist/Marketing-DtG3AIWr.js +0 -309
- package/dist/Member-K443-9Vy.js +0 -92
- package/dist/MemberList-CYXHXFTL.js +0 -1735
- package/dist/MemberOverview-C2n9oJZh.js +0 -58
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Bk2HLVmt.js +0 -203
- package/dist/Mission-CN5umXXA.js +0 -248
- package/dist/Point-XAm6H2p_.js +0 -220
- package/dist/Promotion-DsrA4KiE.js +0 -244
- package/dist/Segment-CZGGHoAu.js +0 -435
- package/dist/Setting-BjfxLKyp.js +0 -1870
- package/dist/Store-D_B-vhh3.js +0 -1513
- package/dist/StoreRewards-BjHffUKj.js +0 -429
- package/dist/Transaction-CdxzoKDG.js +0 -36
- package/dist/Voucher-B_9Nv1Mr.js +0 -485
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +0 -140
- package/dist/app--1Ks5Hms.js +0 -2974
- package/dist/dto-X0Eeujxx.js +0 -1151
- package/dist/index-BPNG8N-w.js +0 -11
- package/dist/index-DWM9MWGj.js +0 -28058
- package/dist/money-CrttVpCp.js +0 -15
- package/dist/number-CIndGU4O.js +0 -12
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as o } from "./index-
|
|
2
|
-
function
|
|
1
|
+
import { r as c, e as o } from "./index-Dy4pmQpt.js";
|
|
2
|
+
function a(e) {
|
|
3
3
|
if (!e)
|
|
4
4
|
return null;
|
|
5
|
-
const n =
|
|
5
|
+
const n = c.getCountry().currency.symbol;
|
|
6
6
|
function s(t) {
|
|
7
|
-
const r = o.
|
|
7
|
+
const r = o.fromFdoDecimal({ decimal: t.adjustment.amount });
|
|
8
8
|
switch (t.adjustment.type) {
|
|
9
9
|
case "BY_PERCENTAGE":
|
|
10
10
|
return `${r.toObject().amount}% discount`;
|
|
@@ -38,7 +38,7 @@ function c(e) {
|
|
|
38
38
|
}
|
|
39
39
|
function u(t) {
|
|
40
40
|
if (t.options.target === "BILL" || t.options.target === "PAYMENT") {
|
|
41
|
-
const r = o.
|
|
41
|
+
const r = o.fromFdoDecimal({
|
|
42
42
|
decimal: t.options.minPurchase
|
|
43
43
|
});
|
|
44
44
|
return r.toUnit() > 0 ? `min spend ${n}${r.toUnit()}` : "no min spend";
|
|
@@ -51,11 +51,11 @@ function c(e) {
|
|
|
51
51
|
requirements: u(e)
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
const n =
|
|
54
|
+
function f(e) {
|
|
55
|
+
const n = a(e);
|
|
56
56
|
return !e || !n ? null : Object.values(n).filter(Boolean).join(" | ");
|
|
57
57
|
}
|
|
58
58
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
f as e,
|
|
60
|
+
a as s
|
|
61
61
|
};
|
|
@@ -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 "./xlsx-
|
|
5
|
-
import { u as h } from "./loading-
|
|
4
|
+
import { u as a, w as f } from "./xlsx-SahfXQ70.js";
|
|
5
|
+
import { u as h } from "./loading-Ds-yFYhc.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-C3_4GUiI.js";
|
|
8
8
|
class y {
|
|
9
9
|
constructor() {
|
|
10
10
|
d(this, "records", []);
|
|
@@ -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-Ds-yFYhc.js";
|
|
2
|
+
import { e as l } from "./index-_3qBsogG.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
const I = e.object({
|
|
5
5
|
icon: e.string(),
|
|
@@ -85,7 +85,7 @@ const C = e.object({
|
|
|
85
85
|
rule: l.nullish()
|
|
86
86
|
}), N = (o, i) => {
|
|
87
87
|
const n = o;
|
|
88
|
-
n.isFeedvibe && r.Dinero.fromFdoDinero(n.price).toUnit() <
|
|
88
|
+
n.isFeedvibe && r.Dinero.fromFdoDinero(n.price).toUnit() < 0.1 && i.addIssue({
|
|
89
89
|
code: "custom",
|
|
90
90
|
path: ["price"],
|
|
91
91
|
message: "Price must be at least RM10"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { z as e, F as n, e as A, m as p } from "./loading-
|
|
2
|
-
import { e as _, F as D, a as c, h as X, g as Z, j as d, k as Q, m as $ } from "./index-
|
|
3
|
-
import { b as T } from "./index-
|
|
4
|
-
import { b as L, c as ee } from "./index-
|
|
5
|
-
import { d as ne } from "./index-
|
|
1
|
+
import { z as e, F as n, e as A, m as p } from "./loading-Ds-yFYhc.js";
|
|
2
|
+
import { e as _, F as D, a as c, h as X, g as Z, j as d, k as Q, m as $ } from "./index-_3qBsogG.js";
|
|
3
|
+
import { b as T } from "./index-DH_1nOJ_.js";
|
|
4
|
+
import { b as L, c as ee } from "./index-DBMaUGYI.js";
|
|
5
|
+
import { d as ne } from "./index-BQm0C3Jm.js";
|
|
6
6
|
const P = e.enum([
|
|
7
7
|
"VOUCHER",
|
|
8
8
|
"PROMOTION",
|
|
@@ -14,7 +14,7 @@ const P = e.enum([
|
|
|
14
14
|
"REWARD_POOL",
|
|
15
15
|
"GAME",
|
|
16
16
|
"MISSION"
|
|
17
|
-
]), M = e.enum(["TIME_BASED_PROMOTION", "GAME_PROMOTION"]),
|
|
17
|
+
]), M = e.enum(["TIME_BASED_PROMOTION", "GAME_PROMOTION"]), Ke = {
|
|
18
18
|
[M.enum.TIME_BASED_PROMOTION]: "7.7.4",
|
|
19
19
|
[M.enum.GAME_PROMOTION]: "7.7.4"
|
|
20
20
|
};
|
|
@@ -82,7 +82,7 @@ const oe = {
|
|
|
82
82
|
"MEMBER_REWARD",
|
|
83
83
|
"GAME_COMPLETED",
|
|
84
84
|
"PAGINATE_SCHEDULE"
|
|
85
|
-
]),
|
|
85
|
+
]), Je = i.extract([
|
|
86
86
|
"BILL_COMPLETED",
|
|
87
87
|
"FEEDBACK",
|
|
88
88
|
"GAME_COMPLETED",
|
|
@@ -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()
|
|
@@ -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,
|
|
@@ -227,7 +227,7 @@ const Fe = e.object({
|
|
|
227
227
|
I.partial({
|
|
228
228
|
_id: !0
|
|
229
229
|
});
|
|
230
|
-
const
|
|
230
|
+
const Ye = I.partial({
|
|
231
231
|
_id: !0
|
|
232
232
|
}), Ae = {
|
|
233
233
|
collectionName: "Cards",
|
|
@@ -277,27 +277,29 @@ e.object({
|
|
|
277
277
|
bundle: e.string().optional(),
|
|
278
278
|
subscriptionBundle: e.string().optional()
|
|
279
279
|
});
|
|
280
|
-
const Te = e.enum(["SMS", "
|
|
280
|
+
const Te = e.enum(["SMS", "EMAIL"]), E = e.object({
|
|
281
281
|
channel: Te,
|
|
282
282
|
variables: e.array(e.string()),
|
|
283
|
+
title: e.string().nullish(),
|
|
284
|
+
design: e.any(),
|
|
283
285
|
content: e.string(),
|
|
284
286
|
language: e.string(),
|
|
285
|
-
imageUrl: e.string().
|
|
287
|
+
imageUrl: e.string().nullish()
|
|
286
288
|
}).superRefine((o, a) => {
|
|
287
289
|
o.content.length == 0 && a.addIssue({
|
|
288
290
|
code: e.ZodIssueCode.custom,
|
|
289
291
|
message: "Content is required"
|
|
290
292
|
});
|
|
291
|
-
const
|
|
293
|
+
const C = /{{(.*?)}}/g, R = [...o.content.matchAll(C)].map((u) => u[1]), O = o.variables, b = R.filter((u) => O.indexOf(u) < 0);
|
|
292
294
|
b.length && a.addIssue({
|
|
293
295
|
code: e.ZodIssueCode.custom,
|
|
294
296
|
message: "Invalid variable(s): " + b.join(", ")
|
|
295
297
|
});
|
|
296
298
|
});
|
|
297
|
-
function
|
|
298
|
-
return o.replace(/{{(.*?)}}/g, (
|
|
299
|
+
function qe(o, a) {
|
|
300
|
+
return o.replace(/{{(.*?)}}/g, (C, R) => {
|
|
299
301
|
const b = R.trim().split(".").reduce((u, q) => (u != null ? u[q] : null) ?? null, a);
|
|
300
|
-
return b !== null ? b :
|
|
302
|
+
return b !== null ? b : C;
|
|
301
303
|
});
|
|
302
304
|
}
|
|
303
305
|
const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), S = 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({
|
|
@@ -318,7 +320,7 @@ const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), S = e.number().min(0, "We
|
|
|
318
320
|
weight: S
|
|
319
321
|
}), j = f.extend({
|
|
320
322
|
weight: e.number().min(0, "Weight need to be at least 0")
|
|
321
|
-
}),
|
|
323
|
+
}), Xe = f.extend({
|
|
322
324
|
validityOption: Z
|
|
323
325
|
}), Le = e.discriminatedUnion("type", [
|
|
324
326
|
U,
|
|
@@ -336,17 +338,17 @@ const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), S = e.number().min(0, "We
|
|
|
336
338
|
N
|
|
337
339
|
]), G = B.extend({
|
|
338
340
|
threshold: x
|
|
339
|
-
}),
|
|
341
|
+
}), z = f.extend({
|
|
340
342
|
threshold: x
|
|
341
343
|
}), v = e.discriminatedUnion("type", [
|
|
342
344
|
G,
|
|
343
|
-
|
|
345
|
+
z
|
|
344
346
|
]), Pe = e.discriminatedUnion("type", [
|
|
345
347
|
G.extend({
|
|
346
348
|
collectible: n.nullish(),
|
|
347
349
|
business: n.nullish()
|
|
348
350
|
}),
|
|
349
|
-
|
|
351
|
+
z.extend({
|
|
350
352
|
collectible: n.nullish(),
|
|
351
353
|
collectibleConfig: D.nullish(),
|
|
352
354
|
business: n.nullish()
|
|
@@ -411,12 +413,15 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
411
413
|
foreignField: "group"
|
|
412
414
|
}
|
|
413
415
|
}
|
|
414
|
-
},
|
|
416
|
+
}, Ze = e.object({
|
|
415
417
|
_id: n,
|
|
416
418
|
name: e.string().min(1).max(300),
|
|
417
419
|
business: n,
|
|
418
420
|
pf_campaigns: e.array(e.any()).optional()
|
|
419
421
|
}).describe(p.describe(Be)), Ue = e.object({
|
|
422
|
+
from: e.string().email().nullish(),
|
|
423
|
+
name: e.string().min(1).max(50).nullish()
|
|
424
|
+
}), je = e.object({
|
|
420
425
|
type: e.literal(P.enum.MEMBERSHIP),
|
|
421
426
|
business: n,
|
|
422
427
|
name: e.string().min(1).max(50),
|
|
@@ -437,6 +442,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
437
442
|
).optional(),
|
|
438
443
|
targetLocation: e.array(n).nullish(),
|
|
439
444
|
brand: e.string().nullish(),
|
|
445
|
+
email: Ue.nullish(),
|
|
440
446
|
freeCreditAsDiscount: e.boolean().optional(),
|
|
441
447
|
pf_title: e.array(e.lazy(() => d)).optional(),
|
|
442
448
|
pf_targetLocation: e.array(e.lazy(() => w)).optional(),
|
|
@@ -454,8 +460,10 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
454
460
|
timeframeOptions: Q.superRefine((o, a) => {
|
|
455
461
|
o.start && o.end && o.end < o.start && a.addIssue({
|
|
456
462
|
code: "custom",
|
|
457
|
-
|
|
458
|
-
|
|
463
|
+
path: [],
|
|
464
|
+
params: {
|
|
465
|
+
i18n: { key: "timeframe.end_before_start" }
|
|
466
|
+
}
|
|
459
467
|
});
|
|
460
468
|
}).nullish(),
|
|
461
469
|
targetLocation: e.array(n).nullish(),
|
|
@@ -516,7 +524,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
516
524
|
"FEEDBACK",
|
|
517
525
|
"SCHEDULE"
|
|
518
526
|
]
|
|
519
|
-
},
|
|
527
|
+
}, H = l.extend({
|
|
520
528
|
type: e.literal(t.enum.VOUCHER),
|
|
521
529
|
// event
|
|
522
530
|
code: e.string().min(0).max(15).optional(),
|
|
@@ -536,7 +544,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
536
544
|
notifyCampaign: n.nullish(),
|
|
537
545
|
pf_collectible: e.lazy(() => d).optional(),
|
|
538
546
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
539
|
-
}),
|
|
547
|
+
}), Ge = e.object({
|
|
540
548
|
gameType: e.string()
|
|
541
549
|
}), k = l.extend({
|
|
542
550
|
type: e.literal(t.enum.PROMOTION),
|
|
@@ -549,10 +557,13 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
549
557
|
effect: e.custom().superRefine((o, a) => {
|
|
550
558
|
o || a.addIssue({
|
|
551
559
|
code: "custom",
|
|
552
|
-
|
|
560
|
+
path: [],
|
|
561
|
+
params: {
|
|
562
|
+
i18n: { key: "zodCustom.campaign.effect_required" }
|
|
563
|
+
}
|
|
553
564
|
});
|
|
554
565
|
}),
|
|
555
|
-
gameConfig:
|
|
566
|
+
gameConfig: Ge.nullish()
|
|
556
567
|
}), W = l.extend({
|
|
557
568
|
type: e.literal(t.enum.POINT),
|
|
558
569
|
// event
|
|
@@ -608,7 +619,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
608
619
|
notifyCampaign: n.nullish(),
|
|
609
620
|
pf_collectible: e.lazy(() => d).optional(),
|
|
610
621
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
611
|
-
}),
|
|
622
|
+
}), y = l.extend({
|
|
612
623
|
type: e.literal(t.enum.REWARD_POOL),
|
|
613
624
|
// event
|
|
614
625
|
event: s.merge(
|
|
@@ -627,7 +638,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
627
638
|
),
|
|
628
639
|
earningOption: c,
|
|
629
640
|
collectible: n,
|
|
630
|
-
game: e.lazy(() =>
|
|
641
|
+
game: e.lazy(() => y).optional(),
|
|
631
642
|
pf_collectible: e.lazy(() => d).optional(),
|
|
632
643
|
rewardPool: n.optional()
|
|
633
644
|
}), Y = l.extend({
|
|
@@ -642,7 +653,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
642
653
|
pf_collectible: e.lazy(() => d).optional(),
|
|
643
654
|
mission: e.lazy(() => Ne),
|
|
644
655
|
rewards: e.array(e.lazy(() => v)).min(1, "Requires at least 1 reward")
|
|
645
|
-
}),
|
|
656
|
+
}), ze = {
|
|
646
657
|
collectionName: "Campaigns",
|
|
647
658
|
transform: {
|
|
648
659
|
_id: "oid",
|
|
@@ -684,21 +695,21 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
684
695
|
as: "game"
|
|
685
696
|
}
|
|
686
697
|
}
|
|
687
|
-
},
|
|
698
|
+
}, Qe = e.object({ _id: n }).and(
|
|
688
699
|
e.discriminatedUnion("type", [
|
|
689
|
-
|
|
690
|
-
|
|
700
|
+
je,
|
|
701
|
+
H,
|
|
691
702
|
k,
|
|
692
703
|
W,
|
|
693
704
|
V,
|
|
694
705
|
g,
|
|
695
706
|
K,
|
|
696
|
-
|
|
707
|
+
y,
|
|
697
708
|
J,
|
|
698
709
|
Y
|
|
699
710
|
])
|
|
700
|
-
).describe(p.describe(
|
|
701
|
-
|
|
711
|
+
).describe(p.describe(ze)), $e = e.discriminatedUnion("type", [
|
|
712
|
+
H.extend({
|
|
702
713
|
business: n.nullish()
|
|
703
714
|
}),
|
|
704
715
|
k.extend({
|
|
@@ -716,12 +727,12 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
716
727
|
K.extend({
|
|
717
728
|
business: n.nullish()
|
|
718
729
|
}),
|
|
719
|
-
|
|
730
|
+
y.extend({
|
|
720
731
|
rewards: e.array(e.lazy(() => F)).min(1, "Requires at least 1 reward")
|
|
721
732
|
}),
|
|
722
733
|
J.extend({
|
|
723
734
|
business: n.nullish(),
|
|
724
|
-
game:
|
|
735
|
+
game: y.extend({
|
|
725
736
|
business: n.nullish(),
|
|
726
737
|
rewards: e.array(e.lazy(() => F)).min(1, "Requires at least 1 reward")
|
|
727
738
|
})
|
|
@@ -733,18 +744,19 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
733
744
|
]);
|
|
734
745
|
export {
|
|
735
746
|
r as C,
|
|
736
|
-
|
|
747
|
+
Ye as F,
|
|
737
748
|
t as a,
|
|
738
|
-
|
|
739
|
-
|
|
749
|
+
Je as b,
|
|
750
|
+
Xe as c,
|
|
740
751
|
F as d,
|
|
741
752
|
xe as e,
|
|
742
753
|
Pe as f,
|
|
743
754
|
Ne as g,
|
|
744
|
-
|
|
755
|
+
Ke as h,
|
|
745
756
|
P as i,
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
757
|
+
Ze as j,
|
|
758
|
+
$e as k,
|
|
759
|
+
Qe as l,
|
|
760
|
+
je as m,
|
|
761
|
+
qe as r
|
|
750
762
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as o, F as e, m as c } 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 c } from "./loading-Ds-yFYhc.js";
|
|
2
|
+
import { n as d, o as u, p as m, m as a } from "./index-_3qBsogG.js";
|
|
3
3
|
const b = o.enum([
|
|
4
4
|
"PORTAL",
|
|
5
5
|
"BENEFIT",
|