@feedmepos/mf-payment 0.0.0-beta.8 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js +39 -0
  2. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  3. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js +40 -0
  4. package/dist/Modal-DB8M9o1T.js +13 -0
  5. package/dist/PayoutAccount-DZaKHWcy.js +612 -0
  6. package/dist/{PayoutAccount-CpatyqJa.js → PayoutAccount-Dc1CYQ0W.js} +38 -35
  7. package/dist/PayoutAccountSetting-BzmNuLFj.js +780 -0
  8. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js +33 -0
  9. package/dist/Settlement-Bx3zAkIw.js +195 -0
  10. package/dist/Settlement-mwnO-iYH.js +150 -0
  11. package/dist/{SettlementTransactions-DT1A_tI5.js → SettlementTransactions-AaYyTH96.js} +99 -105
  12. package/dist/{SettlementTransactions-CkU0gCHb.js → SettlementTransactions-D_SVuKyR.js} +117 -130
  13. package/dist/Terminal-68OQnhM3.js +372 -0
  14. package/dist/TerminalSetting-DEFim0xg.js +379 -0
  15. package/dist/TerminalTransaction-CQjNdffr.js +426 -0
  16. package/dist/TerminalTransaction-ClihmWOJ.js +250 -0
  17. package/dist/Transaction-68L7JzIk.js +242 -0
  18. package/dist/Transaction-a1VfiCP_.js +405 -0
  19. package/dist/api/index.d.ts +14 -0
  20. package/dist/api/pagination.d.ts +20 -0
  21. package/dist/api/payment-gateway/index.d.ts +9 -0
  22. package/dist/api/settlement/index.d.ts +12 -13
  23. package/dist/api/terminal/index.d.ts +13 -1
  24. package/dist/api/terminal-transaction/index.d.ts +12 -1
  25. package/dist/api/transaction/index.d.ts +7 -2
  26. package/dist/app-C9FRsUfb.js +6343 -0
  27. package/dist/app.js +3 -198
  28. package/dist/assets-Bji7O2YD.js +45 -0
  29. package/dist/clipboard-4jh1WteU.js +10 -0
  30. package/dist/components/AsyncButton.vue.d.ts +21 -0
  31. package/dist/components/AutoCopyCell.vue.d.ts +6 -0
  32. package/dist/components/CursorTable/index.vue.d.ts +24 -5
  33. package/dist/components/RestaurantSelector.vue.d.ts +2 -0
  34. package/dist/components/RouteCell.vue.d.ts +8 -0
  35. package/dist/helpers/assets.d.ts +2 -0
  36. package/dist/index-Bt_OgDYn.js +56107 -0
  37. package/dist/index-CLYePgWW.js +47 -0
  38. package/dist/{index-CF56zGyu.js → index-DBfZnaV1.js} +1 -1
  39. package/dist/index-DSuZG0l6.js +52 -0
  40. package/dist/{index-Bmka-1lQ.js → index-DjDGwRX8.js} +1 -1
  41. package/dist/index-_0TroOJr.js +127 -0
  42. package/dist/index.vue_vue_type_script_setup_true_lang-Jlcg1hAB.js +167 -0
  43. package/dist/model/transaction.d.ts +2 -1
  44. package/dist/package.json +4 -4
  45. package/dist/payout-account-BWcq7OJy.js +1805 -0
  46. package/dist/stores/payoutAccount.d.ts +4 -4
  47. package/dist/transaction-DqrhM5jB.js +87 -0
  48. package/dist/tsconfig.app.tsbuildinfo +1 -1
  49. package/dist/validator-D5jtpt9A.js +2877 -0
  50. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
  51. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +81 -0
  52. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
  53. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
  54. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
  55. package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +50 -0
  56. package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
  57. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  58. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +83 -0
  59. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  60. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +80 -9
  61. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +94 -0
  62. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +94 -0
  63. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +85 -0
  64. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +94 -0
  65. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +7 -0
  66. package/dist/views/admin/transaction/TransactionTable.vue.d.ts +6 -2
  67. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +7 -0
  68. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
  69. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  70. package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +2 -0
  71. package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +9 -0
  72. package/dist/views/terminal-transaction/cell/Status.vue.d.ts +9 -0
  73. package/package.json +4 -4
  74. package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js +0 -42
  75. package/dist/PayoutAccount-C0xyoyTa.js +0 -3485
  76. package/dist/PayoutAccountSetting-CIeos0md.js +0 -425
  77. package/dist/Settlement-BVGACeme.js +0 -136
  78. package/dist/Settlement-Ce48KHrc.js +0 -132
  79. package/dist/Terminal-ByKV2Rof.js +0 -204
  80. package/dist/TerminalTransaction-ClhuAOOF.js +0 -240
  81. package/dist/Transaction-BYq9Ymp_.js +0 -242
  82. package/dist/Transaction-Doq11qIf.js +0 -241
  83. package/dist/api/auth/index.d.ts +0 -7
  84. package/dist/assets-Dg26uQOf.js +0 -1756
  85. package/dist/index-Coz5aeIO.js +0 -61
  86. package/dist/index-DCPNrUDq.js +0 -40075
  87. package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
  88. package/dist/mascot-side-D5UubCy7.js +0 -8
  89. package/dist/payout-account-D2Ftjrss.js +0 -3317
  90. package/dist/transaction-vRrBf3FN.js +0 -64
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as b, resolveComponent as m, openBlock as g, createBlock as h, normalizeClass as N, withCtx as f, createElementVNode as P, toDisplayString as C, createVNode as c, computed as x, ref as E, watch as F, unref as l, isRef as k, h as w } from "vue";
2
- import { u as S } from "./index-Bmka-1lQ.js";
3
- import { _ as O } from "./index-DCPNrUDq.js";
4
- import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js";
5
- import { P as V } from "./payout-account-D2Ftjrss.js";
6
- import { p as $ } from "./index-CF56zGyu.js";
2
+ import { u as S } from "./index-DjDGwRX8.js";
3
+ import { _ as O } from "./index-Bt_OgDYn.js";
4
+ import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
5
+ import { P as V } from "./payout-account-BWcq7OJy.js";
6
+ import { p as D } from "./index-DBfZnaV1.js";
7
7
  import "@feedmepos/ui-library";
