@feedmepos/mf-connect 0.1.0-beta.49 → 0.1.0-beta.50

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 (88) hide show
  1. package/dist/{Analytic-DTJ_SOI3.js → Analytic-D-yp03jJ.js} +11 -11
  2. package/dist/{App-Cls9g4sA.js → App-CeQWTGNK.js} +55 -51
  3. package/dist/{AuditLogs-xbOKPoQS.js → AuditLogs-2qzwcMXR.js} +8 -8
  4. package/dist/Bin-D1b2NbbA.js +191 -0
  5. package/dist/{Broadcast-UeoV6_0x.js → Broadcast-bKF9mIns.js} +9 -9
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BPl_0m0I.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B_q5K-cx.js} +6 -6
  7. package/dist/{Card-DSK_2b0H.js → Card-BCAyfBLi.js} +15 -15
  8. package/dist/{Collections-U63Y-tw8.js → Collections-Yz3F55bv.js} +5 -5
  9. package/dist/{Credit-CC1k4c10.js → Credit-Ceptt_g_.js} +9 -9
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BUPBXZWy.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-TjNinQ8e.js} +28 -28
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DnjTCWUk.js → EffectSheet.vue_vue_type_style_index_0_lang-D3Bt-Vuu.js} +8 -8
  12. package/dist/{Experience-UBLCm5X8.js → Experience-DskHKzfo.js} +9 -9
  13. package/dist/{Game-DN8qNmAV.js → Game-IJ6X0AXM.js} +9 -9
  14. package/dist/{Index-Cp5Iqmgq.js → Index-CEl2y9X6.js} +93 -90
  15. package/dist/{Marketing-BTZSeQdq.js → Marketing-CWekLb4c.js} +6 -6
  16. package/dist/{Member-DKGZpaNY.js → Member-BUZPQ5Lb.js} +4 -4
  17. package/dist/{MemberList-BDv5O7_F.js → MemberList-BmVNqvbm.js} +24 -24
  18. package/dist/{MemberTransactions-Cp_g2uYy.js → MemberTransactions-B3XhEOK_.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-TBeUosVs.js → MessageInput.vue_vue_type_script_setup_true_lang-C6YIbQtM.js} +2 -2
  20. package/dist/{Mission-Cte8Jtyj.js → Mission-Ci9ed_ph.js} +9 -9
  21. package/dist/{Overview-COeyTvML.js → Overview-CU9uhC-k.js} +399 -395
  22. package/dist/{Point-Cu5_d5X1.js → Point-wuuR7AEb.js} +9 -9
  23. package/dist/{Promotion-Cf8ct95o.js → Promotion-BMi3kyE8.js} +10 -10
  24. package/dist/Record-Wmh-g8WY.js +340 -0
  25. package/dist/{Reward-Bcx7bCEh.js → Reward-BL4lxhIB.js} +35 -35
  26. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CwApma5p.js → RewardGroup.vue_vue_type_script_setup_true_lang-CqXuTxun.js} +11 -11
  27. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Cg3bA1cc.js → RuleGroup.vue_vue_type_script_setup_true_lang-Dbik0PEw.js} +12 -12
  28. package/dist/{Segment-BfMpM62H.js → Segment-DObdjyYi.js} +14 -14
  29. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CqZIHzA3.js → SelectItems.vue_vue_type_script_setup_true_lang-BAuM6qP5.js} +2 -2
  30. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-BfyRVxWM.js +147 -0
  31. package/dist/{Setting-Btim3PZq.js → Setting-Dqgnd7TR.js} +10 -10
  32. package/dist/{Store-BbiTlkAz.js → Store--Z4So__g.js} +18 -18
  33. package/dist/{StoreRewards-hbNthA-_.js → StoreRewards-DPFVXWwm.js} +13 -13
  34. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Dv58wFeO.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CNsdA106.js} +17 -17
  35. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BJvBo7sT.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CGOmGozY.js} +1 -1
  36. package/dist/{Tier-Ddj_dwc8.js → Tier-36IfhsnP.js} +19 -19
  37. package/dist/{Title-CA6b8UxN.js → Title-XH56OOug.js} +19 -19
  38. package/dist/{Transaction-yp6PDE_8.js → Transaction-BUQcSmBs.js} +2 -2
  39. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DoCmo4D7.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BVCfeG5T.js} +6 -6
  40. package/dist/Voucher-CvmH0kcF.js +353 -0
  41. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-aYXqbp2E.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BQOD6uEf.js} +15 -15
  42. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Bz77dtVR.js → ZodTextField.vue_vue_type_script_setup_true_lang-CcIcCt4N.js} +1 -1
  43. package/dist/{app-BpikVDEt.js → app-DeW5_DB0.js} +712 -547
  44. package/dist/{app-DG6xKzyo.js → app-TN8KEPMu.js} +1 -1
  45. package/dist/app.js +1 -1
  46. package/dist/{business-DPl8ug6e.js → business-D1mLhSME.js} +1 -1
  47. package/dist/{campaign-D9xub_rP.js → campaign-0tnkhu78.js} +11 -11
  48. package/dist/{campaign-CLF6bWG4.js → campaign-B-12Im0w.js} +2 -2
  49. package/dist/{campaign.enum-DJijW358.js → campaign.enum-C8m-HHZE.js} +1 -1
  50. package/dist/{campaign.fn-DgyMbDS2.js → campaign.fn-CxkhbK9i.js} +110 -110
  51. package/dist/{collectible.enum-q3RNa6ac.js → collectible.enum-6Syq-vQ6.js} +3 -3
  52. package/dist/{collection.fn-DQdOmMPm.js → collection.fn-BUj75Jp2.js} +2 -2
  53. package/dist/{dto-Gtphhk7f.js → dto-8wODhIIC.js} +7 -7
  54. package/dist/{effect-b6TK6WqX.js → effect-BEZEjcJu.js} +1 -1
  55. package/dist/{email-addresses-BOOXVJIb.js → email-addresses-PwjkdYYD.js} +1 -1
  56. package/dist/{export-DB-hJPwq.js → export-BB-0vgwy.js} +3 -3
  57. package/dist/{helper-DaoMEMRy.js → helper-DOt8-wns.js} +1 -1
  58. package/dist/{index-Dd_g3RuO.js → index-B1qUjniH.js} +1 -1
  59. package/dist/{index-tXvAp_RD.js → index-BTMIZz4v.js} +1 -1
  60. package/dist/{index-zaGTl_qB.js → index-By-GlmG7.js} +2 -2
  61. package/dist/index-C7zBkoZ4.js +115 -0
  62. package/dist/{index-CC24qW42.js → index-CNlHabtk.js} +1 -1
  63. package/dist/{index-BsYcA4d4.js → index-CXGiIgdK.js} +1 -1
  64. package/dist/{index-DplAli0B.js → index-Cjn1LVjC.js} +38 -35
  65. package/dist/{index-CGCV3Q39.js → index-CpfUrdgw.js} +3 -3
  66. package/dist/{index-rU6SAS58.js → index-DZuEmMyY.js} +3 -3
  67. package/dist/{index-lAMRbOeY.js → index-D_zwqIhq.js} +1 -1
  68. package/dist/{index-V4sEiiYS.js → index-DabUEw_c.js} +1 -1
  69. package/dist/{index-BeE1k0xs.js → index-X-FfC49l.js} +6 -6
  70. package/dist/{index.esm2017-BpKyZnrS.js → index.esm2017-DJOUiVjR.js} +1 -1
  71. package/dist/{loading-aAPveWkt.js → loading-aCWVsOPY.js} +1 -1
  72. package/dist/{membership-CdHkfBpk.js → membership-1etsHC5G.js} +6 -6
  73. package/dist/{money-yvgF4-JZ.js → money-DzWRURZ5.js} +1 -1
  74. package/dist/{number-5CZfadpH.js → number-BxIQO1i3.js} +1 -1
  75. package/dist/{objectid-Cz3ihSHZ.js → objectid-DjhmYkn-.js} +7 -7
  76. package/dist/{plugins-CFwYNZo0.js → plugins-CSPFAU50.js} +4 -4
  77. package/dist/{reward-DfX_2rEr.js → reward-Bh4Li9f0.js} +1 -1
  78. package/dist/{rule-D_HCGBXt.js → rule-CHTTTUFB.js} +3 -3
  79. package/dist/{rule-builder-DaJ2wADR.js → rule-builder-OHfUJTIA.js} +1 -1
  80. package/dist/{template-BFcHBZjo.js → template-ZGxXqkaC.js} +4 -4
  81. package/dist/{trigger-BnfqcoU-.js → trigger-Ogu5FDs0.js} +13 -13
  82. package/dist/{user-bXWIOEFL.js → user-DBuU81tO.js} +1 -1
  83. package/dist/{vue-i18n-kVKjcgAi.js → vue-i18n-CKpKQ6iE.js} +299 -299
  84. package/dist/{xlsx-C0oaHSzL.js → xlsx-DJDZBIeg.js} +1 -1
  85. package/package.json +1 -1
  86. package/dist/Record-BTsMyNzQ.js +0 -339
  87. package/dist/Voucher-CGB4koQI.js +0 -491
  88. package/dist/index-CSmO-8Va.js +0 -99
