@yuno-payments/dashboard-api-mfe 0.43.0-metadata-beta.1 → 0.43.0

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 (94) hide show
  1. package/build/cjs/index.js +6 -6
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/types/api/api.d.ts +61 -7
  4. package/build/cjs/types/api/api.test.d.ts +1 -0
  5. package/build/cjs/types/api/api.types.d.ts +28 -0
  6. package/build/cjs/types/msw/handlers/reconciliation-insights.d.ts +1 -0
  7. package/build/cjs/types/msw/mocks/reconciliation-insights/index.d.ts +22 -0
  8. package/build/cjs/types/mutations/connections/connections.mutation.d.ts +2 -2
  9. package/build/cjs/types/mutations/developers/developers.mutation.d.ts +3 -0
  10. package/build/cjs/types/mutations/developers/index.d.ts +1 -0
  11. package/build/cjs/types/mutations/developers/types.d.ts +5 -0
  12. package/build/cjs/types/mutations/index.d.ts +2 -0
  13. package/build/cjs/types/mutations/organization-config/index.d.ts +1 -0
  14. package/build/cjs/types/mutations/organization-config/organization-config.mutation.d.ts +6 -0
  15. package/build/cjs/types/mutations/reports/reports.mutation.d.ts +1 -0
  16. package/build/cjs/types/mutations/subscriptions/index.d.ts +1 -0
  17. package/build/cjs/types/mutations/subscriptions/subscriptions.mutation.d.ts +19 -0
  18. package/build/cjs/types/queries/audit/audit.query.d.ts +1 -0
  19. package/build/cjs/types/queries/developers/developers.query.d.ts +3 -1
  20. package/build/cjs/types/queries/index.d.ts +3 -0
  21. package/build/cjs/types/queries/network-tokens/network-tokens.query.d.ts +2 -3
  22. package/build/cjs/types/queries/organization-config/index.d.ts +1 -0
  23. package/build/cjs/types/queries/organization-config/organization-config.query.d.ts +4 -0
  24. package/build/cjs/types/queries/payments/payouts-timeline.query.test.d.ts +1 -0
  25. package/build/cjs/types/queries/payments/payouts.query.d.ts +1 -0
  26. package/build/cjs/types/queries/recipients/index.d.ts +1 -0
  27. package/build/cjs/types/queries/recipients/recipients.query.d.ts +8 -0
  28. package/build/cjs/types/queries/reconciliations/index.d.ts +1 -0
  29. package/build/cjs/types/queries/reconciliations/reconciliation-insights.query.d.ts +23 -0
  30. package/build/cjs/types/queries/reconciliations/reconciliation-insights.query.test.d.ts +1 -0
  31. package/build/cjs/types/queries/subscriptions/index.d.ts +1 -0
  32. package/build/cjs/types/queries/subscriptions/subscriptions.query.d.ts +3 -0
  33. package/build/cjs/types/types/audit/audit.d.ts +14 -0
  34. package/build/cjs/types/types/connection/connection.d.ts +23 -15
  35. package/build/cjs/types/types/data-report/data-report.d.ts +23 -8
  36. package/build/cjs/types/types/data-report/fraud.types.d.ts +1 -0
  37. package/build/cjs/types/types/index.d.ts +2 -0
  38. package/build/cjs/types/types/organization-config/index.d.ts +1 -0
  39. package/build/cjs/types/types/organization-config/organization-config.d.ts +34 -0
  40. package/build/cjs/types/types/payouts/payouts.d.ts +20 -0
  41. package/build/cjs/types/types/recipients/index.d.ts +1 -0
  42. package/build/cjs/types/types/recipients/recipients.d.ts +216 -0
  43. package/build/cjs/types/types/reconciliation/index.d.ts +1 -0
  44. package/build/cjs/types/types/reconciliation/reconciliation-insights.d.ts +172 -0
  45. package/build/cjs/types/types/reports/reports.d.ts +4 -0
  46. package/build/cjs/types/types/webhook/webhook.d.ts +6 -0
  47. package/build/esm/index.js +6 -6
  48. package/build/esm/index.js.map +1 -1
  49. package/build/esm/types/api/api.d.ts +61 -7
  50. package/build/esm/types/api/api.test.d.ts +1 -0
  51. package/build/esm/types/api/api.types.d.ts +28 -0
  52. package/build/esm/types/msw/handlers/reconciliation-insights.d.ts +1 -0
  53. package/build/esm/types/msw/mocks/reconciliation-insights/index.d.ts +22 -0
  54. package/build/esm/types/mutations/connections/connections.mutation.d.ts +2 -2
  55. package/build/esm/types/mutations/developers/developers.mutation.d.ts +3 -0
  56. package/build/esm/types/mutations/developers/index.d.ts +1 -0
  57. package/build/esm/types/mutations/developers/types.d.ts +5 -0
  58. package/build/esm/types/mutations/index.d.ts +2 -0
  59. package/build/esm/types/mutations/organization-config/index.d.ts +1 -0
  60. package/build/esm/types/mutations/organization-config/organization-config.mutation.d.ts +6 -0
  61. package/build/esm/types/mutations/reports/reports.mutation.d.ts +1 -0
  62. package/build/esm/types/mutations/subscriptions/index.d.ts +1 -0
  63. package/build/esm/types/mutations/subscriptions/subscriptions.mutation.d.ts +19 -0
  64. package/build/esm/types/queries/audit/audit.query.d.ts +1 -0
  65. package/build/esm/types/queries/developers/developers.query.d.ts +3 -1
  66. package/build/esm/types/queries/index.d.ts +3 -0
  67. package/build/esm/types/queries/network-tokens/network-tokens.query.d.ts +2 -3
  68. package/build/esm/types/queries/organization-config/index.d.ts +1 -0
  69. package/build/esm/types/queries/organization-config/organization-config.query.d.ts +4 -0
  70. package/build/esm/types/queries/payments/payouts-timeline.query.test.d.ts +1 -0
  71. package/build/esm/types/queries/payments/payouts.query.d.ts +1 -0
  72. package/build/esm/types/queries/recipients/index.d.ts +1 -0
  73. package/build/esm/types/queries/recipients/recipients.query.d.ts +8 -0
  74. package/build/esm/types/queries/reconciliations/index.d.ts +1 -0
  75. package/build/esm/types/queries/reconciliations/reconciliation-insights.query.d.ts +23 -0
  76. package/build/esm/types/queries/reconciliations/reconciliation-insights.query.test.d.ts +1 -0
  77. package/build/esm/types/queries/subscriptions/index.d.ts +1 -0
  78. package/build/esm/types/queries/subscriptions/subscriptions.query.d.ts +3 -0
  79. package/build/esm/types/types/audit/audit.d.ts +14 -0
  80. package/build/esm/types/types/connection/connection.d.ts +23 -15
  81. package/build/esm/types/types/data-report/data-report.d.ts +23 -8
  82. package/build/esm/types/types/data-report/fraud.types.d.ts +1 -0
  83. package/build/esm/types/types/index.d.ts +2 -0
  84. package/build/esm/types/types/organization-config/index.d.ts +1 -0
  85. package/build/esm/types/types/organization-config/organization-config.d.ts +34 -0
  86. package/build/esm/types/types/payouts/payouts.d.ts +20 -0
  87. package/build/esm/types/types/recipients/index.d.ts +1 -0
  88. package/build/esm/types/types/recipients/recipients.d.ts +216 -0
  89. package/build/esm/types/types/reconciliation/index.d.ts +1 -0
  90. package/build/esm/types/types/reconciliation/reconciliation-insights.d.ts +172 -0
  91. package/build/esm/types/types/reports/reports.d.ts +4 -0
  92. package/build/esm/types/types/webhook/webhook.d.ts +6 -0
  93. package/build/index.d.ts +676 -34
  94. package/package.json +4 -4
