@yuno-payments/dashboard-api-mfe 0.41.0-beta.1 → 0.41.0-beta.2
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/cjs/index.js +6 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +5 -1
- package/build/cjs/types/mutations/index.d.ts +1 -0
- package/build/cjs/types/mutations/organization-config/index.d.ts +1 -0
- package/build/cjs/types/mutations/organization-config/organization-config.mutation.d.ts +5 -0
- package/build/cjs/types/mutations/reports/reports.mutation.d.ts +1 -0
- package/build/cjs/types/queries/index.d.ts +1 -0
- package/build/cjs/types/queries/organization-config/index.d.ts +1 -0
- package/build/cjs/types/queries/organization-config/organization-config.query.d.ts +3 -0
- package/build/cjs/types/types/index.d.ts +1 -0
- package/build/cjs/types/types/organization-config/index.d.ts +1 -0
- package/build/cjs/types/types/organization-config/organization-config.d.ts +34 -0
- package/build/cjs/types/types/reports/reports.d.ts +16 -3
- package/build/cjs/types/types/smart-routing/smart-routing.d.ts +2 -0
- package/build/esm/index.js +6 -6
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +5 -1
- package/build/esm/types/mutations/index.d.ts +1 -0
- package/build/esm/types/mutations/organization-config/index.d.ts +1 -0
- package/build/esm/types/mutations/organization-config/organization-config.mutation.d.ts +5 -0
- package/build/esm/types/mutations/reports/reports.mutation.d.ts +1 -0
- package/build/esm/types/queries/index.d.ts +1 -0
- package/build/esm/types/queries/organization-config/index.d.ts +1 -0
- package/build/esm/types/queries/organization-config/organization-config.query.d.ts +3 -0
- package/build/esm/types/types/index.d.ts +1 -0
- package/build/esm/types/types/organization-config/index.d.ts +1 -0
- package/build/esm/types/types/organization-config/organization-config.d.ts +34 -0
- package/build/esm/types/types/reports/reports.d.ts +16 -3
- package/build/esm/types/types/smart-routing/smart-routing.d.ts +2 -0
- package/build/index.d.ts +65 -5
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
2
|
import { HttpClient } from '../lib/http-client';
|
|
3
3
|
import { GetPaymentsParams, GetReconciliationMetricParams, FirebaseUserSubscribe, PathNotification, TimeZoneCatalog, GetTransactionDetailsV2Params, MfaUserSubscribe, UserInviteMultiaccountPayload, GetTransactionsParams, PaymentsSettings, GetPayoutDetail, GetPayoutTransactionDetail, PinnedSections, ThemeSettings } from './api.types';
|
|
4
|
-
import { Audit, OperationTransaction, Organization, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType, SendPaymentNotification, ReconciliationAlerts, ReconciliationAgenda, ReconciliationSales, ReconciliationAdvancements, ReconciliationFees, Payment, InsightsFraudParams, InsightsFraudBody, AI, PaymentFiltersSection, GetInstallmentPlansResponse, Connection, TemplateReporting, GetUserFullResponse } from '../types';
|
|
4
|
+
import { Audit, OperationTransaction, Organization, OrganizationConfig, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType, SendPaymentNotification, ReconciliationAlerts, ReconciliationAgenda, ReconciliationSales, ReconciliationAdvancements, ReconciliationFees, Payment, InsightsFraudParams, InsightsFraudBody, AI, PaymentFiltersSection, GetInstallmentPlansResponse, Connection, TemplateReporting, GetUserFullResponse } from '../types';
|
|
5
5
|
import { ConversionRateParams, ConversionRateBody, ConversionRateOverview, ConversionRateOverviewFraud3ds } from '../types/data-report/conversion-rate.types';
|
|
6
6
|
import { RoutingMonitors } from '../types/routing-monitors';
|
|
7
7
|
import { ChangePaymentsWebhook } from '../mutations';
|
|
@@ -79,6 +79,9 @@ export declare class Api extends HttpClient {
|
|
|
79
79
|
costs: Cost[];
|
|
80
80
|
}): Promise<AxiosResponse<T>>;
|
|
81
81
|
updateOrganizationStatus<T>(): Promise<AxiosResponse<T>>;
|
|
82
|
+
getOrganizationConfigs<T>(): Promise<AxiosResponse<T, any>>;
|
|
83
|
+
postOrganizationConfigs<T>(payload: OrganizationConfig.PostConfigsRequest): Promise<AxiosResponse<T, any>>;
|
|
84
|
+
putOrganizationConfigsByAccount<T>(payload: OrganizationConfig.PutConfigsByAccountRequest): Promise<AxiosResponse<T, any>>;
|
|
82
85
|
getIntegrationParams<T>({ accountCode, integration_code, }: {
|
|
83
86
|
accountCode: any;
|
|
84
87
|
integration_code: any;
|
|
@@ -253,6 +256,7 @@ export declare class Api extends HttpClient {
|
|
|
253
256
|
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any, {}>>;
|
|
254
257
|
emailVerification<T>(email: any): Promise<AxiosResponse<T, any>>;
|
|
255
258
|
createReconciliationsReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
259
|
+
createReconciliationsReportV3<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
256
260
|
createReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
257
261
|
getTotalRowsForExport<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
258
262
|
reportsList<T>(): Promise<AxiosResponse<T>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './organization-config.mutation';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UseMutationResult } from '@tanstack/react-query';
|
|
2
|
+
import { OrganizationConfig } from '../../types';
|
|
3
|
+
import { AxiosResponse } from 'axios';
|
|
4
|
+
export declare function usePostOrganizationConfigs(): UseMutationResult<AxiosResponse<OrganizationConfig.PostConfigsResponse>, unknown, OrganizationConfig.PostConfigsRequest>;
|
|
5
|
+
export declare function usePutOrganizationConfigsByAccount(): UseMutationResult<AxiosResponse<OrganizationConfig.PutConfigsByAccountResponse>, unknown, OrganizationConfig.PutConfigsByAccountRequest>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Reports } from '../../types';
|
|
2
2
|
import { UseMutationResult } from '@tanstack/react-query';
|
|
3
3
|
export declare function useCreateReconciliationsReportV2(): UseMutationResult<Reports.ICreateReportsResponse, unknown>;
|
|
4
|
+
export declare function useCreateReconciliationsReportV3(): UseMutationResult<Reports.ICreateReportsResponse, unknown>;
|
|
4
5
|
export declare function useCreateReportV2(): UseMutationResult<Reports.ICreateReportsResponse, unknown>;
|
|
5
6
|
export declare function useCountRowsForReport(): UseMutationResult<Reports.CountRowsReportsResponse, unknown>;
|
|
6
7
|
export declare function useCancelReport(): UseMutationResult<string, unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './organization-config.query';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './organization-config';
|
|
@@ -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_WITH_PAN = "CUSTOM_RETRY_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
|
+
}
|
|
@@ -6,9 +6,17 @@ export declare namespace Reports {
|
|
|
6
6
|
merchant_reference_id: string;
|
|
7
7
|
}
|
|
8
8
|
interface ICreateReportsResponse {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
report_id: string;
|
|
10
|
+
report_type: string;
|
|
11
|
+
status: 'COMPLETED' | 'PENDING' | 'IN_PROCESS';
|
|
12
|
+
merchant_reference_id: string;
|
|
13
|
+
start_date: string;
|
|
14
|
+
end_date: string;
|
|
15
|
+
created_at: string;
|
|
16
|
+
updated_at: string;
|
|
17
|
+
user_code: string;
|
|
18
|
+
url?: string | null;
|
|
19
|
+
total_lines?: number;
|
|
12
20
|
}
|
|
13
21
|
interface CountRowsReportsResponse {
|
|
14
22
|
total_rows: number;
|
|
@@ -118,6 +126,11 @@ export interface ICreateReportsRequest {
|
|
|
118
126
|
updated_at_end?: string;
|
|
119
127
|
};
|
|
120
128
|
}
|
|
129
|
+
export interface ICreateReconciliationsReportV3Request {
|
|
130
|
+
accounts: string[];
|
|
131
|
+
columns: string[];
|
|
132
|
+
filters: Record<string, unknown>;
|
|
133
|
+
}
|
|
121
134
|
export interface IListScheduledReportsResponse {
|
|
122
135
|
id?: string;
|
|
123
136
|
code?: string;
|
|
@@ -20,6 +20,7 @@ export declare namespace SmartRouting {
|
|
|
20
20
|
decline_types: string[];
|
|
21
21
|
has_split: boolean;
|
|
22
22
|
order: number;
|
|
23
|
+
retry: boolean;
|
|
23
24
|
type: OutputType;
|
|
24
25
|
}
|
|
25
26
|
export type RouteType = 'PROVIDER' | 'ENDING' | 'SMART_ROUTING';
|
|
@@ -262,6 +263,7 @@ export declare namespace SmartRouting {
|
|
|
262
263
|
index: number;
|
|
263
264
|
processed_status: string;
|
|
264
265
|
processed_sub_status?: string;
|
|
266
|
+
retry: boolean;
|
|
265
267
|
}
|
|
266
268
|
export interface PaymentRoutes {
|
|
267
269
|
route: PaymentRoute[];
|