@feedmepos/mf-payment 1.0.5 → 1.0.7-beta.1

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 (71) hide show
  1. package/dist/{PayoutAccount-BwBgS41r.js → PayoutAccount-BWu1OEyp.js} +5 -5
  2. package/dist/{PayoutAccount-B6kGeSLY.js → PayoutAccount-BxdMH0pl.js} +3 -3
  3. package/dist/PayoutAccountSelector.vue_vue_type_script_setup_true_lang-BiUxmjU6.js +110 -0
  4. package/dist/{PayoutAccountSetting-C1yeSNv8.js → PayoutAccountSetting-Zah_ik81.js} +4 -4
  5. package/dist/Restaurant-DJ01O5GW.js +305 -0
  6. package/dist/{RestaurantSetting-CWZAKz1A.js → RestaurantSetting-BD_aUt1i.js} +4 -4
  7. package/dist/{Settlement-BKwie9R8.js → Settlement-CTLIBeZ3.js} +3 -3
  8. package/dist/{Settlement-ByPXBNx1.js → Settlement-GGdPYvXy.js} +3 -3
  9. package/dist/{SettlementTransactions-BGGqKJgP.js → SettlementTransactions-C5j-0Qbw.js} +4 -4
  10. package/dist/{SettlementTransactions-BPEh0mSi.js → SettlementTransactions-D35tIT61.js} +4 -4
  11. package/dist/Terminal-Cwj4vJ6A.js +404 -0
  12. package/dist/{TerminalSetting-qklmRz3H.js → TerminalSetting-CACWRHic.js} +3 -3
  13. package/dist/TerminalTransaction-B15ICpAD.js +819 -0
  14. package/dist/{TerminalTransaction-YXcGJ2ne.js → TerminalTransaction-BTHSxX6X.js} +184 -154
  15. package/dist/Transaction-BZqqi5qu.js +145 -0
  16. package/dist/{Transaction-IDcY01Oi.js → Transaction-tcV33ufA.js} +81 -48
  17. package/dist/TransactionOld-CgJdUs7l.js +99 -0
  18. package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-qZA8uWSK.js +151 -0
  19. package/dist/api/terminal-transaction/index.d.ts +2 -1
  20. package/dist/api/transaction/index.d.ts +8 -1
  21. package/dist/{app-CjbTCCDJ.js → app-DdZ90tIN.js} +504 -491
  22. package/dist/app.js +1 -1
  23. package/dist/{assets-DjRoCcqv.js → assets-D-ueIWdy.js} +1 -1
  24. package/dist/components/PayoutAccountSelector.vue.d.ts +23 -0
  25. package/dist/grafana-BRDqWauv.js +49 -0
  26. package/dist/helpers/grafana.d.ts +7 -0
  27. package/dist/{index-DFePh4ct.js → index-BhsQ9z_N.js} +1 -1
  28. package/dist/{index-BWFqxSU3.js → index-Bm9-P-jw.js} +1 -1
  29. package/dist/{index-BEFlDEyV.js → index-CJe9qD5G.js} +1 -1
  30. package/dist/{index-CWGSYCJG.js → index-CUCDe-b5.js} +1 -1
  31. package/dist/{index-Bp_58SiC.js → index-DNxicJBc.js} +1 -1
  32. package/dist/{index-Dj_LwPBy.js → index-DQsvadHF.js} +8489 -8321
  33. package/dist/{index-BerQZMQW.js → index-NnxZlW-g.js} +1 -1
  34. package/dist/{index-CKyh0nlu.js → index-ocpyheIn.js} +13 -9
  35. package/dist/{index.vue_vue_type_script_setup_true_lang-BgTr7KWF.js → index.vue_vue_type_script_setup_true_lang-CoiUD4O5.js} +1 -1
  36. package/dist/model/transaction.d.ts +2 -0
  37. package/dist/package.json +3 -3
  38. package/dist/{payout-account-ByuqS-Ea.js → payout-account-DwUA_Nmx.js} +2 -2
  39. package/dist/router/index.d.ts +1 -0
  40. package/dist/stores/payoutAccount.d.ts +4 -4
  41. package/dist/transaction-D4S3PvuQ.js +118 -0
  42. package/dist/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
  44. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +4 -4
  45. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
  46. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
  47. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
  48. package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +8 -8
  49. package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -6
  50. package/dist/views/admin/restaurant/cell/LogButton.vue.d.ts +5 -0
  51. package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +2 -2
  52. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
  53. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +8 -8
  54. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -6
  55. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  56. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +8 -8
  57. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +8 -8
  58. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +8 -8
  59. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +8 -8
  60. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +8 -8
  61. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +3 -1
  62. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +1 -1
  63. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
  64. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  65. package/dist/views/transaction/TransactionOld.vue.d.ts +2 -0
  66. package/package.json +3 -3
  67. package/dist/Restaurant-B02jty0J.js +0 -262
  68. package/dist/Terminal-DX8v8WpM.js +0 -386
  69. package/dist/TerminalTransaction-64Bn6vh0.js +0 -261
  70. package/dist/Transaction-DMw2p-Wq.js +0 -238
  71. package/dist/transaction-Cyw84Cks.js +0 -101