@@ -0,0 +1,34 @@
1
+ export declare namespace OrganizationConfig {
2
+ enum ConfigType {
3
+ YUNO_SMART_TOKENS = "YUNO_SMART_TOKENS",
4
+ CUSTOM_ROUTING_RULES = "CUSTOM_ROUTING_RULES",
5
+ CUSTOM_RETRY_DECLINED_WITH_PAN = "CUSTOM_RETRY_DECLINED_WITH_PAN"
6
+ }
7
+ interface OrganizationConfigItem {
8
+ id: number;
9
+ organization_code: string;
10
+ account_code: string;
11
+ config: ConfigType;
12
+ created_at: string;
13
+ updated_at: string;
14
+ }
15
+ interface GetConfigsResponse {
16
+ organization_configs: OrganizationConfigItem[];
17
+ }
18
+ interface PostConfigsRequest {
19
+ yuno_smart_tokens_config?: string[];
20
+ custom_routing_rules_config?: string[];
21
+ custom_retry_with_pan_config?: string[];
22
+ }
23
+ interface PostConfigsResponse {
24
+ created: OrganizationConfigItem[];
25
+ }
26
+ interface PutConfigsByAccountRequest {
27
+ yuno_smart_tokens_config?: string[];
28
+ custom_routing_rules_config?: string[];
29
+ custom_retry_with_pan_config?: string[];
30
+ }
31
+ interface PutConfigsByAccountResponse {
32
+ updated: OrganizationConfigItem[];
33
+ }
34
+ }
@@ -40,6 +40,7 @@ export declare namespace Payouts {
40
40
  status: string;
41
41
  sub_status: string;
42
42
  merchant_reference: string;
43
+ trace_id?: string;
43
44
  purpose: string;
44
45
  account_code: string;
45
46
  organization_code: string;
@@ -102,4 +103,23 @@ export declare namespace Payouts {
102
103
  document_number: string;
103
104
  document_type: string;
104
105
  }
106
+ interface TimelineEvent {
107
+ id: number;
108
+ payout_id?: string;
109
+ transaction_id?: string;
110
+ category?: string;
111
+ code: string;
112
+ description?: string;
113
+ status?: string;
114
+ amount?: number;
115
+ provider_data?: Record<string, unknown>;
116
+ withdrawal_method_type?: string;
117
+ type?: string;
118
+ metadata?: Record<string, unknown>;
119
+ created_at: string;
120
+ updated_at?: string;
121
+ }
122
+ interface Timeline {
123
+ events: TimelineEvent[];
124
+ }
105
125
  }
