@feedmepos/mf-payment 1.6.13-dev → 1.6.13

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 (46) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-CRy-UQpe.js → Actions.vue_vue_type_script_setup_true_lang-DgYlOO7v.js} +1 -1
  2. package/dist/{Chargeback-Cg9Xe6iD.js → Chargeback-BCR8NXxY.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CiqJxutL.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BZihV-9L.js} +1 -1
  4. package/dist/{OnboardForm-mETWu1dk.js → OnboardForm-B2uDNwfW.js} +5 -5
  5. package/dist/{OnboardForm-DQBU7D0V.js → OnboardForm-DB5IV7lk.js} +5 -5
  6. package/dist/{OnboardSubmission-CdAKhGo2.js → OnboardSubmission-BJRFZWxp.js} +5 -5
  7. package/dist/{OnboardSubmission-DhR5UmjI.js → OnboardSubmission-CdYi65sp.js} +2 -2
  8. package/dist/{PayoutAccount-z4BGvlhv.js → PayoutAccount-CDNEMcFZ.js} +5 -5
  9. package/dist/{PayoutAccount-DTUZj1yi.js → PayoutAccount-Dr5jWhjs.js} +5 -5
  10. package/dist/{PayoutAccountSetting-DHaTKlRM.js → PayoutAccountSetting-CM02lRrX.js} +6 -6
  11. package/dist/{Restaurant-Bzz0qnnj.js → Restaurant-B1CG7och.js} +4 -4
  12. package/dist/{RestaurantSetting-BvAl6Vo-.js → RestaurantSetting-JaIEcKG8.js} +3 -3
  13. package/dist/{Settlement-DBhzPPJS.js → Settlement-D42o7f6K.js} +3 -3
  14. package/dist/{Settlement-CPB3Cojm.js → Settlement-XJJU4C1d.js} +4 -4
  15. package/dist/{SettlementTransactions-BwSrt1vA.js → SettlementTransactions-BQvrbT7_.js} +4 -4
  16. package/dist/{SettlementTransactions-BsOGpbtn.js → SettlementTransactions-CDJ4Spo_.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-BSX8ZhuG.js → Status.vue_vue_type_script_setup_true_lang-Dh-4px4J.js} +1 -1
  18. package/dist/{Terminal-CzM77vSF.js → Terminal-BX5s0KPo.js} +5 -5
  19. package/dist/{TerminalSetting-DtmOsDl0.js → TerminalSetting-BHvZry6M.js} +4 -4
  20. package/dist/Transaction-CrOuTo4I.js +582 -0
  21. package/dist/{Transaction-DBh0KtR-.js → Transaction-DkXPDI68.js} +10 -10
  22. package/dist/{TransactionOld-CAORQJw2.js → TransactionOld-FY8kYZ6i.js} +7 -7
  23. package/dist/{app-D4_0cKed.js → app-EJ-8quMw.js} +171 -180
  24. package/dist/app.js +1 -1
  25. package/dist/{assets-BEqu4LTS.js → assets-CR0IBpF3.js} +1 -2
  26. package/dist/{grafana-BC92XSGj.js → grafana-CA92XuSE.js} +1 -1
  27. package/dist/helpers/sanitizePng.d.ts +12 -0
  28. package/dist/index-B1Ecvw7D.js +126 -0
  29. package/dist/{index-DqZVPkHG.js → index-B8XKPxIS.js} +1 -1
  30. package/dist/{index-9bLqrnE-.js → index-BHUevAM-.js} +1 -1
  31. package/dist/{index-B4BQXToQ.js → index-CwMoBIwF.js} +1 -1
  32. package/dist/{index-Vzwov74c.js → index-D2VitZIq.js} +1 -1
  33. package/dist/{index-DyFv4ofl.js → index-DS6vKp4i.js} +1 -1
  34. package/dist/{index-C-K9TPBG.js → index-DSnaLrvO.js} +1 -1
  35. package/dist/{index-2pJ6aK3N.js → index-DahuwxQa.js} +1 -1
  36. package/dist/{index-lJgQkdhr.js → index-DvREC7Gf.js} +1 -1
  37. package/dist/{index.vue_vue_type_script_setup_true_lang-Dh_I8dOY.js → index.vue_vue_type_script_setup_true_lang-BMnikW5d.js} +1 -1
  38. package/dist/model/transaction.d.ts +0 -1
  39. package/dist/package.json +2 -2
  40. package/dist/{payout-account-D5UsGVu2.js → payout-account-kbcALiXc.js} +3 -3
  41. package/dist/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +1 -1
  43. package/package.json +1 -1
  44. package/dist/Transaction-B1Hw-Qs-.js +0 -636
  45. package/dist/index-BBSrL5Hb.js +0 -97
  46. package/dist/views/admin/transaction/TransactionMetadataDialog.vue.d.ts +0 -5
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as a, i as e, r as i } from "./app-D4_0cKed.js";
1
+ import { b as a, i as e, r as i } from "./app-EJ-8quMw.js";
2
2
  import "@feedmepos/mf-financing";
