@feedmepos/mf-payment 0.0.0-beta.21 → 0.0.0-beta.23

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 (35) hide show
  1. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js +28 -0
  2. package/dist/{PayoutAccount-DEEuJq8a.js → PayoutAccount-6kS5Xjs8.js} +5 -5
  3. package/dist/{PayoutAccount-Fg0fD2z1.js → PayoutAccount-BYNRryiW.js} +3 -3
  4. package/dist/{PayoutAccountSetting-D6rCau39.js → PayoutAccountSetting-B26ApwsY.js} +3 -3
  5. package/dist/{Settlement-KxjeLkyq.js → Settlement-CY0-gXn5.js} +25 -23
  6. package/dist/{Settlement-DO3KQc7V.js → Settlement-DTE8p3LA.js} +27 -25
  7. package/dist/{SettlementTransactions-BHm0Xr73.js → SettlementTransactions-BJlBWR1G.js} +4 -4
  8. package/dist/{SettlementTransactions-D8SewaiK.js → SettlementTransactions-C4tIk6nO.js} +4 -4
  9. package/dist/Terminal-C4gOl3zs.js +339 -0
  10. package/dist/{TerminalSetting-CIFHaoHX.js → TerminalSetting-DC9NBozT.js} +3 -3
  11. package/dist/TerminalTransaction-BUT01dUv.js +243 -0
  12. package/dist/{TerminalTransaction-B2PFfPKP.js → TerminalTransaction-CCdbfxx0.js} +66 -63
  13. package/dist/{Transaction-CM_VKdEN.js → Transaction-60yViCMI.js} +53 -53
  14. package/dist/{Transaction-D7ZuZ-IB.js → Transaction-CoCZaBfu.js} +4 -4
  15. package/dist/api/index.d.ts +1 -0
  16. package/dist/api/terminal-transaction/index.d.ts +1 -1
  17. package/dist/app.js +13 -13
  18. package/dist/{assets-CLiVU4As.js → assets-BmFExmpA.js} +1 -1
  19. package/dist/clipboard-4jh1WteU.js +10 -0
  20. package/dist/components/AutoCopyCell.vue.d.ts +6 -0
  21. package/dist/{index-ByCQqfan.js → index-Bvb4T6xz.js} +1 -1
  22. package/dist/{index-CpIkc_Lq.js → index-CDgQhs3k.js} +1 -1
  23. package/dist/index-DeF94ACV.js +34 -0
  24. package/dist/{index-eVOVYNBC.js → index-Df0izARr.js} +1 -1
  25. package/dist/{index-DvsSYfvP.js → index-Jtghafz6.js} +1 -1
  26. package/dist/{index-CkIbCIHJ.js → index-_qikPh5K.js} +768 -766
  27. package/dist/{index.vue_vue_type_script_setup_true_lang-sNgZ-dwX.js → index.vue_vue_type_script_setup_true_lang-CfU6stly.js} +1 -1
  28. package/dist/package.json +1 -1
  29. package/dist/{payout-account-Bj0y4ywE.js → payout-account-BQmBfucp.js} +230 -230
  30. package/dist/{transaction-C1MtaXOd.js → transaction-B5QUg556.js} +1 -1
  31. package/dist/tsconfig.app.tsbuildinfo +1 -1
  32. package/package.json +1 -1
  33. package/dist/Terminal-CG3mIv6Z.js +0 -318
  34. package/dist/TerminalTransaction-CnfWv95d.js +0 -230
  35. package/dist/index-DVSsAdF3.js +0 -26
@@ -1,12 +1,13 @@
1
- import { defineComponent as p, resolveComponent as y, openBlock as _, createBlock as A, normalizeClass as O, withCtx as I, createElementVNode as h, toDisplayString as R, createElementBlock as b, unref as r, ref as S, h as x, onMounted as K, watch as V, createVNode as g, isRef as N } from "vue";
2
- import { t as E, a as C } from "./transaction-C1MtaXOd.js";
3
- import { e as v, u as k } from "./index-CkIbCIHJ.js";
1
+ import { defineComponent as p, resolveComponent as T, openBlock as _, createBlock as A, normalizeClass as O, withCtx as I, createElementVNode as y, toDisplayString as R, createElementBlock as b, unref as r, ref as S, h as g, onMounted as V, watch as K, createVNode as h, isRef as N } from "vue";
2
+ import { t as E, a as k } from "./transaction-B5QUg556.js";
3
+ import { e as v, u as C } from "./index-_qikPh5K.js";
4
4
  import "@feedmepos/ui-library";