@@ -0,0 +1 @@
1
+ export * from './recipients';
@@ -0,0 +1,216 @@
1
+ export declare namespace Recipients {
2
+ interface Document {
3
+ number: string | null;
4
+ type: string | null;
5
+ }
6
+ interface Phone {
7
+ country_code: string | null;
8
+ number: string | null;
9
+ }
10
+ interface Address {
11
+ address_line_1: string | null;
12
+ address_line_2: string | null;
13
+ country: string | null;
14
+ city: string | null;
15
+ state: string | null;
16
+ zip_code: string | null;
17
+ }
18
+ interface Bank {
19
+ code: string | null;
20
+ branch: string | null;
21
+ branch_digit: string | null;
22
+ account: string | null;
23
+ account_digit: string | null;
24
+ account_type: string | null;
25
+ routing: string | null;
26
+ country: string | null;
27
+ currency: string | null;
28
+ payout_schedule?: string | null;
29
+ }
30
+ interface WithdrawalMethod {
31
+ bank: Bank | null;
32
+ }
33
+ interface Documentation {
34
+ file_name: string;
35
+ content_type: string;
36
+ content_category: string;
37
+ content: string | null;
38
+ }
39
+ interface OnboardingSummary {
40
+ id: string;
41
+ provider_id: string;
42
+ status: string;
43
+ created_at: string;
44
+ }
45
+ interface RecipientListItem {
46
+ id: string;
47
+ merchant_recipient_id: string | null;
48
+ national_entity: string;
49
+ entity_type: string | null;
50
+ country: string;
51
+ first_name: string | null;
52
+ last_name: string | null;
53
+ legal_name: string | null;
54
+ email: string | null;
55
+ account_id: string;
56
+ date_of_birth: string | null;
57
+ website: string | null;
58
+ industry: string | null;
59
+ merchant_category_code: string | null;
60
+ created_at: string;
61
+ updated_at: string;
62
+ }
63
+ interface Pagination {
64
+ page: number;
65
+ page_size: number;
66
+ total_items: number;
67
+ total_pages: number;
68
+ has_next: boolean;
69
+ has_previous: boolean;
70
+ }
71
+ interface RecipientListResponse {
72
+ data: RecipientListItem[];
73
+ pagination: Pagination;
74
+ }
75
+ interface RecipientDetail {
76
+ id: string;
77
+ merchant_recipient_id: string | null;
78
+ national_entity: string;
79
+ entity_type: string | null;
80
+ country: string;
81
+ first_name: string | null;
82
+ last_name: string | null;
83
+ legal_name: string | null;
84
+ email: string | null;
85
+ account_id: string;
86
+ created_at: string;
87
+ updated_at: string;
88
+ document: Document | null;
89
+ phone: Phone | null;
90
+ address: Address | null;
91
+ withdrawal_method: WithdrawalMethod | null;
92
+ documentation: Documentation[];
93
+ onboardings: OnboardingSummary[];
94
+ }
95
+ interface OnboardingProvider {
96
+ id: string | null;
97
+ connection_id: string | null;
98
+ redirect_url: string | null;
99
+ recipient_id: string | null;
100
+ recipient_additional_id: string | null;
101
+ onboarding_url: string | null;
102
+ legal_entity: string | null;
103
+ balance_account_id: string | null;
104
+ recipient_type: string | null;
105
+ raw_notification: string | null;
106
+ raw_response: string | null;
107
+ response_code: string | null;
108
+ response_message: string | null;
109
+ }
110
+ interface LegalRepresentativeDocument {
111
+ type: string | null;
112
+ number: string | null;
113
+ }
114
+ interface LegalRepresentative {
115
+ first_name: string | null;
116
+ last_name: string | null;
117
+ email: string | null;
118
+ document: LegalRepresentativeDocument | null;
119
+ phone: Phone | null;
120
+ address: Address | null;
121
+ date_of_birth: string | null;
122
+ }
123
+ interface Requirement {
124
+ field: string | null;
125
+ message: string | null;
126
+ status: string | null;
127
+ }
128
+ interface CapabilityRequirement {
129
+ provider_response_code: string | null;
130
+ provider_response_message: string | null;
131
+ provider_response_field: string | null;
132
+ message: string | null;
133
+ status: string | null;
134
+ }
135
+ interface Capability {
136
+ status: string | null;
137
+ requirements: CapabilityRequirement[];
138
+ }
139
+ interface Capabilities {
140
+ payouts: Capability | null;
141
+ send_transfers: Capability | null;
142
+ receive_transfers: Capability | null;
143
+ payments: Capability | null;
144
+ }
145
+ interface TermsOfService {
146
+ acceptance: boolean | null;
147
+ date: string | null;
148
+ ip: string | null;
149
+ }
150
+ interface Metadata {
151
+ key: string;
152
+ value: string;
153
+ }
154
+ interface OnboardingDetail {
155
+ id: string;
156
+ type: string;
157
+ workflow: string;
158
+ description: string | null;
159
+ status: string;
160
+ response_message: string | null;
161
+ callback_url: string | null;
162
+ provider: OnboardingProvider | null;
163
+ documentation: Documentation[];
164
+ legal_representatives: LegalRepresentative[];
165
+ withdrawal_methods: WithdrawalMethod | null;
166
+ requirements: Requirement[];
167
+ capabilities: Capabilities | null;
168
+ terms_of_service: TermsOfService | null;
169
+ metadata: Metadata[];
170
+ created_at: string;
171
+ updated_at: string;
172
+ expires_at: string | null;
173
+ }
174
+ interface TimelineEventData {
175
+ provider_id?: string | null;
176
+ provider_status?: string | null;
177
+ provider_response_code?: string | null;
178
+ provider_response_message?: string | null;
179
+ provider_recipient_id?: string | null;
180
+ provider_redirect_url?: string | null;
181
+ requirements?: Requirement[];
182
+ capabilities?: Capabilities | null;
183
+ change_type?: string | null;
184
+ }
185
+ interface TimelineEvent {
186
+ timestamp: string;
187
+ event_type: string;
188
+ status: string | null;
189
+ event_data: TimelineEventData | null;
190
+ }
191
+ type OnboardingTimeline = TimelineEvent[];
192
+ }
193
+ export interface GetRecipientsParams {
194
+ account_ids?: string;
195
+ countries?: string;
196
+ national_entities?: string;
197
+ entity_types?: string;
198
+ start_date?: string;
199
+ end_date?: string;
200
+ search_type?: string;
201
+ search_value?: string;
202
+ page?: number;
203
+ page_size?: number;
204
+ sort_by?: string;
205
+ sort_order?: string;
206
+ }
207
+ export interface GetRecipientByIdParams {
208
+ recipient_id: string;
209
+ }
210
+ export interface GetOnboardingDetailParams {
211
+ recipient_id: string;
212
+ onboarding_id: string;
213
+ }
214
+ export interface GetOnboardingTimelineParams {
215
+ onboarding_id: string;
216
+ }
@@ -4,3 +4,4 @@ export * from './reconciliation-agenda';
4
4
  export * from './reconciliation-sales';
