@tap-payments/os-micro-frontend-shared 0.1.336 → 0.1.338

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.
@@ -20,13 +20,17 @@ import RefundStatus from './components/RefundStatus';
20
20
  import { useRefundStyles } from './hooks/useRefundStyles';
21
21
  import { TextLabel, StatusCellContainer } from '../style';
22
22
  import { IconWrapper } from './style';
23
+ import { unCapturedStatuses } from '../../../../constants/index.js';
23
24
  function RefundStatusCell(_a) {
24
25
  var { status, date, refundTooltip, isTextShown, gatewayTooltip, acquirerTooltip, errorCode, acquirerCode, gatewayCode, unCapturedTooltip, timezone, refundTooltipLabel } = _a, props = __rest(_a, ["status", "date", "refundTooltip", "isTextShown", "gatewayTooltip", "acquirerTooltip", "errorCode", "acquirerCode", "gatewayCode", "unCapturedTooltip", "timezone", "refundTooltipLabel"]);
25
26
  const { t } = useTranslation();
26
27
  const refundStyles = useRefundStyles();
27
28
  const formatDate = useCallback((dateMs) => dayjs(dateMs).format('MMM D, YYYY'), []);
29
+ const isUncaptured = unCapturedStatuses.includes(status);
28
30
  return (_jsx(TableCell, Object.assign({}, props, { style: {
29
31
  overflow: 'visible',
30
- } }, { children: _jsx(StatusCellContainer, { children: _jsx(IconWrapper, Object.assign({ width: isTextShown ? 'auto' : '36px' }, { children: isTextShown ? (_jsx(Tooltip, Object.assign({ title: date ? formatDate(date) : t(camelCase(status)) }, { children: _jsx(TextLabel, Object.assign({ sx: Object.assign({}, (refundStyles[status] ? refundStyles[status] : refundStyles.PENDING)) }, { children: t(camelCase(status)) })) }))) : (_jsx(RefundStatus, { status: status, refundTooltip: refundTooltip, date: date, gatewayTooltip: gatewayTooltip, unCapturedTooltip: unCapturedTooltip, acquirerTooltip: acquirerTooltip, errorCode: errorCode, acquirerCode: acquirerCode, gatewayCode: gatewayCode, timezone: timezone, refundTooltipLabel: refundTooltipLabel })) })) }) })));
32
+ } }, { children: _jsx(StatusCellContainer, { children: _jsx(IconWrapper, Object.assign({ width: isTextShown ? 'auto' : '36px', sx: Object.assign({}, (isUncaptured && {
33
+ border: 'none',
34
+ })) }, { children: isTextShown ? (_jsx(Tooltip, Object.assign({ title: date ? formatDate(date) : t(camelCase(status)) }, { children: _jsx(TextLabel, Object.assign({ sx: Object.assign({}, (refundStyles[status] ? refundStyles[status] : refundStyles.PENDING)) }, { children: t(camelCase(status)) })) }))) : (_jsx(RefundStatus, { status: status, refundTooltip: refundTooltip, date: date, gatewayTooltip: gatewayTooltip, unCapturedTooltip: unCapturedTooltip, acquirerTooltip: acquirerTooltip, errorCode: errorCode, acquirerCode: acquirerCode, gatewayCode: gatewayCode, timezone: timezone, refundTooltipLabel: refundTooltipLabel })) })) }) })));
31
35
  }
32
36
  export default RefundStatusCell;
