@feedmepos/mf-payment 1.1.8-beta.1 → 1.1.9
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/{PayoutAccount-8i57shlX.js → PayoutAccount-BuYnCwX0.js} +3 -3
- package/dist/{PayoutAccount-D7-wVu54.js → PayoutAccount-D-UAfJmx.js} +5 -5
- package/dist/{PayoutAccountSetting-CMKwrL4M.js → PayoutAccountSetting-P3EEdPd8.js} +3 -3
- package/dist/{Restaurant-CRacG00G.js → Restaurant-DVfQgRDa.js} +4 -4
- package/dist/{RestaurantSetting-D8gT0OLI.js → RestaurantSetting-v4X04iUd.js} +3 -3
- package/dist/{Settlement-HpncV_wh.js → Settlement-B7E4lpuy.js} +3 -3
- package/dist/{Settlement-ChZcWUR2.js → Settlement-BvOHdyd-.js} +3 -3
- package/dist/{SettlementTransactions-B4foya_u.js → SettlementTransactions-C_QiVAAT.js} +3 -3
- package/dist/{SettlementTransactions-Qi1y0ELt.js → SettlementTransactions-XWF6lcgO.js} +3 -3
- package/dist/{Terminal-CPxZpDko.js → Terminal-uiqG_SS0.js} +6 -6
- package/dist/{TerminalSetting-BTjY6R2k.js → TerminalSetting-BZ13kPwS.js} +3 -3
- package/dist/{Transaction-DOJeGqKs.js → Transaction-73ONBoa8.js} +5 -5
- package/dist/{Transaction-BRsEkW-X.js → Transaction-Do-cIw77.js} +6 -6
- package/dist/{TransactionOld-ytcLv_RQ.js → TransactionOld-CImEq3E_.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-BadRdWve.js → TransactionTable.vue_vue_type_script_setup_true_lang-Ba83O4G-.js} +3 -3
- package/dist/{app-BTvVE_p8.js → app-BboGv5bA.js} +362 -362
- package/dist/app.js +1 -1
- package/dist/{assets-D3eyomsS.js → assets-SBx-FS2c.js} +1 -1
- package/dist/grafana-DKPCmS74.js +62 -0
- package/dist/helpers/grafana.d.ts +2 -1
- package/dist/{index-Qf0lEeEt.js → index-BMI-n_D8.js} +1456 -1456
- package/dist/{index-DztkVnZ_.js → index-CUXRAwm_.js} +1 -1
- package/dist/{index-DcXXLPgu.js → index-Cc3tk2uy.js} +1 -1
- package/dist/{index-GGA88cxn.js → index-DChD3CMr.js} +1 -1
- package/dist/{index-C3jOMHIB.js → index-DNVOx0Qk.js} +1 -1
- package/dist/{index-DgF6PpqL.js → index-DitA7AGz.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BfPw3DTP.js → index.vue_vue_type_script_setup_true_lang-Bk00_8Zw.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-G2OxuB1T.js → payout-account-DEWX726j.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/grafana-pHGBuON2.js +0 -54
package/dist/app.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { g, b as H, r as d, f as l, l as J, i as y, _ as f } from "./index-
|
1
|
+
import { g, b as H, r as d, f as l, l as J, i as y, _ as f } from "./index-BMI-n_D8.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 = {
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { e as c } from "./index-BMI-n_D8.js";
|
2
|
+
import { useCoreStore as p } from "@feedmepos/mf-common";
|
3
|
+
import { h as i } from "./moment-h96o7c8I.js";
|
4
|
+
const m = "https://grafana.feedme.farm/explore?schemaVersion=1", l = (t, r, o) => ({
|
5
|
+
apq: {
|
6
|
+
datasource: "P214B5B846CF3925F",
|
7
|
+
range: {
|
8
|
+
from: r,
|
9
|
+
to: o
|
10
|
+
},
|
11
|
+
queries: [
|
12
|
+
{
|
13
|
+
refId: "A",
|
14
|
+
datasource: {
|
15
|
+
type: "tempo",
|
16
|
+
uid: "P214B5B846CF3925F"
|
17
|
+
},
|
18
|
+
queryType: "traceqlSearch",
|
19
|
+
tableType: "traces",
|
20
|
+
limit: 10,
|
21
|
+
filters: t.map((e) => ({
|
22
|
+
id: e.id ?? e.queryKey,
|
23
|
+
operator: "=",
|
24
|
+
tag: e.queryKey,
|
25
|
+
scope: e.type,
|
26
|
+
valueType: "string",
|
27
|
+
value: typeof e.queryValue == "string" ? [e.queryValue] : e.queryValue
|
28
|
+
}))
|
29
|
+
}
|
30
|
+
]
|
31
|
+
}
|
32
|
+
}), g = (t, r) => {
|
33
|
+
const e = p().currentCountry.value ?? c.F_COUNTRY.enum.MY, a = [
|
34
|
+
{
|
35
|
+
id: "service-name",
|
36
|
+
type: "resource",
|
37
|
+
queryKey: "service.name",
|
38
|
+
queryValue: "payment-backend"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
type: "resource",
|
42
|
+
queryKey: "cluster",
|
43
|
+
queryValue: "production"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
type: "resource",
|
47
|
+
queryKey: "namespace",
|
48
|
+
queryValue: "apps-" + e.toLowerCase()
|
49
|
+
}
|
50
|
+
];
|
51
|
+
a.push(...t);
|
52
|
+
let u = "now", s = "now-1d";
|
53
|
+
if (r) {
|
54
|
+
const n = +i(r).add(-3, "hours").toDate();
|
55
|
+
s = `${n}`, u = `${n + 3 * 60 * 60 * 1e3}`;
|
56
|
+
}
|
57
|
+
const y = l(a, s, u);
|
58
|
+
return m + `&panes=${encodeURIComponent(JSON.stringify(y))}&orgId=1`;
|
59
|
+
};
|
60
|
+
export {
|
61
|
+
g
|
62
|
+
};
|
@@ -1,7 +1,8 @@
|
|
1
1
|
type QueryTarget = {
|
2
|
+
id?: string;
|
2
3
|
type: "span" | "resource";
|
3
4
|
queryKey: string;
|
4
|
-
queryValue: string;
|
5
|
+
queryValue: string | string[];
|
5
6
|
};
|
6
7
|
declare const getGrafanaOtelURL: (extras: QueryTarget[], startAt?: string) => string;
|
7
8
|
export default getGrafanaOtelURL;
|