5
5
  export * from './reconciliation-advancements';
6
6
  export * from './reconciliation-fees';
7
+ export * from './reconciliation-insights';
@@ -0,0 +1,172 @@
1
+ export declare namespace ReconciliationInsights {
2
+ interface BaseFilters {
3
+ accounts: string[];
4
+ start_date: string;
5
+ end_date: string;
6
+ countries?: string[];
7
+ currency_codes?: string[];
8
+ }
9
+ export interface BaseFiltersWithProvider extends BaseFilters {
10
+ providers?: string[];
11
+ }
12
+ export interface BaseFiltersWithAcquirer extends BaseFilters {
13
+ acquirers?: string[];
14
+ }
15
+ export interface ListFiltersWithProvider extends BaseFiltersWithProvider {
16
+ page?: number;
17
+ page_size?: number;
18
+ }
19
+ export interface ListFiltersWithAcquirer extends BaseFiltersWithAcquirer {
20
+ page?: number;
21
+ page_size?: number;
22
+ }
23
+ export type DateFilterType = 'by_settlement_date' | 'by_transaction_date';
24
+ export interface SummaryTotal {
25
+ transactions: number;
26
+ amount_local: number;
27
+ amount_usd: number;
28
+ }
29
+ export interface GenericSummaryItem extends SummaryTotal {
30
+ id: string;
31
+ }
32
+ export interface NotReconciledSummaryItem extends GenericSummaryItem {
33
+ total_transactions: number;
34
+ }
35
+ export interface ReconciledSummaryItem extends GenericSummaryItem {
36
+ transaction_type: string;
37
+ }
38
+ export interface GenericChartSummary<T = GenericSummaryItem> {
39
+ data: T[];
40
+ total: SummaryTotal;
41
+ }
42
+ export interface ChartWithGraph {
43
+ total_amount_usd: number;
44
+ chart_data: Array<{
45
+ date: string;
46
+ amount_usd: number;
47
+ }>;
48
+ }
49
+ export interface AggregatorByCurrency extends SummaryTotal {
50
+ currency_code: string;
51
+ }
52
+ export interface AggregatorByConnection extends SummaryTotal {
53
+ connection_name: string;
54
+ }
55
+ export interface AggregatorByBrand extends SummaryTotal {
56
+ brand: string;
57
+ }
58
+ export interface AggregatorByPaymentMethod extends SummaryTotal {
59
+ payment_method: string;
60
+ }
61
+ export interface Aggregators {
62
+ by_currency: AggregatorByCurrency[];
63
+ by_connection: AggregatorByConnection[];
64
+ by_brand: AggregatorByBrand[];
65
+ by_payment_method: AggregatorByPaymentMethod[];
66
+ total: SummaryTotal;
67
+ }
68
+ export interface ConflictDateAggregatorItem extends SummaryTotal {
69
+ date: string;
70
+ }
71
+ export interface ConflictDateAggregators {
72
+ data: ConflictDateAggregatorItem[];
73
+ total: SummaryTotal;
74
+ }
75
+ export interface PaginationInfo {
76
+ total: number;
77
+ page: number;
78
+ page_size: number;
79
+ total_pages: number;
80
+ }
81
+ export interface ReconciliationOverviewItem {
82
+ authorization_code: string;
83
+ card_category: string;
84
+ country: string;
85
+ created_at: string;
86
+ currency: string;
87
+ payment_method_category: string;
88
+ provider_id: string;
89
+ reconciliation_status: string;
90
+ reconciliation_sub_status: string;
91
+ }
92
+ export interface ReconciliationOverviewList {
93
+ data: ReconciliationOverviewItem[];
94
+ pagination: PaginationInfo;
95
+ }
96
+ export interface SettlementAndFeeItem {
97
+ transaction_id: string;
98
+ transaction_date: string;
99
+ acquirer: string;
100
+ authorization_code: string;
101
+ card_brand: string;
102
+ card_iin: string;
103
+ card_lfd: string;
104
+ card_type: string;
105
+ country: string;
106
+ currency: string;
107
+ fee_status: string;
108
+ fee_sub_status: string;
109
+ fee_taxes_diff: number;
110
+ calculated_fix_costed_fee: number;
111
+ calculated_percentage_cost: number;
112
+ percentage_cost: number;
113
+ merchant_order_id: string;
114
+ provider_transaction_id: string;
115
+ reconciliation_status: string;
116
+ reconciliation_sub_status: string;
117
+ type: string;
118
+ }
119
+ export interface SettlementAndFeeList {
120
+ data: SettlementAndFeeItem[];
121
+ pagination: PaginationInfo;
122
+ }
123
+ export interface ProcessedTransactionItem {
124
+ transaction_id: string;
125
+ acquirer: string;
126
+ amount: number;
127
+ authorization_code: string;
128
+ card_brand: string;
129
+ card_iin: string;
130
+ card_lfd: string;
131
+ card_type: string;
132
+ confirmation_status: string;
133
+ country: string;
134
+ created_at: string;
135
+ currency: string;
136
+ merchant_order_id: string;
137
+ merchant_transaction_id: string;
138
+ payment_id: string;
139
+ provider_status: string;
140
+ provider_transaction_id: string;
141
+ response_code: string;
142
+ status: string;
143
+ type: string;
144
+ }
145
+ export interface ProcessedTransactionList {
146
+ data: ProcessedTransactionItem[];
147
+ pagination: PaginationInfo;
148
+ }
149
+ export interface ConflictsSummary {
150
+ not_reconciled: GenericChartSummary<NotReconciledSummaryItem>;
151
+ status_conflict: GenericChartSummary;
152
+ amount_conflict: GenericChartSummary;
153
+ }
154
+ export interface UseInsightsQueryProps<T> {
155
+ body: T;
156
+ enabled?: boolean;
157
+ }
158
+ export interface UseInsightsQueryWithDateFilterProps<T> {
159
+ body: T;
160
+ dateFilter?: DateFilterType;
161
+ enabled?: boolean;
162
+ }
163
+ export interface UseInsightsListQueryProps<T> {
164
+ body: T;
165
+ enabled?: boolean;
166
+ }
167
+ export interface Error {
168
+ code?: string;
169
+ message?: string;
170
+ }
171
+ export {};
172
+ }
@@ -68,6 +68,10 @@ export declare namespace Reports {
68
68
  metadata_fields?: string[];
69
69
  type: string;
70
70
  }