@@ -11,9 +11,7 @@ export function RefundStateIcon({ status, gatewayTooltip, unCapturedTooltip, acq
11
11
  // eslint-disable-next-line
12
12
  return _jsx(RefundStatusIcon, { status: status, refundTooltip: refundTooltip });
13
13
  }
14
- return (_jsx(Tooltip, Object.assign({ title: t(camelCase(status)) }, { children: _jsx(ChargeStatusIcon, { chargeStatus: status, gatewayTooltip: gatewayTooltip, chargeTooltip: unCapturedTooltip, acquirerTooltip: acquirerTooltip, errorCode: errorCode, acquirerCode: acquirerCode, gatewayCode: gatewayCode, unCapturedStyles: {
15
- left: '9px',
16
- }, iconWrapperStyles: {
14
+ return (_jsx(Tooltip, Object.assign({ title: t(camelCase(status)) }, { children: _jsx(ChargeStatusIcon, { chargeStatus: status, gatewayTooltip: gatewayTooltip, chargeTooltip: unCapturedTooltip, acquirerTooltip: acquirerTooltip, errorCode: errorCode, acquirerCode: acquirerCode, gatewayCode: gatewayCode, iconWrapperStyles: {
17
15
  height: 17,
18
16
  } }) })));
19
17
  }
@@ -42,7 +42,7 @@ export declare const API_LIST_CONSTANTS: {
42
42
  readonly limit: 50;
43
43
  };
44
44
  readonly WalletsList: {
45
- readonly limit: 5;
45
+ readonly limit: 25;
46
46
  readonly page: 1;
47
47
  };
48
48
  readonly brands: {
@@ -42,7 +42,7 @@ export const API_LIST_CONSTANTS = {
42
42
  limit: API_BASE_LIMIT,
43
43
  },
44
44
  WalletsList: {
45
- limit: 5,
45
+ limit: 25,
46
46
  page: 1,
47
47
  },
48
48
  brands: {
@@ -7,13 +7,15 @@ export const filtersTypeMap = {
7
7
  [APP_CODES.acceptance.services.chargeback.code]: ['CHARGEBACKS'],
8
8
  [APP_CODES.acceptance.services.destinations.code]: ['DESTINATIONS'],
9
9
  [APP_CODES.acceptance.code]: ['CHARGE', 'AUTHORIZE', 'REFUND', 'CHARGEBACKS', 'DESTINATIONS'],
10
- [APP_CODES.payouts.code]: ['PAYOUT'],
10
+ [APP_CODES.payouts.code]: ['PAYOUT', 'RETAILER_PAYOUT', 'MERCHANT_PAYOUT'],
11
11
  [APP_CODES.wallet.code]: ['STATEMENT', 'STATEMENT_SUMMARY'],
12
12
  [APP_CODES.billing.code]: ['INVOICE'],
13
13
  [APP_CODES.payouts.services.payouts.code]: ['PAYOUT'],
14
14
  [APP_CODES.wallet.services.merchants.functions.statement.code]: ['STATEMENT'],
15
15
  [APP_CODES.wallet.services.merchants.functions.summary.code]: ['STATEMENT_SUMMARY'],
16
16
  [APP_CODES.billing.services.invoices.code]: ['INVOICE'],
17
+ [APP_CODES.payouts.services.merchantPayout.code]: ['MERCHANT_PAYOUT'],
18
+ [APP_CODES.payouts.services.retailerPayout.code]: ['RETAILER_PAYOUT'],
17
19
  };
18
20
  export const REPORTS_APPS = [
19
21
  {
@@ -47,6 +49,10 @@ export const REPORTS_APPS = [
47
49
  code: APP_CODES.payouts.code,
48
50
  name: 'Payouts',
49
51
  icon: payoutsAppIcon,
50
- services: [{ name: 'Payouts', code: 'PAYOUT' }],
52
+ services: [
53
+ { name: 'Payouts', code: 'PAYOUT' },
54
+ { name: 'Merchant Payouts', code: 'MERCHANT_PAYOUT' },
55
+ { name: 'Retailer Payouts', code: 'RETAILER_PAYOUT' },
56
+ ],
51
57
  },
52
58
  ];
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.336",
4
+ "version": "0.1.338",
5
5
  "testVersion": 0,
6
6
  "type": "module",
7
7
  "main": "build/index.js",