@feedmepos/mf-connect 0.1.0-beta.5 → 0.1.0-beta.51

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 (112) hide show
  1. package/dist/Analytic-DP8oPOug.js +427 -0
  2. package/dist/{App-C8Qfnkhz.js → App-DSFvQRnz.js} +441 -420
  3. package/dist/AuditLogs-YSw2xsZw.js +1885 -0
  4. package/dist/Bin-Da_eermT.js +166 -0
  5. package/dist/{Broadcast-BK-1MQkL.js → Broadcast-DoNlWo4j.js} +13 -12
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BLzpFQoc.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DItda2cA.js} +6 -8
  7. package/dist/Card-CbxtYecE.js +896 -0
  8. package/dist/{Collections-TA4iW1r0.js → Collections-p1UhWf85.js} +27 -31
  9. package/dist/{Credit-Df9iFQjZ.js → Credit-DQta1iUA.js} +17 -16
  10. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  11. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-CLFeMi0j.js +169 -0
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CEWFRlr3.js +2181 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BCRVyPwl.js → EffectSheet.vue_vue_type_style_index_0_lang-BN5MFZTx.js} +6 -6
  14. package/dist/{Experience-ByLFXKn6.js → Experience-BnwKk_PO.js} +26 -25
  15. package/dist/{Game-B6Ez0pfW.js → Game-_4Hj3Yyt.js} +21 -20
  16. package/dist/Index-Bmz1R6hW.js +259 -0
  17. package/dist/Marketing-D0V260mx.js +20071 -0
  18. package/dist/{Member-TobP1ISp.js → Member-BIEihOp5.js} +4 -4
  19. package/dist/MemberList-C4EbD7jO.js +1598 -0
  20. package/dist/MemberTransactions-DvYurEaZ.js +45 -0
  21. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CZ-w6iZi.js → MessageInput.vue_vue_type_script_setup_true_lang-vGMke4sb.js} +6 -6
  22. package/dist/{Mission-D9uTVo0G.js → Mission-C6gKiY9l.js} +97 -84
  23. package/dist/Overview-xqu1_7-7.js +1078 -0
  24. package/dist/{Point-4rDr-53e.js → Point-C02Z0_w5.js} +26 -25
  25. package/dist/{Promotion-BKO_dtQk.js → Promotion-BBfa32MT.js} +55 -48
  26. package/dist/Record-Bcj2D0fP.js +340 -0
  27. package/dist/Reward-BMvRwWnr.js +442 -0
  28. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-gt0h6XDa.js +150 -0
  29. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CPw-z0L1.js +1637 -0
  30. package/dist/Segment-BpkWm7ah.js +568 -0
  31. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-_t32qpAQ.js +181 -0
  32. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-CWNF7Srw.js +147 -0
  33. package/dist/{Setting-B7oISD0D.js → Setting-QEqA9Sjr.js} +610 -586
  34. package/dist/Store-Bb5Qh_fa.js +1744 -0
  35. package/dist/{StoreRewards-AMxIYhjZ.js → StoreRewards-CqmFv4KN.js} +33 -32
  36. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-SGMgGM-I.js +939 -0
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B2szciPk.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Bd63YQLw.js} +1 -1
  38. package/dist/{Tier-DkxdNj-K.js → Tier-BG4EQUN4.js} +327 -318
  39. package/dist/{Title-VFpCOsMO.js → Title-CLZYAG35.js} +199 -184
  40. package/dist/{Transaction-BgKD8n2L.js → Transaction-DxKmtuW2.js} +2 -2
  41. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-DWqf1lcK.js +130 -0
  42. package/dist/Voucher-BiBkN12U.js +353 -0
  43. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Bv6ro9Ul.js +419 -0
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B2FGvyza.js → ZodTextField.vue_vue_type_script_setup_true_lang-DaN1_uKj.js} +1 -1
  45. package/dist/{app-DA-t-2Zt.js → app-BDYHz7bx.js} +1 -1
  46. package/dist/{app-DUl5dav5.js → app-BToiZpVg.js} +1758 -1496
  47. package/dist/app.js +1 -1
  48. package/dist/{business-CeCitOY4.js → business-Cdck2Mo8.js} +1 -1
  49. package/dist/{campaign-CcLM6e4s.js → campaign-U0MVzGkd.js} +2 -2
  50. package/dist/campaign-V6y28epS.js +1810 -0
  51. package/dist/campaign.enum-C2ZHkwav.js +20 -0
  52. package/dist/campaign.fn-C8hqL7sq.js +758 -0
  53. package/dist/collectible.enum-DPFWrwtU.js +19 -0
  54. package/dist/{collection.fn-CAEP7YxB.js → collection.fn-BUtvp8Q7.js} +2 -2
  55. package/dist/dto-CO3dr-5e.js +214 -0
  56. package/dist/{effect-Dt7rXOBy.js → effect-CTIglwNj.js} +9 -9
  57. package/dist/email-addresses-fTprqBTm.js +705 -0
  58. package/dist/{export-CyioiboQ.js → export-BNfnVhxu.js} +5 -5
  59. package/dist/{helper-FA_9AhGV.js → helper-BB4sHiiB.js} +1 -1
  60. package/dist/index-BZjpXQbO.js +32 -0
  61. package/dist/index-BnJgi3GR.js +54 -0
  62. package/dist/{index-DLN4Kzz_.js → index-BpmAtLiE.js} +1 -1
  63. package/dist/{index-igxrd5jC.js → index-ByUriI6F.js} +1500 -1479
  64. package/dist/{index-BiFueJiF.js → index-CUDAo9HK.js} +259 -193
  65. package/dist/index-CsaQJMAR.js +66 -0
  66. package/dist/{index-DbbO3wip.js → index-DHEtLTYr.js} +48 -4
  67. package/dist/{index-CCdXvb92.js → index-DTnTvdIA.js} +1 -1
  68. package/dist/{index-CyNdsVrw.js → index-DbzMtv9Z.js} +1 -1
  69. package/dist/index-DwbN8FHi.js +44 -0
  70. package/dist/index-czQ4GAtE.js +115 -0
  71. package/dist/{index-C20XBD7G.js → index-fkBcbLFu.js} +2192 -931
  72. package/dist/index-vh86FiIQ.js +10 -0
  73. package/dist/index-wzNzbg46.js +29000 -0
  74. package/dist/{index.esm2017-Dl_CdTcK.js → index.esm2017-OtiYpLFF.js} +33 -33
  75. package/dist/loading-D_NOvElg.js +71 -0
  76. package/dist/{membership-DFiY8aVd.js → membership-6M1ftDbz.js} +54 -46
  77. package/dist/money-D6phwlff.js +15 -0
  78. package/dist/number-CT9IX-wU.js +12 -0
  79. package/dist/objectid-DtS-zHmd.js +145 -0
  80. package/dist/{loading-CZ0fiViM.js → plugins-CFv-0uV9.js} +2990 -3062
  81. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  82. package/dist/reward-B2aqMThx.js +36 -0
  83. package/dist/{rule-C3e1xTqN.js → rule-DxUsHy8Q.js} +180 -177
  84. package/dist/{rule-builder-MEVb_AiZ.js → rule-builder-BqkRAa1C.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/{template-C2OKWd_e.js → template-5OZEG9e3.js} +5 -5
  87. package/dist/trigger-D7aLiQDF.js +144 -0
  88. package/dist/user-CMYgbV2m.js +54 -0
  89. package/dist/{vue-i18n-CjxDUnX6.js → vue-i18n-Cad7169E.js} +216 -216
  90. package/dist/{xlsx-CtXdl3ls.js → xlsx-rV-XTyJC.js} +1 -1
  91. package/package.json +9 -7
  92. package/dist/Analytic-C_ZFR5jh.js +0 -622
  93. package/dist/Card-C7dUFJKe.js +0 -825
  94. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bgl90veU.js +0 -2813
  95. package/dist/Marketing-BaqZUeVI.js +0 -316
  96. package/dist/MemberList-B9cutmEh.js +0 -1733
  97. package/dist/MemberTransactions-DRHA7AOF.js +0 -38
  98. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BHCoDSTg.js +0 -1753
  99. package/dist/Segment-Dj8nc3AE.js +0 -437
  100. package/dist/Store-CJ3wcohQ.js +0 -1511
  101. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-wXUTfQQF.js +0 -890
  102. package/dist/Voucher-BbTLt8Pt.js +0 -490
  103. package/dist/dto-CRJma6eX.js +0 -2770
  104. package/dist/index-B1e0LtDe.js +0 -99
  105. package/dist/index-Be2ZYDy_.js +0 -298
  106. package/dist/index-CDkITvze.js +0 -762
  107. package/dist/index-CuvNtC_M.js +0 -61
  108. package/dist/index-DPP5F3bT.js +0 -206
  109. package/dist/index-Dbo3DDwp.js +0 -29193
  110. package/dist/money-D8hUEfP4.js +0 -15
  111. package/dist/number-DL3GAeVt.js +0 -12
  112. package/dist/user-Bm4KttFq.js +0 -37
@@ -0,0 +1,166 @@
1
+ import { defineComponent as C, ref as c, h as s, onMounted as x, resolveComponent as d, openBlock as S, createElementBlock as B, Fragment as M, createVNode as l, unref as o, createElementVNode as u } from "vue";
2
+ import { components as p } from "@feedmepos/ui-library";
3
+ import { u as K } from "./loading-D_NOvElg.js";
4
+ import { u as R } from "./business-Cdck2Mo8.js";
5
+ import { C as A } from "./campaign-V6y28epS.js";
6
+ import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CEWFRlr3.js";
7
+ import { _ as U } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
8
+ import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-CWNF7Srw.js";
9
+ import { u as D } from "./vue-i18n-Cad7169E.js";
10
+ import { h as E } from "./moment-BWErdI6_.js";
11
+ import { p as I } from "./plugins-CFv-0uV9.js";
12
+ import { c as g } from "./index-czQ4GAtE.js";
13
+ const T = { class: "px-24 flex flex-col gap-y-16" }, $ = { class: "flex items-center justify-between w-full" }, j = { class: "flex gap-8 overflow-x-auto" }, oe = /* @__PURE__ */ C({
14
+ __name: "Bin",
15
+ setup(H) {
16
+ const { t: n } = D(), y = R(), { global: _, minor: b } = K, a = c({
17
+ searchKey: "",
18
+ location: null
19
+ }), m = c([]), w = [
20
+ {
21
+ header: n("connect.campaign.common.title"),
22
+ accessorFn: (e) => e.name
23
+ },
24
+ {
25
+ header: n("connect.campaign.common.campaignType"),
26
+ cell(e) {
27
+ return A[e.row.original.type].chip();
28
+ }
29
+ },
30
+ {
31
+ header: n("connect.campaign.common.deletedAt"),
32
+ cell(e) {
33
+ return E(e.row.original.deletedAt).format("D MMM YYYY, hh:mmA");
34
+ }
35
+ },
36
+ {
37
+ header: n("connect.voucher.actions"),
38
+ cell(e) {
39
+ return s("div", { class: "flex items-center justify-end" }, [
40
+ s(
41
+ p.FmMenu,
42
+ {
43
+ placement: "bottom-end",
44
+ onClick: (t) => {
45
+ t.stopPropagation();
46
+ }
47
+ },
48
+ {
49
+ "menu-button": () => s(p.FmButton, {
50
+ icon: "more_vert",
51
+ iconColor: "neutral-gray-400",
52
+ variant: "tertiary"
53
+ }),
54
+ default: () => [
55
+ s(
56
+ p.FmMenuItem,
57
+ {
58
+ icon: "restore",
59
+ onClick: async (i) => {
60
+ i.stopPropagation(), F(e.row.original);
61
+ }
62
+ },
63
+ {
64
+ label: s(
65
+ "div",
66
+ {
67
+ class: "fm-typo-en-body-md-400"
68
+ },
69
+ n("connect.campaign.common.actions.restore")
70
+ )
71
+ }
72
+ )
73
+ ]
74
+ }
75
+ )
76
+ ]);
77
+ }
78
+ }
79
+ ], v = c(), V = c();
80
+ async function F(e) {
81
+ await I.confirm(
82
+ n("connect.campaign.common.restore.confirm", { name: e.name })
83
+ ) && await b(
84
+ async () => {
85
+ await g.restore(e._id), await f();
86
+ },
87
+ {
88
+ message: n("connect.campaign.common.restore.restoring", { name: e.name }),
89
+ successMessage: n("connect.campaign.common.restore.restored", {
90
+ name: e.name
91
+ })
92
+ }
93
+ );
94
+ }
95
+ async function f() {
96
+ const e = await g.readAllDeleted({
97
+ limit: 1e3,
98
+ skip: 0,
99
+ sortBy: "_id",
100
+ descending: !0
101
+ });
102
+ m.value = e.resources;
103
+ }
104
+ return x(async () => {
105
+ await _(async () => {
106
+ await f();
107
+ });
108
+ }), (e, t) => {
109
+ const i = d("FmPageHead"), h = d("FmSearch"), k = d("FmTable");
110
+ return S(), B(M, null, [
111
+ l(i, {
112
+ title: o(n)("connect.bin.title")
113
+ }, null, 8, ["title"]),
114
+ u("div", T, [
115
+ l(h, {
116
+ modelValue: o(a).searchKey,
117
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => o(a).searchKey = r),
118
+ class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
119
+ placeholder: o(n)("connect.voucher.search"),
120
+ collapsible: ""
121
+ }, null, 8, ["modelValue", "placeholder"]),
122
+ u("div", $, [
123
+ u("div", j, [
124
+ l(U, {
125
+ modelValue: o(a).location,
126
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => o(a).location = r),
127
+ label: o(n)("connect.voucher.location"),
128
+ "show-item-label": !0,
129
+ icon: "storefront",
130
+ placement: "bottom-start",
131
+ items: o(y).locationItems
132
+ }, null, 8, ["modelValue", "label", "items"])
133
+ ]),
134
+ l(h, {
135
+ modelValue: o(a).searchKey,
136
+ "onUpdate:modelValue": t[2] || (t[2] = (r) => o(a).searchKey = r),
137
+ class: "xs:hidden",
138
+ placeholder: o(n)("connect.voucher.search"),
139
+ collapsible: ""
140
+ }, null, 8, ["modelValue", "placeholder"])
141
+ ]),
142
+ l(k, {
143
+ "row-data": o(m),
144
+ "column-defs": w,
145
+ "search-value": o(a).searchKey,
146
+ "column-filter": [],
147
+ onRowClick: t[3] || (t[3] = (r) => e.onEdit(r.original)),
148
+ "hide-footer": o(m).length < 10
149
+ }, null, 8, ["row-data", "search-value", "hide-footer"]),
150
+ l(P, {
151
+ ref_key: "sheetRef",
152
+ ref: v,
153
+ "onSubmit:modelValue": e.onUpdate
154
+ }, null, 8, ["onSubmit:modelValue"]),
155
+ l(Y, {
156
+ ref_key: "sendVoucherSheetRef",
157
+ ref: V
158
+ }, null, 512)
159
+ ])
160
+ ], 64);
161
+ };
162
+ }
163
+ });
164
+ export {
165
+ oe as default
166
+ };
@@ -1,16 +1,17 @@
1
1
  import { defineComponent as N, ref as h, computed as U, onMounted as j, resolveComponent as r, openBlock as l, createElementBlock as y, Fragment as b, createVNode as i, unref as t, createElementVNode as n, withCtx as v, renderList as E, createBlock as w, resolveDynamicComponent as H, toDisplayString as d, createCommentVNode as q, h as z } from "vue";
