@feedmepos/mf-payment 1.6.22-dev → 1.6.24-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.
- package/dist/{Actions.vue_vue_type_script_setup_true_lang-BZofpuYY.js → Actions.vue_vue_type_script_setup_true_lang-CfpBus8E.js} +1 -1
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CuW3Nx8r.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-D86X4SBT.js} +2 -2
- package/dist/{Chargeback-CXIUq_9h.js → Chargeback-D3g1A6nb.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-BW0TJ_7C.js → DocumentViewer.vue_vue_type_script_setup_true_lang-Buv8z4ni.js} +1 -1
- package/dist/{OnboardForm-COz_JnmO.js → OnboardForm-CHir9Btu.js} +5 -5
- package/dist/{OnboardForm-D5vxzJVr.js → OnboardForm-D57O0vs3.js} +5 -5
- package/dist/{OnboardSubmission-CkyQrENS.js → OnboardSubmission-BOEj8OAe.js} +2 -2
- package/dist/{OnboardSubmission-DZefEOz9.js → OnboardSubmission-Y6Khfcf2.js} +5 -5
- package/dist/{PayoutAccount-DXDHaxDu.js → PayoutAccount-CYLQa1q0.js} +5 -5
- package/dist/{PayoutAccount-W2bVnU-T.js → PayoutAccount-Cx-vRKx0.js} +5 -5
- package/dist/{PayoutAccountSetting-BBOBZQns.js → PayoutAccountSetting-h-ECAjUg.js} +420 -389
- package/dist/{Restaurant-IdQ7m4qi.js → Restaurant-C3JG5jTm.js} +4 -4
- package/dist/{RestaurantSetting-2j1gYzvJ.js → RestaurantSetting-CVJGDhr3.js} +3 -3
- package/dist/{Settlement-DpMYIEqK.js → Settlement-CFj4ZHEj.js} +3 -3
- package/dist/{Settlement-BnguSEm6.js → Settlement-YDfJfpqD.js} +4 -4
- package/dist/{SettlementTransactions-bMLTG5sW.js → SettlementTransactions-Bqs6AjVt.js} +4 -4
- package/dist/{SettlementTransactions-DLGs7xjN.js → SettlementTransactions-C8xr7D9B.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-BTAkT3nz.js → Status.vue_vue_type_script_setup_true_lang-DuBsXgzP.js} +1 -1
- package/dist/{Terminal-CeIuM4y3.js → Terminal-BFgiH70m.js} +5 -5
- package/dist/{TerminalSetting-Dra4Ft4R.js → TerminalSetting-Bv9ugacI.js} +4 -4
- package/dist/TextInputDialog.vue_vue_type_script_setup_true_lang-C3AeZqwO.js +95 -0
- package/dist/{Transaction-D3LQFkw3.js → Transaction-D-mLQ70N.js} +10 -10
- package/dist/{Transaction-ys9CZ4mq.js → Transaction-DVFos9iG.js} +10 -10
- package/dist/{TransactionOld-BNEFr_L7.js → TransactionOld-YmgueJYY.js} +7 -7
- package/dist/{app-CQymPCak.js → app-BZEXvbmu.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-S_7DFK9K.js → assets--_mQamiD.js} +1 -1
- package/dist/{grafana-BNCpO4vr.js → grafana-DhN7GnGA.js} +1 -1
- package/dist/helpers/sanitizePng.d.ts +12 -0
- package/dist/{index-B6GNZLI-.js → index-C-l3GAhP.js} +1 -1
- package/dist/{index-iYgDBwJt.js → index-CMQx91rD.js} +1 -1
- package/dist/{index-BmJTxwQX.js → index-CeZEM77q.js} +1 -1
- package/dist/{index-C7w0oBUy.js → index-Cjcuoaiu.js} +1 -1
- package/dist/index-CjdeCxlU.js +126 -0
- package/dist/{index-DUDrWdj1.js → index-DCMc1PDw.js} +1 -1
- package/dist/{index-DihkHX9B.js → index-DomE1UrM.js} +1 -1
- package/dist/{index-Ou6UzoUq.js → index-XZHPpZuF.js} +1 -1
- package/dist/{index-zuk3uS1U.js → index-rgwK36IL.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DLjF7aFe.js → index.vue_vue_type_script_setup_true_lang-BNgnzmHn.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-DhwDnR1Y.js → payout-account-DJnCUWF1.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/transaction/TextInputDialog.vue.d.ts +42 -2
- package/package.json +1 -1
- package/dist/TextInputDialog.vue_vue_type_script_setup_true_lang-BvGYVca0.js +0 -55
- package/dist/index-BiSQ4v-X.js +0 -97
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { type PropType } from
|
|
2
|
-
import { z } from
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
type SelectItem = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
3
7
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
8
|
label: {
|
|
5
9
|
type: StringConstructor;
|
|
@@ -13,6 +17,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
13
17
|
type: PropType<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
14
18
|
default: () => z.ZodString;
|
|
15
19
|
};
|
|
20
|
+
selectableReasons: {
|
|
21
|
+
type: PropType<SelectItem[]>;
|
|
22
|
+
default: () => never[];
|
|
23
|
+
};
|
|
24
|
+
otherValue: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
otherLabel: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
otherPlaceholder: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
16
36
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
37
|
label: {
|
|
18
38
|
type: StringConstructor;
|
|
@@ -26,9 +46,29 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
26
46
|
type: PropType<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
27
47
|
default: () => z.ZodString;
|
|
28
48
|
};
|
|
49
|
+
selectableReasons: {
|
|
50
|
+
type: PropType<SelectItem[]>;
|
|
51
|
+
default: () => never[];
|
|
52
|
+
};
|
|
53
|
+
otherValue: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
otherLabel: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
otherPlaceholder: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
29
65
|
}>> & Readonly<{}>, {
|
|
30
66
|
label: string;
|
|
31
67
|
placeholder: string;
|
|
32
68
|
schema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
69
|
+
selectableReasons: SelectItem[];
|
|
70
|
+
otherValue: string;
|
|
71
|
+
otherLabel: string;
|
|
72
|
+
otherPlaceholder: string;
|
|
33
73
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
34
74
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, ref as b, resolveComponent as l, openBlock as x, createBlock as y, withCtx as V, createVNode as r, unref as s, createElementVNode as v } from "vue";
|
|
2
|
-
import { useDialogChild as g } from "@feedmepos/ui-library";
|
|
3
|
-
import { s as m, z as C } from "./validator-CTlVogBQ.js";
|
|
4
|
-
const T = { class: "flex justify-end mb-2" }, j = /* @__PURE__ */ _({
|
|
5
|
-
__name: "TextInputDialog",
|
|
6
|
-
props: {
|
|
7
|
-
label: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: "Value"
|
|
10
|
-
},
|
|
11
|
-
placeholder: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: ""
|
|
14
|
-
},
|
|
15
|
-
schema: {
|
|
16
|
-
type: Object,
|
|
17
|
-
default: () => m().min(1, "Value is required")
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
setup(e) {
|
|
21
|
-
const c = e, { emitData: i, emitAction: u } = g(), t = b(""), a = m().trim().pipe(c.schema), p = () => {
|
|
22
|
-
const o = a.safeParse(t.value);
|
|
23
|
-
o.success && (i(o.data), u("primary"));
|
|
24
|
-
};
|
|
25
|
-
return (o, n) => {
|
|
26
|
-
const d = l("FmTextField"), f = l("FmButton"), h = l("FmForm");
|
|
27
|
-
return x(), y(h, {
|
|
28
|
-
class: "flex flex-col gap-16",
|
|
29
|
-
onValidationSuccess: p
|
|
30
|
-
}, {
|
|
31
|
-
default: V(() => [
|
|
32
|
-
r(d, {
|
|
33
|
-
modelValue: t.value,
|
|
34
|
-
"onUpdate:modelValue": n[0] || (n[0] = (F) => t.value = F),
|
|
35
|
-
label: e.label,
|
|
36
|
-
placeholder: e.placeholder,
|
|
37
|
-
rules: s(C)(s(a)),
|
|
38
|
-
autofocus: ""
|
|
39
|
-
}, null, 8, ["modelValue", "label", "placeholder", "rules"]),
|
|
40
|
-
v("div", T, [
|
|
41
|
-
r(f, {
|
|
42
|
-
type: "submit",
|
|
43
|
-
variant: "primary",
|
|
44
|
-
label: "Confirm"
|
|
45
|
-
})
|
|
46
|
-
])
|
|
47
|
-
]),
|
|
48
|
-
_: 1
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
export {
|
|
54
|
-
j as _
|
|
55
|
-
};
|
package/dist/index-BiSQ4v-X.js
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { g as n, b as a, o as u, a as m } from "./index-BmJTxwQX.js";
|
|
2
|
-
import { h as b } from "./moment-h96o7c8I.js";
|
|
3
|
-
import { d } from "./index-Ou6UzoUq.js";
|
|
4
|
-
const w = {
|
|
5
|
-
async read(s) {
|
|
6
|
-
return m(
|
|
7
|
-
await a().get("/payments/onboard-submissions", {
|
|
8
|
-
params: { ...s }
|
|
9
|
-
})
|
|
10
|
-
);
|
|
11
|
-
},
|
|
12
|
-
async readById(s) {
|
|
13
|
-
return n(
|
|
14
|
-
await a().get(`/payments/onboard-submissions/${s}`)
|
|
15
|
-
);
|
|
16
|
-
},
|
|
17
|
-
async previewDocument(s) {
|
|
18
|
-
const t = await a().get(
|
|
19
|
-
`payments/onboard-submissions/${s}/document`,
|
|
20
|
-
{ responseType: "blob" }
|
|
21
|
-
);
|
|
22
|
-
u(t.data);
|
|
23
|
-
},
|
|
24
|
-
async sendDocument(s) {
|
|
25
|
-
return n(
|
|
26
|
-
await a().post(
|
|
27
|
-
`payments/onboard-submissions/${s}/send`
|
|
28
|
-
)
|
|
29
|
-
);
|
|
30
|
-
},
|
|
31
|
-
async reviewById(s, t) {
|
|
32
|
-
return n(
|
|
33
|
-
await a().put(
|
|
34
|
-
`/payments/onboard-submissions/${s}`,
|
|
35
|
-
t
|
|
36
|
-
)
|
|
37
|
-
);
|
|
38
|
-
},
|
|
39
|
-
async getById(s, t) {
|
|
40
|
-
return n(
|
|
41
|
-
await a().get(
|
|
42
|
-
`restaurants/${t}/onboard-submissions/${s}`
|
|
43
|
-
)
|
|
44
|
-
);
|
|
45
|
-
},
|
|
46
|
-
async getByRestaurant(s) {
|
|
47
|
-
return n(
|
|
48
|
-
await a().get(
|
|
49
|
-
`restaurants/${s}/onboard-submissions`
|
|
50
|
-
)
|
|
51
|
-
);
|
|
52
|
-
},
|
|
53
|
-
async getOnboardSubmissionTyroAuthUrl(s) {
|
|
54
|
-
return n(
|
|
55
|
-
await a().get(
|
|
56
|
-
`restaurants/${s}/onboard-submissions/tyro/auth`
|
|
57
|
-
)
|
|
58
|
-
);
|
|
59
|
-
},
|
|
60
|
-
async getTyroLocations(s) {
|
|
61
|
-
return n(
|
|
62
|
-
await a().get(
|
|
63
|
-
`restaurants/${s}/onboard-submissions/tyro/locations`
|
|
64
|
-
)
|
|
65
|
-
);
|
|
66
|
-
},
|
|
67
|
-
async bindTyroLocation(s, t) {
|
|
68
|
-
return n(
|
|
69
|
-
await a().put(
|
|
70
|
-
`restaurants/${s}/onboard-submissions/tyro/location`,
|
|
71
|
-
t
|
|
72
|
-
)
|
|
73
|
-
);
|
|
74
|
-
},
|
|
75
|
-
async uploadDocument(s, t, o) {
|
|
76
|
-
var r;
|
|
77
|
-
const i = b().toISOString(), e = (r = o.name.toLowerCase().match(/\.([a-z0-9]+)$/)) == null ? void 0 : r[1];
|
|
78
|
-
if (!e)
|
|
79
|
-
throw new Error("Unable to determine file extension from filename");
|
|
80
|
-
return await d.upload(
|
|
81
|
-
`restaurant/${s}/documents/${t}/${i}.${e}`,
|
|
82
|
-
o,
|
|
83
|
-
s
|
|
84
|
-
);
|
|
85
|
-
},
|
|
86
|
-
async updateSubmission(s) {
|
|
87
|
-
return n(
|
|
88
|
-
await a().put(
|
|
89
|
-
`restaurants/${s.restaurantId}/onboard-submissions`,
|
|
90
|
-
s
|
|
91
|
-
)
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
export {
|
|
96
|
-
w as o
|
|
97
|
-
};
|