@feedmepos/mf-payment 1.9.4-dev → 1.9.6-dev

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 (75) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-CkECWfJH.js → Actions.vue_vue_type_script_setup_true_lang-kKuiIVqQ.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BO0JN_rh.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-QOAiVn0i.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-Bnn4SxyN.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BIx2uXXf.js} +2 -2
  4. package/dist/{Chargeback-b5GjZ9Mb.js → Chargeback-B4G8874B.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-BviLk6nC.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DlgxW2C7.js} +1 -1
  6. package/dist/ExternalTerminal-CKmgaewR.js +491 -0
  7. package/dist/{OnboardForm-CtgycClY.js → OnboardForm-C2TUREB6.js} +6 -6
  8. package/dist/{OnboardForm-Bq181JPX.js → OnboardForm-DxnOg0sW.js} +6 -6
  9. package/dist/{OnboardSubmission-D-0Sas7U.js → OnboardSubmission-CmEditLt.js} +6 -6
  10. package/dist/{OnboardSubmission-DXBjG3oR.js → OnboardSubmission-UTxuMg9e.js} +3 -3
  11. package/dist/{PayoutAccount-Ddpq-rZp.js → PayoutAccount-gZwrx94K.js} +7 -7
  12. package/dist/{PayoutAccount-D5giLt_J.js → PayoutAccount-l53L4G6e.js} +5 -5
  13. package/dist/{PayoutAccountSetting-5ik0IR2I.js → PayoutAccountSetting-DLri8jXZ.js} +6 -6
  14. package/dist/{Restaurant-BG-2LYcJ.js → Restaurant-ByFI0M5Q.js} +4 -4
  15. package/dist/{RestaurantSetting-CtnOR7kY.js → RestaurantSetting-DUrG2x2b.js} +3 -3
  16. package/dist/{Settlement-BzoTb2ks.js → Settlement-Biw2K_oG.js} +3 -3
  17. package/dist/{Settlement-CfU_5sp-.js → Settlement-CRzUEelW.js} +4 -4
  18. package/dist/{SettlementTransactions-CmX9LDuK.js → SettlementTransactions-1gtrbaEL.js} +5 -5
  19. package/dist/{SettlementTransactions-Dh-erDBh.js → SettlementTransactions-Dmu3B-KK.js} +5 -5
  20. package/dist/{Status.vue_vue_type_script_setup_true_lang-D3dpjdxR.js → Status.vue_vue_type_script_setup_true_lang-T2ndCu6V.js} +1 -1
  21. package/dist/{Terminal-ZLduA0bd.js → Terminal-CsQQhiUJ.js} +6 -6
  22. package/dist/{TerminalSetting-CvaUOBlA.js → TerminalSetting-GcnbFtDt.js} +1066 -973
  23. package/dist/{Transaction-BeNRIA2R.js → Transaction-BK-XI_eI.js} +10 -10
  24. package/dist/{Transaction-Bpc_LdWE.js → Transaction-Dwt_Yj_e.js} +11 -11
  25. package/dist/{TransactionOld-SaMACUtQ.js → TransactionOld-DdQFzQH3.js} +7 -7
  26. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-CuBa_qMU.js → TransactionStatus.vue_vue_type_script_setup_true_lang-CFJs9mDt.js} +1 -1
  27. package/dist/api/external-terminal/index.d.ts +2 -1
  28. package/dist/{app-Cq04HfHW.js → app-D0dT6dr9.js} +26 -25
  29. package/dist/app.js +1 -1
  30. package/dist/{assets-Cj91tAER.js → assets-B6qIqgqW.js} +1 -1
  31. package/dist/{grafana-CuJUDQ26.js → grafana-DMWNMPot.js} +1 -1
  32. package/dist/{index-C4EENmPN.js → index-B0DiDbJ7.js} +1 -1
  33. package/dist/{index-BQijmIi-.js → index-B3L5wSMw.js} +1 -1
  34. package/dist/{index-DmC6nw2c.js → index-BfRRqamh.js} +1 -1
  35. package/dist/index-CPTcdmBD.js +52 -0
  36. package/dist/{index-lfOPW24n.js → index-CbEHPOsz.js} +1 -1
  37. package/dist/{index-JV44EPG0.js → index-Ccy3AmTt.js} +2 -2
  38. package/dist/{index-BTMbNw68.js → index-CzxJ5ATK.js} +1 -1
  39. package/dist/{index-Cj7KUaM0.js → index-DifReq2k.js} +11 -9
  40. package/dist/{index-C3dR6tpd.js → index-DkhW84J3.js} +1 -1
  41. package/dist/{index-DVC9y-6t.js → index-xzW1jgxX.js} +1 -1
  42. package/dist/{index.vue_vue_type_script_setup_true_lang-Cz6llWgj.js → index.vue_vue_type_script_setup_true_lang-5psyxv3X.js} +1 -1
  43. package/dist/{onboard-submission-ChLJrEtc.js → onboard-submission-BqMGeMKy.js} +1 -1
  44. package/dist/package.json +2 -2
  45. package/dist/{payout-account-Db0R_Isi.js → payout-account-C3B1_X2X.js} +3 -3
  46. package/dist/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/views/admin/external-terminal/ExternalTerminalPairDialog.vue.d.ts +16 -16
  48. package/dist/views/admin/external-terminal/ExternalTerminalSideSheet.vue.d.ts +18 -18
  49. package/dist/views/admin/external-terminal/pair/BRITerminal.vue.d.ts +16 -16
  50. package/dist/views/admin/external-terminal/pair/BeamTerminal.vue.d.ts +16 -16
  51. package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +42 -32
  52. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +42 -32
  53. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +42 -32
  54. package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +42 -32
  55. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +42 -32
  56. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +42 -32
  57. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +42 -32
  58. package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +186 -0
  59. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +42 -32
  60. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +42 -32
  61. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +42 -32
  62. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +42 -32
  63. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +42 -32
  64. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +42 -32
  65. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +42 -32
  66. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +42 -32
  67. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +42 -32
  68. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +42 -32
  69. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +42 -32
  70. package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +42 -32
  71. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +42 -32
  72. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +42 -32
  73. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +42 -32
  74. package/package.json +2 -2
  75. package/dist/ExternalTerminal-DhoNW6qp.js +0 -525
