@feedmepos/mf-payment 0.0.0-beta.32 → 0.0.0-beta.34
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{PayoutAccount-DnxAlZxo.js → PayoutAccount-BF4TdtVz.js} +1 -1
- package/dist/{PayoutAccount-7lPdf3Xu.js → PayoutAccount-D-9hzZyp.js} +1 -1
- package/dist/{TerminalTransaction-CoPJlBCt.js → TerminalTransaction-BEyzFREU.js} +26 -26
- package/dist/{TerminalTransaction-GJ2KCmSi.js → TerminalTransaction-CVcDmLvg.js} +17 -16
- package/dist/app.js +4 -4
- package/dist/package.json +1 -1
- package/dist/{payout-account-DU8aAkMw.js → payout-account-C1kHqPZb.js} +294 -294
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/api/auth/index.d.ts +0 -7
@@ -3,7 +3,7 @@ import { p as z } from "./index-ApzEWD1P.js";
|
|
3
3
|
import { _ as I, u as S, c as h } from "./index-Cnxt2xmc.js";
|
4
4
|
import { defineStore as _ } from "pinia";
|
5
5
|
import { useCoreStore as $ } from "@feedmepos/mf-common";
|
6
|
-
import { c as AA, P as j } from "./payout-account-
|
6
|
+
import { c as AA, P as j } from "./payout-account-C1kHqPZb.js";
|
7
7
|
import { useDialogChild as sA, useDialog as eA } from "@feedmepos/ui-library";
|
8
8
|
import { z as f, a as q } from "./validator-D5jtpt9A.js";
|
9
9
|
import { P as K } from "./PDFViewer-CjH_C1uT.js";
|
@@ -2,7 +2,7 @@ import { defineComponent as b, resolveComponent as m, openBlock as g, createBloc
|
|
2
2
|
import { u as S } from "./index-BgnU5ezY.js";
|
3
3
|
import { _ as O } from "./index-Cnxt2xmc.js";
|
4
4
|
import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
|
5
|
-
import { P as V } from "./payout-account-
|
5
|
+
import { P as V } from "./payout-account-C1kHqPZb.js";
|
6
6
|
import { p as D } from "./index-ApzEWD1P.js";
|
7
7
|
import "@feedmepos/ui-library";
|
8
8
|
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-B7ePQpGr.js";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as N, openBlock as _, createElementBlock as w, Fragment as F, unref as t, createCommentVNode as k, createElementVNode as
|
1
|
+
import { defineComponent as N, openBlock as _, createElementBlock as w, Fragment as F, unref as t, createCommentVNode as k, createElementVNode as d, resolveComponent as p, createBlock as R, normalizeClass as D, withCtx as C, toDisplayString as V, ref as K, watch as T, createVNode as i, isRef as g, h } from "vue";
|
2
2
|
import { e as l } from "./index-Cnxt2xmc.js";
|
3
3
|
import { h as I } from "./moment-h96o7c8I.js";
|
4
4
|
import { u as M } from "./index-BgnU5ezY.js";
|
@@ -20,13 +20,13 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
20
20
|
data: {}
|
21
21
|
},
|
22
22
|
setup(f) {
|
23
|
-
return (n,
|
23
|
+
return (n, s) => (_(), w(F, null, [
|
24
24
|
n.row.original.ecrGateway ? (_(), w("img", {
|
25
25
|
key: 0,
|
26
26
|
class: "bg-fm-color-overlay-background rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
27
27
|
src: t(B)
|
28
28
|
}, null, 8, q)) : k("", !0),
|
29
|
-
|
29
|
+
d("img", {
|
30
30
|
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
31
31
|
src: t(L)(n.row.original.gateway)
|
32
32
|
}, null, 8, z)
|
@@ -40,17 +40,17 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
40
40
|
},
|
41
41
|
setup(f) {
|
42
42
|
const n = f;
|
43
|
-
function
|
43
|
+
function s() {
|
44
44
|
return n.data === l.F_TERMINAL_TRANSACTION_ACTION.Enum.process ? "!w-[16px] !h-[16px] bg-yellow-400" : n.data === l.F_TERMINAL_TRANSACTION_ACTION.Enum.failed ? "!w-[16px] !h-[16px] bg-red-400" : n.data === l.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
45
45
|
}
|
46
|
-
return (
|
46
|
+
return (o, m) => {
|
47
47
|
const c = p("FmBadge");
|
48
48
|
return _(), R(c, {
|
49
49
|
inline: "",
|
50
|
-
class: D(
|
50
|
+
class: D(s())
|
51
51
|
}, {
|
52
52
|
default: C(() => [
|
53
|
-
|
53
|
+
d("div", null, V(o.data.toUpperCase()), 1)
|
54
54
|
]),
|
55
55
|
_: 1
|
56
56
|
}, 8, ["class"]);
|
@@ -59,7 +59,7 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
59
59
|
}), J = { class: "flex justify-between mb-6 items-start" }, X = { class: "flex space-x-8 items-start" }, Z = { class: "flex space-x-4" }, fe = /* @__PURE__ */ N({
|
60
60
|
__name: "TerminalTransaction",
|
61
61
|
setup(f) {
|
62
|
-
const { currentRestaurant: n } = U(),
|
62
|
+
const { currentRestaurant: n } = U(), s = K(), { dateRange: o, status: m, searchKey: c } = M({
|
63
63
|
searchKey: "",
|
64
64
|
status: [l.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
|
65
65
|
dateRange: {
|
@@ -67,19 +67,19 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
67
67
|
endDate: I().endOf("day").toISOString()
|
68
68
|
}
|
69
69
|
});
|
70
|
-
T([
|
70
|
+
T([o, m], () => {
|
71
71
|
var e;
|
72
|
-
return (e =
|
72
|
+
return (e = s.value) == null ? void 0 : e.reset();
|
73
73
|
}), T(n, () => {
|
74
74
|
var e;
|
75
|
-
return (e =
|
75
|
+
return (e = s.value) == null ? void 0 : e.reset();
|
76
76
|
});
|
77
77
|
let A;
|
78
78
|
T(c, async () => {
|
79
79
|
A && clearTimeout(A), A = setTimeout(
|
80
80
|
() => {
|
81
81
|
var e;
|
82
|
-
return (e =
|
82
|
+
return (e = s.value) == null ? void 0 : e.reset();
|
83
83
|
},
|
84
84
|
700
|
85
85
|
);
|
@@ -103,8 +103,8 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
103
103
|
}
|
104
104
|
], E = function(e) {
|
105
105
|
const a = e;
|
106
|
-
let
|
107
|
-
return a.details.amount && (
|
106
|
+
let u = "-";
|
107
|
+
return a.details && a.details.amount && (u = G(a.details.amount).toFormat("$0.00")), {
|
108
108
|
id: e._id,
|
109
109
|
refId: e.refId,
|
110
110
|
terminalId: e.terminalId,
|
@@ -112,7 +112,7 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
112
112
|
action: e.action,
|
113
113
|
gateway: e.gateway,
|
114
114
|
ecrGateway: e.ecrGateway,
|
115
|
-
amount:
|
115
|
+
amount: u
|
116
116
|
};
|
117
117
|
}, O = [
|
118
118
|
{
|
@@ -171,17 +171,17 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
171
171
|
}
|
172
172
|
];
|
173
173
|
return (e, a) => {
|
174
|
-
const
|
174
|
+
const u = p("FmSearch"), y = p("FmSelect"), v = p("FmDateRangePicker");
|
175
175
|
return _(), R(j, {
|
176
176
|
title: "Offline Transactions",
|
177
177
|
description: "Transactions are purchases or payments made in retail using electronic devices such as POS systems, kiosks, terminals, or ECRs.",
|
178
178
|
loading: !1
|
179
179
|
}, {
|
180
180
|
default: C(() => [
|
181
|
-
|
182
|
-
|
181
|
+
d("div", J, [
|
182
|
+
d("div", X, [
|
183
183
|
i(P),
|
184
|
-
i(
|
184
|
+
i(u, {
|
185
185
|
"model-value": t(c),
|
186
186
|
"onUpdate:modelValue": a[0] || (a[0] = (r) => g(c) ? c.value = r : null),
|
187
187
|
class: "mr-8",
|
@@ -198,13 +198,13 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
198
198
|
items: S
|
199
199
|
}, null, 8, ["modelValue"]),
|
200
200
|
i(v, {
|
201
|
-
modelValue: t(
|
202
|
-
"onUpdate:modelValue": a[2] || (a[2] = (r) => g(
|
201
|
+
modelValue: t(o),
|
202
|
+
"onUpdate:modelValue": a[2] || (a[2] = (r) => g(o) ? o.value = r : null),
|
203
203
|
compare: "",
|
204
204
|
"show-predefined-range": ""
|
205
205
|
}, null, 8, ["modelValue"])
|
206
206
|
]),
|
207
|
-
|
207
|
+
d("div", Z, [
|
208
208
|
i(Y, {
|
209
209
|
button: {
|
210
210
|
appendIcon: "file_download",
|
@@ -213,14 +213,14 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
213
213
|
},
|
214
214
|
handler: () => {
|
215
215
|
var r;
|
216
|
-
return t(x).downloadTransactions(((r =
|
216
|
+
return t(x).downloadTransactions(((r = s.value) == null ? void 0 : r.data()) ?? []);
|
217
217
|
}
|
218
218
|
}, null, 8, ["handler"])
|
219
219
|
])
|
220
220
|
]),
|
221
221
|
i($, {
|
222
222
|
ref_key: "controller",
|
223
|
-
ref:
|
223
|
+
ref: s,
|
224
224
|
"column-defs": O,
|
225
225
|
"rows-defs": E,
|
226
226
|
paginate: (r, b) => t(x).readRestaurantTransactions({
|
@@ -228,8 +228,8 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
228
228
|
searchKey: t(c),
|
229
229
|
limit: r,
|
230
230
|
cursor: b,
|
231
|
-
start: t(
|
232
|
-
end: t(
|
231
|
+
start: t(o).startDate,
|
232
|
+
end: t(o).endDate
|
233
233
|
}),
|
234
234
|
onRowClick: () => {
|
235
235
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as g, openBlock as p, createElementBlock as
|
1
|
+
import { defineComponent as g, openBlock as p, createElementBlock as w, unref as n, createCommentVNode as F, createElementVNode as u, resolveComponent as A, createBlock as R, normalizeClass as k, withCtx as C, toDisplayString as S, ref as V, watch as N, createVNode as d, isRef as h, h as f } from "vue";
|
2
2
|
import { e as c } from "./index-Cnxt2xmc.js";
|
3
3
|
import { h as I } from "./moment-h96o7c8I.js";
|
4
4
|
import { u as D } from "./index-BgnU5ezY.js";
|
@@ -6,10 +6,10 @@ import { _ as K } from "./index.vue_vue_type_script_setup_true_lang-B7ePQpGr.js"
|
|
6
6
|
import { _ as $ } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
|
7
7
|
import "@feedmepos/ui-library";
|
8
8
|
import { g as M } from "./assets-sX1_K-nt.js";
|
9
|
-
import { E as L, t as
|
9
|
+
import { E as L, t as x } from "./index-RhSxYSBk.js";
|
10
10
|
import { d as B } from "./dinero-CIVmXLL-.js";
|
11
|
-
import { _ as
|
12
|
-
import { _ as
|
11
|
+
import { _ as G } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
12
|
+
import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js";
|
13
13
|
import { useRouter as U } from "vue-router";
|
14
14
|
const Y = { class: "flex" }, W = ["src"], j = ["src"], q = /* @__PURE__ */ g({
|
15
15
|
__name: "Gateway",
|
@@ -18,8 +18,8 @@ const Y = { class: "flex" }, W = ["src"], j = ["src"], q = /* @__PURE__ */ g({
|
|
18
18
|
data: {}
|
19
19
|
},
|
20
20
|
setup(i) {
|
21
|
-
return (a, r) => (p(),
|
22
|
-
a.row.original.ecrGateway ? (p(),
|
21
|
+
return (a, r) => (p(), w("div", Y, [
|
22
|
+
a.row.original.ecrGateway ? (p(), w("img", {
|
23
23
|
key: 0,
|
24
24
|
class: "bg-fm-color-overlay-background rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
25
25
|
src: n(L)
|
@@ -65,7 +65,7 @@ const Y = { class: "flex" }, W = ["src"], j = ["src"], q = /* @__PURE__ */ g({
|
|
65
65
|
function s() {
|
66
66
|
r.push(a.route);
|
67
67
|
}
|
68
|
-
return (l, m) => (p(),
|
68
|
+
return (l, m) => (p(), w("div", {
|
69
69
|
class: "fm-typo-en-link-md-600",
|
70
70
|
onClick: m[0] || (m[0] = (T) => {
|
71
71
|
T.stopPropagation(), s();
|
@@ -83,12 +83,12 @@ const Y = { class: "flex" }, W = ["src"], j = ["src"], q = /* @__PURE__ */ g({
|
|
83
83
|
endDate: I().endOf("day").toISOString()
|
84
84
|
}
|
85
85
|
});
|
86
|
-
|
86
|
+
N([r, s], () => {
|
87
87
|
var e;
|
88
88
|
return (e = a.value) == null ? void 0 : e.reset();
|
89
89
|
});
|
90
90
|
let m;
|
91
|
-
|
91
|
+
N(l, async () => {
|
92
92
|
m && clearTimeout(m), m = setTimeout(
|
93
93
|
() => {
|
94
94
|
var e;
|
@@ -117,7 +117,7 @@ const Y = { class: "flex" }, W = ["src"], j = ["src"], q = /* @__PURE__ */ g({
|
|
117
117
|
], v = function(e) {
|
118
118
|
const t = e;
|
119
119
|
let _ = "-";
|
120
|
-
return t.details.amount && (_ = B(t.details.amount).toFormat("$0.00")), {
|
120
|
+
return t.details && t.details.amount && (_ = B(t.details.amount).toFormat("$0.00")), {
|
121
121
|
id: e._id,
|
122
122
|
refId: e.refId,
|
123
123
|
owner: e.owner,
|
@@ -125,6 +125,7 @@ const Y = { class: "flex" }, W = ["src"], j = ["src"], q = /* @__PURE__ */ g({
|
|
125
125
|
transactionAt: I(e.transactionAt).format("YYYY-MM-DD hh:mm:ss"),
|
126
126
|
action: e.action,
|
127
127
|
gateway: e.gateway,
|
128
|
+
ecrGateway: e.ecrGateway,
|
128
129
|
amount: _
|
129
130
|
};
|
130
131
|
}, E = [
|
@@ -134,7 +135,7 @@ const Y = { class: "flex" }, W = ["src"], j = ["src"], q = /* @__PURE__ */ g({
|
|
134
135
|
meta: {
|
135
136
|
textAlign: "left"
|
136
137
|
},
|
137
|
-
cell: ({ cell: e }) => f(
|
138
|
+
cell: ({ cell: e }) => f(P, { data: e.getValue() })
|
138
139
|
},
|
139
140
|
{
|
140
141
|
accessorKey: "terminalId",
|
@@ -201,7 +202,7 @@ const Y = { class: "flex" }, W = ["src"], j = ["src"], q = /* @__PURE__ */ g({
|
|
201
202
|
}
|
202
203
|
];
|
203
204
|
return (e, t) => {
|
204
|
-
const _ = A("FmSearch"),
|
205
|
+
const _ = A("FmSearch"), y = A("FmSelect"), O = A("FmDateRangePicker");
|
205
206
|
return p(), R($, {
|
206
207
|
title: "Offline Transactions",
|
207
208
|
loading: !1
|
@@ -216,7 +217,7 @@ const Y = { class: "flex" }, W = ["src"], j = ["src"], q = /* @__PURE__ */ g({
|
|
216
217
|
label: "Search",
|
217
218
|
placeholder: "Search Transactions ..."
|
218
219
|
}, null, 8, ["model-value"]),
|
219
|
-
d(
|
220
|
+
d(y, {
|
220
221
|
modelValue: n(s),
|
221
222
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => h(s) ? s.value = o : null),
|
222
223
|
class: "mr-6 w-[300px]",
|
@@ -233,7 +234,7 @@ const Y = { class: "flex" }, W = ["src"], j = ["src"], q = /* @__PURE__ */ g({
|
|
233
234
|
}, null, 8, ["modelValue"])
|
234
235
|
]),
|
235
236
|
u("div", X, [
|
236
|
-
d(
|
237
|
+
d(G, {
|
237
238
|
button: {
|
238
239
|
appendIcon: "file_download",
|
239
240
|
variant: "primary",
|
@@ -241,7 +242,7 @@ const Y = { class: "flex" }, W = ["src"], j = ["src"], q = /* @__PURE__ */ g({
|
|
241
242
|
},
|
242
243
|
handler: () => {
|
243
244
|
var o;
|
244
|
-
return n(
|
245
|
+
return n(x).downloadTransactions(((o = a.value) == null ? void 0 : o.data()) ?? []);
|
245
246
|
}
|
246
247
|
}, null, 8, ["handler"])
|
247
248
|
])
|
@@ -251,7 +252,7 @@ const Y = { class: "flex" }, W = ["src"], j = ["src"], q = /* @__PURE__ */ g({
|
|
251
252
|
ref: a,
|
252
253
|
"column-defs": E,
|
253
254
|
"rows-defs": v,
|
254
|
-
paginate: (o, b) => n(
|
255
|
+
paginate: (o, b) => n(x).readTransactions({
|
255
256
|
status: n(s),
|
256
257
|
searchKey: n(l),
|
257
258
|
limit: o,
|
package/dist/app.js
CHANGED
@@ -9,7 +9,7 @@ const f = [
|
|
9
9
|
meta: {
|
10
10
|
sidebarDisplay: "Payout Accounts"
|
11
11
|
},
|
12
|
-
component: () => import("./PayoutAccount-
|
12
|
+
component: () => import("./PayoutAccount-D-9hzZyp.js")
|
13
13
|
},
|
14
14
|
{
|
15
15
|
path: "/admin/payout-accounts/:accountId",
|
@@ -37,7 +37,7 @@ const f = [
|
|
37
37
|
meta: {
|
38
38
|
sidebarDisplay: "Offline Transactions"
|
39
39
|
},
|
40
|
-
component: () => import("./TerminalTransaction-
|
40
|
+
component: () => import("./TerminalTransaction-CVcDmLvg.js")
|
41
41
|
},
|
42
42
|
{
|
43
43
|
path: "/admin/transaction",
|
@@ -69,7 +69,7 @@ const f = [
|
|
69
69
|
{
|
70
70
|
path: "/payout-account",
|
71
71
|
name: "mf-payment-payout-account",
|
72
|
-
component: () => import("./PayoutAccount-
|
72
|
+
component: () => import("./PayoutAccount-BF4TdtVz.js"),
|
73
73
|
meta: {
|
74
74
|
sidebarDisplay: "Payout Accounts"
|
75
75
|
}
|
@@ -80,7 +80,7 @@ const f = [
|
|
80
80
|
meta: {
|
81
81
|
sidebarDisplay: "Offline Transactions"
|
82
82
|
},
|
83
|
-
component: () => import("./TerminalTransaction-
|
83
|
+
component: () => import("./TerminalTransaction-BEyzFREU.js")
|
84
84
|
},
|
85
85
|
{
|
86
86
|
path: "/transaction",
|