3
3
  import "vue";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { p as Q } from "./index-C-K9TPBG.js";
1
+ import { p as Q } from "./index-DSnaLrvO.js";
2
2
  import { d as w } from "./dinero-CIVmXLL-.js";
3
3
  import { h as V } from "./moment-h96o7c8I.js";
4
4
  import { defineComponent as c, resolveComponent as R, openBlock as l, createBlock as L, normalizeClass as T, withCtx as z, createElementVNode as p, toDisplayString as r } from "vue";
@@ -47,7 +47,6 @@ function k(A) {
47
47
  billId: A == null ? void 0 : A.billId,
48
48
  seqNumber: A == null ? void 0 : A.seqNumber,
49
49
  seqNumberBinded: (A == null ? void 0 : A.seqNumberBinded) ?? !1,
50
- callbackResponse: A.callbackResponse,
51
50
  flags: {
52
51
  notify: A.status === "SUCCESS" && !!A.notifyUrl && A._id.length > 6,
53
52
  refund: A.status === "SUCCESS",
@@ -1,4 +1,4 @@
1
- import { e as c } from "./index-C-K9TPBG.js";
1
+ import { e as c } from "./index-DSnaLrvO.js";
2
2
  import { useCoreStore as p } from "@feedmepos/mf-common";
3
3
  import { h as n } from "./moment-h96o7c8I.js";
4
4
  const i = "https://grafana.feedme.farm/explore?schemaVersion=1", m = (o, r, t) => ({
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Re-encode PNG images to non-interlaced format using the Canvas API.
3
+ *
4
+ * gopdf (our Go PDF generator) does not support Adam7 interlacing.
5
+ * Drawing any image to a canvas and exporting it as PNG always produces
6
+ * a non-interlaced PNG, so this is a lightweight client-side fix.
7
+ */
8
+ /**
9
+ * Convert a PNG File into a non-interlaced PNG File using an off-screen canvas.
10
+ * Non-PNG files are returned unchanged.
11
+ */
12
+ export declare function sanitizePngFile(file: File): Promise<File>;
@@ -0,0 +1,126 @@
1
+ import { g as o, b as e, o as m, a as c } from "./index-DSnaLrvO.js";
2
+ import { h as d } from "./moment-h96o7c8I.js";
3
+ import { d as b } from "./index-B8XKPxIS.js";
4
+ async function g(t) {
5
+ if (t.type !== "image/png") return t;
6
+ const a = await p(t), s = document.createElement("canvas");
7
+ s.width = a.width, s.height = a.height;
8
+ const n = s.getContext("2d");
9
+ if (!n) throw new Error("Failed to get 2D canvas context");
10
+ return n.drawImage(a, 0, 0), new Promise((i, u) => {
11
+ s.toBlob((r) => {
12
+ if (!r) {
13
+ u(new Error("Canvas PNG export failed"));
14
+ return;
15
+ }
16
+ i(
17
+ new File([r], t.name, { type: "image/png", lastModified: t.lastModified })
18
+ );
19
+ }, "image/png");
20
+ });
21
+ }
22
+ function p(t) {
23
+ return new Promise((a, s) => {
24
+ const n = new Image();
25
+ n.onload = () => {
26
+ URL.revokeObjectURL(n.src), a(n);
27
+ }, n.onerror = () => {
28
+ URL.revokeObjectURL(n.src), s(new Error("Failed to load image from File"));
29
+ }, n.src = URL.createObjectURL(t);
30
+ });
31
+ }
32
+ const $ = {
33
+ async read(t) {
34
+ return c(
35
+ await e().get("/payments/onboard-submissions", {
36
+ params: { ...t }
37
+ })
38
+ );
39
+ },
40
+ async readById(t) {
41
+ return o(
42
+ await e().get(`/payments/onboard-submissions/${t}`)
43
+ );
44
+ },
45
+ async previewDocument(t) {
46
+ const a = await e().get(
47
+ `payments/onboard-submissions/${t}/document`,
48
+ { responseType: "blob" }
49
+ );
50
+ m(a.data);
51
+ },
52
+ async sendDocument(t) {
53
+ return o(
54
+ await e().post(
55
+ `payments/onboard-submissions/${t}/send`
56
+ )
57
+ );
58
+ },
59
+ async reviewById(t, a) {
60
+ return o(
61
+ await e().put(
62
+ `/payments/onboard-submissions/${t}`,
63
+ a
64
+ )
65
+ );
66
+ },
67
+ async getById(t, a) {
68
+ return o(
69
+ await e().get(
70
+ `restaurants/${a}/onboard-submissions/${t}`
71
+ )
72
+ );
73
+ },
74
+ async getByRestaurant(t) {
75
+ return o(
76
+ await e().get(
77
+ `restaurants/${t}/onboard-submissions`
78
+ )
79
+ );
80
+ },
81
+ async getOnboardSubmissionTyroAuthUrl(t) {
82
+ return o(
83
+ await e().get(
84
+ `restaurants/${t}/onboard-submissions/tyro/auth`
85
+ )
86
+ );
87
+ },
88
+ async getTyroLocations(t) {
89
+ return o(
90
+ await e().get(
91
+ `restaurants/${t}/onboard-submissions/tyro/locations`
92
+ )
93
+ );
94
+ },
95
+ async bindTyroLocation(t, a) {
96
+ return o(
97
+ await e().put(
98
+ `restaurants/${t}/onboard-submissions/tyro/location`,
99
+ a
100
+ )
101
+ );
102
+ },
103
+ async uploadDocument(t, a, s) {
104
+ var r;
105
+ const n = (r = s.name.toLowerCase().match(/\.([a-z0-9]+)$/)) == null ? void 0 : r[1];
106
+ if (!n)
107
+ throw new Error("Unable to determine file extension from filename");
108
+ const i = n === "png" ? await g(s) : s, u = d().toISOString();
109
+ return await b.upload(
110
+ `restaurant/${t}/documents/${a}/${u}.${n}`,
111
+ i,
112
+ t
113
+ );
114
+ },
115
+ async updateSubmission(t) {
116
+ return o(
117
+ await e().put(
118
+ `restaurants/${t.restaurantId}/onboard-submissions`,
119
+ t
120
+ )
121
+ );
122
+ }
123
+ };
124
+ export {
125
+ $ as o
126
+ };
@@ -1,4 +1,4 @@
1
- import { b as r, c as p } from "./index-C-K9TPBG.js";
1
+ import { b as r, c as p } from "./index-DSnaLrvO.js";
2
2
  const i = {
3
3
  async upload(e, s, t) {
4
4
  const o = (await p().post("/document/presign", {
@@ -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 { g as y } from "./app-D4_0cKed.js";
3
+ import { g as y } from "./app-EJ-8quMw.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {
@@ -1,4 +1,4 @@
1
- import { g as n, b as e, a as o, d as m, l, c as i, r as f } from "./index-C-K9TPBG.js";
1
+ import { g as n, b as e, a as o, d as m, l, c as i, r as f } from "./index-DSnaLrvO.js";
2
2
  import { h as a } from "./moment-h96o7c8I.js";
3
3
  const w = {
4
4
  async readBySettlementId(t) {
@@ -1,4 +1,4 @@
1
- import { b as a, g as t, p as r, c as i, a as s } from "./index-C-K9TPBG.js";
1
+ import { b as a, g as t, p as r, c as i, a as s } from "./index-DSnaLrvO.js";
2
2
  const m = {
3
3
  async create(e) {
4
4
  return s(
@@ -1,4 +1,4 @@
1
- import { b as r, g as e } from "./index-C-K9TPBG.js";
1
+ import { b as r, g as e } from "./index-DSnaLrvO.js";
2
2
  const n = {
3
3
  async readRestaurantById(t) {
4
4
  const a = await r().get(`/restaurants/${t}`);
@@ -1,4 +1,4 @@
1
- import { c as V, a as nR, g as rR } from "./app-D4_0cKed.js";
1
+ import { c as V, a as nR, g as rR } from "./app-EJ-8quMw.js";
2
2
  import { useCoreStore as Bu } from "@feedmepos/mf-common";
3
3
  import { ref as iR } from "vue";
4
4
  var gh = {}, il = {}, y = {}, ah = {}, Vm = {}, Hm = {}, Oc = {};
@@ -1,4 +1,4 @@
1
- import { g as n, b as s, c as u, a as e } from "./index-C-K9TPBG.js";
1
+ import { g as n, b as s, c as u, a as e } from "./index-DSnaLrvO.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return e(
@@ -1,4 +1,4 @@
1
- import { g as o, c as m, b as s, d as l, l as c, f as d, h as y } from "./index-C-K9TPBG.js";
1
+ import { g as o, c as m, b as s, d as l, l as c, f as d, h as y } from "./index-DSnaLrvO.js";
2
2
  import { h as a } from "./moment-h96o7c8I.js";
3
3
  import { d as f } from "./dinero-CIVmXLL-.js";
4
4
  function* p(t, r) {
@@ -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-C-K9TPBG.js";
2
+ import { u as J } from "./index-DSnaLrvO.js";
3
3
  import "@feedmepos/ui-library";
4
4
  const K = ["id"], L = /* @__PURE__ */ U({
5
5
  __name: "FmTableSelection",
@@ -26,7 +26,6 @@ export interface PortalPaymentTransaction {
26
26
  businessId: string | null | undefined;
27
27
  settlementId: string;
28
28
  settlementAt: string;
29
- callbackResponse: unknown | null | undefined;
30
29
  flags: {
31
30
  query: boolean;
32
31
  refund: boolean;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.6.13-dev",
3
+ "version": "1.6.13",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -108,4 +108,4 @@
108
108
  "vite": "^5.2.11",
109
109
  "vue-tsc": "^2.0.11"
110
110
  }
111
- }
111
+ }
@@ -1,7 +1,7 @@
1
- import { p as E, B as st } from "./index-C-K9TPBG.js";
2
- import { g as it, c as at, _ as ut } from "./app-D4_0cKed.js";
1
+ import { p as E, B as st } from "./index-DSnaLrvO.js";
2
+ import { g as it, c as at, _ as ut } from "./app-EJ-8quMw.js";
3
3
  import { useCoreStore as ot } from "@feedmepos/mf-common";
4
- import { d as H } from "./index-DqZVPkHG.js";
4
+ import { d as H } from "./index-B8XKPxIS.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {