@feedmepos/mf-connect 0.1.0-beta.9 → 0.1.1-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-C2etD-eu.js +620 -0
- package/dist/{App-DQUbRsdA.js → App-DlRvkDpN.js} +58 -59
- package/dist/Broadcast-DpCGUS6r.js +216 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D-BFllvG.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cj4IcH5D.js} +20 -20
- package/dist/Card-DjGC6jmq.js +823 -0
- package/dist/Collections-Q2pYWnJF.js +440 -0
- package/dist/Credit-DOIq2VYW.js +214 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C_ZKNWzb.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D7ML8ePp.js} +1010 -1026
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CyxWG5I7.js +344 -0
- package/dist/Experience-DUst4I0H.js +211 -0
- package/dist/Game-CXnQR-wV.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-CZfHsMFC.js +309 -0
- package/dist/Member-CX5Ohgeg.js +92 -0
- package/dist/MemberList-D8I3SaAs.js +1040 -0
- package/dist/MemberOverview-C2n9oJZh.js +58 -0
- package/dist/{MemberTransactions-zSxSnUkK.js → MemberTransactions-DfZNbCHD.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-BxFVEoBX.js +203 -0
- package/dist/Mission-S1pwDbqp.js +248 -0
- package/dist/Point-BdLUcGZy.js +220 -0
- package/dist/Promotion-DWAeQGkU.js +244 -0
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CTKKhH-r.js → RuleGroup.vue_vue_type_script_setup_true_lang-Dux_NMO5.js} +577 -568
- package/dist/Segment-CXSE8Bzf.js +560 -0
- package/dist/Setting-CLuXuEId.js +1870 -0
- package/dist/Store-Be3cui0S.js +1533 -0
- package/dist/StoreRewards-zFy_w8p4.js +429 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-2Jqj_rKv.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DxGJKgbc.js} +10 -10
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BkdSj0cX.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dreo45H1.js} +1 -1
- package/dist/{Tier-Cpl0FV8L.js → Tier-ChzcISYF.js} +453 -481
- package/dist/{Title-CbMDd1Et.js → Title-DQSjhBkT.js} +295 -314
- package/dist/Transaction-CeWmWpN_.js +36 -0
- package/dist/Voucher-BkLIxiZN.js +485 -0
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
- package/dist/app-CLNirPsB.js +2974 -0
- package/dist/{app-VxaUCtgl.js → app-DuNsy0aC.js} +1 -1
- package/dist/app.js +3 -5
- package/dist/{business-DR7jpnLz.js → business-COGiTmLD.js} +1 -1
- package/dist/{campaign-MqcTb329.js → campaign-BHZMjQi5.js} +3 -5
- package/dist/{collection.fn-CvEoe61K.js → collection.fn-sAxtYO_r.js} +2 -2
- package/dist/dto-ndeeV_nc.js +1145 -0
- package/dist/{effect-BjjQeiQg.js → effect-BQt0rkdT.js} +9 -9
- package/dist/email-addresses-B3PazwKs.js +705 -0
- package/dist/{export-B8cvWh5n.js → export-D6r-xNji.js} +3 -3
- package/dist/{helper-DfgVNY7B.js → helper-CrjQw_Et.js} +1 -1
- package/dist/{index-CWR3qYjb.js → index-Btlj28Vg.js} +1 -1
- package/dist/{index-C7zMfUgy.js → index-Buy-yvAZ.js} +319 -304
- package/dist/{index-0UYoh1-7.js → index-C3AAy__p.js} +1 -1
- package/dist/index-CHAaFSD2.js +11 -0
- package/dist/{index-Dap5R3vr.js → index-Cg3RFxc9.js} +91 -102
- package/dist/{index-2P9w5u3m.js → index-CqpEhMr6.js} +4 -4
- package/dist/{index-BsfWRB8R.js → index-CvHj-wYi.js} +1 -1
- package/dist/index-DGLmbBnE.js +28997 -0
- package/dist/{index-CJ8Uh2Ja.js → index-DXpd07G3.js} +3 -3
- package/dist/{index-B5NufbUt.js → index-Daax_BQa.js} +1 -1
- package/dist/{index-C2JNcGc-.js → index-DrLEuIe1.js} +281 -299
- package/dist/{index-DBy30v8N.js → index-tSEYvA-2.js} +3 -3
- package/dist/{index.esm2017-D1X3PgpO.js → index.esm2017-a5BlZ76G.js} +55 -55
- package/dist/{loading-CJ3nOovJ.js → loading-B3XGyQ8W.js} +460 -469
- package/dist/{membership-B1cmSRyk.js → membership-GIOJ1ptN.js} +3 -3
- package/dist/money-z7VwzhZP.js +15 -0
- package/dist/number-DHYb2ua_.js +12 -0
- package/dist/{rule-builder-CSmOONdb.js → rule-builder-CcsWd5r9.js} +1 -1
- package/dist/{rule-ChWyR-0j.js → rule-iIEblTE4.js} +179 -177
- package/dist/style.css +1 -1
- package/dist/{template-Cug7aRK0.js → template-DMRMDZOW.js} +63 -63
- package/dist/{xlsx-CfgPFFvp.js → usePagination-CNFe0T2B.js} +3176 -2955
- package/package.json +5 -8
- 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/usePagination-BeF5K3M7.js +0 -223
- package/dist/vue-i18n-BRhKDHdF.js +0 -2365
- package/dist/zod-Bg2FbC-D.js +0 -90
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { z as e, F as n, e as
|
|
2
|
-
import { e as _, F as
|
|
3
|
-
import { b as
|
|
4
|
-
import { d as
|
|
5
|
-
import { d as ne } from "./index-
|
|
6
|
-
const
|
|
1
|
+
import { z as e, F as n, e as D, m as p } from "./loading-B3XGyQ8W.js";
|
|
2
|
+
import { e as _, F as T, a as d, h as X, g as Z, j as c, k as Q, m as $ } from "./index-Buy-yvAZ.js";
|
|
3
|
+
import { b as L } from "./index-tSEYvA-2.js";
|
|
4
|
+
import { d as P, e as ee } from "./index-DXpd07G3.js";
|
|
5
|
+
import { d as ne } from "./index-CqpEhMr6.js";
|
|
6
|
+
const S = e.enum([
|
|
7
7
|
"VOUCHER",
|
|
8
8
|
"PROMOTION",
|
|
9
9
|
"POINT",
|
|
@@ -14,14 +14,14 @@ const P = e.enum([
|
|
|
14
14
|
"REWARD_POOL",
|
|
15
15
|
"GAME",
|
|
16
16
|
"MISSION"
|
|
17
|
-
]),
|
|
18
|
-
[
|
|
19
|
-
[
|
|
17
|
+
]), F = e.enum(["TIME_BASED_PROMOTION", "GAME_PROMOTION"]), Ve = {
|
|
18
|
+
[F.enum.TIME_BASED_PROMOTION]: "7.7.4",
|
|
19
|
+
[F.enum.GAME_PROMOTION]: "7.7.4"
|
|
20
20
|
};
|
|
21
21
|
e.object({
|
|
22
22
|
location: n,
|
|
23
23
|
memberId: n,
|
|
24
|
-
nettTotal:
|
|
24
|
+
nettTotal: D,
|
|
25
25
|
remark: e.string().optional()
|
|
26
26
|
});
|
|
27
27
|
const te = e.enum(["COUNTER", "POS"]);
|
|
@@ -46,7 +46,7 @@ const oe = {
|
|
|
46
46
|
user: e.string().nullish(),
|
|
47
47
|
memberid: e.string().nullish(),
|
|
48
48
|
// roundToNearest: z.number().nullish(),
|
|
49
|
-
nettTotal:
|
|
49
|
+
nettTotal: D,
|
|
50
50
|
// activeItems: z.array(z.string()),
|
|
51
51
|
remark: e.string().nullish(),
|
|
52
52
|
createdAt: e.coerce.date(),
|
|
@@ -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()
|
|
@@ -176,23 +176,23 @@ const m = e.object({
|
|
|
176
176
|
}), Ie = m.extend({
|
|
177
177
|
type: e.literal(i.enum.MEMBERSHIP_JOINED),
|
|
178
178
|
context: e.object({
|
|
179
|
-
user:
|
|
179
|
+
user: L
|
|
180
180
|
})
|
|
181
181
|
}), he = m.extend({
|
|
182
182
|
type: e.literal(i.enum.TIER_UPGRADED),
|
|
183
183
|
context: e.object({
|
|
184
|
-
transaction:
|
|
184
|
+
transaction: P
|
|
185
185
|
})
|
|
186
186
|
}), fe = m.extend({
|
|
187
187
|
type: e.literal(i.enum.ISSUE_REWARD),
|
|
188
188
|
context: e.object({
|
|
189
|
-
transaction:
|
|
189
|
+
transaction: P,
|
|
190
190
|
collection: ee
|
|
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",
|
|
@@ -258,7 +258,7 @@ e.object({
|
|
|
258
258
|
design: e.string().nullish(),
|
|
259
259
|
bundle: e.string().nullish(),
|
|
260
260
|
subscriptionBundle: e.string().nullish(),
|
|
261
|
-
pf_member: e.lazy(() =>
|
|
261
|
+
pf_member: e.lazy(() => L).nullish(),
|
|
262
262
|
pf_transaction: e.lazy(() => ne).nullish()
|
|
263
263
|
}).describe(p.describe(Ae));
|
|
264
264
|
const De = e.object({
|
|
@@ -277,56 +277,55 @@ 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]), M = o.variables, b = R.filter((u) => M.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
|
-
const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]),
|
|
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({
|
|
306
304
|
type: e.literal(h.enum.NO_REWARD),
|
|
307
305
|
collectible: e.null(),
|
|
308
|
-
weight:
|
|
306
|
+
weight: f
|
|
309
307
|
}), B = e.object({
|
|
310
308
|
type: e.literal(h.enum.VOUCHER),
|
|
311
309
|
collectible: n,
|
|
312
|
-
collectibleConfig: e.lazy(() =>
|
|
313
|
-
earningOption: e.lazy(() =>
|
|
314
|
-
}),
|
|
310
|
+
collectibleConfig: e.lazy(() => T._def.right.options[0]),
|
|
311
|
+
earningOption: e.lazy(() => d)
|
|
312
|
+
}), O = 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
|
-
weight:
|
|
321
|
-
}), j =
|
|
318
|
+
weight: f
|
|
319
|
+
}), j = O.extend({
|
|
322
320
|
weight: e.number().min(0, "Weight need to be at least 0")
|
|
323
|
-
}),
|
|
324
|
-
validityOption: Z
|
|
321
|
+
}), qe = O.extend({
|
|
322
|
+
validityOption: Z,
|
|
323
|
+
weight: f
|
|
325
324
|
}), Le = e.discriminatedUnion("type", [
|
|
326
325
|
U,
|
|
327
326
|
j,
|
|
328
327
|
N
|
|
329
|
-
]),
|
|
328
|
+
]), A = e.discriminatedUnion("type", [
|
|
330
329
|
U.extend({
|
|
331
330
|
collectible: n.nullish(),
|
|
332
331
|
business: n.nullish()
|
|
@@ -338,19 +337,19 @@ const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), S = e.number().min(0, "We
|
|
|
338
337
|
N
|
|
339
338
|
]), G = B.extend({
|
|
340
339
|
threshold: x
|
|
341
|
-
}),
|
|
340
|
+
}), H = O.extend({
|
|
342
341
|
threshold: x
|
|
343
342
|
}), v = e.discriminatedUnion("type", [
|
|
344
343
|
G,
|
|
345
|
-
|
|
344
|
+
H
|
|
346
345
|
]), Pe = e.discriminatedUnion("type", [
|
|
347
346
|
G.extend({
|
|
348
347
|
collectible: n.nullish(),
|
|
349
348
|
business: n.nullish()
|
|
350
349
|
}),
|
|
351
|
-
|
|
350
|
+
H.extend({
|
|
352
351
|
collectible: n.nullish(),
|
|
353
|
-
collectibleConfig:
|
|
352
|
+
collectibleConfig: T.nullish(),
|
|
354
353
|
business: n.nullish()
|
|
355
354
|
})
|
|
356
355
|
]), Se = {
|
|
@@ -413,16 +412,13 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
413
412
|
foreignField: "group"
|
|
414
413
|
}
|
|
415
414
|
}
|
|
416
|
-
},
|
|
415
|
+
}, Xe = e.object({
|
|
417
416
|
_id: n,
|
|
418
417
|
name: e.string().min(1).max(300),
|
|
419
418
|
business: n,
|
|
420
419
|
pf_campaigns: e.array(e.any()).optional()
|
|
421
420
|
}).describe(p.describe(Be)), Ue = e.object({
|
|
422
|
-
|
|
423
|
-
name: e.string().min(1).max(50).nullish()
|
|
424
|
-
}), je = e.object({
|
|
425
|
-
type: e.literal(P.enum.MEMBERSHIP),
|
|
421
|
+
type: e.literal(S.enum.MEMBERSHIP),
|
|
426
422
|
business: n,
|
|
427
423
|
name: e.string().min(1).max(50),
|
|
428
424
|
image: e.string().nullish(),
|
|
@@ -442,14 +438,13 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
442
438
|
).optional(),
|
|
443
439
|
targetLocation: e.array(n).nullish(),
|
|
444
440
|
brand: e.string().nullish(),
|
|
445
|
-
email: Ue.nullish(),
|
|
446
441
|
freeCreditAsDiscount: e.boolean().optional(),
|
|
447
|
-
pf_title: e.array(e.lazy(() =>
|
|
442
|
+
pf_title: e.array(e.lazy(() => c)).optional(),
|
|
448
443
|
pf_targetLocation: e.array(e.lazy(() => w)).optional(),
|
|
449
444
|
// new structure
|
|
450
445
|
group: e.string().nullish(),
|
|
451
446
|
templateId: n.nullish()
|
|
452
|
-
}), t =
|
|
447
|
+
}), t = S.exclude(["MEMBERSHIP"]), l = e.object({
|
|
453
448
|
_id: n.nullish(),
|
|
454
449
|
type: t,
|
|
455
450
|
// common information
|
|
@@ -460,10 +455,8 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
460
455
|
timeframeOptions: Q.superRefine((o, a) => {
|
|
461
456
|
o.start && o.end && o.end < o.start && a.addIssue({
|
|
462
457
|
code: "custom",
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
i18n: { key: "timeframe.end_before_start" }
|
|
466
|
-
}
|
|
458
|
+
message: "End date must be later or same as start date",
|
|
459
|
+
path: []
|
|
467
460
|
});
|
|
468
461
|
}).nullish(),
|
|
469
462
|
targetLocation: e.array(n).nullish(),
|
|
@@ -524,7 +517,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
524
517
|
"FEEDBACK",
|
|
525
518
|
"SCHEDULE"
|
|
526
519
|
]
|
|
527
|
-
},
|
|
520
|
+
}, z = l.extend({
|
|
528
521
|
type: e.literal(t.enum.VOUCHER),
|
|
529
522
|
// event
|
|
530
523
|
code: e.string().min(0).max(15).optional(),
|
|
@@ -533,7 +526,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
533
526
|
type: e.enum(r[t.enum.VOUCHER])
|
|
534
527
|
})
|
|
535
528
|
),
|
|
536
|
-
earningOption:
|
|
529
|
+
earningOption: d.default({
|
|
537
530
|
amount: 1,
|
|
538
531
|
type: "FIXED"
|
|
539
532
|
}),
|
|
@@ -542,9 +535,9 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
542
535
|
notify: e.boolean().optional(),
|
|
543
536
|
notifyMessage: e.lazy(() => E).optional(),
|
|
544
537
|
notifyCampaign: n.nullish(),
|
|
545
|
-
pf_collectible: e.lazy(() =>
|
|
538
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
546
539
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
547
|
-
}),
|
|
540
|
+
}), je = e.object({
|
|
548
541
|
gameType: e.string()
|
|
549
542
|
}), k = l.extend({
|
|
550
543
|
type: e.literal(t.enum.PROMOTION),
|
|
@@ -557,13 +550,10 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
557
550
|
effect: e.custom().superRefine((o, a) => {
|
|
558
551
|
o || a.addIssue({
|
|
559
552
|
code: "custom",
|
|
560
|
-
|
|
561
|
-
params: {
|
|
562
|
-
i18n: { key: "zodCustom.campaign.effect_required" }
|
|
563
|
-
}
|
|
553
|
+
message: "Effect is required"
|
|
564
554
|
});
|
|
565
555
|
}),
|
|
566
|
-
gameConfig:
|
|
556
|
+
gameConfig: je.nullish()
|
|
567
557
|
}), W = l.extend({
|
|
568
558
|
type: e.literal(t.enum.POINT),
|
|
569
559
|
// event
|
|
@@ -572,12 +562,12 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
572
562
|
type: e.enum(r[t.enum.POINT])
|
|
573
563
|
})
|
|
574
564
|
),
|
|
575
|
-
earningOption:
|
|
565
|
+
earningOption: d,
|
|
576
566
|
collectible: n,
|
|
577
567
|
notify: e.boolean().optional(),
|
|
578
568
|
notifyMessage: e.lazy(() => E).optional(),
|
|
579
569
|
notifyCampaign: n.nullish(),
|
|
580
|
-
pf_collectible: e.lazy(() =>
|
|
570
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
581
571
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
582
572
|
}), V = l.extend({
|
|
583
573
|
type: e.literal(t.enum.CREDIT),
|
|
@@ -587,12 +577,12 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
587
577
|
type: e.enum(r[t.enum.CREDIT])
|
|
588
578
|
})
|
|
589
579
|
),
|
|
590
|
-
earningOption:
|
|
580
|
+
earningOption: d,
|
|
591
581
|
collectible: n,
|
|
592
582
|
notify: e.boolean().optional(),
|
|
593
583
|
notifyMessage: e.lazy(() => E).optional(),
|
|
594
584
|
notifyCampaign: n.nullish(),
|
|
595
|
-
pf_collectible: e.lazy(() =>
|
|
585
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
596
586
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
597
587
|
}), g = l.extend({
|
|
598
588
|
type: e.literal(t.enum.BROADCAST),
|
|
@@ -612,14 +602,14 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
612
602
|
type: e.enum(r[t.enum.COIN])
|
|
613
603
|
})
|
|
614
604
|
),
|
|
615
|
-
earningOption:
|
|
605
|
+
earningOption: d,
|
|
616
606
|
collectible: n,
|
|
617
607
|
notify: e.boolean().optional(),
|
|
618
608
|
notifyMessage: e.lazy(() => E).optional(),
|
|
619
609
|
notifyCampaign: n.nullish(),
|
|
620
|
-
pf_collectible: e.lazy(() =>
|
|
610
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
621
611
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
622
|
-
}),
|
|
612
|
+
}), C = l.extend({
|
|
623
613
|
type: e.literal(t.enum.REWARD_POOL),
|
|
624
614
|
// event
|
|
625
615
|
event: s.merge(
|
|
@@ -636,10 +626,10 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
636
626
|
type: e.enum(r[t.enum.GAME])
|
|
637
627
|
})
|
|
638
628
|
),
|
|
639
|
-
earningOption:
|
|
629
|
+
earningOption: d,
|
|
640
630
|
collectible: n,
|
|
641
|
-
game: e.lazy(() =>
|
|
642
|
-
pf_collectible: e.lazy(() =>
|
|
631
|
+
game: e.lazy(() => C).optional(),
|
|
632
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
643
633
|
rewardPool: n.optional()
|
|
644
634
|
}), Y = l.extend({
|
|
645
635
|
type: e.literal(t.enum.MISSION),
|
|
@@ -648,12 +638,12 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
648
638
|
type: e.enum(r[t.enum.MISSION])
|
|
649
639
|
})
|
|
650
640
|
),
|
|
651
|
-
earningOption:
|
|
641
|
+
earningOption: d,
|
|
652
642
|
collectible: n,
|
|
653
|
-
pf_collectible: e.lazy(() =>
|
|
643
|
+
pf_collectible: e.lazy(() => c).optional(),
|
|
654
644
|
mission: e.lazy(() => Ne),
|
|
655
645
|
rewards: e.array(e.lazy(() => v)).min(1, "Requires at least 1 reward")
|
|
656
|
-
}),
|
|
646
|
+
}), Ge = {
|
|
657
647
|
collectionName: "Campaigns",
|
|
658
648
|
transform: {
|
|
659
649
|
_id: "oid",
|
|
@@ -695,21 +685,21 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
695
685
|
as: "game"
|
|
696
686
|
}
|
|
697
687
|
}
|
|
698
|
-
},
|
|
688
|
+
}, Ze = e.object({ _id: n }).and(
|
|
699
689
|
e.discriminatedUnion("type", [
|
|
700
|
-
|
|
701
|
-
|
|
690
|
+
Ue,
|
|
691
|
+
z,
|
|
702
692
|
k,
|
|
703
693
|
W,
|
|
704
694
|
V,
|
|
705
695
|
g,
|
|
706
696
|
K,
|
|
707
|
-
|
|
697
|
+
C,
|
|
708
698
|
J,
|
|
709
699
|
Y
|
|
710
700
|
])
|
|
711
|
-
).describe(p.describe(
|
|
712
|
-
|
|
701
|
+
).describe(p.describe(Ge)), Qe = e.discriminatedUnion("type", [
|
|
702
|
+
z.extend({
|
|
713
703
|
business: n.nullish()
|
|
714
704
|
}),
|
|
715
705
|
k.extend({
|
|
@@ -727,14 +717,14 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
727
717
|
K.extend({
|
|
728
718
|
business: n.nullish()
|
|
729
719
|
}),
|
|
730
|
-
|
|
731
|
-
rewards: e.array(e.lazy(() =>
|
|
720
|
+
C.extend({
|
|
721
|
+
rewards: e.array(e.lazy(() => A)).min(1, "Requires at least 1 reward")
|
|
732
722
|
}),
|
|
733
723
|
J.extend({
|
|
734
724
|
business: n.nullish(),
|
|
735
|
-
game:
|
|
725
|
+
game: C.extend({
|
|
736
726
|
business: n.nullish(),
|
|
737
|
-
rewards: e.array(e.lazy(() =>
|
|
727
|
+
rewards: e.array(e.lazy(() => A)).min(1, "Requires at least 1 reward")
|
|
738
728
|
})
|
|
739
729
|
}),
|
|
740
730
|
Y.extend({
|
|
@@ -744,19 +734,18 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
744
734
|
]);
|
|
745
735
|
export {
|
|
746
736
|
r as C,
|
|
747
|
-
|
|
737
|
+
Je as F,
|
|
748
738
|
t as a,
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
739
|
+
Ke as b,
|
|
740
|
+
qe as c,
|
|
741
|
+
A as d,
|
|
752
742
|
xe as e,
|
|
753
743
|
Pe as f,
|
|
754
744
|
Ne as g,
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
qe as r
|
|
745
|
+
Ve as h,
|
|
746
|
+
S as i,
|
|
747
|
+
Xe as j,
|
|
748
|
+
Qe as k,
|
|
749
|
+
Ze as l,
|
|
750
|
+
Ye as r
|
|
762
751
|
};
|
|
@@ -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-B3XGyQ8W.js";
|
|
2
|
+
import { e as l } from "./index-Buy-yvAZ.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"
|
|
@@ -182,7 +182,7 @@ const S = e.object({
|
|
|
182
182
|
}), R = e.object({
|
|
183
183
|
company: m.nullish(),
|
|
184
184
|
inclusiveTaxes: e.array(p).nullish(),
|
|
185
|
-
stripe: S.optional()
|
|
185
|
+
stripe: S.nullable().optional()
|
|
186
186
|
}), x = {
|
|
187
187
|
collectionName: "Stores",
|
|
188
188
|
transform: {
|