@feedmepos/mf-payment 0.0.0-beta.12 → 0.0.0-beta.14

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 (47) hide show
  1. package/dist/{AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js → AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js} +1 -1
  2. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  3. package/dist/{Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js → Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js} +9 -9
  4. package/dist/Modal-DB8M9o1T.js +13 -0
  5. package/dist/{PayoutAccount-CeLwLffx.js → PayoutAccount-BHwKD9si.js} +288 -3160
  6. package/dist/{PayoutAccount-DQm62Wf2.js → PayoutAccount-DuqITwjB.js} +38 -35
  7. package/dist/{PayoutAccountSetting-CIeos0md.js → PayoutAccountSetting-cOThY31e.js} +4 -4
  8. package/dist/Settlement-Dr6Rmkid.js +142 -0
  9. package/dist/Settlement-JkH7-Wd_.js +146 -0
  10. package/dist/{SettlementTransactions-CYES5YMF.js → SettlementTransactions-BGfDReId.js} +5 -5
  11. package/dist/{SettlementTransactions-B1v0f-0o.js → SettlementTransactions-CSz0G9iE.js} +101 -108
  12. package/dist/Terminal-DQqtUzV2.js +318 -0
  13. package/dist/TerminalSetting-T0Sxq_z0.js +176 -0
  14. package/dist/{TerminalTransaction-LofDTVwC.js → TerminalTransaction-C0g2mMBJ.js} +19 -19
  15. package/dist/Transaction-BKBh8jOT.js +249 -0
  16. package/dist/{Transaction-CaOxsIQH.js → Transaction-DVS8SkBi.js} +80 -74
  17. package/dist/api/index.d.ts +7 -0
  18. package/dist/api/settlement/index.d.ts +7 -13
  19. package/dist/api/terminal/index.d.ts +8 -1
  20. package/dist/api/transaction/index.d.ts +6 -2
  21. package/dist/app.js +46 -40
  22. package/dist/{assets-DnuLfRTO.js → assets-nIQ0r4oP.js} +1 -1
  23. package/dist/components/AsyncButton.vue.d.ts +21 -0
  24. package/dist/components/CursorTable/index.vue.d.ts +16 -5
  25. package/dist/{index-Bmka-1lQ.js → index-CIIojtd5.js} +1 -1
  26. package/dist/index-CxYMbN69.js +37 -0
  27. package/dist/index-DflgpHga.js +55560 -0
  28. package/dist/{index-Coz5aeIO.js → index-DhPhiNvt.js} +13 -23
  29. package/dist/{index-CF56zGyu.js → index-DqQBDo_Y.js} +1 -1
  30. package/dist/index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js +155 -0
  31. package/dist/package.json +3 -3
  32. package/dist/{payout-account-OR4juI9N.js → payout-account-FNZygqj-.js} +130 -130
  33. package/dist/{transaction-vRrBf3FN.js → transaction-B4rEbejx.js} +28 -15
  34. package/dist/tsconfig.app.tsbuildinfo +1 -1
  35. package/dist/validator-D5jtpt9A.js +2877 -0
  36. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +61 -0
  37. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  38. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +58 -9
  39. package/dist/views/admin/terminal/tabs/Fiuu.vue.d.ts +72 -0
  40. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +63 -0
  41. package/package.json +3 -3
  42. package/dist/Settlement-BVGACeme.js +0 -136
  43. package/dist/Settlement-Ce48KHrc.js +0 -132
  44. package/dist/Terminal-ByKV2Rof.js +0 -204
  45. package/dist/Transaction-C-X11abA.js +0 -242
  46. package/dist/index-DCPNrUDq.js +0 -40075
  47. package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
@@ -0,0 +1,21 @@
1
+ import { type FmButtonProps } from '@feedmepos/ui-library';
2
+ import type { PropType } from 'vue';
3
+ type AsyncFunction = () => Promise<void>;
4
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ button: {
6
+ type: PropType<FmButtonProps>;
7
+ };
8
+ handler: {
9
+ type: PropType<AsyncFunction>;
10
+ required: true;
11
+ };
12
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
+ button: {
14
+ type: PropType<FmButtonProps>;
15
+ };
16
+ handler: {
17
+ type: PropType<AsyncFunction>;
18
+ required: true;
19
+ };
20
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
+ export default _default;
@@ -1,7 +1,18 @@
1
1
  import { type PaginatedResult } from '@feedmepos/payment-entity';