@@ -0,0 +1,23 @@
1
+ import { type PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ event: {
4
+ type: PropType<("ORDERING" | "MARKETING")[]>;
5
+ };
6
+ modelValue: {
7
+ type: PropType<String>;
8
+ required: true;
9
+ };
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ "update:modelValue": (value: String) => any;
12
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
+ event: {
14
+ type: PropType<("ORDERING" | "MARKETING")[]>;
15
+ };
16
+ modelValue: {
17
+ type: PropType<String>;
18
+ required: true;
19
+ };
20
+ }>> & Readonly<{
21
+ "onUpdate:modelValue"?: ((value: String) => any) | undefined;
22
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
23
+ export default _default;
@@ -0,0 +1,49 @@
1
+ import { e as p } from "./index-DQsvadHF.js";
2
+ import { useCoreStore as m } from "@feedmepos/mf-common";
3
+ import { h as i } from "./moment-h96o7c8I.js";
4
+ const y = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (t, r, s) => ({
5
+ apq: {
6
+ datasource: "P214B5B846CF3925F",
7
+ queries: [
8
+ {
9
+ refId: "A",
10
+ datasource: {
11
+ type: "tempo",
12
+ uid: "P214B5B846CF3925F"
13
+ },
14
+ queryType: "traceql",
15
+ limit: 100,
16
+ tableType: "spans",
17
+ query: t,
18
+ spss: 1,
19
+ step: ""
20
+ }
21
+ ],
22
+ range: {
23
+ from: r,
24
+ to: s
25
+ }
26
+ }
27
+ }), b = (t, r) => {
28
+ const o = {
29
+ "resource.service.name": "payment-backend",
30
+ "resource.cluster": "production",
31
+ "resource.namespace": "apps-" + (m().currentCountry.value ?? p.F_COUNTRY.enum.MY).toLowerCase()
32
+ };
33
+ o["resource.cluster"] = "dev", t.forEach((e) => {
34
+ o[`${e.type}.${e.queryKey}`] = e.queryValue;
35
+ });
36
+ const a = `{
37
+ ${Object.keys(o).map((e) => `${e}="${o[e]}"`).join("&&")}
38
+ }`;
39
+ let n = "now", c = "now-1d";
40
+ if (r) {
41
+ const e = +i(r).toDate();
42
+ c = `${e}`, n = `${e + 24 * 60 * 60 * 1e3}`;
43
+ }
44
+ const u = d(a, c, n);
45
+ return y + `&panes=${encodeURIComponent(JSON.stringify(u))}&orgId=1`;
46
+ };
47
+ export {
48
+ b as g
49
+ };
@@ -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;
@@ -1,4 +1,4 @@
1
- import { a as s, b as e, g as t, c as r } from "./index-Dj_LwPBy.js";
1
+ import { a as s, b as e, g as t, c as r } from "./index-DQsvadHF.js";
2
2
  const m = {
3
3
  async create(a) {
4
4
  return s(
@@ -1,4 +1,4 @@
1
- import { b as r, g as e } from "./index-Dj_LwPBy.js";
1
+ import { b as r, g as e } from "./index-DQsvadHF.js";
2
2
  const n = {
3
3
  async readRestaurantById(t) {
4
4
  const a = await r().get(`/restaurants/${t}`);
@@ -1,4 +1,4 @@
1
- import { g as e, b as n } from "./index-Dj_LwPBy.js";
1
+ import { g as e, b as n } from "./index-DQsvadHF.js";
2
2
  const r = {
3
3
  async get(a) {
4
4
  return e(
@@ -1,4 +1,4 @@
1
- import { a as c, b as u, g as t, h as n } from "./index-Dj_LwPBy.js";
1
+ import { a as c, b as u, g as t, h as n } from "./index-DQsvadHF.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return c(
@@ -1,4 +1,4 @@
1
- import { g as o, b as i, j as d, l as y, k as f, i as c, r as m } from "./index-Dj_LwPBy.js";
1
+ import { g as o, b as i, j as d, l as y, k as f, i as c, r as m } from "./index-DQsvadHF.js";
2
2
  import { h as r } from "./moment-h96o7c8I.js";
3
3
  import { d as l } from "./dinero-CIVmXLL-.js";
4
4
  function* p(t, n) {