@feedmepos/mf-payment 0.0.0-beta.4 → 0.0.0-beta.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/{PayoutAccount-CAFAjyuW.js → PDFViewer-CjH_C1uT.js} +10851 -14329
  2. package/dist/{PayoutAccount-CcKzwrCh.js → PayoutAccount-D_wbG2db.js} +99 -96
  3. package/dist/PayoutAccount-DbkSWOCs.js +3484 -0
  4. package/dist/PayoutAccountSetting-CIeos0md.js +425 -0
  5. package/dist/{Settlement-C4IEccV6.js → Settlement-BVGACeme.js} +3 -3
  6. package/dist/{Settlement-D4gdbOE0.js → Settlement-Ce48KHrc.js} +3 -3
  7. package/dist/{SettlementTransactions-DYelInkD.js → SettlementTransactions-DSRf8aEw.js} +124 -128
  8. package/dist/{SettlementTransactions-C3dnWHkD.js → SettlementTransactions-DwqDJZIs.js} +4 -4
  9. package/dist/{Terminal-Co7KPrrb.js → Terminal-ByKV2Rof.js} +3 -3
  10. package/dist/{TerminalTransaction-CtVBUTMg.js → TerminalTransaction-CLxdptzR.js} +4 -4
  11. package/dist/{Transaction-CvDEP2Uq.js → Transaction-CV1d08Ud.js} +4 -4
  12. package/dist/{Transaction-Rk0g5_Gn.js → Transaction-kTEec2Mj.js} +4 -4
  13. package/dist/api/payout/index.d.ts +2 -1
  14. package/dist/app.d.ts +3 -0
  15. package/dist/app.js +28 -22
  16. package/dist/{assets-CZ2m5tCN.js → assets-Cii0ihIL.js} +1 -1
  17. package/dist/components/PDFViewer.vue.d.ts +0 -2
  18. package/dist/error-K1CakhA9.js +6 -0
  19. package/dist/{index-B8_4waUa.js → index-Bmka-1lQ.js} +1 -1
  20. package/dist/index-CF56zGyu.js +40 -0
  21. package/dist/{index-CjCiGW2Y.js → index-Coz5aeIO.js} +1 -1
  22. package/dist/{index-DvzXwr90.js → index-DCPNrUDq.js} +1 -1
  23. package/dist/{index.vue_vue_type_script_setup_true_lang-y4tchjya.js → index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js} +1 -1
  24. package/dist/package.json +6 -6
  25. package/dist/{index-IE-8HK_2.js → payout-account-Cb3UeEgB.js} +705 -736
  26. package/dist/plugins.d.ts +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/{transaction-fdJNol6A.js → transaction-vRrBf3FN.js} +1 -1
  29. package/dist/tsconfig.app.tsbuildinfo +1 -1
  30. package/dist/views/admin/payout-account/PayoutAccountSetting.vue.d.ts +11 -1
  31. package/dist/views/admin/payout-account/cell/RateInput.vue.d.ts +8 -0
  32. package/dist/views/admin/payout-account/cell/TPlusInput.vue.d.ts +8 -0
  33. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +81 -0
  34. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +90 -0
  35. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +81 -0
  36. package/package.json +18 -18
package/dist/app.js CHANGED
@@ -1,15 +1,21 @@
1
- import { createRouter as R, createWebHistory as D, useRouter as S } from "vue-router";
2
- import { computed as d, watch as p, defineComponent as y, ref as I, resolveComponent as f, openBlock as b, createBlock as h, onMounted as T, onBeforeMount as w } from "vue";
3
- import { useCoreStore as u } from "@feedmepos/mf-common";
1
+ import { createRouter as R, createWebHistory as D, useRouter as I } from "vue-router";
2
+ import { computed as d, watch as p, defineComponent as y, ref as S, resolveComponent as f, openBlock as b, createBlock as h, onMounted as T, onBeforeMount as w } from "vue";
3
+ import { useCoreStore as c } from "@feedmepos/mf-common";
4
4
  import { defineStore as P } from "pinia";
