@feedmepos/mf-payment 1.1.3 → 1.1.5

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 (52) hide show
  1. package/dist/{PayoutAccount-R63Nclyl.js → PayoutAccount-D1FdkkEB.js} +3 -3
  2. package/dist/{PayoutAccount-QN56UYcn.js → PayoutAccount-DyNM5jJq.js} +5 -5
  3. package/dist/{PayoutAccountSetting-BZLLqj9W.js → PayoutAccountSetting-BHu0tltk.js} +3 -3
  4. package/dist/{Restaurant-DPtLZz_t.js → Restaurant-B0jj-feX.js} +4 -4
  5. package/dist/{RestaurantSetting-BKEXfi-2.js → RestaurantSetting-Xc0315pb.js} +3 -3
  6. package/dist/{Settlement-FrNSATfN.js → Settlement-CHzijt6f.js} +3 -3
  7. package/dist/{Settlement-C9XlPvOC.js → Settlement-CzgVFFOR.js} +3 -3
  8. package/dist/{SettlementTransactions-B97pfd3e.js → SettlementTransactions-Dy2RhINp.js} +3 -3
  9. package/dist/{SettlementTransactions-vIaQzZLb.js → SettlementTransactions-aXV-F0pq.js} +3 -3
  10. package/dist/{Terminal-CJNtq_6a.js → Terminal-D7xiQWl_.js} +5 -5
  11. package/dist/{TerminalSetting-CZz6PeyG.js → TerminalSetting-CWeUuXae.js} +3 -3
  12. package/dist/{Transaction-DYXeI4Ja.js → Transaction-CoywkBWq.js} +6 -6
  13. package/dist/{Transaction-C0sBCFLp.js → Transaction-wOv5gZLF.js} +69 -64
  14. package/dist/{TransactionOld-BbmFHV9b.js → TransactionOld-DxBgAdY3.js} +4 -4
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-B2WaeKlW.js → TransactionTable.vue_vue_type_script_setup_true_lang-CqsLOwBR.js} +3 -3
  16. package/dist/{app-BZBrPMGI.js → app-DHXjFYAA.js} +270 -270
  17. package/dist/app.js +1 -1
  18. package/dist/{assets-DK8qcvvE.js → assets-BoIaLJKv.js} +4 -6
  19. package/dist/components/CursorTable/index.vue.d.ts +3 -3
  20. package/dist/components/PagingTable/index.vue.d.ts +3 -3
  21. package/dist/{grafana-D9CUCenW.js → grafana-BbID9mKu.js} +8 -8
  22. package/dist/{index-1ek_J3MH.js → index-C9CuhJsa.js} +1 -1
  23. package/dist/{index-DzKrZEv8.js → index-CTAk5p0r.js} +1 -1
  24. package/dist/{index-CsecEOgx.js → index-DTpvCGlg.js} +1 -1
  25. package/dist/{index-BJG6JQZI.js → index-Dfv3QjcX.js} +7053 -6995
  26. package/dist/{index-c7WpvZdX.js → index-XH7vUgqJ.js} +1 -1
  27. package/dist/{index-Ba92Mso-.js → index-jgCYe5QM.js} +1 -1
  28. package/dist/{index.vue_vue_type_script_setup_true_lang-CrVUe88c.js → index.vue_vue_type_script_setup_true_lang-CGhB2AEC.js} +1 -1
  29. package/dist/model/payout-account.d.ts +1 -1
  30. package/dist/package.json +2 -2
  31. package/dist/{payout-account-DJwjD_DL.js → payout-account-Bkz4uMWL.js} +2 -2
  32. package/dist/stores/payoutAccount.d.ts +4 -4
  33. package/dist/tsconfig.app.tsbuildinfo +1 -1
  34. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
  35. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +6 -6
  36. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +6 -6
  37. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
  38. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
  39. package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +2 -2
  40. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
  41. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
  42. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
  43. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +4 -4
  44. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +2 -2
  45. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +4 -4
  46. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +4 -4
  47. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +4 -4
  48. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +4 -4
  49. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
  50. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +12 -12
  51. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +6 -6
  52. package/package.json +2 -2
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as e, i as r, f as o } from "./app-BZBrPMGI.js";
1
+ import { h as e, i as r, f as o } from "./app-DHXjFYAA.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g, b as H, r as c, f as E, l as v, i as l, _ as J } from "./index-BJG6JQZI.js";
1
+ import { g, b as H, r as c, f as E, l as v, i as l, _ as J } from "./index-Dfv3QjcX.js";
2
2
  import { h as C } from "./moment-h96o7c8I.js";
