@feedmepos/mf-payment 1.5.16-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.5.16-dev",
3
+ "version": "1.5.17-dev",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,80 +0,0 @@
1
- import { g as e, b as t, o as u, d as p } from "./index-QTsd1BO1.js";
2
- import { h as d } from "./moment-h96o7c8I.js";
3
- import { d as c } from "./index-DTD9SWXp.js";
4
- const $ = {
5
- async read(s) {
6
- return p(
7
- await t().get("/payments/onboard-submissions", {
8
- params: { ...s }
9
- })
10
- );
11
- },
12
- async readById(s) {
13
- return e(
14
- await t().get(`/payments/onboard-submissions/${s}`)
15
- );
16
- },
17
- async previewDocument(s) {
18
- const n = await t().get(
19
- `payments/onboard-submissions/${s}/document`,
20
- { responseType: "blob" }
21
- );
22
- u(n.data);
23
- },
24
- async sendDocument(s) {
25
- return e(
26
- await t().post(
27
- `payments/onboard-submissions/${s}/send`
28
- )
29
- );
30
- },
31
- async reviewById(s, n) {
32
- return e(
33
- await t().put(
34
- `/payments/onboard-submissions/${s}`,
35
- n
36
- )
37
- );
38
- },
39
- async getById(s, n) {
40
- return e(
41
- await t().get(
42
- `restaurants/${n}/onboard-submissions/${s}`
43
- )
44
- );
45
- },
46
- async getByRestaurant(s) {
47
- return e(
48
- await t().get(
49
- `restaurants/${s}/onboard-submissions`
50
- )
51
- );
52
- },
53
- async uploadDocument(s, n, a) {
54
- const o = d().toISOString(), r = b(a);
55
- return await c.upload(
56
- `restaurant/${s}/documents/${n}/${o}.${r}`,
57
- a,
58
- s
59
- );
60
- },
61
- async updateSubmission(s) {
62
- return e(
63
- await t().put(
64
- `restaurants/${s.restaurantId}/onboard-submissions`,
65
- s
66
- )
67
- );
68
- }
69
- }, b = (s) => {
70
- var r, i, m;
71
- const n = (r = s.name.toLowerCase().match(/\.([a-z0-9]+)$/)) == null ? void 0 : r[1], a = (m = (i = s.type.toLowerCase().split("/").pop()) == null ? void 0 : i.split("+")[0]) == null ? void 0 : m.replace(/[^a-z0-9]/g, ""), o = n || a;
72
- if (!o)
73
- throw new Error(
74
- "Unable to determine file extension from name or MIME type"
75
- );
76
- return o;
77
- };
78
- export {
79
- $ as o
80
- };