@@ -1,4 +1,4 @@
1
- import { z as e } from "./plugins-CFwYNZo0.js";
1
+ import { z as e } from "./plugins-CSPFAU50.js";
2
2
  const E = e.enum([
3
3
  "VOUCHER",
4
4
  "CREDIT",
@@ -14,6 +14,6 @@ const E = e.enum([
14
14
  E.enum.VOUCHER + "", E.enum.CREDIT + "", E.enum.POINT + "", E.enum.COIN + "", E.enum.TIER + "", E.enum.TITLE + "", E.enum.GAME + "", E.enum.STAMP + "", E.enum.REFERRAL + "";
15
15
  const R = e.enum(["FORTUNE_WHEEL", "ROCK_PAPER_SCISSORS"]);
16
16
  export {
17
- R as F,
18
- E as a
17
+ E as F,
18
+ R as a
19
19
  };
@@ -1,5 +1,5 @@
1
- import "./index-zaGTl_qB.js";
2
- import "./plugins-CFwYNZo0.js";
1
+ import "./index-By-GlmG7.js";
2
+ import "./plugins-CSPFAU50.js";
3
3
  function r(e) {
4
4
  switch (e) {
5
5
  case "PROMOTION":
@@ -1,7 +1,7 @@
1
- import { F as i, z as t } from "./plugins-CFwYNZo0.js";
2
- import { h as y, a as r, i as h } from "./index-DplAli0B.js";
3
- import { F as u } from "./index-zaGTl_qB.js";
4
- import { i as I, R as d } from "./rule-builder-DaJ2wADR.js";
1
+ import { F as i, z as t } from "./plugins-CSPFAU50.js";
2
+ import { x as C, a as r, y as h } from "./index-Cjn1LVjC.js";
3
+ import { F as u } from "./index-By-GlmG7.js";
4
+ import { i as I, R as d } from "./rule-builder-OHfUJTIA.js";
5
5
  function N(a, e) {
6
6
  var c, l;
7
7
  if (!a) return;
@@ -82,8 +82,8 @@ function N(a, e) {
82
82
  operator: ["_isOnTime"]
83
83
  }
84
84
  ];
85
- m.length == p.length && m.every((O) => p.some((C) => {
86
- const f = d.simplify(C);
85
+ m.length == p.length && m.every((O) => p.some((y) => {
86
+ const f = d.simplify(y);
87
87
  return f.property === O.property && O.operator.includes(f.operator);
88
88
  })) || e.addIssue({
89
89
  code: "custom",
@@ -190,7 +190,7 @@ function s(a) {
190
190
  throw new Error("Not implemented");
191
191
  }
192
192
  }
193
- const T = y.extend({
193
+ const T = C.extend({
194
194
  _id: i.optional(),
195
195
  name: t.string().min(1).max(300),
196
196
  business: i.optional(),
@@ -1,4 +1,4 @@
1
- import { c as o } from "./index-CGCV3Q39.js";
1
+ import { c as o } from "./index-CpfUrdgw.js";
2
2
  function c(e) {
3
3
  if (!e)
4
4
  return null;
@@ -1,7 +1,7 @@
1
1
  var ur = Object.defineProperty;
2
2
  var ir = (S, b, h) => b in S ? ur(S, b, { enumerable: !0, configurable: !0, writable: !0, value: h }) : S[b] = h;
3
3
  var pn = (S, b, h) => ir(S, typeof b != "symbol" ? b + "" : b, h);
4
- import { u as V } from "./xlsx-C0oaHSzL.js";
4
+ import { u as V } from "./xlsx-DJDZBIeg.js";
5
5
  import { g as ar } from "./_commonjsHelpers-BkfeUUK-.js";
6
6
  class fr {
7
7
  constructor() {
@@ -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-C0oaHSzL.js";
5
- import { u as h } from "./loading-aAPveWkt.js";
4
+ import { u as a, w as f } from "./xlsx-DJDZBIeg.js";
5
+ import { u as h } from "./loading-aCWVsOPY.js";
6
6
  import { h as x } from "./moment-BWErdI6_.js";
7
- import { m as w } from "./index-BsYcA4d4.js";
7
+ import { m as w } from "./index-CXGiIgdK.js";
8
8
  class y {
9
9
  constructor() {
10
10
  d(this, "records", []);
@@ -1,4 +1,4 @@
1
- import { h as i } from "./index-zaGTl_qB.js";
1
+ import { h as i } from "./index-By-GlmG7.js";
2
2
  function o(t, e) {
3
3
  switch (t) {
4
4
  case "COIN":
@@ -1,4 +1,4 @@
1
- import { z as t, F as e, m as i } from "./plugins-CFwYNZo0.js";
1
+ import { z as t, F as e, m as i } from "./plugins-CSPFAU50.js";
2
2
  const n = t.enum(["FACEBOOK", "INSTAGRAM", "TV", "BRAND_APP"]), s = {
3
3
  collectionName: "MarketingMaterials",
4
4
  transform: {
@@ -1,4 +1,4 @@
1
- import { g as r, a as n, S as o, b as c } from "./index-CGCV3Q39.js";
1
+ import { g as r, a as n, S as o, b as c } from "./index-CpfUrdgw.js";
2
2
  const a = () => {
3
3
  const e = o.getBusinessId();
4
4
  if (!e) throw new Error("Invalid business ID");
@@ -1,5 +1,5 @@
1
- import { z as b, F as On, m as Zv } from "./plugins-CFwYNZo0.js";
2
- import { a as Lt, F as $f } from "./collectible.enum-q3RNa6ac.js";
1
+ import { z as b, F as On, m as Zv } from "./plugins-CSPFAU50.js";
2
+ import { F as Lt, a as $f } from "./collectible.enum-6Syq-vQ6.js";
3
3
  import { c as Hr, g as Vv } from "./_commonjsHelpers-BkfeUUK-.js";
4
4
  //! moment.js
5
5
  //! version : 2.30.1
@@ -0,0 +1,115 @@
1
+ import { g as a, S as n, b as o } from "./index-CpfUrdgw.js";
2
+ const t = () => {
3
+ const e = n.getBusinessId();
4
+ if (!e) throw new Error("Invalid business ID");
5
+ return o(`businesses/${e}/campaigns`, {
6
+ // url: 'http://localhost:3000/portal/',
7
+ });
8
+ }, i = {
9
+ async readAllGrouped(e) {
10
+ const s = a(
11
+ await t().get("grouped", { params: e })
12
+ );
13
+ return {
14
+ meta: s.meta,
15
+ resources: s.resources
16
+ };
17
+ },
18
+ async readAll(e, s) {
19
+ const r = a(
20
+ await t().get("", {
21
+ params: { ...e, ...s }
22
+ })
23
+ );
24
+ return {
25
+ meta: r.meta,
26
+ resources: r.resources
27
+ };
28
+ },
29
+ async readById(e) {
30
+ return a(await t().get(`/${e}`));
31
+ },
32
+ async create(e) {
33
+ return a(await t().post("", e));
34
+ },
35
+ async update(e, s) {
36
+ return a(await t().put(e, s));
37
+ },
38
+ async delete(e) {
39
+ return a(await t().delete(e));
40
+ },
41
+ async readCollectionsByCampaignId(e, s) {
42
+ const r = a(
43
+ await t().get(`/${e}/collections`, {
44
+ params: s
45
+ })
46
+ );
47
+ return {
48
+ meta: r.meta,
49
+ resources: r.resources
50
+ };
51
+ },
52
+ async readTransactions(e) {
53
+ return a(
54
+ await t().get(
55
+ `/${e}/collections/transactions`
56
+ )
57
+ );
58
+ },
59
+ async createCollectionByCampaignId(e, s) {
60
+ return a(
61
+ await t().post(`/${e}/collections`, s)
62
+ );
63
+ },
64
+ async readGroups() {
65
+ return a(await t().get("/groups")) ?? [];
66
+ },
67
+ async readStats(e) {
68
+ return a(
69
+ await t().get("/stats", { params: e })
70
+ );
71
+ },
72
+ async createGroup(e) {
73
+ return a(await t().post("/groups", e));
74
+ },
75
+ async updateGroup(e, s) {
76
+ return a(
77
+ await t().put(`/groups/${e}`, s)
78
+ );
79
+ },
80
+ async deleteGroup(e) {
81
+ return a(await t().delete(`/groups/${e}`));
82
+ },
83
+ async sendCollection(e, s) {
84
+ return a(
85
+ await t().post(
86
+ `/${e}/collections/send`,
87
+ s
88
+ )
89
+ );
90
+ },
91
+ async syncAllPromotion() {
92
+ return a(
93
+ await t().post("/promotion/sync")
94
+ );
95
+ },
96
+ async readAllDeleted(e, s) {
97
+ const r = a(
98
+ await t().get("/bin", {
99
+ params: { ...e, ...s }
100
+ })
101
+ );
102
+ return {
103
+ meta: r.meta,
104
+ resources: r.resources
105
+ };
106
+ },
107
+ async restore(e) {
108
+ return a(
109
+ await t().post(`/${e}/restore`)
110
+ );
111
+ }
112
+ };
113
+ export {
114
+ i as c
115
+ };
@@ -1,3 +1,3 @@
1
1
  import "vue-router";
2
- import { R as o } from "./app-BpikVDEt.js";
2
+ import { R as o } from "./app-DeW5_DB0.js";
3
3
  o["$connect-DASHBOARD"];
@@ -1,4 +1,4 @@
1
- import { g as t, S as c, b as u } from "./index-CGCV3Q39.js";
1
+ import { g as t, S as c, b as u } from "./index-CpfUrdgw.js";
2
2
  const a = () => {
3
3
  const e = c.getBusinessId();
4
4
  if (!e) throw new Error("Invalid business ID");