71
+ interface IDeletePaymentsReportTemplate {
72
+ name: string;
73
+ type: string;
74
+ }
71
75
  interface IColumn {
72
76
  key: string;
73
77
  name: string;
@@ -43,6 +43,9 @@ export declare namespace Webhook {
43
43
  payment_triggers?: Array<IWebhooksTriggers>;
44
44
  report_triggers?: Array<IWebhooksTriggers>;
45
45
  customer_triggers?: Array<IWebhooksTriggers>;
46
+ subscription_triggers?: Array<IWebhooksTriggers>;
47
+ onboarding_triggers?: Array<IWebhooksTriggers>;
48
+ reports_v2_triggers?: Array<IWebhooksTriggers>;
46
49
  created_at: string;
47
50
  updated_at?: string;
48
51
  }
@@ -59,6 +62,9 @@ export declare namespace Webhook {
59
62
  payment_triggers?: Array<IWebhooksTriggers>;
60
63
  report_triggers?: Array<IWebhooksTriggers>;
61
64
  customer_triggers?: Array<IWebhooksTriggers>;
65
+ subscription_triggers?: Array<IWebhooksTriggers>;
66
+ onboarding_triggers?: Array<IWebhooksTriggers>;
67
+ reports_v2_triggers?: Array<IWebhooksTriggers>;
62
68
  created_at: string;
63
69
  updated_at?: string;
64
70
  }