@tap-payments/os-micro-frontend-shared 0.1.378-test.6 → 0.1.379
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.
- package/build/components/AnimatedSpinnerIcon/style.d.ts +1 -0
- package/build/components/Chip/style.d.ts +1 -0
- package/build/components/CountBadge/style.d.ts +1 -0
- package/build/components/Dialog/style.d.ts +1 -0
- package/build/components/FlippingCard/style.d.ts +1 -0
- package/build/components/ImageWrapper/ImageWrapper.d.ts +1 -0
- package/build/components/JSONViewer/style.d.ts +1 -0
- package/build/components/LeftPeekRightExpandingChip/style.d.ts +1 -0
- package/build/components/RightLeftExpandingCenterChip/style.d.ts +1 -0
- package/build/components/SearchButton/styles.d.ts +1 -0
- package/build/components/StatusIcons/AuthIcons/style.d.ts +1 -0
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -0
- package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +1 -0
- package/build/components/StatusIcons/SourceIcons/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/IDButton/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/style.d.ts +1 -0
- package/build/components/TableReports/components/DownloadButton/style.d.ts +1 -0
- package/build/components/TableReports/style.d.ts +1 -0
- package/build/components/VirtualTables/components/style.d.ts +1 -0
- package/build/constants/apps.js +0 -1
- package/build/constants/reports.d.ts +21 -2
- package/build/constants/reports.js +16 -15
- package/package.json +3 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import { GetSourceAnimationFunction } from './type';
|
|
3
4
|
export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
4
5
|
variant?: import("./type").ChipVariant | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import { TableMode } from '../../../../types/index.js';
|
|
3
4
|
export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
4
5
|
tableMode?: TableMode | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const AgreementCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledAgreementCardIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const CardContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledAppsCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const AppsStatusContainer: import("@emotion/styled").StyledComponent<{
|
|
4
5
|
hidden?: boolean | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const AuthIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
3
4
|
export declare const AuthCellContainer: import("@emotion/styled").StyledComponent<{
|
|
4
5
|
hidden?: boolean | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledDownloadFileImageWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
3
4
|
isTextShown?: boolean | undefined;
|
|
4
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const SalesChannelsContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
4
5
|
hidden?: boolean | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
3
4
|
variant?: "Global" | "Regional" | "Local" | undefined;
|
|
4
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
package/build/constants/apps.js
CHANGED
|
@@ -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**.
|
|
@@ -14,8 +34,7 @@ export declare const reportFilterTypesMap: {
|
|
|
14
34
|
/**
|
|
15
35
|
* Reports apps
|
|
16
36
|
*
|
|
17
|
-
* Defines apps shown in the reports app
|
|
18
|
-
* to its backend filter type (REPORT_FILTER_TYPES).
|
|
37
|
+
* Defines apps shown in the reports app
|
|
19
38
|
*
|
|
20
39
|
*/
|
|
21
40
|
export declare const REPORTS_APPS: {
|
|
@@ -6,13 +6,14 @@ 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',
|
|
13
13
|
REFUND: 'REFUND',
|
|
14
14
|
CHARGEBACKS: 'CHARGEBACKS',
|
|
15
15
|
DESTINATIONS: 'DESTINATIONS',
|
|
16
|
+
REVERSED_DESTINATIONS: 'REVERSED_DESTINATIONS',
|
|
16
17
|
// Wallet
|
|
17
18
|
STATEMENT: 'STATEMENT',
|
|
18
19
|
STATEMENT_SUMMARY: 'STATEMENT_SUMMARY',
|
|
@@ -39,13 +40,14 @@ export const reportFilterTypesMap = {
|
|
|
39
40
|
[APP_CODES.acceptance.services.authorization.code]: [REPORT_FILTER_TYPES.AUTHORIZE],
|
|
40
41
|
[APP_CODES.acceptance.services.refunds.code]: [REPORT_FILTER_TYPES.REFUND],
|
|
41
42
|
[APP_CODES.acceptance.services.chargeback.code]: [REPORT_FILTER_TYPES.CHARGEBACKS],
|
|
42
|
-
[APP_CODES.acceptance.services.destinations.code]: [REPORT_FILTER_TYPES.DESTINATIONS],
|
|
43
|
+
[APP_CODES.acceptance.services.destinations.code]: [REPORT_FILTER_TYPES.DESTINATIONS, REPORT_FILTER_TYPES.REVERSED_DESTINATIONS],
|
|
43
44
|
[APP_CODES.acceptance.code]: [
|
|
44
45
|
REPORT_FILTER_TYPES.CHARGE,
|
|
45
46
|
REPORT_FILTER_TYPES.AUTHORIZE,
|
|
46
47
|
REPORT_FILTER_TYPES.REFUND,
|
|
47
48
|
REPORT_FILTER_TYPES.CHARGEBACKS,
|
|
48
49
|
REPORT_FILTER_TYPES.DESTINATIONS,
|
|
50
|
+
REPORT_FILTER_TYPES.REVERSED_DESTINATIONS,
|
|
49
51
|
],
|
|
50
52
|
// Wallet
|
|
51
53
|
[APP_CODES.wallet.services.merchants.functions.statement.code]: [REPORT_FILTER_TYPES.STATEMENT],
|
|
@@ -63,8 +65,7 @@ export const reportFilterTypesMap = {
|
|
|
63
65
|
/**
|
|
64
66
|
* Reports apps
|
|
65
67
|
*
|
|
66
|
-
* Defines apps shown in the reports app
|
|
67
|
-
* to its backend filter type (REPORT_FILTER_TYPES).
|
|
68
|
+
* Defines apps shown in the reports app
|
|
68
69
|
*
|
|
69
70
|
*/
|
|
70
71
|
export const REPORTS_APPS = [
|
|
@@ -72,18 +73,18 @@ export const REPORTS_APPS = [
|
|
|
72
73
|
code: APP_CODES.billing.code,
|
|
73
74
|
name: 'Billing',
|
|
74
75
|
icon: billingAppIcon,
|
|
75
|
-
services: [{ name: 'Invoices', code:
|
|
76
|
+
services: [{ name: 'Invoices', code: APP_CODES.billing.services.invoices.code }],
|
|
76
77
|
},
|
|
77
78
|
{
|
|
78
79
|
code: APP_CODES.acceptance.code,
|
|
79
80
|
name: 'Acceptance',
|
|
80
81
|
icon: acceptanceAppIcon,
|
|
81
82
|
services: [
|
|
82
|
-
{ name: 'Authorisations', code:
|
|
83
|
-
{ name: 'Charges', code:
|
|
84
|
-
{ name: 'Refunds', code:
|
|
85
|
-
{ name: 'Chargebacks', code:
|
|
86
|
-
{ name: 'Destinations', code:
|
|
83
|
+
{ name: 'Authorisations', code: APP_CODES.acceptance.services.authorization.code },
|
|
84
|
+
{ name: 'Charges', code: APP_CODES.acceptance.services.charges.code },
|
|
85
|
+
{ name: 'Refunds', code: APP_CODES.acceptance.services.refunds.code },
|
|
86
|
+
{ name: 'Chargebacks', code: APP_CODES.acceptance.services.chargeback.code },
|
|
87
|
+
{ name: 'Destinations', code: APP_CODES.acceptance.services.destinations.code },
|
|
87
88
|
],
|
|
88
89
|
},
|
|
89
90
|
{
|
|
@@ -91,8 +92,8 @@ export const REPORTS_APPS = [
|
|
|
91
92
|
name: 'Wallet',
|
|
92
93
|
icon: walletAppIcon,
|
|
93
94
|
services: [
|
|
94
|
-
{ name: 'Aggregated Statement', code:
|
|
95
|
-
{ name: 'Detailed Statement', code:
|
|
95
|
+
{ name: 'Aggregated Statement', code: APP_CODES.wallet.services.merchants.functions.summary.code },
|
|
96
|
+
{ name: 'Detailed Statement', code: APP_CODES.wallet.services.merchants.functions.statement.code },
|
|
96
97
|
],
|
|
97
98
|
},
|
|
98
99
|
{
|
|
@@ -100,9 +101,9 @@ export const REPORTS_APPS = [
|
|
|
100
101
|
name: 'Payouts',
|
|
101
102
|
icon: payoutsAppIcon,
|
|
102
103
|
services: [
|
|
103
|
-
{ name: 'Payouts', code:
|
|
104
|
-
{ name: 'Merchant Payouts', code:
|
|
105
|
-
{ name: 'Retailer Payouts', code:
|
|
104
|
+
{ name: 'Payouts', code: APP_CODES.payouts.services.payouts.code },
|
|
105
|
+
{ name: 'Merchant Payouts', code: APP_CODES.payouts.services.merchantPayout.code },
|
|
106
|
+
{ name: 'Retailer Payouts', code: APP_CODES.payouts.services.retailerPayout.code },
|
|
106
107
|
],
|
|
107
108
|
},
|
|
108
109
|
];
|
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.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.379",
|
|
5
|
+
"testVersion": 0,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|
|
@@ -164,4 +164,4 @@
|
|
|
164
164
|
"publishConfig": {
|
|
165
165
|
"registry": "https://registry.npmjs.org/"
|
|
166
166
|
}
|
|
167
|
-
}
|
|
167
|
+
}
|