@feedmepos/mf-payment 1.5.25-dev → 1.5.27-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/DocumentViewer.vue_vue_type_script_setup_true_lang-B0ThjP1l.js +94 -0
- package/dist/{OnboardForm-C5e22OaA.js → OnboardForm-BwuKMUCZ.js} +37 -38
- package/dist/{OnboardForm-DepiUIOr.js → OnboardForm-D3q5YAEo.js} +3 -3
- package/dist/{OnboardSubmission-V8jeo8Za.js → OnboardSubmission-BBdqr387.js} +1 -1
- package/dist/{OnboardSubmission-BB6qLr3p.js → OnboardSubmission-D958LAp4.js} +1 -1
- package/dist/{PayoutAccount-BmA6yq1q.js → PayoutAccount-DOrQRIwu.js} +2 -2
- package/dist/{PayoutAccount-BeC2YgKa.js → PayoutAccount-DPkIAGxl.js} +1 -1
- package/dist/{PayoutAccountSetting-DtFbOHVm.js → PayoutAccountSetting-BeN4xXv3.js} +241 -238
- package/dist/api/document/index.d.ts +1 -0
- package/dist/{app-BI2iqyvj.js → app-U26B2g_2.js} +126 -135
- package/dist/app.js +1 -1
- package/dist/components/DocumentViewer.vue.d.ts +1 -0
- package/dist/index-BxuQxtra.js +36 -0
- package/dist/{index-Ci4uxsSz.js → index-PpSEr3rk.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-Th15UywB.js → payout-account-9xeRIv-9.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/DocumentViewer.vue_vue_type_script_setup_true_lang-KCfloaC1.js +0 -89
- package/dist/index-ey7xefKL.js +0 -27
package/dist/app.js
CHANGED
|
@@ -6,6 +6,7 @@ type __VLS_Slots = {
|
|
|
6
6
|
type __VLS_Props = {
|
|
7
7
|
document?: string | null;
|
|
8
8
|
restaurantId?: string | null;
|
|
9
|
+
businessId?: string | null;
|
|
9
10
|
};
|
|
10
11
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
11
12
|
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { b as r, f as n } from "./index-DRKoa7dT.js";
|
|
2
|
+
const c = {
|
|
3
|
+
async upload(e, s, t) {
|
|
4
|
+
const a = (await n().post("/document/presign", {
|
|
5
|
+
file: e,
|
|
6
|
+
restaurantId: t
|
|
7
|
+
})).data.url;
|
|
8
|
+
if (!(await fetch(a, {
|
|
9
|
+
method: "PUT",
|
|
10
|
+
body: s,
|
|
11
|
+
headers: {
|
|
12
|
+
"Content-Type": s.type || "application/octet-stream"
|
|
13
|
+
}
|
|
14
|
+
})).ok)
|
|
15
|
+
throw new Error("Failed to upload document");
|
|
16
|
+
return e;
|
|
17
|
+
},
|
|
18
|
+
async view(e, s) {
|
|
19
|
+
return (await n().post("/document/view", {
|
|
20
|
+
file: e,
|
|
21
|
+
restaurantId: s
|
|
22
|
+
})).data.url;
|
|
23
|
+
},
|
|
24
|
+
async adminView(e, s, t) {
|
|
25
|
+
return (await r().post(
|
|
26
|
+
`/businesses/${s}/document/view`,
|
|
27
|
+
{
|
|
28
|
+
file: e,
|
|
29
|
+
restaurantId: t
|
|
30
|
+
}
|
|
31
|
+
)).data.url;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
c as d
|
|
36
|
+
};
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as st, c as it, p as E, B as at } from "./index-DRKoa7dT.js";
|
|
2
2
|
import { useCoreStore as ut } from "@feedmepos/mf-common";
|
|
3
|
-
import { d as H } from "./index-
|
|
4
|
-
import { _ as ot } from "./app-
|
|
3
|
+
import { d as H } from "./index-BxuQxtra.js";
|
|
4
|
+
import { _ as ot } from "./app-U26B2g_2.js";
|
|
5
5
|
var Q = { exports: {} };
|
|
6
6
|
(function(i, a) {
|
|
7
7
|
(function(t, m) {
|