@tap-payments/os-micro-frontend-shared 0.1.231 → 0.1.233

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,2 +1,3 @@
1
1
  export * from './SourceIcons';
2
+ export * from './utils';
2
3
  export * from './components';
@@ -1,2 +1,3 @@
1
1
  export * from './SourceIcons';
2
+ export * from './utils';
2
3
  export * from './components';
@@ -10,5 +10,5 @@ export { GeographyIcon } from './GeographyIcon';
10
10
  export { default as IssuerIcon, type IssuerIconProps } from './IssuerIcon';
11
11
  export { PayoutIcon } from './PayoutIcon';
12
12
  export { default as RefundIcon } from './RefundIcon';
13
- export { SourceIcons, SourceIcon } from './SourceIcons';
13
+ export { SourceIcons, SourceIcon, getPaymentMethodKey } from './SourceIcons';
14
14
  export { DestinationIcon } from './DestinationIcon';
@@ -10,5 +10,5 @@ export { GeographyIcon } from './GeographyIcon';
10
10
  export { default as IssuerIcon } from './IssuerIcon';
11
11
  export { PayoutIcon } from './PayoutIcon';
12
12
  export { default as RefundIcon } from './RefundIcon';
13
- export { SourceIcons, SourceIcon } from './SourceIcons';
13
+ export { SourceIcons, SourceIcon, getPaymentMethodKey } from './SourceIcons';
14
14
  export { DestinationIcon } from './DestinationIcon';
