@feedmepos/mf-payment 1.5.15-dev → 1.5.17-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 (40) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-CLkp8JcO.js → Actions.vue_vue_type_script_setup_true_lang-BVJmo7yZ.js} +2 -2
  2. package/dist/{Chargeback-R8rLkSPi.js → Chargeback-CN_5ffe0.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CnU1zi3r.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DVeP7_1A.js} +1 -1
  4. package/dist/{OnboardForm-CNaKWFQX.js → OnboardForm-5Ebr2vf9.js} +5 -5
  5. package/dist/{OnboardForm-DCRxmpgD.js → OnboardForm-Ch_Ykfw_.js} +5 -5
  6. package/dist/{OnboardSubmission-BUoveq0K.js → OnboardSubmission-BF3Wq8xe.js} +5 -5
  7. package/dist/{OnboardSubmission-DhXtYG1S.js → OnboardSubmission-JGk9_ODn.js} +2 -2
  8. package/dist/{PayoutAccount-D8gaqc9Q.js → PayoutAccount-D238lqNT.js} +5 -5
  9. package/dist/{PayoutAccount-C-quZLpf.js → PayoutAccount-PPkKjWQM.js} +4 -4
  10. package/dist/{PayoutAccountSetting-Ec4vewxl.js → PayoutAccountSetting-BGqJyEP-.js} +4 -4
  11. package/dist/{Restaurant-Ddhkd-G2.js → Restaurant-BjF1a029.js} +4 -4
  12. package/dist/{RestaurantSetting-DuDZwZQg.js → RestaurantSetting-DC0f4Ucf.js} +3 -3
  13. package/dist/{Settlement-DvPatpnE.js → Settlement-BC3V4klw.js} +3 -3
  14. package/dist/{Settlement-Bw6ZMA1W.js → Settlement-ZBIhVddV.js} +3 -3
  15. package/dist/{SettlementTransactions-BK91LbDg.js → SettlementTransactions---x0z4Fg.js} +4 -4
  16. package/dist/{SettlementTransactions-UkVWc4IL.js → SettlementTransactions-NtqKVZ4y.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-D13rXkSg.js → Status.vue_vue_type_script_setup_true_lang-DiLHaz81.js} +1 -1
  18. package/dist/{Terminal-BuAbeq_u.js → Terminal-Dp4YfQLn.js} +5 -5
  19. package/dist/{TerminalSetting-DtkRiJ-N.js → TerminalSetting-22VMhd8q.js} +3 -3
  20. package/dist/{Transaction-CGkWGf8H.js → Transaction-BiT6BRmx.js} +6 -6
  21. package/dist/{Transaction-CbLXwJ6U.js → Transaction-JFDOKyml.js} +9 -9
  22. package/dist/{TransactionOld-B4axindL.js → TransactionOld-CmRVIeU2.js} +6 -6
  23. package/dist/{app-DtktuAyo.js → app-DKtypFfA.js} +23 -23
  24. package/dist/app.js +1 -1
  25. package/dist/{assets-ChQw3_h_.js → assets-lFgK3KQx.js} +1 -1
  26. package/dist/{grafana-ZadS2TAl.js → grafana-BRpcfaCo.js} +1 -1
  27. package/dist/{index-BXRGlmD3.js → index-9ABD__aA.js} +1 -1
  28. package/dist/{index-DJumZDHb.js → index-CFxxPCNY.js} +1 -1
  29. package/dist/{index-Danmh2r0.js → index-CHX0p0Dm.js} +1 -1
  30. package/dist/{index-BVqqyhEi.js → index-DTD9SWXp.js} +1 -1
  31. package/dist/{index-Cr0VbxyI.js → index-QTsd1BO1.js} +4653 -4661
  32. package/dist/{index-BxzMGmCQ.js → index-Ur-VjIjX.js} +26 -23
  33. package/dist/{index-DLZeFbnj.js → index-VWqgxrIV.js} +1 -1
  34. package/dist/{index-sGfw2TZV.js → index-hKHpA30o.js} +1 -1
  35. package/dist/{index-BBDlHcZ5.js → index-s7pe9sTx.js} +1 -1
  36. package/dist/{index.vue_vue_type_script_setup_true_lang-DY9xkB-6.js → index.vue_vue_type_script_setup_true_lang-QCvHWbIq.js} +1 -1
  37. package/dist/package.json +1 -1
  38. package/dist/{payout-account-5IQ3sdbp.js → payout-account-CGaqvbMg.js} +3 -3
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/package.json +1 -1
@@ -1,65 +1,68 @@
1
- import { g as n, b as a, o as r, d as i } from "./index-Cr0VbxyI.js";
2
- import { h as u } from "./moment-h96o7c8I.js";
3
- import { d as m } from "./index-BVqqyhEi.js";
4
- const c = {
1
+ import { g as t, b as a, o as u, d as m } from "./index-QTsd1BO1.js";
2
+ import { h as d } from "./moment-h96o7c8I.js";
3
+ import { d as b } from "./index-DTD9SWXp.js";
4
+ const w = {
5
5
  async read(s) {
6
- return i(
6
+ return m(
7
7
  await a().get("/payments/onboard-submissions", {
8
8
  params: { ...s }
9
9
  })
10
10
  );
11
11
  },
12
12
  async readById(s) {
13
- return n(
13
+ return t(
14
14
  await a().get(`/payments/onboard-submissions/${s}`)
15
15
  );
16
16
  },
17
17
  async previewDocument(s) {
18
- const t = await a().get(
18
+ const n = await a().get(
19
19
  `payments/onboard-submissions/${s}/document`,
20
20
  { responseType: "blob" }
21
21
  );
22
- r(t.data);
22
+ u(n.data);
23
23
  },
24
24
  async sendDocument(s) {
25
- return n(
25
+ return t(
26
26
  await a().post(
27
27
  `payments/onboard-submissions/${s}/send`
28
28
  )
29
29
  );
30
30
  },
31
- async reviewById(s, t) {
32
- return n(
31
+ async reviewById(s, n) {
32
+ return t(
33
33
  await a().put(
34
34
  `/payments/onboard-submissions/${s}`,
35
- t
35
+ n
36
36
  )
37
37
  );
38
38
  },
39
- async getById(s, t) {
40
- return n(
39
+ async getById(s, n) {
40
+ return t(
41
41
  await a().get(
42
- `restaurants/${t}/onboard-submissions/${s}`
42
+ `restaurants/${n}/onboard-submissions/${s}`
43
43
  )
44
44
  );
45
45
  },
46
46
  async getByRestaurant(s) {
47
- return n(
47
+ return t(
48
48
  await a().get(
49
49
  `restaurants/${s}/onboard-submissions`
50
50
  )
51
51
  );
52
52
  },
53
- async uploadDocument(s, t, o) {
54
- const e = u().toISOString();
55
- return await m.upload(
56
- `restaurant/${s}/documents/${t}/${e}.pdf`,
57
- o,
53
+ async uploadDocument(s, n, e) {
54
+ var r;
55
+ const i = d().toISOString(), o = (r = e.name.toLowerCase().match(/\.([a-z0-9]+)$/)) == null ? void 0 : r[1];
56
+ if (!o)
57
+ throw new Error("Unable to determine file extension from filename");
58
+ return await b.upload(
59
+ `restaurant/${s}/documents/${n}/${i}.${o}`,
60
+ e,
58
61
  s
59
62
  );
60
63
  },
61
64
  async updateSubmission(s) {
62
- return n(
65
+ return t(
63
66
  await a().put(
64
67
  `restaurants/${s.restaurantId}/onboard-submissions`,
65
68
  s
@@ -68,5 +71,5 @@ const c = {
68
71
  }
69
72
  };
70
73
  export {
71
- c as o
74
+ w as o
72
75
  };
@@ -1,4 +1,4 @@
1
- import { g as a, b as t, p as r, f as i, d as s } from "./index-Cr0VbxyI.js";
1
+ import { g as a, b as t, p as r, f as i, d as s } from "./index-QTsd1BO1.js";
2
2
  const y = {
3
3
  async create(e) {
4
4
  return s(
@@ -1,4 +1,4 @@
1
- import { g as n, b as s, f as u, d as e } from "./index-Cr0VbxyI.js";
1
+ import { g as n, b as s, f as u, d as e } from "./index-QTsd1BO1.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return e(
@@ -1,4 +1,4 @@
1
- import { g as e, b as r, d as o, h as y, l, r as i, f } from "./index-Cr0VbxyI.js";
1
+ import { g as e, b as r, d as o, h as y, l, r as i, f } from "./index-QTsd1BO1.js";
2
2
  import { h as a } from "./moment-h96o7c8I.js";
3
3
  const h = {
4
4
  async readBySettlementId(t) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as U, ref as r, resolveComponent as f, openBlock as g, createBlock as S, withCtx as z, createElementVNode as s, normalizeStyle as j, createElementBlock as B, Fragment as N, renderList as E, createVNode as c, computed as _, watch as I, onMounted as O, unref as C, toDisplayString as D, createCommentVNode as R, nextTick as G, normalizeClass as H } from "vue";
2
- import { u as J } from "./index-Cr0VbxyI.js";
2
+ import { u as J } from "./index-QTsd1BO1.js";
3
3
  import "@feedmepos/ui-library";
4
4
  const K = ["id"], L = /* @__PURE__ */ U({
5
5
  __name: "FmTableSelection",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.5.15-dev",
3
+ "version": "1.5.17-dev",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,7 +1,7 @@
1
- import { a as st, c as it, p as E, B as at } from "./index-Cr0VbxyI.js";
1
+ import { a as st, c as it, p as E, B as at } from "./index-QTsd1BO1.js";
2
2
  import { useCoreStore as ut } from "@feedmepos/mf-common";
3
- import { d as H } from "./index-BVqqyhEi.js";
4
- import { _ as ot } from "./app-DtktuAyo.js";
3
+ import { d as H } from "./index-DTD9SWXp.js";
4
+ import { _ as ot } from "./app-DKtypFfA.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {