@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.
Files changed (68) hide show
  1. package/dist/{Analytic-D1vIDmhJ.js → Analytic-C2etD-eu.js} +7 -7
  2. package/dist/{App-DHrfWG8l.js → App-DlRvkDpN.js} +205 -205
  3. package/dist/{Broadcast-B2rxZAZi.js → Broadcast-DpCGUS6r.js} +7 -7
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D2a9rcXK.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cj4IcH5D.js} +8 -8
  5. package/dist/{Card-Dr6pTTM0.js → Card-DjGC6jmq.js} +70 -71
  6. package/dist/{Collections-0tbg0MFt.js → Collections-Q2pYWnJF.js} +11 -12
  7. package/dist/{Credit-KbB_7Jq-.js → Credit-DOIq2VYW.js} +7 -7
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-we7ADwFk.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D7ML8ePp.js} +36 -33
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-VBNyvZCJ.js → EffectSheet.vue_vue_type_style_index_0_lang-CyxWG5I7.js} +5 -5
  10. package/dist/{Experience-C_Q9Iml8.js → Experience-DUst4I0H.js} +7 -7
  11. package/dist/{Game-BwODw7M6.js → Game-CXnQR-wV.js} +7 -7
  12. package/dist/{Marketing-QOKTAS_T.js → Marketing-CZfHsMFC.js} +4 -4
  13. package/dist/{Member-d7RIGRm1.js → Member-CX5Ohgeg.js} +3 -3
  14. package/dist/MemberList-D8I3SaAs.js +1040 -0
  15. package/dist/{MemberTransactions-D-pnlXiP.js → MemberTransactions-DfZNbCHD.js} +1 -1
  16. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-3VS7JnK6.js → MessageInput.vue_vue_type_script_setup_true_lang-BxFVEoBX.js} +2 -2
  17. package/dist/{Mission-BAKDm4VZ.js → Mission-S1pwDbqp.js} +7 -7
  18. package/dist/{Point-Puu0jKz0.js → Point-BdLUcGZy.js} +7 -7
  19. package/dist/{Promotion-DRIaUvJi.js → Promotion-DWAeQGkU.js} +8 -8
  20. 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
  21. package/dist/Segment-CXSE8Bzf.js +560 -0
  22. package/dist/{Setting-DLB2ywCp.js → Setting-CLuXuEId.js} +7 -7
  23. package/dist/Store-Be3cui0S.js +1533 -0
  24. package/dist/{StoreRewards-DZfqUeYR.js → StoreRewards-zFy_w8p4.js} +10 -10
  25. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-RTfozD01.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DxGJKgbc.js} +10 -10
  26. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BGI78ycg.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dreo45H1.js} +1 -1
  27. package/dist/{Tier-BnQRujpX.js → Tier-ChzcISYF.js} +13 -13
  28. package/dist/{Title-BPf1tUFx.js → Title-DQSjhBkT.js} +13 -13
  29. package/dist/{Transaction-ese0oNrz.js → Transaction-CeWmWpN_.js} +1 -1
  30. package/dist/{Voucher--gtOZQx1.js → Voucher-BkLIxiZN.js} +10 -10
  31. package/dist/{app-Bt59niI-.js → app-CLNirPsB.js} +24 -24
  32. package/dist/{app-DHE61XdR.js → app-DuNsy0aC.js} +1 -1
  33. package/dist/app.js +1 -1
  34. package/dist/{business-BSo7EPan.js → business-COGiTmLD.js} +1 -1
  35. package/dist/{campaign-CsOje3Ap.js → campaign-BHZMjQi5.js} +2 -2
  36. package/dist/{collection.fn-BYQfFJOr.js → collection.fn-sAxtYO_r.js} +2 -2
  37. package/dist/{dto-CfEXSCq6.js → dto-ndeeV_nc.js} +50 -50
  38. package/dist/{effect-Bn_ofYS3.js → effect-BQt0rkdT.js} +1 -1
  39. package/dist/email-addresses-B3PazwKs.js +705 -0
  40. package/dist/{export-CMR243CF.js → export-D6r-xNji.js} +3 -3
  41. package/dist/{helper-BqOQRtvW.js → helper-CrjQw_Et.js} +1 -1
  42. package/dist/{index-Boo5np6l.js → index-Btlj28Vg.js} +1 -1
  43. package/dist/{index-D_f2lmK2.js → index-Buy-yvAZ.js} +319 -304
  44. package/dist/{index-CHO4_zsT.js → index-C3AAy__p.js} +1 -1
  45. package/dist/{index-DbP04yeg.js → index-CHAaFSD2.js} +1 -1
  46. package/dist/{index-Da142OER.js → index-Cg3RFxc9.js} +34 -33
  47. package/dist/{index-DEZsrQ2f.js → index-CqpEhMr6.js} +3 -3
  48. package/dist/{index-CC1GV8OW.js → index-CvHj-wYi.js} +1 -1
  49. package/dist/index-DGLmbBnE.js +28997 -0
  50. package/dist/{index-FvlaxwGB.js → index-DXpd07G3.js} +2 -2
  51. package/dist/{index-BaBNmzUb.js → index-Daax_BQa.js} +1 -1
  52. package/dist/{index-BWnFs-Cb.js → index-DrLEuIe1.js} +5 -5
  53. package/dist/{index-DtPe-TEm.js → index-tSEYvA-2.js} +3 -3
  54. package/dist/{index.esm2017-ePm--Atp.js → index.esm2017-a5BlZ76G.js} +1 -1
  55. package/dist/{loading-KNmEMBUB.js → loading-B3XGyQ8W.js} +4 -4
  56. package/dist/{membership-DKoVIS1a.js → membership-GIOJ1ptN.js} +3 -3
  57. package/dist/{money-CkD3zl5C.js → money-z7VwzhZP.js} +1 -1
  58. package/dist/{number-BDsGpOXm.js → number-DHYb2ua_.js} +1 -1
  59. package/dist/{rule-builder-DHf6wfaQ.js → rule-builder-CcsWd5r9.js} +1 -1
  60. package/dist/{rule-CzamI50_.js → rule-iIEblTE4.js} +179 -177
  61. package/dist/{template-CFAIPoD7.js → template-DMRMDZOW.js} +4 -4
  62. package/dist/{xlsx-BDJMaozs.js → usePagination-CNFe0T2B.js} +3246 -3025
  63. package/package.json +2 -2
  64. package/dist/MemberList-CK9629ew.js +0 -1737
  65. package/dist/Segment-DpBxGuuu.js +0 -435
  66. package/dist/Store-8DO6ITWc.js +0 -1513
  67. package/dist/index-BLDYTxnc.js +0 -28058
  68. package/dist/usePagination-JoYaROkV.js +0 -223