2
2
  import { _ as G } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as J, components as Q } from "@feedmepos/ui-library";
4
- import { u as W, p as X } from "./loading-CZ0fiViM.js";
5
- import { u as Y } from "./business-CeCitOY4.js";
6
- import { u as Z } from "./campaign-CcLM6e4s.js";
7
- import { g as B, b as A } from "./dto-CRJma6eX.js";
8
- import { u as ee } from "./vue-i18n-CjxDUnX6.js";
4
+ import { p as W } from "./plugins-CFv-0uV9.js";
5
+ import { u as X } from "./loading-D_NOvElg.js";
6
+ import { u as Y } from "./business-Cdck2Mo8.js";
7
+ import { u as Z } from "./campaign-U0MVzGkd.js";
8
+ import { g as B, a as A } from "./campaign-V6y28epS.js";
9
+ import { u as ee } from "./vue-i18n-Cad7169E.js";
9
10
  import { _ as te } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
- import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bgl90veU.js";
11
- import { u as ae } from "./template-C2OKWd_e.js";
12
- import { c as _ } from "./index-B1e0LtDe.js";
13
- const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-center justify-between w-full" }, ce = { class: "flex gap-8 overflow-x-auto" }, ie = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { key: 0 }, fe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, ge = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Re = /* @__PURE__ */ N({
11
+ import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CEWFRlr3.js";
12
+ import { u as ae } from "./template-5OZEG9e3.js";
13
+ import { c as _ } from "./index-czQ4GAtE.js";
14
+ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-center justify-between w-full" }, ce = { class: "flex gap-8 overflow-x-auto" }, ie = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { key: 0 }, fe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, ge = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le = /* @__PURE__ */ N({
14
15
  __name: "Broadcast",
