@feedmepos/mf-connect 0.1.0-beta.8 → 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-SRz4257n.js → App-DHrfWG8l.js} +249 -250
- package/dist/Broadcast-B2rxZAZi.js +216 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CZXSxA9u.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-Cuklmxur.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-BwT3zE2a.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-BkFm7tXq.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-BqpsMcl1.js → StoreTransactions.vue_vue_type_script_setup_true_lang-RTfozD01.js} +10 -10
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DrzmjYmU.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BGI78ycg.js} +1 -1
- package/dist/{Tier-CJ9-d8Zg.js → Tier-BnQRujpX.js} +453 -481
- package/dist/{Title-DZCpvg4q.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-Cg2pTZJK.js → app-DHE61XdR.js} +1 -1
- package/dist/app.js +3 -5
- package/dist/{business-Cw_qGw8y.js → business-BSo7EPan.js} +1 -1
- package/dist/{campaign-winsqufa.js → campaign-CsOje3Ap.js} +3 -5
- package/dist/{collection.fn-CI5Llblg.js → collection.fn-BYQfFJOr.js} +2 -2
- package/dist/dto-CfEXSCq6.js +1145 -0
- package/dist/{effect-CdkrIYgX.js → effect-Bn_ofYS3.js} +9 -9
- package/dist/{export-DGxfief1.js → export-CMR243CF.js} +3 -3
- package/dist/{helper-B8RqcTNu.js → helper-BqOQRtvW.js} +1 -1
- package/dist/index-BLDYTxnc.js +28058 -0
- package/dist/{index-Cw_aXFH6.js → index-BWnFs-Cb.js} +281 -299
- package/dist/{index-wzdbEEcZ.js → index-BaBNmzUb.js} +1 -1
- package/dist/{index-CjVmULNd.js → index-Boo5np6l.js} +1 -1
- package/dist/{index-HZC9LLAX.js → index-CC1GV8OW.js} +1 -1
- package/dist/{index-OzicErwL.js → index-CHO4_zsT.js} +1 -1
- package/dist/{index-DAEmawcj.js → index-DEZsrQ2f.js} +3 -3
- package/dist/{index-9w43_U1v.js → index-D_f2lmK2.js} +1 -1
- package/dist/{index-BaozRfWB.js → index-Da142OER.js} +66 -78
- package/dist/index-DbP04yeg.js +11 -0
- package/dist/{index-A34xEz20.js → index-DtPe-TEm.js} +3 -3
- package/dist/{index-BLACZ3-L.js → index-FvlaxwGB.js} +20 -20
- package/dist/{index.esm2017-CppSMh_U.js → index.esm2017-ePm--Atp.js} +55 -55
- package/dist/{loading-DuEFUCwF.js → loading-KNmEMBUB.js} +460 -469
- package/dist/{membership-nsMtWeTC.js → membership-DKoVIS1a.js} +3 -3
- package/dist/money-CkD3zl5C.js +15 -0
- package/dist/number-BDsGpOXm.js +12 -0
- package/dist/{rule-CPIMqt1h.js → rule-CzamI50_.js} +2 -2
- package/dist/{rule-builder-CSs5XRKP.js → rule-builder-DHf6wfaQ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-CJZoYavu.js → template-CFAIPoD7.js} +63 -63
- package/dist/{usePagination-BeF5K3M7.js → usePagination-JoYaROkV.js} +85 -85
- package/dist/{xlsx-BZlnYinX.js → xlsx-BDJMaozs.js} +517 -517
- package/package.json +4 -7
- package/dist/Analytic-5QztrYSp.js +0 -622
- package/dist/Broadcast-DmkrJGp2.js +0 -223
- package/dist/Card-BsjFTVsH.js +0 -825
- package/dist/Collections-7wqZHOax.js +0 -453
- package/dist/Credit-CcNrq9qk.js +0 -220
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BIZDiLns.js +0 -345
- package/dist/Experience-DNsQLzDH.js +0 -221
- package/dist/Game-DlzDerT7.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-BqhpaG4o.js +0 -316
- package/dist/Member-AFgZcdtz.js +0 -69
- package/dist/MemberList-BKgrLz2C.js +0 -1733
- package/dist/MemberOverview-wL_ailso.js +0 -58
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-GCEQCVOt.js +0 -432
- package/dist/Mission-BTAia7AS.js +0 -261
- package/dist/Point-Ck8EG_3k.js +0 -222
- package/dist/Promotion-0v3kvsK3.js +0 -247
- package/dist/Segment-BenLupqV.js +0 -437
- package/dist/Setting-0fpREqpJ.js +0 -1901
- package/dist/Store-BDGwe4ar.js +0 -1511
- package/dist/StoreRewards-TDZt9H1V.js +0 -401
- package/dist/Transaction-DpnTxlbf.js +0 -39
- package/dist/Voucher-DsP_rh8I.js +0 -490
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-SukfoJpU.js +0 -56
- package/dist/app-DzAexOqx.js +0 -5639
- package/dist/dto-ozu1smC3.js +0 -2770
- package/dist/index-CZgQVRsm.js +0 -3
- package/dist/index-Oxr-mU6h.js +0 -29193
- package/dist/money-BGZPFtUc.js +0 -15
- package/dist/number-4J0xvXP9.js +0 -12
- package/dist/vue-i18n-CCyiVzOE.js +0 -2365
- package/dist/zod-Bg2FbC-D.js +0 -90
|
@@ -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-KNmEMBUB.js";
|
|
2
|
+
import { e as l } from "./index-D_f2lmK2.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() < 10 && 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
|
|
3
|
-
import { b as T } from "./index-
|
|
4
|
-
import {
|
|
5
|
-
import { d as ne } from "./index-
|
|
1
|
+
import { z as e, F as n, e as A, m as p } from "./loading-KNmEMBUB.js";
|
|
2
|
+
import { e as _, F as D, a as d, h as X, g as Z, j as c, k as Q, m as $ } from "./index-D_f2lmK2.js";
|
|
3
|
+
import { b as T } from "./index-DtPe-TEm.js";
|
|
4
|
+
import { d as L, e as ee } from "./index-FvlaxwGB.js";
|
|
5
|
+
import { d as ne } from "./index-DEZsrQ2f.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"]), Ve = {
|
|
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
|
+
]), Ke = i.extract([
|
|
86
86
|
"BILL_COMPLETED",
|
|
87
87
|
"FEEDBACK",
|
|
88
88
|
"GAME_COMPLETED",
|
|
@@ -109,9 +109,9 @@ s.extend({
|
|
|
109
109
|
type: e.literal(i.enum.ENTER_SEGMENT),
|
|
110
110
|
segment: e.string()
|
|
111
111
|
});
|
|
112
|
-
const
|
|
112
|
+
const de = s.extend({
|
|
113
113
|
type: e.literal(i.enum.MEMBER_REWARD)
|
|
114
|
-
}),
|
|
114
|
+
}), ce = s.extend({
|
|
115
115
|
type: e.literal(i.enum.SCHEDULE)
|
|
116
116
|
// option: FdoCronRule,
|
|
117
117
|
}), me = s.extend({
|
|
@@ -127,13 +127,13 @@ const ce = s.extend({
|
|
|
127
127
|
}), be = e.discriminatedUnion("type", [
|
|
128
128
|
re,
|
|
129
129
|
ae,
|
|
130
|
-
|
|
130
|
+
ce,
|
|
131
131
|
le,
|
|
132
132
|
me,
|
|
133
133
|
ue,
|
|
134
134
|
pe,
|
|
135
135
|
Ee,
|
|
136
|
-
|
|
136
|
+
de,
|
|
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
|
+
}), Ce = 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
|
+
}), ye = 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
|
-
ye,
|
|
195
194
|
Ce,
|
|
195
|
+
ye,
|
|
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 Je = I.partial({
|
|
231
231
|
_id: !0
|
|
232
232
|
}), Ae = {
|
|
233
233
|
collectionName: "Cards",
|
|
@@ -277,29 +277,27 @@ 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", "WHATSAPP"]), E = e.object({
|
|
281
281
|
channel: Te,
|
|
282
282
|
variables: e.array(e.string()),
|
|
283
|
-
title: e.string().nullish(),
|
|
284
|
-
design: e.any(),
|
|
285
283
|
content: e.string(),
|
|
286
284
|
language: e.string(),
|
|
287
|
-
imageUrl: e.string().
|
|
285
|
+
imageUrl: e.string().optional()
|
|
288
286
|
}).superRefine((o, a) => {
|
|
289
287
|
o.content.length == 0 && a.addIssue({
|
|
290
288
|
code: e.ZodIssueCode.custom,
|
|
291
289
|
message: "Content is required"
|
|
292
290
|
});
|
|
293
|
-
const
|
|
291
|
+
const y = /{{(.*?)}}/g, R = [...o.content.matchAll(y)].map((u) => u[1]), O = o.variables, b = R.filter((u) => O.indexOf(u) < 0);
|
|
294
292
|
b.length && a.addIssue({
|
|
295
293
|
code: e.ZodIssueCode.custom,
|
|
296
294
|
message: "Invalid variable(s): " + b.join(", ")
|
|
297
295
|
});
|
|
298
296
|
});
|
|
299
|
-
function
|
|
300
|
-
return o.replace(/{{(.*?)}}/g, (
|
|
297
|
+
function Ye(o, a) {
|
|
298
|
+
return o.replace(/{{(.*?)}}/g, (y, R) => {
|
|
301
299
|
const b = R.trim().split(".").reduce((u, q) => (u != null ? u[q] : null) ?? null, a);
|
|
302
|
-
return b !== null ? b :
|
|
300
|
+
return b !== null ? b : y;
|
|
303
301
|
});
|
|
304
302
|
}
|
|
305
303
|
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({
|
|
@@ -310,17 +308,17 @@ const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), S = e.number().min(0, "We
|
|
|
310
308
|
type: e.literal(h.enum.VOUCHER),
|
|
311
309
|
collectible: n,
|
|
312
310
|
collectibleConfig: e.lazy(() => D._def.right.options[0]),
|
|
313
|
-
earningOption: e.lazy(() =>
|
|
311
|
+
earningOption: e.lazy(() => d)
|
|
314
312
|
}), f = e.object({
|
|
315
313
|
type: e.literal(h.enum.LOYALTY),
|
|
316
314
|
collectible: n,
|
|
317
|
-
earningOption: e.lazy(() =>
|
|
315
|
+
earningOption: e.lazy(() => d),
|
|
318
316
|
validityOption: e.lazy(() => X)
|
|
319
317
|
}), U = B.extend({
|
|
320
318
|
weight: S
|
|
321
319
|
}), j = f.extend({
|
|
322
320
|
weight: e.number().min(0, "Weight need to be at least 0")
|
|
323
|
-
}),
|
|
321
|
+
}), qe = f.extend({
|
|
324
322
|
validityOption: Z
|
|
325
323
|
}), Le = e.discriminatedUnion("type", [
|
|
326
324
|
U,
|
|
@@ -338,17 +336,17 @@ const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), S = e.number().min(0, "We
|
|
|
338
336
|
N
|
|
339
337
|
]), G = B.extend({
|
|
340
338
|
threshold: x
|
|
341
|
-
}),
|
|
339
|
+
}), H = f.extend({
|
|
342
340
|
threshold: x
|
|
343
341
|
}), v = e.discriminatedUnion("type", [
|
|
344
342
|
G,
|
|
345
|
-
|
|
343
|
+
H
|
|
346
344
|
]), Pe = e.discriminatedUnion("type", [
|
|
347
345
|
G.extend({
|
|
348
346
|
collectible: n.nullish(),
|
|
349
347
|
business: n.nullish()
|
|
350
348
|
}),
|
|
351
|
-
|
|
349
|
+
H.extend({
|
|
352
350
|
collectible: n.nullish(),
|
|
353
351
|
collectibleConfig: D.nullish(),
|
|
354
352
|
business: n.nullish()
|
|
@@ -413,15 +411,12 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
413
411
|
foreignField: "group"
|
|
414
412
|
}
|
|
415
413
|
}
|
|
416
|
-
},
|
|
414
|
+
}, Xe = e.object({
|
|
417
415
|
_id: n,
|
|
418
416
|
name: e.string().min(1).max(300),
|
|
419
417
|
business: n,
|
|
420
418
|
pf_campaigns: e.array(e.any()).optional()
|
|
421
419
|
}).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({
|
|
425
420
|
type: e.literal(P.enum.MEMBERSHIP),
|
|
426
421
|
business: n,
|
|
427
422
|
name: e.string().min(1).max(50),
|
|
@@ -442,9 +437,8 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
442
437
|
).optional(),
|
|
443
438
|
targetLocation: e.array(n).nullish(),
|
|
444
439
|
brand: e.string().nullish(),
|
|
445
|
-
email: Ue.nullish(),
|
|
446
440
|
freeCreditAsDiscount: e.boolean().optional(),
|
|
447
|
-
pf_title: e.array(e.lazy(() =>
|
|
441
|
+
pf_title: e.array(e.lazy(() => c)).optional(),
|
|
448
442
|
pf_targetLocation: e.array(e.lazy(() => w)).optional(),
|
|
449
443
|
// new structure
|
|
450
444
|
group: e.string().nullish(),
|
|
@@ -460,10 +454,8 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
460
454
|
timeframeOptions: Q.superRefine((o, a) => {
|
|
461
455
|
o.start && o.end && o.end < o.start && a.addIssue({
|
|
462
456
|
code: "custom",
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
i18n: { key: "timeframe.end_before_start" }
|
|
466
|
-
}
|
|
457
|
+
message: "End date must be later or same as start date",
|
|
458
|
+
path: []
|
|
467
459
|
});
|
|
468
460
|
}).nullish(),
|
|
469
461
|
targetLocation: e.array(n).nullish(),
|
|
@@ -524,7 +516,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
524
516
|
"FEEDBACK",
|
|
525
517
|
"SCHEDULE"
|
|
526
518
|
]
|
|
527
|
-
},
|
|
519
|
+
}, z = l.extend({
|
|
528
520
|
type: e.literal(t.enum.VOUCHER),
|
|
529
521
|
// event
|
|
530
522
|
code: e.string().min(0).max(15).optional(),
|
|
@@ -533,7 +525,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
533
525
|
type: e.enum(r[t.enum.VOUCHER])
|
|
534
526
|
})
|
|
535
527
|
),
|
|
536
|
-
earningOption:
|
|
528
|
+
earningOption: d.default({
|
|
537
529
|
amount: 1,
|
|
538
530
|
type: "FIXED"
|
|
539
531
|
}),
|
|
@@ -542,9 +534,9 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
542
534
|
notify: e.boolean().optional(),
|
|
543
535
|
notifyMessage: e.lazy(() => E).optional(),
|
|
544
536
|
notifyCampaign: n.nullish(),
|
|
545
|
-
pf_collectible: e.lazy(() =>
|
|
537
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
546
538
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
547
|
-
}),
|
|
539
|
+
}), je = e.object({
|
|
548
540
|
gameType: e.string()
|
|
549
541
|
}), k = l.extend({
|
|
550
542
|
type: e.literal(t.enum.PROMOTION),
|
|
@@ -557,13 +549,10 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
557
549
|
effect: e.custom().superRefine((o, a) => {
|
|
558
550
|
o || a.addIssue({
|
|
559
551
|
code: "custom",
|
|
560
|
-
|
|
561
|
-
params: {
|
|
562
|
-
i18n: { key: "zodCustom.campaign.effect_required" }
|
|
563
|
-
}
|
|
552
|
+
message: "Effect is required"
|
|
564
553
|
});
|
|
565
554
|
}),
|
|
566
|
-
gameConfig:
|
|
555
|
+
gameConfig: je.nullish()
|
|
567
556
|
}), W = l.extend({
|
|
568
557
|
type: e.literal(t.enum.POINT),
|
|
569
558
|
// event
|
|
@@ -572,12 +561,12 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
572
561
|
type: e.enum(r[t.enum.POINT])
|
|
573
562
|
})
|
|
574
563
|
),
|
|
575
|
-
earningOption:
|
|
564
|
+
earningOption: d,
|
|
576
565
|
collectible: n,
|
|
577
566
|
notify: e.boolean().optional(),
|
|
578
567
|
notifyMessage: e.lazy(() => E).optional(),
|
|
579
568
|
notifyCampaign: n.nullish(),
|
|
580
|
-
pf_collectible: e.lazy(() =>
|
|
569
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
581
570
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
582
571
|
}), V = l.extend({
|
|
583
572
|
type: e.literal(t.enum.CREDIT),
|
|
@@ -587,12 +576,12 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
587
576
|
type: e.enum(r[t.enum.CREDIT])
|
|
588
577
|
})
|
|
589
578
|
),
|
|
590
|
-
earningOption:
|
|
579
|
+
earningOption: d,
|
|
591
580
|
collectible: n,
|
|
592
581
|
notify: e.boolean().optional(),
|
|
593
582
|
notifyMessage: e.lazy(() => E).optional(),
|
|
594
583
|
notifyCampaign: n.nullish(),
|
|
595
|
-
pf_collectible: e.lazy(() =>
|
|
584
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
596
585
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
597
586
|
}), g = l.extend({
|
|
598
587
|
type: e.literal(t.enum.BROADCAST),
|
|
@@ -612,14 +601,14 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
612
601
|
type: e.enum(r[t.enum.COIN])
|
|
613
602
|
})
|
|
614
603
|
),
|
|
615
|
-
earningOption:
|
|
604
|
+
earningOption: d,
|
|
616
605
|
collectible: n,
|
|
617
606
|
notify: e.boolean().optional(),
|
|
618
607
|
notifyMessage: e.lazy(() => E).optional(),
|
|
619
608
|
notifyCampaign: n.nullish(),
|
|
620
|
-
pf_collectible: e.lazy(() =>
|
|
609
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
621
610
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
622
|
-
}),
|
|
611
|
+
}), C = l.extend({
|
|
623
612
|
type: e.literal(t.enum.REWARD_POOL),
|
|
624
613
|
// event
|
|
625
614
|
event: s.merge(
|
|
@@ -636,10 +625,10 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
636
625
|
type: e.enum(r[t.enum.GAME])
|
|
637
626
|
})
|
|
638
627
|
),
|
|
639
|
-
earningOption:
|
|
628
|
+
earningOption: d,
|
|
640
629
|
collectible: n,
|
|
641
|
-
game: e.lazy(() =>
|
|
642
|
-
pf_collectible: e.lazy(() =>
|
|
630
|
+
game: e.lazy(() => C).optional(),
|
|
631
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
643
632
|
rewardPool: n.optional()
|
|
644
633
|
}), Y = l.extend({
|
|
645
634
|
type: e.literal(t.enum.MISSION),
|
|
@@ -648,12 +637,12 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
648
637
|
type: e.enum(r[t.enum.MISSION])
|
|
649
638
|
})
|
|
650
639
|
),
|
|
651
|
-
earningOption:
|
|
640
|
+
earningOption: d,
|
|
652
641
|
collectible: n,
|
|
653
|
-
pf_collectible: e.lazy(() =>
|
|
642
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
654
643
|
mission: e.lazy(() => Ne),
|
|
655
644
|
rewards: e.array(e.lazy(() => v)).min(1, "Requires at least 1 reward")
|
|
656
|
-
}),
|
|
645
|
+
}), Ge = {
|
|
657
646
|
collectionName: "Campaigns",
|
|
658
647
|
transform: {
|
|
659
648
|
_id: "oid",
|
|
@@ -695,21 +684,21 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
695
684
|
as: "game"
|
|
696
685
|
}
|
|
697
686
|
}
|
|
698
|
-
},
|
|
687
|
+
}, Ze = e.object({ _id: n }).and(
|
|
699
688
|
e.discriminatedUnion("type", [
|
|
700
|
-
|
|
701
|
-
|
|
689
|
+
Ue,
|
|
690
|
+
z,
|
|
702
691
|
k,
|
|
703
692
|
W,
|
|
704
693
|
V,
|
|
705
694
|
g,
|
|
706
695
|
K,
|
|
707
|
-
|
|
696
|
+
C,
|
|
708
697
|
J,
|
|
709
698
|
Y
|
|
710
699
|
])
|
|
711
|
-
).describe(p.describe(
|
|
712
|
-
|
|
700
|
+
).describe(p.describe(Ge)), Qe = e.discriminatedUnion("type", [
|
|
701
|
+
z.extend({
|
|
713
702
|
business: n.nullish()
|
|
714
703
|
}),
|
|
715
704
|
k.extend({
|
|
@@ -727,12 +716,12 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
727
716
|
K.extend({
|
|
728
717
|
business: n.nullish()
|
|
729
718
|
}),
|
|
730
|
-
|
|
719
|
+
C.extend({
|
|
731
720
|
rewards: e.array(e.lazy(() => F)).min(1, "Requires at least 1 reward")
|
|
732
721
|
}),
|
|
733
722
|
J.extend({
|
|
734
723
|
business: n.nullish(),
|
|
735
|
-
game:
|
|
724
|
+
game: C.extend({
|
|
736
725
|
business: n.nullish(),
|
|
737
726
|
rewards: e.array(e.lazy(() => F)).min(1, "Requires at least 1 reward")
|
|
738
727
|
})
|
|
@@ -744,19 +733,18 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
744
733
|
]);
|
|
745
734
|
export {
|
|
746
735
|
r as C,
|
|
747
|
-
|
|
736
|
+
Je as F,
|
|
748
737
|
t as a,
|
|
749
|
-
|
|
750
|
-
|
|
738
|
+
Ke as b,
|
|
739
|
+
qe as c,
|
|
751
740
|
F as d,
|
|
752
741
|
xe as e,
|
|
753
742
|
Pe as f,
|
|
754
743
|
Ne as g,
|
|
755
|
-
|
|
744
|
+
Ve as h,
|
|
756
745
|
P as i,
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
qe as r
|
|
746
|
+
Xe as j,
|
|
747
|
+
Qe as k,
|
|
748
|
+
Ze as l,
|
|
749
|
+
Ye as r
|
|
762
750
|
};
|