@@ -1,4 +1,4 @@
1
- import { g as n, S as I, u as C, b as _ } from "./index-BLDYTxnc.js";
1
+ import { g as n, S as I, u as C, b as _ } from "./index-DGLmbBnE.js";
2
2
  const c = () => {
3
3
  if (!I.getBusinessId()) throw new Error("Invalid business ID");
4
4
  return C("users");
@@ -1,5 +1,5 @@
1
1
  import { createRouter as o, createWebHistory as r } from "vue-router";
2
- import { r as t, R as e } from "./app-Bt59niI-.js";
2
+ import { r as t, R as e } from "./app-CLNirPsB.js";
3
3
  const s = o({
4
4
  history: r(),
5
5
  routes: t
@@ -1,9 +1,9 @@
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
- const P = e.enum([
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
- ]), M = e.enum(["TIME_BASED_PROMOTION", "GAME_PROMOTION"]), Ve = {
18
- [M.enum.TIME_BASED_PROMOTION]: "7.7.4",
19
- [M.enum.GAME_PROMOTION]: "7.7.4"
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: A,
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: A,
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: T
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: L
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: L,
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(() => T).nullish(),
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]), O = o.variables, b = R.filter((u) => O.indexOf(u) < 0);
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"]), 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({
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: S
306
+ weight: f
307
307
  }), B = e.object({
308
308
  type: e.literal(h.enum.VOUCHER),
309
309
  collectible: n,
310
- collectibleConfig: e.lazy(() => D._def.right.options[0]),
310
+ collectibleConfig: e.lazy(() => T._def.right.options[0]),
311
311
  earningOption: e.lazy(() => d)
312
- }), f = e.object({
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: S
319
- }), j = f.extend({
318
+ weight: f
319
+ }), j = O.extend({
320
320
  weight: e.number().min(0, "Weight need to be at least 0")
321
- }), qe = f.extend({
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
- ]), F = e.discriminatedUnion("type", [
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 = f.extend({
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: D.nullish(),
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(P.enum.MEMBERSHIP),
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 = P.exclude(["MEMBERSHIP"]), l = e.object({
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(() => F)).min(1, "Requires at least 1 reward")
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(() => F)).min(1, "Requires at least 1 reward")
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
- F as d,
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
- P as i,
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-KNmEMBUB.js";
2
- import { e as l } from "./index-D_f2lmK2.js";
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: {
@@ -1,4 +1,4 @@
1
- import { g as t, S as n, b as u } from "./index-BLDYTxnc.js";
1
+ import { g as t, S as n, b as u } from "./index-DGLmbBnE.js";
2
2
  const a = () => {
3
3
  const e = n.getBusinessId();
4
4
  if (!e) throw new Error("Invalid business ID");