@feedmepos/mf-payment 1.1.6 → 1.1.7-beta.3

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 (39) hide show
  1. package/dist/{PayoutAccount-CBGLfBag.js → PayoutAccount-CnTCZExr.js} +5 -5
  2. package/dist/{PayoutAccount-Bl2-Th-5.js → PayoutAccount-Crwu1h-c.js} +3 -3
  3. package/dist/{PayoutAccountSetting-DiMwWLwY.js → PayoutAccountSetting-PyIESuN8.js} +3 -3
  4. package/dist/{Restaurant-CdB7D9zA.js → Restaurant-BF1J35Ic.js} +4 -4
  5. package/dist/{RestaurantSetting-CQyXjYux.js → RestaurantSetting-Dg7cfqKF.js} +3 -3
  6. package/dist/Settlement-B-TQCdB4.js +219 -0
  7. package/dist/{Settlement-7WRCiiQ4.js → Settlement-BPrjfDMN.js} +3 -3
  8. package/dist/{SettlementTransactions-CymvVBh8.js → SettlementTransactions-C13T6n0z.js} +3 -3
  9. package/dist/{SettlementTransactions-B1dUvxhz.js → SettlementTransactions-CpRADd8a.js} +20 -16
  10. package/dist/{Terminal-DRKD8BO1.js → Terminal-DgKJ9zSL.js} +6 -6
  11. package/dist/TerminalSetting-Boh1fu6s.js +489 -0
  12. package/dist/{Transaction-DQQI8kOT.js → Transaction-BvvhqS95.js} +52 -47
  13. package/dist/{Transaction-DcQQ_4ku.js → Transaction-CsAF2AXj.js} +6 -6
  14. package/dist/{TransactionOld-DJJIQo-i.js → TransactionOld-DsC0R1Qe.js} +5 -5
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-C_3J1G8_.js → TransactionTable.vue_vue_type_script_setup_true_lang-CtrMBxwz.js} +7 -3
  16. package/dist/api/settlement/index.d.ts +1 -1
  17. package/dist/api/terminal/index.d.ts +4 -0
  18. package/dist/api/transaction/index.d.ts +1 -1
  19. package/dist/{app-B1ZoKtpx.js → app-D6rd6uvO.js} +392 -388
  20. package/dist/app.d.ts +4 -0
  21. package/dist/app.js +1 -1
  22. package/dist/{assets-ZXvnCE72.js → assets-B41ScDuA.js} +80 -73
  23. package/dist/{grafana-tSaEG-rZ.js → grafana-CdozbaJn.js} +7 -7
  24. package/dist/{index-D1dXyrdm.js → index-3u2VZ6Ni.js} +29 -26
  25. package/dist/{index-DlvE9K3G.js → index-BIObbzAP.js} +9 -1
  26. package/dist/{index-DEEbas1_.js → index-CCBZtmwy.js} +1 -1
  27. package/dist/{index-kEMG4SWc.js → index-CEU5ybp0.js} +1 -1
  28. package/dist/{index-CGBOgV3E.js → index-Cnf4HsQx.js} +1 -1
  29. package/dist/{index-DQcz6kdU.js → index-D1_hIXoR.js} +813 -813
  30. package/dist/{index.vue_vue_type_script_setup_true_lang-CwHVO04q.js → index.vue_vue_type_script_setup_true_lang-i3Lcf2Mj.js} +1 -1
  31. package/dist/model/transaction.d.ts +3 -0
  32. package/dist/package.json +1 -1
  33. package/dist/{payout-account-BtTgqm7Q.js → payout-account-C80nPFWJ.js} +2 -2
  34. package/dist/tsconfig.app.tsbuildinfo +1 -1
  35. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +87 -0
  36. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +87 -0
  37. package/package.json +1 -1
  38. package/dist/Settlement-BA09mDyG.js +0 -218
  39. package/dist/TerminalSetting-DUVbknAn.js +0 -389