@@ -22,7 +22,7 @@ export declare const useColumnResizeWithPinned: ({ pinnedStartColumnsData, pinne
22
22
  order?: number | undefined;
23
23
  pinned?: "start" | "end" | undefined;
24
24
  pinnable?: boolean | undefined;
25
- cellStyle?: import("react").CSSProperties | undefined;
25
+ cellStyle?: import("@mui/system").SxProps | undefined;
26
26
  headerStyle?: import("react").CSSProperties | undefined;
27
27
  filter?: ({
28
28
  onConfirm?: ((filterValues: import("../../../../../../types/index.js").ColumnFilterValues) => void) | undefined;
@@ -48,7 +48,7 @@ export declare const useColumnResizeWithPinned: ({ pinnedStartColumnsData, pinne
48
48
  order?: number | undefined;
49
49
  pinned?: "start" | "end" | undefined;
50
50
  pinnable?: boolean | undefined;
51
- cellStyle?: import("react").CSSProperties | undefined;
51
+ cellStyle?: import("@mui/system").SxProps | undefined;
52
52
  headerStyle?: import("react").CSSProperties | undefined;
53
53
  filter?: ({
54
54
  onConfirm?: ((filterValues: import("../../../../../../types/index.js").ColumnFilterValues) => void) | undefined;
@@ -76,7 +76,7 @@ export { default as Dropdown2 } from './Dropdown2';
76
76
  export { default as CountryFlag } from './CountryFlag';
77
77
  export { default as CurrencyIcon } from './CurrencyIcon';
78
78
  export { default as CustomBackdrop } from './CustomBackdrop';
79
- export { default as DeviceIcon } from './DeviceIcon';
79
+ export { default as DeviceIcon, isDeviceIconShown } from './DeviceIcon';
80
80
  export { default as CountBadge, BadgeVariants, CountAnimatedBadge, type StyledBadgeProps, paymentSourceAnimation } from './CountBadge';
81
81
  export { default as CircularProgressWithLabel } from './CircularProgressWithLabel';
82
82
  export { default as Collapse, type CollapseProps } from './Collapse';
@@ -76,7 +76,7 @@ export { default as Dropdown2 } from './Dropdown2';
76
76
  export { default as CountryFlag } from './CountryFlag';
77
77
  export { default as CurrencyIcon } from './CurrencyIcon';
78
78
  export { default as CustomBackdrop } from './CustomBackdrop';
79
- export { default as DeviceIcon } from './DeviceIcon';
79
+ export { default as DeviceIcon, isDeviceIconShown } from './DeviceIcon';
80
80
  export { default as CountBadge, BadgeVariants, CountAnimatedBadge, paymentSourceAnimation } from './CountBadge';
81
81
  export { default as CircularProgressWithLabel } from './CircularProgressWithLabel';
82
82
  export { default as Collapse } from './Collapse';
@@ -11,6 +11,95 @@ export interface Merchant {
11
11
  }
12
12
  export type VerificationStatus = 'incomplete' | 'complete' | 'reviewed' | 'verified';
13
13
  export type MerchantStatus = 'completed' | 'all' | 'country';
14
+ export interface MerchantDetails {
15
+ id: string;
16
+ status: MerchantStatus;
17
+ marketplace: boolean;
18
+ commerceplatform: {
19
+ id: string;
20
+ name: {
21
+ en: string;
22
+ };
23
+ logo: string;
24
+ operator_id: string;
25
+ };
26
+ platforms: Array<{
27
+ id: string;
28
+ segment: string;
29
+ brand: {
30
+ logo?: string;
31
+ name: Array<{
32
+ lang: string;
33
+ text: string;
34
+ }>;
35
+ };
36
+ }>;
37
+ wallet: {
38
+ id: string;
39
+ status: MerchantStatus;
40
+ bank_account: {
41
+ id: string;
42
+ status: MerchantStatus;
43
+ iban: string;
44
+ };
45
+ payout_status: string;
46
+ payout_status_control: string;
47
+ };
48
+ created: number;
49
+ country: string;
50
+ terminal: {
51
+ id: string;
52
+ authorizes: {
53
+ status: string;
54
+ status_message: string;
55
+ };
56
+ charges: {
57
+ status: string;
58
+ status_message: string;
59
+ };
60
+ refunds: {
61
+ status: string;
62
+ status_message: string;
63
+ };
64
+ virtual: boolean;
65
+ acceptance_status: string;
66
+ acceptance_status_control: string;
67
+ };
68
+ payout_status: 'enabled' | 'disabled';
69
+ acceptance_status: 'enabled' | 'disabled';
70
+ legacy_id: string;
71
+ base_currency: string;
72
+ payment_provider: {
73
+ technology_id: string;
74
+ settlement_by: string;
75
+ };
76
+ development_house: {
77
+ id: string;
78
+ name: {
79
+ ar: string | null;
80
+ en: string;
81
+ };
82
+ logo: string;
83
+ };
84
+ payment_provider_info: {
85
+ technology: {
86
+ id: string;
87
+ name: {
88
+ ar: string | null;
89
+ en: string;
90
+ };
91
+ logo: string;
92
+ };
93
+ settlement_by: {
94
+ id: string;
95
+ name: {
96
+ ar: string | null;
97
+ en: string;
98
+ };
99
+ logo: string;
100
+ };
101
+ };
102
+ }
14
103
  export interface BusinessMerchant {
15
104
  id: string;
16
105
  status: MerchantStatus;
@@ -53,95 +142,8 @@ export interface BusinessMerchant {
53
142
  legal_name: {
54
143
  en: string;
55
144
  };
56
- merchant: {
57
- id: string;
58
- status: MerchantStatus;
59
- marketplace: boolean;
60
- commerceplatform: {
61
- id: string;
62
- name: {
63
- en: string;
64
- };
65
- logo: string;
66
- operator_id: string;
67
- };
68
- platforms: Array<{
69
- id: string;
70
- segment: string;
71
- brand: {
72
- logo?: string;
73
- name: Array<{
74
- lang: string;
75
- text: string;
76
- }>;
77
- };
78
- }>;
79
- wallet: {
80
- id: string;
81
- status: MerchantStatus;
82
- bank_account: {
83
- id: string;
84
- status: MerchantStatus;
85
- iban: string;
86
- };
87
- payout_status: string;
88
- payout_status_control: string;
89
- };
90
- created: number;
91
- country: string;
92
- terminal: {
93
- id: string;
94
- authorizes: {
95
- status: string;
96
- status_message: string;
97
- };
98
- charges: {
99
- status: string;
100
- status_message: string;
101
- };
102
- refunds: {
103
- status: string;
104
- status_message: string;
105
- };
106
- virtual: boolean;
107
- acceptance_status: string;
108
- acceptance_status_control: string;
109
- };
110
- payout_status: 'enabled' | 'disabled';
111
- acceptance_status: 'enabled' | 'disabled';
112
- legacy_id: string;
113
- base_currency: string;
114
- payment_provider: {
115
- technology_id: string;
116
- settlement_by: string;
117
- };
118
- development_house: {
119
- id: string;
120
- name: {
121
- ar: string | null;
122
- en: string;
123
- };
124
- logo: string;
125
- };
126
- payment_provider_info: {
127
- technology: {
128
- id: string;
129
- name: {
130
- ar: string | null;
131
- en: string;
132
- };
133
- logo: string;
134
- };
135
- settlement_by: {
136
- id: string;
137
- name: {
138
- ar: string | null;
139
- en: string;
140
- };
141
- logo: string;
142
- };
143
- };
144
- };
145
+ merchant: MerchantDetails;
146
+ retailer: MerchantDetails;
145
147
  country: string;
146
148
  license: {
147
149
  number: string;
@@ -35,7 +35,7 @@ export interface IColumnProps<R = any> {
35
35
  order?: number;
36
36
  pinned?: 'start' | 'end';
37
37
  pinnable?: boolean;
38
- cellStyle?: React.CSSProperties;
38
+ cellStyle?: SxProps;
39
39
  headerStyle?: React.CSSProperties;
40
40
  filter?: IColumnFilter;
41
41
  isDefaultPinned?: boolean;
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.231",
4
+ "version": "0.1.233",
5
5
  "testVersion": 0,
6
6
  "type": "module",
7
7
  "main": "build/index.js",