@feedmepos/mf-connect 0.1.0-prod → 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-D1vIDmhJ.js → Analytic-C2etD-eu.js} +7 -7
- package/dist/{App-DHrfWG8l.js → App-DlRvkDpN.js} +205 -205
- package/dist/{Broadcast-B2rxZAZi.js → Broadcast-DpCGUS6r.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D2a9rcXK.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cj4IcH5D.js} +8 -8
- package/dist/{Card-Dr6pTTM0.js → Card-DjGC6jmq.js} +70 -71
- package/dist/{Collections-0tbg0MFt.js → Collections-Q2pYWnJF.js} +11 -12
- package/dist/{Credit-KbB_7Jq-.js → Credit-DOIq2VYW.js} +7 -7
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-we7ADwFk.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D7ML8ePp.js} +36 -33
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-VBNyvZCJ.js → EffectSheet.vue_vue_type_style_index_0_lang-CyxWG5I7.js} +5 -5
- package/dist/{Experience-C_Q9Iml8.js → Experience-DUst4I0H.js} +7 -7
- package/dist/{Game-BwODw7M6.js → Game-CXnQR-wV.js} +7 -7
- package/dist/{Marketing-QOKTAS_T.js → Marketing-CZfHsMFC.js} +4 -4
- package/dist/{Member-d7RIGRm1.js → Member-CX5Ohgeg.js} +3 -3
- package/dist/MemberList-D8I3SaAs.js +1040 -0
- package/dist/{MemberTransactions-D-pnlXiP.js → MemberTransactions-DfZNbCHD.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-3VS7JnK6.js → MessageInput.vue_vue_type_script_setup_true_lang-BxFVEoBX.js} +2 -2
- package/dist/{Mission-BAKDm4VZ.js → Mission-S1pwDbqp.js} +7 -7
- package/dist/{Point-Puu0jKz0.js → Point-BdLUcGZy.js} +7 -7
- package/dist/{Promotion-DRIaUvJi.js → Promotion-DWAeQGkU.js} +8 -8
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DTdfYGya.js → RuleGroup.vue_vue_type_script_setup_true_lang-Dux_NMO5.js} +86 -77
- package/dist/Segment-CXSE8Bzf.js +560 -0
- package/dist/{Setting-DLB2ywCp.js → Setting-CLuXuEId.js} +7 -7
- package/dist/Store-Be3cui0S.js +1533 -0
- package/dist/{StoreRewards-DZfqUeYR.js → StoreRewards-zFy_w8p4.js} +10 -10
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-RTfozD01.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DxGJKgbc.js} +10 -10
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BGI78ycg.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dreo45H1.js} +1 -1
- package/dist/{Tier-BnQRujpX.js → Tier-ChzcISYF.js} +13 -13
- package/dist/{Title-BPf1tUFx.js → Title-DQSjhBkT.js} +13 -13
- package/dist/{Transaction-ese0oNrz.js → Transaction-CeWmWpN_.js} +1 -1
- package/dist/{Voucher--gtOZQx1.js → Voucher-BkLIxiZN.js} +10 -10
- package/dist/{app-Bt59niI-.js → app-CLNirPsB.js} +24 -24
- package/dist/{app-DHE61XdR.js → app-DuNsy0aC.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-BSo7EPan.js → business-COGiTmLD.js} +1 -1
- package/dist/{campaign-CsOje3Ap.js → campaign-BHZMjQi5.js} +2 -2
- package/dist/{collection.fn-BYQfFJOr.js → collection.fn-sAxtYO_r.js} +2 -2
- package/dist/{dto-CfEXSCq6.js → dto-ndeeV_nc.js} +50 -50
- package/dist/{effect-Bn_ofYS3.js → effect-BQt0rkdT.js} +1 -1
- package/dist/email-addresses-B3PazwKs.js +705 -0
- package/dist/{export-CMR243CF.js → export-D6r-xNji.js} +3 -3
- package/dist/{helper-BqOQRtvW.js → helper-CrjQw_Et.js} +1 -1
- package/dist/{index-Boo5np6l.js → index-Btlj28Vg.js} +1 -1
- package/dist/{index-D_f2lmK2.js → index-Buy-yvAZ.js} +319 -304
- package/dist/{index-CHO4_zsT.js → index-C3AAy__p.js} +1 -1
- package/dist/{index-DbP04yeg.js → index-CHAaFSD2.js} +1 -1
- package/dist/{index-Da142OER.js → index-Cg3RFxc9.js} +34 -33
- package/dist/{index-DEZsrQ2f.js → index-CqpEhMr6.js} +3 -3
- package/dist/{index-CC1GV8OW.js → index-CvHj-wYi.js} +1 -1
- package/dist/index-DGLmbBnE.js +28997 -0
- package/dist/{index-FvlaxwGB.js → index-DXpd07G3.js} +2 -2
- package/dist/{index-BaBNmzUb.js → index-Daax_BQa.js} +1 -1
- package/dist/{index-BWnFs-Cb.js → index-DrLEuIe1.js} +5 -5
- package/dist/{index-DtPe-TEm.js → index-tSEYvA-2.js} +3 -3
- package/dist/{index.esm2017-ePm--Atp.js → index.esm2017-a5BlZ76G.js} +1 -1
- package/dist/{loading-KNmEMBUB.js → loading-B3XGyQ8W.js} +4 -4
- package/dist/{membership-DKoVIS1a.js → membership-GIOJ1ptN.js} +3 -3
- package/dist/{money-CkD3zl5C.js → money-z7VwzhZP.js} +1 -1
- package/dist/{number-BDsGpOXm.js → number-DHYb2ua_.js} +1 -1
- package/dist/{rule-builder-DHf6wfaQ.js → rule-builder-CcsWd5r9.js} +1 -1
- package/dist/{rule-CzamI50_.js → rule-iIEblTE4.js} +179 -177
- package/dist/{template-CFAIPoD7.js → template-DMRMDZOW.js} +4 -4
- package/dist/{xlsx-BDJMaozs.js → usePagination-CNFe0T2B.js} +3246 -3025
- package/package.json +2 -2
- package/dist/MemberList-CK9629ew.js +0 -1737
- package/dist/Segment-DpBxGuuu.js +0 -435
- package/dist/Store-8DO6ITWc.js +0 -1513
- package/dist/index-BLDYTxnc.js +0 -28058
- package/dist/usePagination-JoYaROkV.js +0 -223
|
@@ -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(),
|
|
@@ -176,17 +176,17 @@ 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
|
});
|
|
@@ -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({
|
|
@@ -288,7 +288,7 @@ const Te = e.enum(["SMS", "WHATSAPP"]), E = e.object({
|
|
|
288
288
|
code: e.ZodIssueCode.custom,
|
|
289
289
|
message: "Content is required"
|
|
290
290
|
});
|
|
291
|
-
const y = /{{(.*?)}}/g, R = [...o.content.matchAll(y)].map((u) => u[1]),
|
|
291
|
+
const y = /{{(.*?)}}/g, R = [...o.content.matchAll(y)].map((u) => u[1]), M = o.variables, b = R.filter((u) => M.indexOf(u) < 0);
|
|
292
292
|
b.length && a.addIssue({
|
|
293
293
|
code: e.ZodIssueCode.custom,
|
|
294
294
|
message: "Invalid variable(s): " + b.join(", ")
|
|
@@ -300,31 +300,32 @@ function Ye(o, a) {
|
|
|
300
300
|
return b !== null ? b : y;
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
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({
|
|
304
304
|
type: e.literal(h.enum.NO_REWARD),
|
|
305
305
|
collectible: e.null(),
|
|
306
|
-
weight:
|
|
306
|
+
weight: f
|
|
307
307
|
}), B = e.object({
|
|
308
308
|
type: e.literal(h.enum.VOUCHER),
|
|
309
309
|
collectible: n,
|
|
310
|
-
collectibleConfig: e.lazy(() =>
|
|
310
|
+
collectibleConfig: e.lazy(() => T._def.right.options[0]),
|
|
311
311
|
earningOption: e.lazy(() => d)
|
|
312
|
-
}),
|
|
312
|
+
}), O = e.object({
|
|
313
313
|
type: e.literal(h.enum.LOYALTY),
|
|
314
314
|
collectible: n,
|
|
315
315
|
earningOption: e.lazy(() => d),
|
|
316
316
|
validityOption: e.lazy(() => X)
|
|
317
317
|
}), U = B.extend({
|
|
318
|
-
weight:
|
|
319
|
-
}), j =
|
|
318
|
+
weight: f
|
|
319
|
+
}), j = O.extend({
|
|
320
320
|
weight: e.number().min(0, "Weight need to be at least 0")
|
|
321
|
-
}), qe =
|
|
322
|
-
validityOption: Z
|
|
321
|
+
}), qe = O.extend({
|
|
322
|
+
validityOption: Z,
|
|
323
|
+
weight: f
|
|
323
324
|
}), Le = e.discriminatedUnion("type", [
|
|
324
325
|
U,
|
|
325
326
|
j,
|
|
326
327
|
N
|
|
327
|
-
]),
|
|
328
|
+
]), A = e.discriminatedUnion("type", [
|
|
328
329
|
U.extend({
|
|
329
330
|
collectible: n.nullish(),
|
|
330
331
|
business: n.nullish()
|
|
@@ -336,7 +337,7 @@ const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), S = e.number().min(0, "We
|
|
|
336
337
|
N
|
|
337
338
|
]), G = B.extend({
|
|
338
339
|
threshold: x
|
|
339
|
-
}), H =
|
|
340
|
+
}), H = O.extend({
|
|
340
341
|
threshold: x
|
|
341
342
|
}), v = e.discriminatedUnion("type", [
|
|
342
343
|
G,
|
|
@@ -348,7 +349,7 @@ const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), S = e.number().min(0, "We
|
|
|
348
349
|
}),
|
|
349
350
|
H.extend({
|
|
350
351
|
collectible: n.nullish(),
|
|
351
|
-
collectibleConfig:
|
|
352
|
+
collectibleConfig: T.nullish(),
|
|
352
353
|
business: n.nullish()
|
|
353
354
|
})
|
|
354
355
|
]), Se = {
|
|
@@ -417,7 +418,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
417
418
|
business: n,
|
|
418
419
|
pf_campaigns: e.array(e.any()).optional()
|
|
419
420
|
}).describe(p.describe(Be)), Ue = e.object({
|
|
420
|
-
type: e.literal(
|
|
421
|
+
type: e.literal(S.enum.MEMBERSHIP),
|
|
421
422
|
business: n,
|
|
422
423
|
name: e.string().min(1).max(50),
|
|
423
424
|
image: e.string().nullish(),
|
|
@@ -443,7 +444,7 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
443
444
|
// new structure
|
|
444
445
|
group: e.string().nullish(),
|
|
445
446
|
templateId: n.nullish()
|
|
446
|
-
}), t =
|
|
447
|
+
}), t = S.exclude(["MEMBERSHIP"]), l = e.object({
|
|
447
448
|
_id: n.nullish(),
|
|
448
449
|
type: t,
|
|
449
450
|
// common information
|
|
@@ -717,13 +718,13 @@ const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
|
717
718
|
business: n.nullish()
|
|
718
719
|
}),
|
|
719
720
|
C.extend({
|
|
720
|
-
rewards: e.array(e.lazy(() =>
|
|
721
|
+
rewards: e.array(e.lazy(() => A)).min(1, "Requires at least 1 reward")
|
|
721
722
|
}),
|
|
722
723
|
J.extend({
|
|
723
724
|
business: n.nullish(),
|
|
724
725
|
game: C.extend({
|
|
725
726
|
business: n.nullish(),
|
|
726
|
-
rewards: e.array(e.lazy(() =>
|
|
727
|
+
rewards: e.array(e.lazy(() => A)).min(1, "Requires at least 1 reward")
|
|
727
728
|
})
|
|
728
729
|
}),
|
|
729
730
|
Y.extend({
|
|
@@ -737,12 +738,12 @@ export {
|
|
|
737
738
|
t as a,
|
|
738
739
|
Ke as b,
|
|
739
740
|
qe as c,
|
|
740
|
-
|
|
741
|
+
A as d,
|
|
741
742
|
xe as e,
|
|
742
743
|
Pe as f,
|
|
743
744
|
Ne as g,
|
|
744
745
|
Ve as h,
|
|
745
|
-
|
|
746
|
+
S as i,
|
|
746
747
|
Xe as j,
|
|
747
748
|
Qe as k,
|
|
748
749
|
Ze as l,
|
|
@@ -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(),
|
|
@@ -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: {
|