@@ -1,4 +1,4 @@
1
- import { e as i } from "./index-Cj7KUaM0.js";
1
+ import { e as i } from "./index-DifReq2k.js";
2
2
  import { useCoreStore as l } from "@feedmepos/mf-common";
3
3
  import { h as a } from "./moment-h96o7c8I.js";
4
4
  const y = "https://grafana.feedme.farm/d/hyperdx-trace-explorer/hyperdx-trace-explorer-embedded", m = "69a1a2665dc2f34c0563c0a7", h = "6a4e8eefbcd09745155bda80", n = {
@@ -1,4 +1,4 @@
1
- import { a as s, b as e, g as r } from "./index-Cj7KUaM0.js";
1
+ import { a as s, b as e, g as r } from "./index-DifReq2k.js";
2
2
  const i = {
3
3
  async readRestaurantById(a) {
4
4
  const t = await e().get(`/payments/restaurants/${a}`);
@@ -1,6 +1,6 @@
1
1
  import { ref as b, watch as w } from "vue";
2
2
  import { useRoute as A, useRouter as m } from "vue-router";
3
- import { v as y } from "./app-Cq04HfHW.js";
3
+ import { v as y } from "./app-D0dT6dr9.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {
@@ -1,4 +1,4 @@
1
- import { g as s, b as e, a as o, d as I, l as m, c as d, r as f } from "./index-Cj7KUaM0.js";
1
+ import { g as s, b as e, a as o, d as I, l as m, c as d, r as f } from "./index-DifReq2k.js";
2
2
  import { h as n } from "./moment-h96o7c8I.js";
3
3
  const A = {
4
4
  async readBySettlementId(t) {
@@ -0,0 +1,52 @@
1
+ import { g as t, b as e, a as r } from "./index-DifReq2k.js";
2
+ const i = {
3
+ async create(a) {
4
+ return t(
5
+ await e().post("/payments/external-terminals", a)
6
+ );
7
+ },
8
+ async read(a) {
9
+ return r(
10
+ await e().get("/payments/external-terminals", {
11
+ params: { ...a }
12
+ })
13
+ );
14
+ },
15
+ async readById(a) {
16
+ return t(
17
+ await e().get(`/payments/external-terminals/${a}`)
18
+ );
19
+ },
20
+ async updateById(a, n) {
21
+ return t(
22
+ await e().put(
23
+ `/payments/external-terminals/${a}`,
24
+ n
25
+ )
26
+ );
27
+ },
28
+ async pair(a, n) {
29
+ return t(
30
+ await e().post(
31
+ `/payments/external-terminals/${a}/pair`,
32
+ n
33
+ )
34
+ );
35
+ },
36
+ async delete(a) {
37
+ return t(
38
+ await e().delete(`/payments/external-terminals/${a}`)
39
+ );
40
+ },
41
+ async getRestaurantExternalTerminals(a, n) {
42
+ return t(
43
+ await e().get(
44
+ `restaurants/${a}/external-terminals`,
45
+ { params: { type: n } }
46
+ )
47
+ );
48
+ }
49
+ };
50
+ export {
51
+ i as e
52
+ };
@@ -1,4 +1,4 @@
1
- import { d as l, c as s, g as o, b as i, l as c, f as d, h as y } from "./index-Cj7KUaM0.js";
1
+ import { d as l, c as s, g as o, b as i, l as c, f as d, h as y } from "./index-DifReq2k.js";
2
2
  import { h as r } from "./moment-h96o7c8I.js";
3
3
  import { d as p } from "./dinero-CIVmXLL-.js";
4
4
  function* f(t, a) {
@@ -1,6 +1,6 @@
1
- import { g as o, b as s, o as m, a as d } from "./index-Cj7KUaM0.js";
1
+ import { g as o, b as s, o as m, a as d } from "./index-DifReq2k.js";
2
2
  import { h as c } from "./moment-h96o7c8I.js";
3
- import { d as b } from "./index-DVC9y-6t.js";
3
+ import { d as b } from "./index-xzW1jgxX.js";
4
4
  async function g(t) {
5
5
  if (t.type !== "image/png") return t;
6
6
  const a = await p(t), e = document.createElement("canvas");
@@ -1,4 +1,4 @@
1
- import { b as a, g as t, p as r, c as i, a as s } from "./index-Cj7KUaM0.js";
1
+ import { b as a, g as t, p as r, c as i, a as s } from "./index-DifReq2k.js";
2
2
  const m = {
3
3
  async create(e) {
4
4
  return s(
@@ -1,4 +1,4 @@
1
- import { w as V, x as AR, v as pR } from "./app-Cq04HfHW.js";
1
+ import { w as V, x as AR, v as pR } from "./app-D0dT6dr9.js";
2
2
  import { useCoreStore as Ou } from "@feedmepos/mf-common";
3
3
  import { ref as SR } from "vue";
4
4
  var Ah = {}, $d = {}, y = {}, zh = {}, jm = {}, Um = {}, Ic = {};
@@ -22459,13 +22459,12 @@ function Ev() {
22459
22459
  }), e.FdoTerminalPaymentEcrBeam = d.extend({
22460
22460
  gateway: t.z.literal(i.F_TERMINAL_PAYMENT_ECR_PROVIDER.enum.Beam),
22461
22461
  config: t.z.object({
22462
- boltConnectId: t.z.string(),
22463
- deviceId: t.z.string(),
22464
- merchantId: t.z.string()
22462
+ externalTerminalId: t.z.string()
22465
22463
  }).nullish()
22466
22464
  }), e.FdoTerminalPaymentEcr = t.z.discriminatedUnion("gateway", [
22467
22465
  e.FdoTerminalPaymentEcrFeedMe,
22468
- e.FdoTerminalPaymentEcrGhl
22466
+ e.FdoTerminalPaymentEcrGhl,
22467
+ e.FdoTerminalPaymentEcrBeam
22469
22468
  ]), e.F_ECR_INTEGRATION_KEY = t.z.enum([
22470
22469
  "Maybank",
22471
22470
  "Maybank2",
@@ -22785,6 +22784,10 @@ zm.ECR_GATEWAY_REGISTRY = {
22785
22784
  Revenue: {
22786
22785
  methods: ["Card Payment", "Scan Pay", "QR Payment"],
22787
22786
  qrMethods: []
22787
+ },
22788
+ Beam: {
22789
+ methods: ["Card"],
22790
+ qrMethods: []
22788
22791
  }
22789
22792
  };
22790
22793
  var vv = {};
@@ -22794,7 +22797,7 @@ var vv = {};
22794
22797
  e.FdoExternalTerminalProvider = t.z.enum(["BEAM", "BRI"]), e.FdoExternalTerminalStatus = t.z.enum(["NEW", "READY"]);
22795
22798
  const r = t.z.object({
22796
22799
  _id: t.z.string().superRefine(n.isObjectId),
22797
- restaurantId: t.z.string().nullish(),
22800
+ restaurantId: t.z.string(),
22798
22801
  name: t.z.string(),
22799
22802
  type: e.FdoExternalTerminalProvider,
22800
22803
  status: e.FdoExternalTerminalStatus,
@@ -22805,7 +22808,7 @@ var vv = {};
22805
22808
  e.FdoExternalTerminalBeam = r.extend({
22806
22809
  type: t.z.literal(e.FdoExternalTerminalProvider.enum.BEAM),
22807
22810
  providerData: t.z.object({
22808
- boltConnectId: t.z.string(),
22811
+ boltConnectionId: t.z.string(),
22809
22812
  deviceId: t.z.string(),
22810
22813
  merchantId: t.z.string()
22811
22814
  }).nullish()
@@ -22816,11 +22819,10 @@ var vv = {};
22816
22819
  edcId: t.z.string()
22817
22820
  }).nullish()
22818
22821
  }), e.FdoExternalTerminal = t.z.discriminatedUnion("type", [e.FdoExternalTerminalBeam, e.FdoExternalTerminalBri]).describe(n.ZodMeta.mongo().repo("ExternalTerminal").build()), e.CreateExternalTerminalDto = t.z.object({
22819
- restaurantId: t.z.string().superRefine(n.isObjectId).nullish(),
22822
+ restaurantId: t.z.string().superRefine(n.isObjectId),
22820
22823
  name: t.z.string(),
22821
22824
  type: e.FdoExternalTerminalProvider
22822
22825
  }), e.UpdateExternalTerminalDto = t.z.object({
22823
- restaurantId: t.z.string().superRefine(n.isObjectId).nullish(),
22824
22826
  name: t.z.string()
22825
22827
  }), e.PairExternalTerminalBeamDto = t.z.object({
22826
22828
  type: t.z.literal(e.FdoExternalTerminalProvider.enum.BEAM),
@@ -1,4 +1,4 @@
1
- import { g as t, b as n, c as u, a as e } from "./index-Cj7KUaM0.js";
1
+ import { g as t, b as n, c as u, a as e } from "./index-DifReq2k.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return e(
@@ -1,4 +1,4 @@
1
- import { b as r, c as p } from "./index-Cj7KUaM0.js";
1
+ import { b as r, c as p } from "./index-DifReq2k.js";
2
2
  const i = {
3
3
  async upload(e, s, t) {
4
4
  const o = (await p().post("/document/presign", {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as q, ref as r, resolveComponent as f, openBlock as g, createBlock as z, withCtx as I, createElementVNode as i, normalizeStyle as E, createElementBlock as M, Fragment as N, renderList as O, createVNode as c, computed as _, watch as L, onMounted as R, unref as D, toDisplayString as B, createCommentVNode as G, nextTick as H, normalizeClass as J } from "vue";
2
- import { u as K } from "./index-Cj7KUaM0.js";
2
+ import { u as K } from "./index-DifReq2k.js";
3
3
  import "@feedmepos/ui-library";
4
4
  const Q = ["id"], U = /* @__PURE__ */ q({
5
5
  __name: "FmTableSelection",
@@ -1,4 +1,4 @@
1
- import { e as t, p as r } from "./index-Cj7KUaM0.js";
1
+ import { e as t, p as r } from "./index-DifReq2k.js";
2
2
  import { useCoreStore as i } from "@feedmepos/mf-common";
3
3
  const s = {
4
4
  softspace: [t.F_COUNTRY.enum.MY],
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.9.4-dev",
3
+ "version": "1.9.6-dev",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -39,7 +39,7 @@
39
39
  "@feedmepos/hrm-permission": "1.0.6",
40
40
  "@feedmepos/mf-common": "^1.26.8",
41
41
  "@feedmepos/mf-financing": "0.0.24-dev",
42
- "@feedmepos/payment-entity": "0.1.90",
42
+ "@feedmepos/payment-entity": "0.1.91",
43
43
  "@feedmepos/ui-library": "^1.10.13",
44
44
  "@tanstack/vue-query": "^5.101.0",
45
45
  "axios": "^0.27.2",
@@ -1,7 +1,7 @@
1
- import { p as E, B as st } from "./index-Cj7KUaM0.js";
2
- import { v as it, w as at, _ as ut } from "./app-Cq04HfHW.js";
1
+ import { p as E, B as st } from "./index-DifReq2k.js";
2
+ import { v as it, w as at, _ as ut } from "./app-D0dT6dr9.js";
3
3
  import { useCoreStore as ot } from "@feedmepos/mf-common";
4
- import { d as H } from "./index-DVC9y-6t.js";
4
+ import { d as H } from "./index-xzW1jgxX.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {