@tap-payments/os-micro-frontend-shared 0.1.377 → 0.1.378-test.1

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.
Files changed (55) hide show
  1. package/build/components/AnimatedSpinnerIcon/style.d.ts +0 -1
  2. package/build/components/Chip/style.d.ts +0 -1
  3. package/build/components/CountBadge/style.d.ts +0 -1
  4. package/build/components/Dialog/style.d.ts +0 -1
  5. package/build/components/FlippingCard/style.d.ts +0 -1
  6. package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
  7. package/build/components/JSONViewer/style.d.ts +0 -1
  8. package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
  9. package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
  10. package/build/components/SearchButton/styles.d.ts +0 -1
  11. package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
  12. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
  13. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
  14. package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
  15. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +0 -1
  16. package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +0 -1
  17. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
  18. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
  19. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
  20. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
  21. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
  22. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
  23. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
  24. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
  25. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
  26. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
  27. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
  28. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
  29. package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +0 -1
  30. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
  31. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
  32. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
  33. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
  34. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
  35. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
  36. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
  37. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
  38. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
  39. package/build/components/TableCells/CustomCells/style.d.ts +0 -1
  40. package/build/components/TableReports/components/DownloadButton/style.d.ts +0 -1
  41. package/build/components/TableReports/style.d.ts +0 -1
  42. package/build/components/VirtualTables/components/style.d.ts +0 -1
  43. package/build/components/Window/Window.js +2 -2
  44. package/build/components/Window/style.d.ts +1 -1
  45. package/build/components/Window/style.js +1 -2
  46. package/build/constants/apps.js +1 -0
  47. package/build/constants/reports.d.ts +5 -2
  48. package/build/constants/reports.js +3 -3
  49. package/build/types/apps.d.ts +1 -0
  50. package/build/types/charge.d.ts +125 -0
  51. package/build/types/flag.d.ts +27 -0
  52. package/build/types/flag.js +1 -0
  53. package/build/types/index.d.ts +1 -0
  54. package/build/types/index.js +1 -0
  55. package/package.json +3 -3
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  type AnimatedSpinnerIconProps = {
4
3
  width?: string;
5
4
  height?: string;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import { GetSourceAnimationFunction } from './type';
4
3
  export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
5
4
  variant?: import("./type").ChipVariant | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const AgreementImageWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DialogWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Wrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const FOOTER_HEIGHT = 37;
4
3
  export declare const TITLE_BAR_HEIGHT = "32px";
5
4
  export declare const VIEWER_HEIGHT = 545;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import type { SxProps, Theme } from '@mui/material/styles';
4
3
  export declare const CHIP_GAP = 3;
5
4
  export declare const DEFAULT_CHIP_MIN_WIDTH = 24;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import type { SxProps, Theme } from '@mui/material/styles';
4
3
  export declare const CHIP_GAP = 3;
5
4
  export declare const CenterIconWrapper: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledInput: import("@emotion/styled").StyledComponent<{
4
3
  width?: string | number | undefined;
5
4
  height?: string | number | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const ErrorCodeLabel: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import { TableMode } from '../../../../types/index.js';
4
3
  export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
5
4
  tableMode?: TableMode | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const AgreementCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledAgreementCardIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  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,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledAppsCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const AppsStatusContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const AuthIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
3
  export declare const AuthCellContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Button: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledDownloadFileImageWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
4
3
  isTextShown?: boolean | undefined;
5
4
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const ProductCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const RefundChargeCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const RefundCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const SalesChannelsContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<{
4
3
  width?: string | number | undefined;
5
4
  height?: string | number | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
4
3
  variant?: "Global" | "Regional" | "Local" | undefined;
5
4
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Button: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  type ExportButtonProps = {
4
3
  notificationState?: {
5
4
  success: boolean;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  interface TableWrapperProps {
4
3
  showNoDataView?: boolean;
5
4
  }
@@ -4,7 +4,7 @@ import { useTheme } from '@mui/material';
4
4
  import { motion } from 'framer-motion';
5
5
  import { Resizable } from 're-resizable';
6
6
  import { APP_WINDOW_Z_INDEX, FOOTER_HEIGHT, HEADER_HEIGHT } from '../../constants/index.js';
7
- import { contentStyle, ContentWrapper, initalStyle, resizableMainStyle, AppContainerWrapper, AppContainerContainer } from './style';
7
+ import { contentStyle, ContentWrapper, initialStyle, resizableMainStyle, AppContainerWrapper, AppContainerContainer } from './style';
8
8
  function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragControls, onClick, options: { width, height, minHeight, minWidth, maxHeight, maxWidth, order, openOrder = 1 }, sandboxMode = false, sx, }) {
9
9
  const theme = useTheme();
10
10
  const [isDrag, setIsDrag] = useState(true);
@@ -28,7 +28,7 @@ function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragC
28
28
  height: isMaximized ? '100vh' : '100%',
29
29
  });
30
30
  }, [isMaximized, width]);
31
- return (_jsx(AppContainerWrapper, Object.assign({ id: "app-container-wrapper", "data-testid": "AppContainerWrapper", sx: sx }, { children: _jsx(AppContainerContainer, Object.assign({ "data-testid": "AppContainerContainer" }, { children: _jsx(motion.div, Object.assign({ id: "app-content", "data-add-id": id, "data-testid": "AppContent", ref: constraintsRef, initial: initalStyle }, { children: _jsx(ContentWrapper, Object.assign({ id: "content-wrapper", drag: !isMaximized && isDrag, dragMomentum: false, dragConstraints: false, onDragStart: onClick, onDragEnter: onClick, onClick: onClick, dragControls: dragControls, dragListener: false, style: Object.assign(Object.assign(Object.assign({}, (order && {
31
+ return (_jsx(AppContainerWrapper, Object.assign({ id: "app-container-wrapper", "data-testid": "AppContainerWrapper", sx: sx }, { children: _jsx(AppContainerContainer, Object.assign({ "data-testid": "AppContainerContainer" }, { children: _jsx(motion.div, Object.assign({ id: "app-content", "data-add-id": id, "data-testid": "AppContent", ref: constraintsRef, initial: initialStyle }, { children: _jsx(ContentWrapper, Object.assign({ id: "content-wrapper", drag: !isMaximized && isDrag, dragMomentum: false, dragConstraints: false, onDragStart: onClick, onDragEnter: onClick, onClick: onClick, dragControls: dragControls, dragListener: false, style: Object.assign(Object.assign(Object.assign({}, (order && {
32
32
  zIndex: Number(order) + APP_WINDOW_Z_INDEX,
33
33
  })), contentStyle), { height }), initial: Object.assign({ marginInline: 'auto', scale: 0, left: 0 }, (!isMaximized && {
34
34
  left: 48 * (openOrder - 1),
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties } from 'react';
2
2
  export declare const resizableMainStyle: CSSProperties;
3
3
  export declare const contentStyle: CSSProperties;
4
- export declare const initalStyle: any;
4
+ export declare const initialStyle: Record<string, unknown>;
5
5
  export declare const ContentWrapper: import("@emotion/styled").StyledComponent<{
6
6
  hidden?: boolean | undefined;
7
7
  color?: string | undefined;
@@ -19,8 +19,7 @@ export const contentStyle = {
19
19
  overflow: 'visible',
20
20
  borderRadius: '12px',
21
21
  };
22
- // eslint-disable-next-line
23
- export const initalStyle = {
22
+ export const initialStyle = {
24
23
  width: 'inherit',
25
24
  height: 'inherit',
26
25
  gridRowStart: 1,
@@ -493,5 +493,6 @@ export const MF_APPS_MAPPER = new Set([
493
493
  APP_CODES.reports.code,
494
494
  APP_CODES.leads.code,
495
495
  APP_CODES.wallet.code,
496
+ APP_CODES.acceptance.code,
496
497
  APP_CODES.authentication.code,
497
498
  ]);
@@ -22,8 +22,11 @@ export declare const REPORTS_APPS: {
22
22
  code: string;
23
23
  name: string;
24
24
  icon: string;
25
- services: {
25
+ services: ({
26
26
  name: string;
27
27
  code: string;
28
- }[];
28
+ } | {
29
+ name: string;
30
+ code: string[];
31
+ })[];
29
32
  }[];
@@ -12,7 +12,7 @@ const REPORT_FILTER_TYPES = {
12
12
  AUTHORIZE: 'AUTHORIZE',
13
13
  REFUND: 'REFUND',
14
14
  CHARGEBACKS: 'CHARGEBACKS',
15
- DESTINATIONS: 'DESTINATIONS',
15
+ DESTINATIONS: ['DESTINATIONS', 'REVERSED_DESTINATIONS'],
16
16
  // Wallet
17
17
  STATEMENT: 'STATEMENT',
18
18
  STATEMENT_SUMMARY: 'STATEMENT_SUMMARY',
@@ -39,13 +39,13 @@ export const reportFilterTypesMap = {
39
39
  [APP_CODES.acceptance.services.authorization.code]: [REPORT_FILTER_TYPES.AUTHORIZE],
40
40
  [APP_CODES.acceptance.services.refunds.code]: [REPORT_FILTER_TYPES.REFUND],
41
41
  [APP_CODES.acceptance.services.chargeback.code]: [REPORT_FILTER_TYPES.CHARGEBACKS],
42
- [APP_CODES.acceptance.services.destinations.code]: [REPORT_FILTER_TYPES.DESTINATIONS],
42
+ [APP_CODES.acceptance.services.destinations.code]: REPORT_FILTER_TYPES.DESTINATIONS,
43
43
  [APP_CODES.acceptance.code]: [
44
44
  REPORT_FILTER_TYPES.CHARGE,
45
45
  REPORT_FILTER_TYPES.AUTHORIZE,
46
46
  REPORT_FILTER_TYPES.REFUND,
47
47
  REPORT_FILTER_TYPES.CHARGEBACKS,
48
- REPORT_FILTER_TYPES.DESTINATIONS,
48
+ ...REPORT_FILTER_TYPES.DESTINATIONS,
49
49
  ],
50
50
  // Wallet
51
51
  [APP_CODES.wallet.services.merchants.functions.statement.code]: [REPORT_FILTER_TYPES.STATEMENT],
@@ -112,6 +112,7 @@ export type MFWidgetBaseProps = {
112
112
  defaultEntity: Entity;
113
113
  apps: UserApp[];
114
114
  users: SegmentUser[];
115
+ operator: Segment['operator'];
115
116
  organizationId: string;
116
117
  isBusinessSegment: boolean;
117
118
  isAnyMerchantHasMarketplace: boolean;
@@ -2,6 +2,7 @@ import { AuthenticationStatus } from './authentication';
2
2
  import { Country } from './appConfig';
3
3
  import { Currency } from './currency';
4
4
  import { Discount, Item, Vat } from './invoice';
5
+ import { HttpMethodFilters } from './api';
5
6
  export interface ChargeDialog {
6
7
  id: string;
7
8
  order: number;
@@ -114,6 +115,9 @@ export interface Charge {
114
115
  transaction_status?: 'Y' | 'A' | 'N' | 'R';
115
116
  id: string;
116
117
  status: AuthenticationStatus;
118
+ threeDSecure?: {
119
+ status: AuthenticationStatus;
120
+ };
117
121
  };
118
122
  payment: {
119
123
  type: string;
@@ -275,6 +279,13 @@ export interface Charge {
275
279
  currency_rate: number;
276
280
  fee: number;
277
281
  amount: number;
282
+ base: {
283
+ amount: number;
284
+ currency: string;
285
+ rate: number;
286
+ fee: number;
287
+ vat: number;
288
+ };
278
289
  };
279
290
  fees: {
280
291
  amount: number;
@@ -317,6 +328,10 @@ export interface Charge {
317
328
  id: string;
318
329
  legacy_id: string;
319
330
  country: string;
331
+ name: string;
332
+ retailer: {
333
+ id: string;
334
+ };
320
335
  };
321
336
  refunds: {
322
337
  summary: {
@@ -393,4 +408,114 @@ export interface Charge {
393
408
  total_payments_count?: number;
394
409
  };
395
410
  request_body?: Record<string, unknown>;
411
+ risk?: {
412
+ id: string;
413
+ status: 'ACCEPTED' | 'REJECTED' | 'WARNING';
414
+ rules: Array<{
415
+ id: string;
416
+ name: string;
417
+ type: string;
418
+ rule_group: string;
419
+ risk: string;
420
+ value: string;
421
+ decision: string;
422
+ }>;
423
+ };
424
+ }
425
+ export type ChargeFilterStatus = 'captured' | 'unCaptured' | 'all' | 'initiated' | (string & {}) | undefined;
426
+ export interface ChargeFilters extends HttpMethodFilters {
427
+ status?: ChargeFilterStatus;
428
+ periodType?: string;
429
+ destinationIds?: string[];
430
+ }
431
+ export interface RefundChargeRequest {
432
+ charge_id: string;
433
+ amount: number;
434
+ currency: string;
435
+ reason: string;
436
+ user: {
437
+ id: string;
438
+ name: string;
439
+ channel: string;
440
+ };
441
+ }
442
+ export interface ChargeRequestBody {
443
+ id?: string;
444
+ source: {
445
+ id: string;
446
+ };
447
+ amount: number;
448
+ currency: string;
449
+ product: 'TAP OS';
450
+ statement_descriptor?: string;
451
+ customer?: {
452
+ id?: string;
453
+ first_name: string;
454
+ middle_name?: string;
455
+ last_name: string;
456
+ email?: string;
457
+ phone?: {
458
+ country_code: string;
459
+ number: string;
460
+ };
461
+ };
462
+ hashstring?: string;
463
+ post?: {
464
+ url: string;
465
+ };
466
+ redirect?: {
467
+ url: string;
468
+ };
469
+ customer_initiated?: boolean;
470
+ threeDSecure?: boolean;
471
+ merchant?: {
472
+ id: string;
473
+ };
474
+ auto?: {
475
+ type: 'VOID' | 'CAPTURE';
476
+ time: number;
477
+ };
478
+ card_threeDSecure?: boolean;
479
+ order: {
480
+ amount: number;
481
+ merchant?: {
482
+ id: string;
483
+ };
484
+ currency: string;
485
+ customer?: {
486
+ id?: string;
487
+ first_name: string;
488
+ middle_name?: string;
489
+ last_name: string;
490
+ email?: string;
491
+ phone?: {
492
+ country_code: string;
493
+ number: string;
494
+ };
495
+ };
496
+ items: Array<{
497
+ name: string;
498
+ amount: number;
499
+ currency: string;
500
+ quantity: number;
501
+ description: string;
502
+ requires_shipping: boolean;
503
+ }>;
504
+ };
505
+ receipt: {
506
+ email?: boolean;
507
+ sms?: boolean;
508
+ };
509
+ }
510
+ export interface ChargeResponse {
511
+ object: string;
512
+ charges: Charge[];
513
+ has_more: boolean;
514
+ total_count: number;
515
+ count: number;
516
+ live_mode: boolean;
517
+ receipt: {
518
+ id: string;
519
+ };
520
+ status?: string;
396
521
  }
@@ -0,0 +1,27 @@
1
+ export interface Flag {
2
+ id: string;
3
+ status: 'OPEN' | 'CLEARED';
4
+ created: number;
5
+ object: string;
6
+ live_mode: boolean;
7
+ api_version: string;
8
+ amount: number;
9
+ ishold: boolean;
10
+ }
11
+ export interface FlagResponse {
12
+ object: string;
13
+ has_more: boolean;
14
+ live_mode: boolean;
15
+ api_version: string;
16
+ count: number;
17
+ total_count: number;
18
+ }
19
+ export type FlagFilterStatus = 'open' | 'cleared' | 'all' | undefined;
20
+ export interface FlagsFilters {
21
+ status: FlagFilterStatus;
22
+ dateFrom: number;
23
+ dateTo: number;
24
+ transaction?: string[];
25
+ startAfter?: string;
26
+ filteredIds?: string[];
27
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -33,3 +33,4 @@ export * from './utilities';
33
33
  export * from './reports';
34
34
  export * from './document';
35
35
  export * from './toast';
36
+ export * from './flag';
@@ -33,3 +33,4 @@ export * from './utilities';
33
33
  export * from './reports';
34
34
  export * from './document';
35
35
  export * from './toast';
36
+ export * from './flag';
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.377",
5
- "testVersion": 0,
4
+ "version": "0.1.378-test.1",
5
+ "testVersion": 1,
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
+ }