2
2
  import { type ColumnDef } from '@feedmepos/ui-library';
3
- export type CursorTableController = {
4
- refreshQuery: () => {};
3
+ export type CursorTableController<T> = {
4
+ /**
5
+ * Reset pagination and all loaded data, and perform load for first page data
6
+ */
7
+ reset: () => {};
8
+ /**
9
+ * All loaded data
10
+ */
11
+ data: () => T[];
12
+ /**
13
+ * Current page of the data
14
+ */
15
+ pageData: () => T[];
5
16
  };
6
17
  declare const _default: <T extends unknown, R extends unknown>(__VLS_props: {
7
18
  readonly "onRow-click"?: ((data: T) => any) | undefined;
@@ -12,14 +23,14 @@ declare const _default: <T extends unknown, R extends unknown>(__VLS_props: {
12
23
  attrs: any;
13
24
  slots: {};
14
25
  emit: (event: 'row-click', data: T) => any;
15
- } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<CursorTableController>) => void) | undefined, __VLS_setup?: Promise<{
26
+ } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<CursorTableController<T>>) => void) | undefined, __VLS_setup?: Promise<{
16
27
  props: {
17
28
  readonly "onRow-click"?: ((data: T) => any) | undefined;
18
29
  readonly columnDefs: ColumnDef<R>[];
19
30
  readonly rowsDefs: (a: T) => R;
20
31
  readonly paginate: (limit: number, cursor: string) => Promise<PaginatedResult<T>>;
21
32
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
22
- expose(exposed: import("vue").ShallowUnwrapRef<CursorTableController>): void;
33
+ expose(exposed: import("vue").ShallowUnwrapRef<CursorTableController<T>>): void;
23
34
  attrs: any;
24
35
  slots: {};
25
36
  emit: (event: 'row-click', data: T) => any;
@@ -33,7 +44,7 @@ declare const _default: <T extends unknown, R extends unknown>(__VLS_props: {
33
44
  readonly rowsDefs: (a: T) => R;
34
45
  readonly paginate: (limit: number, cursor: string) => Promise<PaginatedResult<T>>;
35
46
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
36
- expose(exposed: import("vue").ShallowUnwrapRef<CursorTableController>): void;
47
+ expose(exposed: import("vue").ShallowUnwrapRef<CursorTableController<T>>): void;
37
48
  attrs: any;
38
49
  slots: {};
39
50
  emit: (event: 'row-click', data: T) => any;
@@ -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-DCPNrUDq.js";
3
+ import { f as y } from "./index-DflgpHga.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {
@@ -0,0 +1,37 @@
1
+ import { g as s, b as t, a as e } from "./index-DflgpHga.js";
2
+ const i = {
3
+ async create(a) {
4
+ return s(
5
+ await t().post("/payments/terminals", a)
6
+ );
7
+ },
8
+ async read(a) {
9
+ return s(
10
+ await t().get("/payments/terminals", {
11
+ params: { ...a }
12
+ })
13
+ );
14
+ },
15
+ async readById(a) {
16
+ return e(await t().get(`/payments/terminals/${a}`));
17
+ },
18
+ async updateById(a, n) {
19
+ return e(
20
+ await t().put(`/payments/terminals/${a}`, n)
21
+ );
22
+ },
23
+ async getBindCode(a) {
24
+ const { code: n } = e(
25
+ await t().get(`/payments/terminals/${a}/code`)
26
+ );
27
+ return n;
28
+ },
29
+ async unbind(a) {
30
+ return e(
31
+ await t().delete(`/payments/terminals/${a}`)
32
+ );
33
+ }
34
+ };
35
+ export {
36
+ i as t
37
+ };