@feedmepos/mf-payment 1.0.2-beta.1 → 1.0.2-beta.2

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 (24) hide show
  1. package/dist/{PayoutAccount-B1s3QYgu.js → PayoutAccount-WMo1Wi6d.js} +1 -1
  2. package/dist/{PayoutAccount-C9SN1Nvv.js → PayoutAccount-jO4yRGDD.js} +1 -1
  3. package/dist/Restaurant-BN04ZHox.js +302 -0
  4. package/dist/{SettlementTransactions-Dmhz9p1V.js → SettlementTransactions-DHoHXPTr.js} +1 -1
  5. package/dist/{SettlementTransactions-Xdb_g6jX.js → SettlementTransactions-Ye65VrAA.js} +1 -1
  6. package/dist/{Terminal-D-U0BVTe.js → Terminal-nWQ95k-W.js} +149 -131
  7. package/dist/{TerminalTransaction-Bh9FhkvQ.js → TerminalTransaction-D7Vy3Hn8.js} +181 -152
  8. package/dist/{Transaction-DA_TB9zD.js → Transaction-CeJhi9Hg.js} +1 -1
  9. package/dist/{Transaction-BedQtv8p.js → Transaction-DGoMEHjT.js} +123 -96
  10. package/dist/{app-O6Nt7xIq.js → app-CQiyh6x1.js} +202 -202
  11. package/dist/app.js +1 -1
  12. package/dist/grafana-CqkYm_ru.js +46 -0
  13. package/dist/helpers/grafana.d.ts +7 -0
  14. package/dist/model/transaction.d.ts +1 -0
  15. package/dist/package.json +1 -1
  16. package/dist/{payout-account-B7WTxG7n.js → payout-account-BHUNAuhN.js} +1 -1
  17. package/dist/{transaction-W49zE8RL.js → transaction-DGZWXzQ3.js} +8 -7
  18. package/dist/tsconfig.app.tsbuildinfo +1 -1
  19. package/dist/views/admin/restaurant/cell/LogButton.vue.d.ts +5 -0
  20. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +3 -1
  21. package/dist/views/admin/transaction/TransactionTable.vue.d.ts +2 -0
  22. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +1 -1
  23. package/package.json +1 -1
  24. package/dist/Restaurant-ewsvVw3P.js +0 -262
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as p, f as s } from "./app-O6Nt7xIq.js";
1
+ import { h as p, f as s } from "./app-CQiyh6x1.js";
2
2
  export {
3
3
  p as FmApp,
4
4
  s as routers
@@ -0,0 +1,46 @@
1
+ import { h as p } from "./moment-h96o7c8I.js";
2
+ const u = "https://grafana.feedme.farm/explore?schemaVersion=1", i = (s, t, r) => ({
3
+ apq: {
4
+ datasource: "P214B5B846CF3925F",
5
+ queries: [
6
+ {
7
+ refId: "A",
8
+ datasource: {
9
+ type: "tempo",
10
+ uid: "P214B5B846CF3925F"
11
+ },
12
+ queryType: "traceql",
13
+ limit: 100,
14
+ tableType: "spans",
15
+ query: s,
16
+ spss: 1,
17
+ step: ""
18
+ }
19
+ ],
20
+ range: {
21
+ from: t,
22
+ to: r
23
+ }
24
+ }
25
+ }), d = (s, t) => {
26
+ const r = {
27
+ "resource.service.name": "payment-backend",
28
+ "resource.cluster": "production"
29
+ };
30
+ r["resource.cluster"] = "dev", s.forEach((e) => {
31
+ r[`${e.type}.${e.queryKey}`] = e.queryValue;
32
+ });
33
+ const a = `{
34
+ ${Object.keys(r).map((e) => `${e}="${r[e]}"`).join("&&")}
35
+ }`;
36
+ let o = "now", n = "now-1d";
37
+ if (t) {
38
+ const e = +p(t).toDate();
39
+ n = `${e}`, o = `${e + 24 * 60 * 60 * 1e3}`;
40
+ }
41
+ const c = i(a, n, o);
42
+ return u + `&panes=${encodeURIComponent(JSON.stringify(c))}&orgId=1`;
43
+ };
44
+ export {
45
+ d as g
46
+ };
@@ -0,0 +1,7 @@
1
+ type QueryTarget = {
2
+ type: "span" | "resource";
3
+ queryKey: string;
4
+ queryValue: string;
5
+ };
6
+ declare const getGrafanaOtelURL: (extras: QueryTarget[], startAt?: string) => string;
7
+ export default getGrafanaOtelURL;
@@ -4,6 +4,7 @@ export interface PortalPaymentTransaction {
4
4
  id: string;
5
5
  payId: string;
6
6
  transactionAt: string;
7
+ createdAt: string;
7
8
  method: PaymentTransactionDtoOutput["method"];
8
9
  gateway: F_PAYMENT_GATEWAY_KEY;
9
10
  status: string;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.0.2-beta.1",
3
+ "version": "1.0.2-beta.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,4 +1,4 @@
1
- import { _ as Qe, C as et, r as Oe, S as tt, g as re, a as nt, b as rt, c as _e, d as st, F as it, e as ot } from "./app-O6Nt7xIq.js";
1
+ import { _ as Qe, C as et, r as Oe, S as tt, g as re, a as nt, b as rt, c as _e, d as st, F as it, e as ot } from "./app-CQiyh6x1.js";
2
2
  import { d as at, f as ut, _ as Y, m as ct } from "./index-1fXAFo2E.js";
3
3
  /**
4
4
  * @license
@@ -1,5 +1,5 @@
1
1
  import { g as a, b as n, r as o, l as i, i as c } from "./index-1fXAFo2E.js";
2
- import { h as r } from "./moment-h96o7c8I.js";
2
+ import { h as e } from "./moment-h96o7c8I.js";
3
3
  import { d as s } from "./dinero-CIVmXLL-.js";
4
4
  const f = {
5
5
  async readBySettlementId(t) {
@@ -13,8 +13,8 @@ const f = {
13
13
  return a(
14
14
  await n().get("/transactions", {
15
15
  params: {
16
- start: r(t.start).startOf("day").toISOString(),
17
- end: r(t.end).endOf("day").toISOString()
16
+ start: e(t.start).startOf("day").toISOString(),
17
+ end: e(t.end).endOf("day").toISOString()
18
18
  }
19
19
  })
20
20
  );
@@ -43,8 +43,8 @@ const f = {
43
43
  return a(
44
44
  await o().get("/transactions", {
45
45
  params: {
46
- start: r(t.start).startOf("day").toISOString(),
47
- end: r(t.end).endOf("day").toISOString()
46
+ start: e(t.start).startOf("day").toISOString(),
47
+ end: e(t.end).endOf("day").toISOString()
48
48
  }
49
49
  })
50
50
  );
@@ -60,7 +60,7 @@ const f = {
60
60
  return i(t, {
61
61
  filename: "transaction-report.xlsx",
62
62
  transformers: {
63
- method: (e) => (e == null ? void 0 : e.issuer) ?? ""
63
+ method: (r) => (r == null ? void 0 : r.issuer) ?? ""
64
64
  }
65
65
  });
66
66
  },
@@ -80,7 +80,8 @@ function d(t) {
80
80
  method: t.method,
81
81
  gateway: t.gateway,
82
82
  status: t.status,
83
- transactionAt: r(t.createdAt).format("YYYY-MM-DD hh:mm:ss"),
83
+ createdAt: e(t.createdAt).format("YYYY-MM-DD hh:mm:ss"),
84
+ transactionAt: e(t.completedAt).format("YYYY-MM-DD hh:mm:ss"),
84
85
  fdoAmount: t.amount,
85
86
  amount: s(t.amount).toFormat("$0.00"),
86
87
  fee: s(t.fee).toFormat("$0.00"),