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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  2. package/dist/Modal-DB8M9o1T.js +13 -0
  3. package/dist/{PayoutAccount-DQm62Wf2.js → PayoutAccount-CIKS18wv.js} +37 -34
  4. package/dist/{PayoutAccount-CeLwLffx.js → PayoutAccount-Daxv1Djz.js} +288 -3160
  5. package/dist/{PayoutAccountSetting-CIeos0md.js → PayoutAccountSetting-CnjAKH1q.js} +3 -3
  6. package/dist/Settlement-C7X_gzIk.js +142 -0
  7. package/dist/Settlement-DxQ9WNy-.js +146 -0
  8. package/dist/{SettlementTransactions-CYES5YMF.js → SettlementTransactions-Bne5lD30.js} +4 -4
  9. package/dist/{SettlementTransactions-B1v0f-0o.js → SettlementTransactions-RqT0OWUX.js} +100 -107
  10. package/dist/Terminal-CddS-zgz.js +318 -0
  11. package/dist/TerminalSetting-B2aM1gW-.js +176 -0
  12. package/dist/{TerminalTransaction-LofDTVwC.js → TerminalTransaction-XrqXeZZH.js} +18 -18
  13. package/dist/{Transaction-CaOxsIQH.js → Transaction-B16xeZ39.js} +80 -74
  14. package/dist/Transaction-CpOhK6md.js +249 -0
  15. package/dist/api/index.d.ts +7 -0
  16. package/dist/api/settlement/index.d.ts +7 -13
  17. package/dist/api/terminal/index.d.ts +8 -1
  18. package/dist/api/transaction/index.d.ts +6 -2
  19. package/dist/app.js +46 -40
  20. package/dist/{assets-DnuLfRTO.js → assets-nIQ0r4oP.js} +1 -1
  21. package/dist/components/AsyncButton.vue.d.ts +21 -0
  22. package/dist/components/CursorTable/index.vue.d.ts +16 -5
  23. package/dist/{index-Bmka-1lQ.js → index-CIIojtd5.js} +1 -1
  24. package/dist/index-CxYMbN69.js +37 -0
  25. package/dist/index-DflgpHga.js +55560 -0
  26. package/dist/{index-Coz5aeIO.js → index-DhPhiNvt.js} +13 -23
  27. package/dist/{index-CF56zGyu.js → index-DqQBDo_Y.js} +1 -1
  28. package/dist/index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js +155 -0
  29. package/dist/package.json +3 -3
  30. package/dist/{payout-account-OR4juI9N.js → payout-account-C4iFFgWi.js} +260 -260
  31. package/dist/{transaction-vRrBf3FN.js → transaction-B4rEbejx.js} +28 -15
  32. package/dist/tsconfig.app.tsbuildinfo +1 -1
  33. package/dist/validator-D5jtpt9A.js +2877 -0
  34. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +61 -0
  35. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  36. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +58 -9
  37. package/dist/views/admin/terminal/tabs/Fiuu.vue.d.ts +72 -0
  38. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +63 -0
  39. package/package.json +3 -3
  40. package/dist/Settlement-BVGACeme.js +0 -136
  41. package/dist/Settlement-Ce48KHrc.js +0 -132
  42. package/dist/Terminal-ByKV2Rof.js +0 -204
  43. package/dist/Transaction-C-X11abA.js +0 -242
  44. package/dist/index-DCPNrUDq.js +0 -40075
  45. 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
+ };