@@ -1,12 +1,12 @@
1
- import { e as y } from "./index-DQcz6kdU.js";
1
+ import { e as y } from "./index-D1_hIXoR.js";
2
2
  import { useCoreStore as p } from "@feedmepos/mf-common";
3
3
  import { h as m } from "./moment-h96o7c8I.js";
4
- const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (o, e, t) => ({
4
+ const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (t, e, o) => ({
5
5
  apq: {
6
6
  datasource: "P998741A58ED2B411",
7
7
  range: {
8
8
  from: e,
9
- to: t
9
+ to: o
10
10
  },
11
11
  queries: [
12
12
  {
@@ -18,11 +18,11 @@ const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (o, e, t) =
18
18
  queryType: "search",
19
19
  service: "payment-backend",
20
20
  limit: 1e3,
21
- tags: o.map((r) => `${r.queryKey}=${r.queryValue}`).join(" ")
21
+ tags: t.map((r) => `${r.queryKey}=${r.queryValue}`).join(" ")
22
22
  }
23
23
  ]
24
24
  }
25
- }), g = (o, e) => {
25
+ }), g = (t, e) => {
26
26
  const r = p().currentCountry.value ?? y.F_COUNTRY.enum.MY, a = [
27
27
  // {
28
28
  // type: "resource",
@@ -32,7 +32,7 @@ const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (o, e, t) =
32
32
  {
33
33
  type: "resource",
34
34
  queryKey: "cluster",
35
- queryValue: "production"
35
+ queryValue: "dev"
36
36
  },
37
37
  {
38
38
  type: "resource",
@@ -40,7 +40,7 @@ const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (o, e, t) =
40
40
  queryValue: "apps-" + r.toLowerCase()
41
41
  }
42
42
  ];
43
- a.push(...o);
43
+ a.push(...t);
44
44
  let s = "now", n = "now-1d";
45
45
  if (e) {
46
46
  const u = +m(e).add(-3, "hours").toDate();
@@ -1,15 +1,15 @@
1
- import { g as r, b as i, j as d, l as y, k as f, i as l, r as m } from "./index-DQcz6kdU.js";
1
+ import { g as r, b as i, e as y, j as f, l as p, k as b, i as u, r as m } from "./index-D1_hIXoR.js";
2
2
  import { h as o } from "./moment-h96o7c8I.js";
3
- import { d as u } from "./dinero-CIVmXLL-.js";
4
- function* p(t, n) {
3
+ import { d as w } from "./dinero-CIVmXLL-.js";
4
+ function* S(t, a) {
5
5
  const e = t[Symbol.iterator](), s = e.next();
6
6
  if (!s.done) {
7
7
  yield s.value;
8
- for (const a of e)
9
- yield n, yield a;
8
+ for (const l of e)
9
+ yield a, yield l;
10
10
  }
11
11
  }
12
- const S = {
12
+ const D = {
13
13
  async updateRemark(t) {
14
14
  return r(
15
15
  await i().put("/settlements/remark", t)
@@ -22,29 +22,32 @@ const S = {
22
22
  })
23
23
  );
24
24
  },
25
- async downloadBankInstructionFile(t) {
26
- const n = "7161151059", e = t.map((a) => ({
25
+ async downloadBankInstructionFile(t, a) {
26
+ const e = "7161151059";
27
+ let s = "MYR";
28
+ t === y.F_COUNTRY.enum.SG && (s = "SGD");
29
+ const l = a.map((n) => ({
27
30
  productCode: "P2A",
28
31
  settlementDate: o().format("DDMMYYYY"),
29
32
  myRefNo: "",
30
- companyAccNo: n,
31
- amount: u(a.totalPayout).toUnit().toString(),
32
- currency: u.defaultCurrency,
33
+ companyAccNo: e,
34
+ amount: w(n.totalPayout).toUnit().toString(),
35
+ currency: s,
33
36
  proxyType: "",
34
37
  transferType: "DFLT",
35
- beneficiaryAccountNo: a.beneficiaryBank.accountNumber.toString().trim(),
36
- beneficiarySwiftCode: a.beneficiaryBank.swiftCode,
38
+ beneficiaryAccountNo: n.beneficiaryBank.accountNumber.toString().trim(),
39
+ beneficiarySwiftCode: n.beneficiaryBank.swiftCode,
37
40
  beneficiaryCountryCode: "",
38
41
  duitNowID: "",
39
- recipientReference: a._id,
42
+ recipientReference: n._id,
40
43
  pf_payment: "",
41
44
  notifyMethod: "",
42
45
  emailAddress: ""
43
- })), s = new Blob(
46
+ })), c = new Blob(
44
47
  Array.from(
45
- p(
46
- e.map(
47
- (a) => Object.values(a).map((c) => c).join("|")
48
+ S(
49
+ l.map(
50
+ (n) => Object.values(n).map((d) => d).join("|")
48
51
  ),
49
52
  `
50
53
  `
@@ -54,13 +57,13 @@ const S = {
54
57
  type: "text/plain;charset=utf-8"
55
58
  }
56
59
  );
57
- return d(s, "duitnow_bulk_transfer.txt");
60
+ return f(c, "duitnow_bulk_transfer.txt");
58
61
  },
59
- async downloadSummaryReport(t, n) {
60
- return y(
61
- t.map((e) => f(e)),
62
+ async downloadSummaryReport(t, a) {
63
+ return p(
64
+ t.map((e) => b(e)),
62
65
  {
63
- filename: `summary-report-${n.start}-${n.end}.xlsx`,
66
+ filename: `summary-report-${a.start}-${a.end}.xlsx`,
64
67
  exclude: [
65
68
  "beneficiaryBank.swiftCode",
66
69
  "beneficiaryBank.holderName",
@@ -92,7 +95,7 @@ const S = {
92
95
  );
93
96
  },
94
97
  async downloadSettlementReport(t) {
95
- return l(
98
+ return u(
96
99
  await i().get("/settlements/audit/v2", {
97
100
  params: {
98
101
  start: o(t.start).startOf("day").toISOString(),
@@ -103,7 +106,7 @@ const S = {
103
106
  );
104
107
  },
105
108
  async downloadRestaurantSettlementReport(t) {
106
- return l(
109
+ return u(
107
110
  await m().get("/settlements/report", {
108
111
  params: {
109
112
  start: o(t.start).startOf("day").toISOString(),
@@ -139,5 +142,5 @@ const S = {
139
142
  }
140
143
  };
141
144
  export {
142
- S as s
145
+ D as s
143
146
  };
@@ -1,4 +1,4 @@
1
- import { d as s, b as t, g as a, f as r, h as i } from "./index-DQcz6kdU.js";
1
+ import { d as s, b as t, g as a, f as r, h as i } from "./index-D1_hIXoR.js";
2
2
  const y = {
3
3
  async create(e) {
4
4
  return s(
@@ -45,6 +45,14 @@ const y = {
45
45
  `restaurants/${e}/terminals?deviceType=${i.FdoTerminalDeviceType.Enum.TERMINAL}`
46
46
  )
47
47
  );
48
+ },
49
+ async kioskModeRequest(e, n) {
50
+ return a(
51
+ await t().post(
52
+ `/payments/terminals/${e}/kiosk`,
53
+ n
54
+ )
55
+ );
48
56
  }
49
57
  };
50
58
  export {
@@ -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 { a as y } from "./index-DQcz6kdU.js";
3
+ import { a as y } from "./index-D1_hIXoR.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {
@@ -1,4 +1,4 @@
1
- import { d as u, b as s, g as t, f as e } from "./index-DQcz6kdU.js";
1
+ import { d as u, b as s, g as t, f as e } from "./index-D1_hIXoR.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return u(
@@ -1,4 +1,4 @@
1
- import { b as r, g as e } from "./index-DQcz6kdU.js";
1
+ import { b as r, g as e } from "./index-D1_hIXoR.js";
2
2
  const n = {
3
3
  async readRestaurantById(t) {
4
4
  const a = await r().get(`/restaurants/${t}`);