8
- import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js";
9
- import { useRouter as T } from "vue-router";
8
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-Jlcg1hAB.js";
9
+ import { useRouter as $ } from "vue-router";
10
10
  const G = /* @__PURE__ */ b({
11
11
  __name: "Status",
12
12
  props: {
@@ -14,13 +14,13 @@ const G = /* @__PURE__ */ b({
14
14
  data: {}
15
15
  },
16
16
  setup(d) {
17
- const n = d;
17
+ const r = d;
18
18
  function t() {
19
- return n.data === "NEW" ? "!w-[16px] !h-[16px] bg-yellow-400" : n.data === "PENDING" ? "!w-[16px] !h-[16px] bg-red-400" : "!w-[16px] !h-[16px] bg-green-400";
19
+ return r.data === "NEW" ? "!w-[16px] !h-[16px] bg-yellow-400" : r.data === "PENDING" ? "!w-[16px] !h-[16px] bg-red-400" : "!w-[16px] !h-[16px] bg-green-400";
20
20
  }
21
21
  return (s, u) => {
22
- const r = m("FmBadge");
23
- return g(), h(r, {
22
+ const n = m("FmBadge");
23
+ return g(), h(n, {
24
24
  inline: "",
25
25
  class: N(t())
26
26
  }, {
@@ -38,14 +38,14 @@ const G = /* @__PURE__ */ b({
38
38
  data: {}
39
39
  },
40
40
  setup(d) {
41
- const n = d;
41
+ const r = d;
42
42
  function t() {
43
- return n.data ? "#66BB6A" : "#EF5350";
43
+ return r.data ? "#66BB6A" : "#EF5350";
44
44
  }
45
45
  function s() {
46
- return n.data ? "check" : "close";
46
+ return r.data ? "check" : "close";
47
47
  }
48
- return (u, r) => {
48
+ return (u, n) => {
49
49
  const p = m("FmIcon");
50
50
  return g(), h(p, {
51
51
  name: s(),
@@ -61,12 +61,12 @@ const G = /* @__PURE__ */ b({
61
61
  data: {}
62
62
  },
63
63
  setup(d) {
64
- function n(t) {
64
+ function r(t) {
65
65
  return t ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
66
66
  }
67
67
  return (t, s) => {
68
- const u = m("FmBadge"), r = m("FmListItem");
69
- return g(), h(r, {
68
+ const u = m("FmBadge"), n = m("FmListItem");
69
+ return g(), h(n, {
70
70
  label: t.row.original.holderName,
71
71
  sublabel: t.row.original.bankName + " - " + t.row.original.bankNumber,
72
72
  clickable: !1,
@@ -75,7 +75,7 @@ const G = /* @__PURE__ */ b({
75
75
  append: f(() => [
76
76
  c(u, {
77
77
  inline: "",
78
- class: N(n(t.row.original.bankReady))
78
+ class: N(r(t.row.original.bankReady))
79
79
  }, null, 8, ["class"])
80
80
  ]),
81
81
  _: 1
@@ -89,12 +89,12 @@ const G = /* @__PURE__ */ b({
89
89
  data: {}
90
90
  },
91
91
  setup(d) {
92
- function n(t) {
92
+ function r(t) {
93
93
  return t ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
94
94
  }
95
95
  return (t, s) => {
96
- const u = m("FmBadge"), r = m("FmListItem");
97
- return g(), h(r, {
96
+ const u = m("FmBadge"), n = m("FmListItem");
97
+ return g(), h(n, {
98
98
  label: t.row.original.picName,
99
99
  sublabel: t.row.original.picEmail + " - " + t.row.original.picPhone,
100
100
  clickable: !1,
@@ -103,31 +103,31 @@ const G = /* @__PURE__ */ b({
103
103
  append: f(() => [
104
104
  c(u, {
105
105
  inline: "",
106
- class: N(n(t.row.original.picReady))
106
+ class: N(r(t.row.original.picReady))
107
107
  }, null, 8, ["class"])
108
108
  ]),
109
109
  _: 1
110
110
  }, 8, ["label", "sublabel"]);
111
111
  };
112
112
  }
113
- }), Q = { class: "flex items-start mb-6" }, ee = /* @__PURE__ */ b({
113
+ }), j = { class: "flex items-start mb-6" }, ee = /* @__PURE__ */ b({
114
114
  __name: "PayoutAccount",
115
115
  setup(d) {
116
- const n = x(() => V.storeEventOptions), t = x(() => V.statusOptions), s = E(), u = T(), { event: r, status: p, searchKey: i } = S({
116
+ const r = x(() => V.storeEventOptions), t = x(() => V.statusOptions), s = E(), u = $(), { event: n, status: p, searchKey: i } = S({
117
117
  searchKey: "",
118
118
  event: O.F_PAYOUT_FOR.Enum.ORDERING,
119
119
  status: t.value.map((e) => e.value)
120
120
  });
121
- F([r, p], () => {
121
+ F([n, p], () => {
122
122
  var e;
123
- return (e = s.value) == null ? void 0 : e.refreshQuery();
123
+ return (e = s.value) == null ? void 0 : e.reset();
124
124
  });
125
125
  let v;
126
126
  F(i, async () => {
127
127
  v && clearTimeout(v), v = setTimeout(
128
128
  () => {
129
129
  var e;
130
- return (e = s.value) == null ? void 0 : e.refreshQuery();
130
+ return (e = s.value) == null ? void 0 : e.reset();
131
131
  },
132
132
  700
133
133
  );
@@ -214,14 +214,14 @@ const G = /* @__PURE__ */ b({
214
214
  loading: !1
215
215
  }, {
216
216
  default: f(() => [
217
- P("div", Q, [
217
+ P("div", j, [
218
218
  c(_, {
219
- modelValue: l(r),
220
- "onUpdate:modelValue": a[0] || (a[0] = (o) => k(r) ? r.value = o : null),
219
+ modelValue: l(n),
220
+ "onUpdate:modelValue": a[0] || (a[0] = (o) => k(n) ? n.value = o : null),
221
221
  class: "mr-6 w-[128px]",
222
222
  label: "Type",
223
223
  "label-mark": "required",
224
- items: n.value
224
+ items: r.value
225
225
  }, null, 8, ["modelValue", "items"]),
226
226
  c(_, {
227
227
  modelValue: l(p),
@@ -248,14 +248,17 @@ const G = /* @__PURE__ */ b({
248
248
  _: 1
249
249
  }, 8, ["modelValue"])
250
250
  ]),
251
- c(D, {
251
+ c(T, {
252
252
  ref_key: "controller",
253
253
  ref: s,
254
254
  "column-defs": R,
255
255
  "rows-defs": I,
256
- paginate: (o, A) => l($).read({ event: l(r), status: l(p), searchKey: l(i), limit: o, cursor: A }),
256
+ paginate: (o, A) => l(D).read({ event: l(n), status: l(p), searchKey: l(i), limit: o, cursor: A }),
257
257
  onRowClick: a[4] || (a[4] = (o) => l(u).push({
258
- path: `/payment/admin/payout-accounts/${o._id}`
258
+ name: "mf-payment-admin.payout-account-settings",
259
+ params: {
260
+ accountId: o._id
261
+ }
259
262
  }))
260
263
  }, null, 8, ["paginate"])
261
264
  ]),