5
- const c = [
5
+ const u = [
6
6
  {
7
7
  path: "/payment/admin/payout-accounts",
8
8
  name: "mf-payment-admin.payout-account",
9
9
  meta: {
10
10
  sidebarDisplay: "Payout Accounts"
11
11
  },
12
- component: () => import("./PayoutAccount-CcKzwrCh.js")
12
+ component: () => import("./PayoutAccount-D_wbG2db.js")
13
+ },
14
+ {
15
+ path: "/payment/admin/payout-accounts/:accountId",
16
+ name: "mf-payment-admin.payout-account-settings",
17
+ props: !0,
18
+ component: () => import("./PayoutAccountSetting-CIeos0md.js")
13
19
  },
14
20
  {
15
21
  path: "/payment/admin/transaction",
@@ -17,7 +23,7 @@ const c = [
17
23
  meta: {
18
24
  sidebarDisplay: "Transactions"
19
25
  },
20
- component: () => import("./Transaction-CvDEP2Uq.js")
26
+ component: () => import("./Transaction-CV1d08Ud.js")
21
27
  },
22
28
  {
23
29
  path: "/payment/admin/settlement",
@@ -25,13 +31,13 @@ const c = [
25
31
  meta: {
26
32
  sidebarDisplay: "Settlements"
27
33
  },
28
- component: () => import("./Settlement-D4gdbOE0.js")
34
+ component: () => import("./Settlement-Ce48KHrc.js")
29
35
  },
30
36
  {
31
37
  path: "/payment/admin/settlement/:settlementId",
32
38
  name: "mf-payment-admin.settlement-transaction",
33
39
  props: !0,
34
- component: () => import("./SettlementTransactions-DYelInkD.js")
40
+ component: () => import("./SettlementTransactions-DSRf8aEw.js")
35
41
  },
36
42
  {
37
43
  path: "/payment/admin/terminal",
@@ -39,7 +45,7 @@ const c = [
39
45
  meta: {
40
46
  sidebarDisplay: "Terminals"
41
47
  },
42
- component: () => import("./Terminal-Co7KPrrb.js")
48
+ component: () => import("./Terminal-ByKV2Rof.js")
43
49
  },
44
50
  {
45
51
  path: "/payment/admin/terminal-transaction",
@@ -47,7 +53,7 @@ const c = [
47
53
  meta: {
48
54
  sidebarDisplay: "Terminal Transactions"
49
55
  },
50
- component: () => import("./TerminalTransaction-CtVBUTMg.js")
56
+ component: () => import("./TerminalTransaction-CLxdptzR.js")
51
57
  }
52
58
  ], l = [
53
59
  {
@@ -57,7 +63,7 @@ const c = [
57
63
  {
58
64
  path: "/payment/payout-account",
59
65
  name: "mf-payment-payout-account",
60
- component: () => import("./PayoutAccount-CAFAjyuW.js"),
66
+ component: () => import("./PayoutAccount-DbkSWOCs.js"),
61
67
  meta: {
62
68
  sidebarDisplay: "Payout Accounts"
63
69
  }
@@ -65,7 +71,7 @@ const c = [
65
71
  {
66
72
  path: "/payment/transaction",
67
73
  name: "mf-payment-transaction",
68
- component: () => import("./Transaction-Rk0g5_Gn.js"),
74
+ component: () => import("./Transaction-kTEec2Mj.js"),
69
75
  meta: {
70
76
  sidebarDisplay: "Transactions"
71
77
  }
@@ -73,7 +79,7 @@ const c = [
73
79
  {
74
80
  path: "/payment/settlement",
75
81
  name: "mf-payment-settlement",
76
- component: () => import("./Settlement-C4IEccV6.js"),
82
+ component: () => import("./Settlement-BVGACeme.js"),
77
83
  meta: {
78
84
  sidebarDisplay: "Settlements"
79
85
  }
@@ -82,7 +88,7 @@ const c = [
82
88
  path: "/payment/settlement/:settlementId",
83
89
  name: "mf-payment-settlement-transaction",
84
90
  props: !0,
85
- component: () => import("./SettlementTransactions-C3dnWHkD.js")
91
+ component: () => import("./SettlementTransactions-DwqDJZIs.js")
86
92
  }
87
93
  ], A = P("iframe", () => {
88
94
  const o = {
@@ -97,10 +103,10 @@ const c = [
97
103
  };
98
104
  }), C = R({
99
105
  history: D(),
100
- routes: [...l, ...c]
106
+ routes: [...l, ...u]
101
107
  });
102
108
  C.beforeEach(async (o) => {
103
- const { sessionUser: n, currentRestaurant: a, readRestaurants: m, changeRestaurant: i } = u();
109
+ const { sessionUser: n, currentRestaurant: a, readRestaurants: m, changeRestaurant: i } = c();
104
110
  if (o.name.startsWith("admin"))
105
111
  return n.value ? !0 : new Promise((r) => {
106
112
  const s = p(n, (e) => {
@@ -118,10 +124,10 @@ C.beforeEach(async (o) => {
118
124
  }
119
125
  return !0;
120
126
  });
121
- const V = /* @__PURE__ */ y({
127
+ const g = /* @__PURE__ */ y({
122
128
  __name: "AppSidebar",
123
129
  setup(o) {
124
- const n = u(), a = S(), m = I(a.currentRoute.value.name);
130
+ const n = c(), a = I(), m = S(a.currentRoute.value.name);
125
131
  p(a.currentRoute, () => {
126
132
  m.value = a.currentRoute.value.name;
127
133
  });
@@ -136,7 +142,7 @@ const V = /* @__PURE__ */ y({
136
142
  return a.push({ name: e.name });
137
143
  }
138
144
  };
139
- }).filter((e) => !!e), r = c.map((e) => {
145
+ }).filter((e) => !!e), r = u.map((e) => {
140
146
  var t;
141
147
  if ((t = e.meta) != null && t.sidebarDisplay)
142
148
  return {
@@ -174,18 +180,18 @@ const V = /* @__PURE__ */ y({
174
180
  }), F = /* @__PURE__ */ y({
175
181
  __name: "App",
176
182
  setup(o) {
177
- const { state: n } = A(), a = u();
183
+ const { state: n } = A(), a = c();
178
184
  return T(() => {
179
185
  n.isIframe && parent.postMessage({ event: "ready" }, "*");
180
186
  }), w(() => {
181
- a.registerSidebarComponent(V);
187
+ a.registerSidebarComponent(g);
182
188
  }), (m, i) => {
183
189
  const r = f("RouterView");
184
190
  return b(), h(r);
185
191
  };
186
192
  }
187
193
  }), M = [
188
- ...c,
194
+ ...u,
189
195
  ...l
190
196
  ];
191
197
  export {
@@ -1,4 +1,4 @@
1
- import "./index-DvzXwr90.js";
1
+ import "./index-DCPNrUDq.js";
2
2
  const e = (a) => `/images/gateway/${a}`, t = (a) => `/images/method/${a}`;
3
3
  function g(a) {
4
4
  switch (a) {
@@ -5,7 +5,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
5
5
  };
6
6
  height: {
7
7
  type: NumberConstructor;
8
- required: true;
9
8
  };
10
9
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
10
  pdf: {
@@ -14,7 +13,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
14
13
  };
15
14
  height: {
16
15
  type: NumberConstructor;
17
- required: true;
18
16
  };
19
17
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
20
18
  "top-right"?(_: {}): any;
@@ -0,0 +1,6 @@
1
+ function e(n) {
2
+ return typeof n == "string" ? n.toUpperCase() : n instanceof Error ? n.message : "unknown error";
3
+ }
4
+ export {
5
+ e as u
6
+ };
@@ -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 { f as y } from "./index-DvzXwr90.js";
3
+ import { f as y } from "./index-DCPNrUDq.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {
@@ -0,0 +1,40 @@
1
+ import { g as c, b as u, a as t, h as n } from "./index-DCPNrUDq.js";
2
+ const o = {
3
+ async read(a) {
4
+ return c(
5
+ await u().get("payout-accounts", {
6
+ params: { ...a }
7
+ })
8
+ );
9
+ },
10
+ async readById(a) {
11
+ return t(
12
+ await u().get(`payout-accounts/${a}`)
13
+ );
14
+ },
15
+ async updateById(a, s) {
16
+ return t(
17
+ await u().put(`payout-accounts/${a}`, {
18
+ ...s
19
+ })
20
+ );
21
+ },
22
+ async readBusinessPayoutAccounts() {
23
+ return t(await n().get("/payout-accounts"));
24
+ },
25
+ async createBusinessPayoutAccounts(a) {
26
+ return t(
27
+ await n().post("/payout-accounts", { ...a })
28
+ );
29
+ },
30
+ async updateBusinessPayoutAccounts(a, s) {
31
+ return t(
32
+ await n().put(`/payout-accounts/${a}`, {
33
+ ...s
34
+ })
35
+ );
36
+ }
37
+ };
38
+ export {
39
+ o as p
40
+ };
@@ -1,4 +1,4 @@
1
- import { a as e, b as a, r as s } from "./index-DvzXwr90.js";
1
+ import { a as e, b as a, r as s } from "./index-DCPNrUDq.js";
2
2
  const n = {
3
3
  async updateRemark(t) {
4
4
  return e(
@@ -39968,7 +39968,7 @@ const vo = {
39968
39968
  }
39969
39969
  }, OT = [hf.F_COUNTRY.enum.SG];
39970
39970
  function CT(a) {
39971
- const o = `${OT.includes(a) ? `.${a.toLowerCase()}` : ""}.feedmeapi.com`, m = `https://portal-v2${o}`, g = `https://account${o}`;
39971
+ const o = `-dev${OT.includes(a) ? `.${a.toLowerCase()}` : ""}.feedmeapi.com`, m = `https://portal-v2${o}`, g = `https://account${o}`;
39972
39972
  return {
39973
39973
  portalBackendUrl: m,
39974
39974
  accountBackendUrl: g
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, ref as r, resolveComponent as c, openBlock as _, createBlock as M, withCtx as z, createVNode as i, createElementVNode as u, normalizeStyle as T, createElementBlock as U, Fragment as $, renderList as j, computed as V, watch as D, onMounted as E, unref as L, toDisplayString as C, normalizeClass as O } from "vue";
2
- import { u as Q } from "./index-DvzXwr90.js";
2
+ import { u as Q } from "./index-DCPNrUDq.js";
3
3
  import "@feedmepos/ui-library";
4
4
  const R = ["id"], P = /* @__PURE__ */ S({
5
5
  __name: "FmTableSelection",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "0.0.0-beta.0",
3
+ "version": "0.0.0-beta.6",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -14,20 +14,20 @@
14
14
  "./style": "./dist/style.css"
15
15
  },
16
16
  "scripts": {
17
+ "postinstall": "yarn --cwd .. && yarn --cwd ../package/common && yarn --cwd ../package/entity",
17
18
  "lint": "eslint --ext .ts,vue --ignore-path .gitignore . --fix",
18
- "dev": "vite --mode dev",
19
+ "dev": "vite --mode dev",
19
20
  "prod": "vite --mode prod",
20
21
  "preview": "vite preview",
21
22
  "test": "jest",
22
- "serve:prod": "yarn && vite --mode production",
23
23
  "build:dts": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist",
24
24
  "build-types": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false",
25
25
  "build:mf:dev": "vite build --mode fmmf:dev",
26
26
  "build:mf:prod": "vite build --mode fmmf:prod",
27
- "build-only:dev": "pnpm build:mf:dev && pnpm build:dts && pnpm build-types && cp package.json ./dist && cd dist && pnpm version 0.0.0-beta.0 --no-git-tag-version",
27
+ "build-only:dev": "pnpm build:mf:dev && pnpm build:dts && pnpm build-types && cp package.json ./dist",
28
28
  "build-only:prod": "pnpm build:mf:prod && pnpm build:dts && pnpm build-types && cp package.json ./dist",
29
- "deploy:dev": "pnpm run build-only:dev && pnpm publish --tag beta --no-git-checks .",
30
- "deploy:prod": "pnpm run build-only:prod && pnpm publish --no-git-checks ."
29
+ "deploy:dev": "pnpm run build-only:dev && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .",
30
+ "deploy:prod": "pnpm run build-only:prod && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks ."
31
31
  },
32
32
  "dependencies": {
33
33
  "@casl/ability": "^3.2.0",