3
3
  import { d as O } from "./dinero-CIVmXLL-.js";
4
4
  const K = {
@@ -92,7 +92,7 @@ const K = {
92
92
  fee: (w) => w.split(" ")[1],
93
93
  payout: (w) => w.split(" ")[1],
94
94
  transactionAt: (w) => C(w).format("YYYY-MM-DD HH:mm:ss"),
95
- refundedAt: (w) => C(w).format("YYYY-MM-DD HH:mm:ss")
95
+ refundedAt: (w) => w ? C(w).format("YYYY-MM-DD HH:mm:ss") : "-"
96
96
  }
97
97
  });
98
98
  },
@@ -122,7 +122,7 @@ function u(A) {
122
122
  let Q = "", B = "";
123
123
  switch (!0) {
124
124
  case !!A.terminal:
125
- B = "Terminal", Q = A.terminal;
125
+ B = A.terminalType ?? "Device", Q = A.terminal;
126
126
  break;
127
127
  case !!A.restaurant:
128
128
  B = "Restaurant", Q = A.restaurant;
@@ -145,9 +145,7 @@ function u(A) {
145
145
  transactionAt: C(A.callbackAt ?? A.createdAt).format(
146
146
  "YYYY-MM-DD HH:mm:ss"
147
147
  ),
148
- refundedAt: C(A.refundedAt ?? A.createdAt).format(
149
- "YYYY-MM-DD HH:mm:ss"
150
- ),
148
+ refundedAt: A.refundedAt ? C(A.refundedAt).format("YYYY-MM-DD HH:mm:ss") : "",
151
149
  fdoAmount: A.gatewayAmount ?? A.amount,
152
150
  amount: O(A.gatewayAmount ?? A.amount).toFormat("$0.00"),
153
151
  fee: O(A.fee).toFormat("$0.00"),
@@ -23,20 +23,20 @@ export type CursorTableController<T> = {
23
23
  replaceData: (index: number, value: T) => void;
24
24
  };
25
25
  declare const _default: <T extends unknown, R extends unknown>(__VLS_props: {
26
- readonly "onRow-click"?: ((data: T) => any) | undefined;
27
26
  readonly columnDefs: ColumnDef<R>[];
28
27
  readonly rowsDefs: (a: T) => R;
29
28
  readonly paginate: (limit: number, cursor: string) => Promise<PaginatedResult<T>>;
29
+ readonly "onRow-click"?: ((data: T) => any) | undefined;
30
30
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
31
31
  attrs: any;
32
32
  slots: {};
33
33
  emit: (event: 'row-click', data: T) => any;
34
34
  } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<CursorTableController<T>>) => void) | undefined, __VLS_setup?: Promise<{
35
35
  props: {
36
- readonly "onRow-click"?: ((data: T) => any) | undefined;
37
36
  readonly columnDefs: ColumnDef<R>[];
38
37
  readonly rowsDefs: (a: T) => R;
39
38
  readonly paginate: (limit: number, cursor: string) => Promise<PaginatedResult<T>>;
39
+ readonly "onRow-click"?: ((data: T) => any) | undefined;
40
40
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
41
41
  expose(exposed: import("vue").ShallowUnwrapRef<CursorTableController<T>>): void;
42
42
  attrs: any;
@@ -47,10 +47,10 @@ declare const _default: <T extends unknown, R extends unknown>(__VLS_props: {
47
47
  }> & {
48
48
  __ctx?: {
49
49
  props: {
50
- readonly "onRow-click"?: ((data: T) => any) | undefined;
51
50
  readonly columnDefs: ColumnDef<R>[];
52
51
  readonly rowsDefs: (a: T) => R;
53
52
  readonly paginate: (limit: number, cursor: string) => Promise<PaginatedResult<T>>;
53
+ readonly "onRow-click"?: ((data: T) => any) | undefined;
54
54
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
55
55
  expose(exposed: import("vue").ShallowUnwrapRef<CursorTableController<T>>): void;
56
56
  attrs: any;
@@ -7,20 +7,20 @@ export type PagingTableController = {
7
7
  reset: () => {};
8
8
  };
9
9
  declare const _default: <T extends unknown, R extends unknown>(__VLS_props: {
10
- readonly "onRow-click"?: ((data: T) => any) | undefined;
11
10
  readonly columnDefs: ColumnDef<R>[];
12
11
  readonly rowsDefs: (a: T) => R;
13
12
  readonly paginate: (limit: number, page: number) => Promise<PaginatedResponse<T>>;
13
+ readonly "onRow-click"?: ((data: T) => any) | undefined;
14
14
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
15
15
  attrs: any;
16
16
  slots: {};
17
17
  emit: (event: 'row-click', data: T) => any;
18
18
  } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<PagingTableController>) => void) | undefined, __VLS_setup?: Promise<{
19
19
  props: {
20
- readonly "onRow-click"?: ((data: T) => any) | undefined;
21
20
  readonly columnDefs: ColumnDef<R>[];
22
21
  readonly rowsDefs: (a: T) => R;
23
22
  readonly paginate: (limit: number, page: number) => Promise<PaginatedResponse<T>>;
23
+ readonly "onRow-click"?: ((data: T) => any) | undefined;
24
24
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
25
25
  expose(exposed: import("vue").ShallowUnwrapRef<PagingTableController>): void;
26
26
  attrs: any;
@@ -31,10 +31,10 @@ declare const _default: <T extends unknown, R extends unknown>(__VLS_props: {
31
31
  }> & {
32
32
  __ctx?: {
33
33
  props: {
34
- readonly "onRow-click"?: ((data: T) => any) | undefined;
35
34
  readonly columnDefs: ColumnDef<R>[];
36
35
  readonly rowsDefs: (a: T) => R;
37
36
  readonly paginate: (limit: number, page: number) => Promise<PaginatedResponse<T>>;
37
+ readonly "onRow-click"?: ((data: T) => any) | undefined;
38
38
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
39
39
  expose(exposed: import("vue").ShallowUnwrapRef<PagingTableController>): void;
40
40
  attrs: any;
@@ -1,12 +1,12 @@
1
- import { e as y } from "./index-BJG6JQZI.js";
1
+ import { e as y } from "./index-Dfv3QjcX.js";
2
2
  import { useCoreStore as p } from "@feedmepos/mf-common";
3
3
  import { h as m } from "./moment-h96o7c8I.js";
4
- const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (t, e, o) => ({
4
+ const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (o, e, t) => ({
5
5
  apq: {
6
6
  datasource: "P998741A58ED2B411",
7
7
  range: {
8
8
  from: e,
9
- to: o
9
+ to: t
10
10
  },
11
11
  queries: [
12
12
  {
@@ -18,11 +18,11 @@ const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (t, e, o) =
18
18
  queryType: "search",
19
19
  service: "payment-backend",
20
20
  limit: 1e3,
21
- tags: t.map((r) => `${r.queryKey}=${r.queryValue}`).join(" ")
21
+ tags: o.map((r) => `${r.queryKey}=${r.queryValue}`).join(" ")
22
22
  }
23
23
  ]
24
24
  }
25
- }), g = (t, e) => {
25
+ }), g = (o, e) => {
26
26
  const r = p().currentCountry.value ?? y.F_COUNTRY.enum.MY, a = [
27
27
  // {
28
28
  // type: "resource",
@@ -40,11 +40,11 @@ const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (t, e, o) =
40
40
  queryValue: "apps-" + r.toLowerCase()
41
41
  }
42
42
  ];
43
- a.push(...t);
43
+ a.push(...o);
44
44
  let s = "now", n = "now-1d";
45
45
  if (e) {
46
- const u = +m(e).toDate();
47
- n = `${u}`, s = `${u + 24 * 60 * 60 * 1e3}`;
46
+ const u = +m(e).add(-3, "hours").toDate();
47
+ n = `${u}`, s = `${u + 3 * 60 * 60 * 1e3}`;
48
48
  }
49
49
  const c = d(a, n, s);
50
50
  return i + `&panes=${encodeURIComponent(JSON.stringify(c))}&orgId=1`;
@@ -1,4 +1,4 @@
1
- import { d as u, b as s, g as t, f as e } from "./index-BJG6JQZI.js";
1
+ import { d as u, b as s, g as t, f as e } from "./index-Dfv3QjcX.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return u(
@@ -1,4 +1,4 @@
1
- import { d as s, b as t, g as a, f as r, h as i } from "./index-BJG6JQZI.js";
1
+ import { d as s, b as t, g as a, f as r, h as i } from "./index-Dfv3QjcX.js";
2
2
  const y = {
3
3
  async create(e) {
4
4
  return s(
@@ -1,4 +1,4 @@
1
- import { g as r, b as i, j as d, l as y, k as f, i as l, r as m } from "./index-BJG6JQZI.js";
1
+ import { g as r, b as i, j as d, l as y, k as f, i as l, r as m } from "./index-Dfv3QjcX.js";
2
2
  import { h as o } from "./moment-h96o7c8I.js";
3
3
  import { d as u } from "./dinero-CIVmXLL-.js";
4
4
  function* p(t, n) {