@tap-payments/os-micro-frontend-shared 0.1.378-test.2 → 0.1.378-test.4
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.
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Backend report filter types (used by reports APIs)
|
|
3
|
+
*
|
|
4
|
+
* Maps frontend report identifiers to the backend API filter types.
|
|
5
|
+
* Acts as the source of truth for all report types across apps/services
|
|
6
|
+
*/
|
|
7
|
+
export declare const REPORT_FILTER_TYPES: {
|
|
8
|
+
CHARGE: string;
|
|
9
|
+
AUTHORIZE: string;
|
|
10
|
+
REFUND: string;
|
|
11
|
+
CHARGEBACKS: string;
|
|
12
|
+
DESTINATIONS: string;
|
|
13
|
+
REVERSED_DESTINATIONS: string;
|
|
14
|
+
STATEMENT: string;
|
|
15
|
+
STATEMENT_SUMMARY: string;
|
|
16
|
+
INVOICE: string;
|
|
17
|
+
PAYOUT: string;
|
|
18
|
+
MERCHANT_PAYOUT: string;
|
|
19
|
+
RETAILER_PAYOUT: string;
|
|
20
|
+
};
|
|
1
21
|
/**
|
|
2
22
|
* Maps report **source codes** (app or service)
|
|
3
23
|
* to the corresponding **backend report filter types**.
|
|
@@ -22,11 +42,7 @@ export declare const REPORTS_APPS: {
|
|
|
22
42
|
code: string;
|
|
23
43
|
name: string;
|
|
24
44
|
icon: string;
|
|
25
|
-
services:
|
|
26
|
-
name: string;
|
|
27
|
-
code: string;
|
|
28
|
-
} | {
|
|
45
|
+
services: {
|
|
29
46
|
name: string;
|
|
30
|
-
|
|
31
|
-
})[];
|
|
47
|
+
}[];
|
|
32
48
|
}[];
|
|
@@ -6,7 +6,7 @@ import { acceptanceAppIcon, billingAppIcon, payoutsAppIcon, walletAppIcon } from
|
|
|
6
6
|
* Maps frontend report identifiers to the backend API filter types.
|
|
7
7
|
* Acts as the source of truth for all report types across apps/services
|
|
8
8
|
*/
|
|
9
|
-
const REPORT_FILTER_TYPES = {
|
|
9
|
+
export const REPORT_FILTER_TYPES = {
|
|
10
10
|
// Acceptance
|
|
11
11
|
CHARGE: 'CHARGE',
|
|
12
12
|
AUTHORIZE: 'AUTHORIZE',
|
|
@@ -74,37 +74,24 @@ export const REPORTS_APPS = [
|
|
|
74
74
|
code: APP_CODES.billing.code,
|
|
75
75
|
name: 'Billing',
|
|
76
76
|
icon: billingAppIcon,
|
|
77
|
-
services: [{ name: 'Invoices'
|
|
77
|
+
services: [{ name: 'Invoices' }],
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
code: APP_CODES.acceptance.code,
|
|
81
81
|
name: 'Acceptance',
|
|
82
82
|
icon: acceptanceAppIcon,
|
|
83
|
-
services: [
|
|
84
|
-
{ name: 'Authorisations', code: REPORT_FILTER_TYPES.AUTHORIZE },
|
|
85
|
-
{ name: 'Charges', code: REPORT_FILTER_TYPES.CHARGE },
|
|
86
|
-
{ name: 'Refunds', code: REPORT_FILTER_TYPES.REFUND },
|
|
87
|
-
{ name: 'Chargebacks', code: REPORT_FILTER_TYPES.CHARGEBACKS },
|
|
88
|
-
{ name: 'Destinations', code: [REPORT_FILTER_TYPES.DESTINATIONS, REPORT_FILTER_TYPES.REVERSED_DESTINATIONS] },
|
|
89
|
-
],
|
|
83
|
+
services: [{ name: 'Authorisations' }, { name: 'Charges' }, { name: 'Refunds' }, { name: 'Chargebacks' }, { name: 'Destinations' }],
|
|
90
84
|
},
|
|
91
85
|
{
|
|
92
86
|
code: APP_CODES.wallet.code,
|
|
93
87
|
name: 'Wallet',
|
|
94
88
|
icon: walletAppIcon,
|
|
95
|
-
services: [
|
|
96
|
-
{ name: 'Aggregated Statement', code: REPORT_FILTER_TYPES.STATEMENT_SUMMARY },
|
|
97
|
-
{ name: 'Detailed Statement', code: REPORT_FILTER_TYPES.STATEMENT },
|
|
98
|
-
],
|
|
89
|
+
services: [{ name: 'Aggregated Statement' }, { name: 'Detailed Statement' }],
|
|
99
90
|
},
|
|
100
91
|
{
|
|
101
92
|
code: APP_CODES.payouts.code,
|
|
102
93
|
name: 'Payouts',
|
|
103
94
|
icon: payoutsAppIcon,
|
|
104
|
-
services: [
|
|
105
|
-
{ name: 'Payouts', code: REPORT_FILTER_TYPES.PAYOUT },
|
|
106
|
-
{ name: 'Merchant Payouts', code: REPORT_FILTER_TYPES.MERCHANT_PAYOUT },
|
|
107
|
-
{ name: 'Retailer Payouts', code: REPORT_FILTER_TYPES.RETAILER_PAYOUT },
|
|
108
|
-
],
|
|
95
|
+
services: [{ name: 'Payouts' }, { name: 'Merchant Payouts' }, { name: 'Retailer Payouts' }],
|
|
109
96
|
},
|
|
110
97
|
];
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.1.378-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.378-test.4",
|
|
5
|
+
"testVersion": 4,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|