5
5
  import "./dinero-CIVmXLL-.js";
6
6
  import { h as F } from "./moment-h96o7c8I.js";
7
- import { g as P, a as L } from "./assets-CLiVU4As.js";
8
- import { useCoreStore as $ } from "@feedmepos/mf-common";
9
- import { u as B } from "./index-ByCQqfan.js";
7
+ import { g as P, a as $ } from "./assets-BmFExmpA.js";
8
+ import { _ as L } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js";
9
+ import "@feedmepos/mf-common";
10
+ import { u as B } from "./index-Bvb4T6xz.js";
10
11
  import { _ as M } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
11
12
  import { _ as U } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
12
13
  const G = /* @__PURE__ */ p({
@@ -17,17 +18,17 @@ const G = /* @__PURE__ */ p({
17
18
  },
18
19
  setup(i) {
19
20
  const a = i;
20
- function t() {
21
+ function n() {
21
22
  return a.data === v.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : a.data === v.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : a.data === v.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
22
23
  }
23
24
  return (c, d) => {
24
- const o = y("FmBadge");
25
+ const o = T("FmBadge");
25
26
  return _(), A(o, {
26
27
  inline: "",
27
- class: O(t())
28
+ class: O(n())
28
29
  }, {
29
30
  default: I(() => [
30
- h("div", null, R(c.data), 1)
31
+ y("div", null, R(c.data), 1)
31
32
  ]),
32
33
  _: 1
33
34
  }, 8, ["class"]);
@@ -40,7 +41,7 @@ const G = /* @__PURE__ */ p({
40
41
  data: {}
41
42
  },
42
43
  setup(i) {
43
- return (a, t) => (_(), b("img", {
44
+ return (a, n) => (_(), b("img", {
44
45
  class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
45
46
  src: r(P)(a.row.original.gateway)
46
47
  }, null, 8, Y));
@@ -52,9 +53,9 @@ const G = /* @__PURE__ */ p({
52
53
  data: {}
53
54
  },
54
55
  setup(i) {
55
- return (a, t) => (_(), b("img", {
56
+ return (a, n) => (_(), b("img", {
56
57
  class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
57
- src: r(L)(a.row.original.method.issuer)
58
+ src: r($)(a.row.original.method.issuer)
58
59
  }, null, 8, J));
59
60
  }
60
61
  }), z = /* @__PURE__ */ p({
@@ -71,10 +72,11 @@ const G = /* @__PURE__ */ p({
71
72
  },
72
73
  emits: ["row-click"],
73
74
  setup(i, { emit: a }) {
74
- const t = i, c = a, d = S(""), o = [
75
+ const n = i, c = a, d = S(""), o = [
75
76
  {
76
77
  header: () => "Transaction ID",
77
- accessorKey: "id"
78
+ accessorKey: "id",
79
+ cell: ({ cell: t }) => g(L, { data: t.getValue() })
78
80
  },
79
81
  {
80
82
  header: () => "Pay ID",
@@ -86,7 +88,7 @@ const G = /* @__PURE__ */ p({
86
88
  meta: {
87
89
  textAlign: "center"
88
90
  },
89
- cell: ({ cell: n, row: e }) => e.original.method ? x(q, { row: e, data: n.getValue() }) : ""
91
+ cell: ({ cell: t, row: e }) => e.original.method ? g(q, { row: e, data: t.getValue() }) : ""
90
92
  },
91
93
  {
92
94
  header: () => "Method",
@@ -94,7 +96,7 @@ const G = /* @__PURE__ */ p({
94
96
  meta: {
95
97
  textAlign: "center"
96
98
  },
97
- cell: ({ cell: n, row: e }) => e.original.method ? x(j, { row: e, data: n.getValue() }) : ""
99
+ cell: ({ cell: t, row: e }) => e.original.method ? g(j, { row: e, data: t.getValue() }) : ""
98
100
  },
99
101
  {
100
102
  header: () => "Type",
@@ -102,17 +104,17 @@ const G = /* @__PURE__ */ p({
102
104
  meta: {
103
105
  textAlign: "center"
104
106
  },
105
- cell: ({ row: n }) => {
106
- if (!n.original.method)
107
+ cell: ({ row: t }) => {
108
+ if (!t.original.method)
107
109
  return "";
108
- const e = n.original.method.variant;
110
+ const e = t.original.method.variant;
109
111
  return e.includes("_ONLINE") ? "ONLINE" : e.includes("_OFFLINE") ? "OFFLINE" : e;
110
112
  }
111
113
  },
112
114
  {
113
115
  header: () => "Status",
114
116
  accessorKey: "status",
115
- cell: ({ cell: n, row: e }) => x(G, { row: e, data: n.getValue() })
117
+ cell: ({ cell: t, row: e }) => g(G, { row: e, data: t.getValue() })
116
118
  },
117
119
  {
118
120
  header: () => "Transaction At",
@@ -134,75 +136,73 @@ const G = /* @__PURE__ */ p({
134
136
  accessorKey: "payout"
135
137
  }
136
138
  ];
137
- return (n, e) => {
138
- const T = y("FmTable");
139
- return _(), A(T, {
139
+ return (t, e) => {
140
+ const w = T("FmTable");
141
+ return _(), A(w, {
140
142
  modelValue: d.value,
141
143
  "onUpdate:modelValue": e[0] || (e[0] = (l) => d.value = l),
142
144
  "column-defs": o,
143
- "row-data": t.data,
144
- loading: t.loading,
145
- onRowClick: e[1] || (e[1] = (l) => c("row-click", t.data.at(l.index)))
145
+ "row-data": n.data,
146
+ loading: n.loading,
147
+ onRowClick: e[1] || (e[1] = (l) => c("row-click", n.data.at(l.index)))
146
148
  }, null, 8, ["modelValue", "row-data", "loading"]);
147
149
  };
148
150
  }
149
- }), Q = { class: "flex justify-between mb-6 items-center" }, H = { class: "flex space-x-4" }, W = { class: "flex space-x-4" }, ce = /* @__PURE__ */ p({
151
+ }), Q = { class: "flex justify-between mb-6 items-center" }, H = { class: "flex space-x-4" }, W = { class: "flex space-x-4" }, de = /* @__PURE__ */ p({
150
152
  __name: "Transaction",
151
153
  setup(i) {
152
- const { dateRange: a, searchKey: t } = B({
154
+ const { dateRange: a, searchKey: n } = B({
153
155
  searchKey: "",
154
156
  dateRange: {
155
157
  startDate: F().startOf("day").toISOString(),
156
158
  endDate: F().endOf("day").toISOString()
157
159
  }
158
- }), { isLoading: c, startAsyncCall: d } = k(!0);
159
- $();
160
- const o = S([]), n = S([]);
160
+ }), { isLoading: c, startAsyncCall: d } = C(!0), o = S([]), t = S([]);
161
161
  async function e() {
162
162
  await d(async () => {
163
163
  const { startDate: f, endDate: s } = a.value, u = await E.readTransactions({
164
164
  start: f,
165
165
  end: s
166
166
  });
167
- if (o.value = C(u), n.value = o.value, t.value > "") {
168
- var w = new RegExp(t.value, "i");
169
- n.value = o.value.filter((m) => {
167
+ if (o.value = k(u), t.value = o.value, n.value > "") {
168
+ var x = new RegExp(n.value, "i");
169
+ t.value = o.value.filter((m) => {
170
170
  const D = JSON.stringify(m);
171
- return w.test(D);
171
+ return x.test(D);
172
172
  });
173
173
  }
174
174
  });
175
175
  }
176
- function T() {
176
+ function w() {
177
177
  e();
178
178
  }
179
- K(T);
179
+ V(w);
180
180
  let l;
181
- return V(t, async () => {
181
+ return K(n, async () => {
182
182
  l && clearTimeout(l), l = setTimeout(() => {
183
- var f = new RegExp(t.value, "i");
184
- n.value = o.value.filter((s) => {
183
+ var f = new RegExp(n.value, "i");
184
+ t.value = o.value.filter((s) => {
185
185
  const u = JSON.stringify(s);
186
186
  return f.test(u);
187
187
  });
188
188
  }, 700);
189
189
  }), (f, s) => {
190
- const u = y("FmSearch"), w = y("FmDateRangePicker");
190
+ const u = T("FmSearch"), x = T("FmDateRangePicker");
191
191
  return _(), A(M, {
192
192
  title: "Transactions",
193
193
  loading: r(c)
194
194
  }, {
195
195
  default: I(() => [
196
- h("div", Q, [
197
- h("div", H, [
198
- g(u, {
199
- "model-value": r(t),
200
- "onUpdate:modelValue": s[0] || (s[0] = (m) => N(t) ? t.value = m : null),
196
+ y("div", Q, [
197
+ y("div", H, [
198
+ h(u, {
199
+ "model-value": r(n),
200
+ "onUpdate:modelValue": s[0] || (s[0] = (m) => N(n) ? n.value = m : null),
201
201
  class: "mr-8",
202
202
  label: "Search",
203
203
  placeholder: "Search Transactions ..."
204
204
  }, null, 8, ["model-value"]),
205
- g(w, {
205
+ h(x, {
206
206
  modelValue: r(a),
207
207
  "onUpdate:modelValue": [
208
208
  s[1] || (s[1] = (m) => N(a) ? a.value = m : null),
@@ -212,8 +212,8 @@ const G = /* @__PURE__ */ p({
212
212
  "show-predefined-range": ""
213
213
  }, null, 8, ["modelValue"])
214
214
  ]),
215
- h("div", W, [
216
- g(U, {
215
+ y("div", W, [
216
+ h(U, {
217
217
  button: {
218
218
  appendIcon: "file_download",
219
219
  variant: "primary",
@@ -228,9 +228,9 @@ const G = /* @__PURE__ */ p({
228
228
  }, null, 8, ["handler"])
229
229
  ])
230
230
  ]),
231
- g(z, {
231
+ h(z, {
232
232
  loading: r(c),
233
- data: n.value
233
+ data: t.value
234
234
  }, null, 8, ["loading", "data"])
235
235
  ]),
236
236
  _: 1
@@ -239,5 +239,5 @@ const G = /* @__PURE__ */ p({
239
239
  }
240
240
  });
241
241
  export {
242
- ce as default
242
+ de as default
243
243
  };
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as _, resolveComponent as T, openBlock as f, createBlock as N, normalizeClass as k, withCtx as R, createElementVNode as y, toDisplayString as K, createElementBlock as D, unref as o, ref as A, h as x, onMounted as V, watch as E, createVNode as p, isRef as F } from "vue";
2
- import { t as I, a as C } from "./transaction-C1MtaXOd.js";
3
- import { e as S, u as P } from "./index-CkIbCIHJ.js";
2
+ import { t as I, a as C } from "./transaction-B5QUg556.js";
3
+ import { e as S, u as P } from "./index-_qikPh5K.js";
4
4
  import { useSnackbar as $ } from "@feedmepos/ui-library";
5
5
  import "./dinero-CIVmXLL-.js";
6
6
  import { h as b } from "./moment-h96o7c8I.js";
7
- import { g as L, a as B } from "./assets-CLiVU4As.js";
7
+ import { g as L, a as B } from "./assets-BmFExmpA.js";
8
8
  import { useCoreStore as M } from "@feedmepos/mf-common";
9
9
  import { _ as U } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
10
- import { u as G } from "./index-ByCQqfan.js";
10
+ import { u as G } from "./index-Bvb4T6xz.js";
11
11
  import { _ as Y } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
12
12
  import { _ as q } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
13
13
  const J = /* @__PURE__ */ _({
@@ -37,6 +37,7 @@ type TransformFunctions<T> = {
37
37
  export declare function localWorkbookAndDownload<T extends Object>(data: T[], options?: {
38
38
  transformers?: TransformFunctions<T>;
39
39
  exclude?: (keyof T)[];
40
+ rename?: Partial<Record<keyof T, string>>;
40
41
  filename?: string;
41
42
  }): void;
42
43
  export declare function getWorkbookAndDownload(response: AxiosResponse<WorkBook>, filename: string): void;
@@ -16,5 +16,5 @@ export declare const terminalTransactionApi: {
16
16
  limit: number;
17
17
  cursor: string;
18
18
  }): Promise<PaginatedResult<FdoTerminalTransaction>>;
19
- downloadRestaurantTransactionReport(data: FdoTerminalTransaction[]): Promise<void>;
19
+ downloadTransactions(data: FdoTerminalTransaction[]): Promise<void>;
20
20
  };
package/dist/app.js CHANGED
@@ -9,13 +9,13 @@ const f = [
9
9
  meta: {
10
10
  sidebarDisplay: "Payout Accounts"
11
11
  },
12
- component: () => import("./PayoutAccount-DEEuJq8a.js")
12
+ component: () => import("./PayoutAccount-6kS5Xjs8.js")
13
13
  },
14
14
  {
15
15
  path: "/admin/payout-accounts/:accountId",
16
16
  name: "mf-payment-admin.payout-account-settings",
17
17
  props: !0,
18
- component: () => import("./PayoutAccountSetting-D6rCau39.js")
18
+ component: () => import("./PayoutAccountSetting-B26ApwsY.js")
19
19
  },
20
20
  {
21
21
  path: "/admin/transaction",
@@ -23,7 +23,7 @@ const f = [
23
23
  meta: {
24
24
  sidebarDisplay: "Transactions"
25
25
  },
26
- component: () => import("./Transaction-CM_VKdEN.js")
26
+ component: () => import("./Transaction-60yViCMI.js")
27
27
  },
28
28
  {
29
29
  path: "/admin/settlement",
@@ -31,13 +31,13 @@ const f = [
31
31
  meta: {
32
32
  sidebarDisplay: "Settlements"
33
33
  },
34
- component: () => import("./Settlement-DO3KQc7V.js")
34
+ component: () => import("./Settlement-DTE8p3LA.js")
35
35
  },
36
36
  {
37
37
  path: "/admin/settlement/:settlementId",
38
38
  name: "mf-payment-admin.settlement-transaction",
39
39
  props: !0,
40
- component: () => import("./SettlementTransactions-D8SewaiK.js")
40
+ component: () => import("./SettlementTransactions-C4tIk6nO.js")
41
41
  },
42
42
  {
43
43
  path: "/admin/terminal",
@@ -45,13 +45,13 @@ const f = [
45
45
  meta: {
46
46
  sidebarDisplay: "Terminals"
47
47
  },
48
- component: () => import("./Terminal-CG3mIv6Z.js")
48
+ component: () => import("./Terminal-C4gOl3zs.js")
49
49
  },
50
50
  {
51
51
  path: "/admin/terminal/:terminalId",
52
52
  name: "mf-payment-admin.terminal-setting",
53
53
  props: !0,
54
- component: () => import("./TerminalSetting-CIFHaoHX.js")
54
+ component: () => import("./TerminalSetting-DC9NBozT.js")
55
55
  },
56
56
  {
57
57
  path: "/admin/terminal-transaction",
@@ -59,7 +59,7 @@ const f = [
59
59
  meta: {
60
60
  sidebarDisplay: "Terminal Transactions"
61
61
  },
62
- component: () => import("./TerminalTransaction-CnfWv95d.js")
62
+ component: () => import("./TerminalTransaction-CCdbfxx0.js")
63
63
  }
64
64
  ], y = [
65
65
  {
@@ -69,7 +69,7 @@ const f = [
69
69
  {
70
70
  path: "/payout-account",
71
71
  name: "mf-payment-payout-account",
72
- component: () => import("./PayoutAccount-Fg0fD2z1.js"),
72
+ component: () => import("./PayoutAccount-BYNRryiW.js"),
73
73
  meta: {
74
74
  sidebarDisplay: "Payout Accounts"
75
75
  }
@@ -77,7 +77,7 @@ const f = [
77
77
  {
78
78
  path: "/transaction",
79
79
  name: "mf-payment-transaction",
80
- component: () => import("./Transaction-D7ZuZ-IB.js"),
80
+ component: () => import("./Transaction-CoCZaBfu.js"),
81
81
  meta: {
82
82
  sidebarDisplay: "Transactions"
83
83
  }
@@ -85,7 +85,7 @@ const f = [
85
85
  {
86
86
  path: "/settlement",
87
87
  name: "mf-payment-settlement",
88
- component: () => import("./Settlement-KxjeLkyq.js"),
88
+ component: () => import("./Settlement-CY0-gXn5.js"),
89
89
  meta: {
90
90
  sidebarDisplay: "Settlements"
91
91
  }
@@ -94,7 +94,7 @@ const f = [
94
94
  path: "/settlement/:settlementId",
95
95
  name: "mf-payment-settlement-transaction",
96
96
  props: !0,
97
- component: () => import("./SettlementTransactions-BHm0Xr73.js")
97
+ component: () => import("./SettlementTransactions-BJlBWR1G.js")
98
98
  },
99
99
  {
100
100
  path: "/terminal-tranasction",
@@ -102,7 +102,7 @@ const f = [
102
102
  meta: {
103
103
  sidebarDisplay: "Terminal Transactions"
104
104
  },
105
- component: () => import("./TerminalTransaction-B2PFfPKP.js")
105
+ component: () => import("./TerminalTransaction-BUT01dUv.js")
106
106
  }
107
107
  ], A = P("iframe", () => {
108
108
  const o = {