@feedmepos/mf-payment 0.0.0-beta.31 → 0.0.0-beta.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js +40 -0
  2. package/dist/{PayoutAccount-SIy-StvQ.js → PayoutAccount-CRf5uapK.js} +3 -3
  3. package/dist/{PayoutAccount-CiTsWONr.js → PayoutAccount-DSXNLvNP.js} +5 -5
  4. package/dist/{PayoutAccountSetting-quTrnrC3.js → PayoutAccountSetting-Dc-ccYWa.js} +3 -3
  5. package/dist/{Settlement-DOgQp010.js → Settlement-B28WumZX.js} +4 -4
  6. package/dist/{Settlement-PVDes6sk.js → Settlement-C1H4r_ni.js} +4 -4
  7. package/dist/{SettlementTransactions-yQYGTzAC.js → SettlementTransactions-CdZswF1S.js} +4 -4
  8. package/dist/{SettlementTransactions-gvYCXBgb.js → SettlementTransactions-w0jXLftr.js} +4 -4
  9. package/dist/{Terminal-DcwgOlid.js → Terminal-BbIs7aYi.js} +4 -4
  10. package/dist/{TerminalSetting-BLp4Y6V9.js → TerminalSetting-3CRuMj8l.js} +3 -3
  11. package/dist/TerminalTransaction-CoPJlBCt.js +245 -0
  12. package/dist/TerminalTransaction-CwEwNN25.js +274 -0
  13. package/dist/{Transaction-Dwijtg8b.js → Transaction-Atm-A5eN.js} +10 -10
  14. package/dist/{Transaction-t6PdA3hg.js → Transaction-DpmCjczz.js} +6 -6
  15. package/dist/app.js +48 -48
  16. package/dist/assets-sX1_K-nt.js +44 -0
  17. package/dist/components/RouteCell.vue.d.ts +8 -0
  18. package/dist/helpers/assets.d.ts +2 -0
  19. package/dist/{index-F_l7bLXb.js → index-ApzEWD1P.js} +1 -1
  20. package/dist/{index-TbfhqZiB.js → index-BSpzaL20.js} +1 -1
  21. package/dist/{index-DrH47k0r.js → index-BgnU5ezY.js} +1 -1
  22. package/dist/{index-CAsbGPp2.js → index-CBFVJirn.js} +1 -1
  23. package/dist/{index-DTz8Nmfb.js → index-Cnxt2xmc.js} +2 -2
  24. package/dist/index-RhSxYSBk.js +35 -0
  25. package/dist/{index.vue_vue_type_script_setup_true_lang-clLSlUNS.js → index.vue_vue_type_script_setup_true_lang-B7ePQpGr.js} +1 -1
  26. package/dist/package.json +1 -1
  27. package/dist/{payout-account-Cm4iYhNm.js → payout-account-BKVSgJb4.js} +534 -516
  28. package/dist/{transaction-CNNzvDLH.js → transaction-BH1Pm92q.js} +1 -1
  29. package/dist/tsconfig.app.tsbuildinfo +1 -1
  30. package/package.json +1 -1
  31. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js +0 -28
  32. package/dist/TerminalTransaction-Cb9V1igD.js +0 -237
  33. package/dist/TerminalTransaction-DHmQYA02.js +0 -243
  34. package/dist/api/auth/index.d.ts +0 -7
  35. package/dist/assets-UG99C8i-.js +0 -42
  36. package/dist/index-aI8zWz4m.js +0 -34
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "0.0.0-beta.31",
3
+ "version": "0.0.0-beta.33",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,28 +0,0 @@
1
- import { defineComponent as i, openBlock as c, createElementBlock as l, toDisplayString as s } from "vue";
2
- import { c as m } from "./clipboard-4jh1WteU.js";
3
- import { useSnackbar as d } from "@feedmepos/ui-library";
4
- const u = /* @__PURE__ */ i({
5
- __name: "AutoCopyCell",
6
- props: {
7
- data: {}
8
- },
9
- setup(p) {
10
- const o = p, t = d();
11
- function r() {
12
- try {
13
- m(o.data), t.open({ title: "Text copied to clipboard." }, 1e3);
14
- } catch {
15
- t.open({ title: "Clipboard API incompatible." }, 1e3);
16
- }
17
- o.data;
18
- }
19
- return (a, e) => (c(), l("div", {
20
- onClick: e[0] || (e[0] = (n) => {
21
- n.stopPropagation(), r();
22
- })
23
- }, s(a.data), 1));
24
- }
25
- });
26
- export {
27
- u as _
28
- };
@@ -1,237 +0,0 @@
1
- import { defineComponent as g, openBlock as I, createElementBlock as v, unref as r, resolveComponent as u, createBlock as w, normalizeClass as F, withCtx as y, createElementVNode as _, toDisplayString as b, ref as D, watch as N, createVNode as i, isRef as f, h as A } from "vue";
2
- import { c as s } from "./index-DTz8Nmfb.js";
3
- import { h as T } from "./moment-h96o7c8I.js";
4
- import { u as V } from "./index-DrH47k0r.js";
5
- import { _ as k } from "./index.vue_vue_type_script_setup_true_lang-clLSlUNS.js";
6
- import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
7
- import "@feedmepos/ui-library";
8
- import { g as M } from "./assets-UG99C8i-.js";
9
- import { t as x } from "./index-aI8zWz4m.js";
10
- import { d as L } from "./dinero-CIVmXLL-.js";
11
- import { _ as $ } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
12
- import { _ as B } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js";
13
- const P = ["src"], U = /* @__PURE__ */ g({
14
- __name: "Gateway",
15
- props: {
16
- row: {},
17
- data: {}
18
- },
19
- setup(p) {
20
- return (a, o) => (I(), v("img", {
21
- class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
22
- src: r(M)(a.row.original.gateway)
23
- }, null, 8, P));
24
- }
25
- }), Y = /* @__PURE__ */ g({
26
- __name: "Status",
27
- props: {
28
- row: {},
29
- data: {}
30
- },
31
- setup(p) {
32
- const a = p;
33
- function o() {
34
- return a.data === s.F_TERMINAL_TRANSACTION_ACTION.Enum.process ? "!w-[16px] !h-[16px] bg-yellow-400" : a.data === s.F_TERMINAL_TRANSACTION_ACTION.Enum.failed ? "!w-[16px] !h-[16px] bg-red-400" : a.data === s.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
35
- }
36
- return (l, c) => {
37
- const m = u("FmBadge");
38
- return I(), w(m, {
39
- inline: "",
40
- class: F(o())
41
- }, {
42
- default: y(() => [
43
- _("div", null, b(l.data.toUpperCase()), 1)
44
- ]),
45
- _: 1
46
- }, 8, ["class"]);
47
- };
48
- }
49
- }), G = { class: "flex justify-between mb-6 items-start" }, W = { class: "flex space-x-4 items-start" }, j = { class: "flex space-x-4" }, oe = /* @__PURE__ */ g({
50
- __name: "TerminalTransaction",
51
- setup(p) {
52
- const a = D(), { dateRange: o, status: l, searchKey: c } = V({
53
- searchKey: "",
54
- status: [s.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
55
- dateRange: {
56
- startDate: T().startOf("day").toISOString(),
57
- endDate: T().endOf("day").toISOString()
58
- }
59
- });
60
- N([o, l], () => {
61
- var e;
62
- return (e = a.value) == null ? void 0 : e.reset();
63
- });
64
- let m;
65
- N(c, async () => {
66
- m && clearTimeout(m), m = setTimeout(
67
- () => {
68
- var e;
69
- return (e = a.value) == null ? void 0 : e.reset();
70
- },
71
- 700
72
- );
73
- });
74
- const R = [
75
- {
76
- label: "Success",
77
- value: s.F_TERMINAL_TRANSACTION_ACTION.Enum.success
78
- },
79
- {
80
- label: "Refunded",
81
- value: s.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded
82
- },
83
- {
84
- label: "Process",
85
- value: s.F_TERMINAL_TRANSACTION_ACTION.Enum.process
86
- },
87
- {
88
- label: "Failed",
89
- value: s.F_TERMINAL_TRANSACTION_ACTION.Enum.failed
90
- }
91
- ], S = function(e) {
92
- const t = e;
93
- let d = "-";
94
- return t.details.amount && (d = L(t.details.amount).toFormat("$0.00")), {
95
- id: e._id,
96
- refId: e.refId,
97
- owner: e.owner,
98
- terminalId: e.terminalId,
99
- transactionAt: T(e.transactionAt).format("YYYY-MM-DD hh:mm:ss"),
100
- action: e.action,
101
- gateway: e.gateway,
102
- amount: d
103
- };
104
- }, C = [
105
- {
106
- accessorKey: "id",
107
- header: () => "Transaction ID",
108
- meta: {
109
- textAlign: "left"
110
- },
111
- cell: ({ cell: e }) => A(B, { data: e.getValue() })
112
- },
113
- {
114
- accessorKey: "refId",
115
- header: () => "Reference ID",
116
- meta: {
117
- textAlign: "left"
118
- }
119
- },
120
- {
121
- accessorKey: "gateway",
122
- header: () => "Gateway",
123
- meta: {
124
- textAlign: "center",
125
- maxWidth: "128px"
126
- },
127
- cell: ({ cell: e, row: t }) => A(U, { row: t, data: e.getValue() })
128
- },
129
- {
130
- accessorKey: "action",
131
- header: () => "Status",
132
- meta: {
133
- textAlign: "left",
134
- maxWidth: "128px"
135
- },
136
- cell: ({ cell: e, row: t }) => A(Y, { row: t, data: e.getValue() })
137
- },
138
- {
139
- accessorKey: "amount",
140
- header: () => "Sales Amount",
141
- meta: {
142
- textAlign: "center"
143
- }
144
- },
145
- {
146
- accessorKey: "owner",
147
- header: () => "Reference",
148
- meta: {
149
- textAlign: "left"
150
- }
151
- },
152
- {
153
- accessorKey: "terminalId",
154
- header: () => "Terminal ID",
155
- meta: {
156
- textAlign: "left"
157
- }
158
- },
159
- {
160
- accessorKey: "transactionAt",
161
- header: () => "Transaction At",
162
- meta: {
163
- textAlign: "left"
164
- }
165
- }
166
- ];
167
- return (e, t) => {
168
- const d = u("FmSearch"), h = u("FmSelect"), O = u("FmDateRangePicker");
169
- return I(), w(K, {
170
- title: "Terminal Transactions",
171
- loading: !1
172
- }, {
173
- default: y(() => [
174
- _("div", G, [
175
- _("div", W, [
176
- i(d, {
177
- "model-value": r(c),
178
- "onUpdate:modelValue": t[0] || (t[0] = (n) => f(c) ? c.value = n : null),
179
- class: "mr-8",
180
- label: "Search",
181
- placeholder: "Search Transactions ..."
182
- }, null, 8, ["model-value"]),
183
- i(h, {
184
- modelValue: r(l),
185
- "onUpdate:modelValue": t[1] || (t[1] = (n) => f(l) ? l.value = n : null),
186
- class: "mr-6 w-[300px]",
187
- label: "Status",
188
- "label-mark": "required",
189
- multiselect: "",
190
- items: R
191
- }, null, 8, ["modelValue"]),
192
- i(O, {
193
- modelValue: r(o),
194
- "onUpdate:modelValue": t[2] || (t[2] = (n) => f(o) ? o.value = n : null),
195
- compare: "",
196
- "show-predefined-range": ""
197
- }, null, 8, ["modelValue"])
198
- ]),
199
- _("div", j, [
200
- i($, {
201
- button: {
202
- appendIcon: "file_download",
203
- variant: "primary",
204
- label: "Export"
205
- },
206
- handler: () => {
207
- var n;
208
- return r(x).downloadTransactions(((n = a.value) == null ? void 0 : n.data()) ?? []);
209
- }
210
- }, null, 8, ["handler"])
211
- ])
212
- ]),
213
- i(k, {
214
- ref_key: "controller",
215
- ref: a,
216
- "column-defs": C,
217
- "rows-defs": S,
218
- paginate: (n, E) => r(x).readTransactions({
219
- status: r(l),
220
- searchKey: r(c),
221
- limit: n,
222
- cursor: E,
223
- start: r(o).startDate,
224
- end: r(o).endDate
225
- }),
226
- onRowClick: () => {
227
- }
228
- }, null, 8, ["paginate"])
229
- ]),
230
- _: 1
231
- });
232
- };
233
- }
234
- });
235
- export {
236
- oe as default
237
- };
@@ -1,243 +0,0 @@
1
- import { defineComponent as h, openBlock as N, createElementBlock as F, unref as r, resolveComponent as d, createBlock as y, normalizeClass as b, withCtx as R, createElementVNode as _, toDisplayString as D, ref as V, watch as A, createVNode as i, isRef as T, h as g } from "vue";
2
- import { c as s } from "./index-DTz8Nmfb.js";
3
- import { h as I } from "./moment-h96o7c8I.js";
4
- import { u as k } from "./index-DrH47k0r.js";
5
- import { _ as K } from "./index.vue_vue_type_script_setup_true_lang-clLSlUNS.js";
6
- import { _ as M } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
7
- import "@feedmepos/ui-library";
8
- import { g as $ } from "./assets-UG99C8i-.js";
9
- import { t as w } from "./index-aI8zWz4m.js";
10
- import { d as L } from "./dinero-CIVmXLL-.js";
11
- import { _ as B } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
12
- import { useCoreStore as P } from "@feedmepos/mf-common";
13
- import { _ as U } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
14
- import { _ as Y } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js";
15
- const G = ["src"], W = /* @__PURE__ */ h({
16
- __name: "Gateway",
17
- props: {
18
- row: {},
19
- data: {}
20
- },
21
- setup(p) {
22
- return (l, n) => (N(), F("img", {
23
- class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
24
- src: r($)(l.row.original.gateway)
25
- }, null, 8, G));
26
- }
27
- }), j = /* @__PURE__ */ h({
28
- __name: "Status",
29
- props: {
30
- row: {},
31
- data: {}
32
- },
33
- setup(p) {
34
- const l = p;
35
- function n() {
36
- return l.data === s.F_TERMINAL_TRANSACTION_ACTION.Enum.process ? "!w-[16px] !h-[16px] bg-yellow-400" : l.data === s.F_TERMINAL_TRANSACTION_ACTION.Enum.failed ? "!w-[16px] !h-[16px] bg-red-400" : l.data === s.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
37
- }
38
- return (o, c) => {
39
- const m = d("FmBadge");
40
- return N(), y(m, {
41
- inline: "",
42
- class: b(n())
43
- }, {
44
- default: R(() => [
45
- _("div", null, D(o.data.toUpperCase()), 1)
46
- ]),
47
- _: 1
48
- }, 8, ["class"]);
49
- };
50
- }
51
- }), q = { class: "flex justify-between mb-6 items-start" }, z = { class: "flex space-x-8 items-start" }, Q = { class: "flex space-x-4" }, ie = /* @__PURE__ */ h({
52
- __name: "TerminalTransaction",
53
- setup(p) {
54
- const { currentRestaurant: l } = P(), n = V(), { dateRange: o, status: c, searchKey: m } = k({
55
- searchKey: "",
56
- status: [s.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
57
- dateRange: {
58
- startDate: I().startOf("day").toISOString(),
59
- endDate: I().endOf("day").toISOString()
60
- }
61
- });
62
- A([o, c], () => {
63
- var e;
64
- return (e = n.value) == null ? void 0 : e.reset();
65
- }), A(l, () => {
66
- var e;
67
- return (e = n.value) == null ? void 0 : e.reset();
68
- });
69
- let f;
70
- A(m, async () => {
71
- f && clearTimeout(f), f = setTimeout(
72
- () => {
73
- var e;
74
- return (e = n.value) == null ? void 0 : e.reset();
75
- },
76
- 700
77
- );
78
- });
79
- const S = [
80
- {
81
- label: "Success",
82
- value: s.F_TERMINAL_TRANSACTION_ACTION.Enum.success
83
- },
84
- {
85
- label: "Refunded",
86
- value: s.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded
87
- },
88
- {
89
- label: "Process",
90
- value: s.F_TERMINAL_TRANSACTION_ACTION.Enum.process
91
- },
92
- {
93
- label: "Failed",
94
- value: s.F_TERMINAL_TRANSACTION_ACTION.Enum.failed
95
- }
96
- ], C = function(e) {
97
- const t = e;
98
- let u = "-";
99
- return t.details.amount && (u = L(t.details.amount).toFormat("$0.00")), {
100
- id: e._id,
101
- refId: e.refId,
102
- owner: e.owner,
103
- terminalId: e.terminalId,
104
- transactionAt: I(e.transactionAt).format("YYYY-MM-DD hh:mm:ss"),
105
- action: e.action,
106
- gateway: e.gateway,
107
- amount: u
108
- };
109
- }, O = [
110
- {
111
- accessorKey: "id",
112
- header: () => "Transaction ID",
113
- meta: {
114
- textAlign: "left"
115
- },
116
- cell: ({ cell: e }) => g(Y, { data: e.getValue() })
117
- },
118
- {
119
- accessorKey: "refId",
120
- header: () => "Reference ID",
121
- meta: {
122
- textAlign: "left"
123
- }
124
- },
125
- {
126
- accessorKey: "gateway",
127
- header: () => "Gateway",
128
- meta: {
129
- textAlign: "center",
130
- maxWidth: "128px"
131
- },
132
- cell: ({ cell: e, row: t }) => g(W, { row: t, data: e.getValue() })
133
- },
134
- {
135
- accessorKey: "action",
136
- header: () => "Status",
137
- meta: {
138
- textAlign: "left",
139
- maxWidth: "128px"
140
- },
141
- cell: ({ cell: e, row: t }) => g(j, { row: t, data: e.getValue() })
142
- },
143
- {
144
- accessorKey: "amount",
145
- header: () => "Sales Amount",
146
- meta: {
147
- textAlign: "center"
148
- }
149
- },
150
- {
151
- accessorKey: "owner",
152
- header: () => "Reference",
153
- meta: {
154
- textAlign: "left"
155
- }
156
- },
157
- {
158
- accessorKey: "terminalId",
159
- header: () => "Terminal ID",
160
- meta: {
161
- textAlign: "left"
162
- }
163
- },
164
- {
165
- accessorKey: "transactionAt",
166
- header: () => "Transaction At",
167
- meta: {
168
- textAlign: "left"
169
- }
170
- }
171
- ];
172
- return (e, t) => {
173
- const u = d("FmSearch"), x = d("FmSelect"), v = d("FmDateRangePicker");
174
- return N(), y(M, {
175
- title: "Terminal Transactions",
176
- loading: !1
177
- }, {
178
- default: R(() => [
179
- _("div", q, [
180
- _("div", z, [
181
- i(B),
182
- i(u, {
183
- "model-value": r(m),
184
- "onUpdate:modelValue": t[0] || (t[0] = (a) => T(m) ? m.value = a : null),
185
- class: "mr-8",
186
- label: "Search",
187
- placeholder: "Search Transactions ..."
188
- }, null, 8, ["model-value"]),
189
- i(x, {
190
- modelValue: r(c),
191
- "onUpdate:modelValue": t[1] || (t[1] = (a) => T(c) ? c.value = a : null),
192
- class: "mr-6 w-[300px]",
193
- label: "Status",
194
- "label-mark": "required",
195
- multiselect: "",
196
- items: S
197
- }, null, 8, ["modelValue"]),
198
- i(v, {
199
- modelValue: r(o),
200
- "onUpdate:modelValue": t[2] || (t[2] = (a) => T(o) ? o.value = a : null),
201
- compare: "",
202
- "show-predefined-range": ""
203
- }, null, 8, ["modelValue"])
204
- ]),
205
- _("div", Q, [
206
- i(U, {
207
- button: {
208
- appendIcon: "file_download",
209
- variant: "primary",
210
- label: "Export"
211
- },
212
- handler: () => {
213
- var a;
214
- return r(w).downloadTransactions(((a = n.value) == null ? void 0 : a.data()) ?? []);
215
- }
216
- }, null, 8, ["handler"])
217
- ])
218
- ]),
219
- i(K, {
220
- ref_key: "controller",
221
- ref: n,
222
- "column-defs": O,
223
- "rows-defs": C,
224
- paginate: (a, E) => r(w).readRestaurantTransactions({
225
- status: r(c),
226
- searchKey: r(m),
227
- limit: a,
228
- cursor: E,
229
- start: r(o).startDate,
230
- end: r(o).endDate
231
- }),
232
- onRowClick: () => {
233
- }
234
- }, null, 8, ["paginate"])
235
- ]),
236
- _: 1
237
- });
238
- };
239
- }
240
- });
241
- export {
242
- ie as default
243
- };
@@ -1,7 +0,0 @@
1
- declare function getCustomToken(token: string): Promise<any>;
2
- declare function getIdToken(customToken: string): Promise<any>;
3
- export declare const AuthApi: {
4
- getCustomToken: typeof getCustomToken;
5
- getIdToken: typeof getIdToken;
6
- };
7
- export {};