15
16
  setup(he) {
16
17
  const { t: s } = ee(), V = {
@@ -18,7 +19,7 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
18
19
  value: "create",
19
20
  isPrimary: !0,
20
21
  prependIcon: "add"
21
- }, D = ae("BROADCAST", J()), R = Y(), m = Z(), { global: L, minor: x } = W, T = h((/* @__PURE__ */ new Date()).toISOString()), c = h({
22
+ }, D = ae("BROADCAST", J()), R = Y(), m = Z(), { global: L, minor: x } = X, T = h((/* @__PURE__ */ new Date()).toISOString()), c = h({
22
23
  searchKey: "",
23
24
  location: null
24
25
  }), f = U(
@@ -59,7 +60,7 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
59
60
  }
60
61
  ], C = h();
61
62
  async function S(e) {
62
- await X.remove(
63
+ await W.remove(
63
64
  s("campaign.common.remove.confirm", { name: e.name })
64
65
  ) && await x(
65
66
  async () => {
@@ -219,5 +220,5 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
219
220
  }
220
221
  });
221
222
  export {
222
- Re as default
223
+ Le as default
223
224
  };
@@ -1,13 +1,11 @@
1
- import { R as RuleOperator, _ } from "./index-igxrd5jC.js";
2
- import { i as isRuleGroup } from "./rule-builder-MEVb_AiZ.js";
1
+ import { R as RuleOperator, _ } from "./index-ByUriI6F.js";
2
+ import { i as isRuleGroup } from "./rule-builder-BqkRAa1C.js";
3
3
  import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, createVNode, toDisplayString } from "vue";
4
4
  import { useDialog } from "@feedmepos/ui-library";
5
- import "./index-DPP5F3bT.js";
6
- import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-CDkITvze.js";
7
- import "./index-C20XBD7G.js";
8
- import "./index-BiFueJiF.js";
9
- import "./index-Be2ZYDy_.js";
10
- import "./index-DLN4Kzz_.js";
5
+ import "./index-CUDAo9HK.js";
6
+ import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-fkBcbLFu.js";
7
+ import "./index-BpmAtLiE.js";
8
+ import "./index-BnJgi3GR.js";
11
9
  function validateRule(data, r, date) {
12
10
  const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
13
11
  function meetConditions(e) {