@yuno-payments/dashboard-api-mfe 0.40.25 → 0.41.0-DAS-12434.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.
- package/build/cjs/index.js +6 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +6 -2
- package/build/cjs/types/mutations/developers/developers.mutation.d.ts +0 -2
- package/build/cjs/types/mutations/developers/index.d.ts +0 -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 +6 -0
- package/build/cjs/types/mutations/payments/payments.mutation.d.ts +4 -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 +4 -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/payment/payment.d.ts +7 -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 +6 -2
- package/build/esm/types/mutations/developers/developers.mutation.d.ts +0 -2
- package/build/esm/types/mutations/developers/index.d.ts +0 -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 +6 -0
- package/build/esm/types/mutations/payments/payments.mutation.d.ts +4 -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 +4 -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/payment/payment.d.ts +7 -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 +77 -13
- package/package.json +1 -1
- package/build/cjs/types/mutations/developers/types.d.ts +0 -5
- package/build/esm/types/mutations/developers/types.d.ts +0 -5
|
@@ -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';
|
|
@@ -55,6 +55,7 @@ export declare class Api extends HttpClient {
|
|
|
55
55
|
getPaymentMethodsAndProviders<T>(): Promise<AxiosResponse<T, any>>;
|
|
56
56
|
getTransactionDetailsV2<T>(params: GetTransactionDetailsV2Params): Promise<AxiosResponse<T, any>>;
|
|
57
57
|
getTransactionRawResponse<T>(params: GetTransactionDetailsV2Params): Promise<AxiosResponse<T, any>>;
|
|
58
|
+
postProviderRawResponse<T>(transactionCode: string, payload: Payment.ProviderRawResponse.Request): Promise<AxiosResponse<T, any>>;
|
|
58
59
|
uploadChargebacks<T>(payload: Payment.UploadRequest, paymentId: string, transactionId: string, handleSetProgress: (progress: number) => void): Promise<AxiosResponse<T, any>>;
|
|
59
60
|
getPaymentTransactionsDetails<T>({ transaction_code, }: {
|
|
60
61
|
transaction_code: any;
|
|
@@ -64,7 +65,6 @@ export declare class Api extends HttpClient {
|
|
|
64
65
|
}): Promise<AxiosResponse<T, any>>;
|
|
65
66
|
getDeveloperCredentials<T>(password: any, accountCode: any): Promise<AxiosResponse<T, any>>;
|
|
66
67
|
getDeveloperCredentialsValidatePassword<T>(password: any): Promise<AxiosResponse<T, any>>;
|
|
67
|
-
getDeveloperCredentialsValidatePasswordRegularUser<T>(password: any): Promise<AxiosResponse<T, any>>;
|
|
68
68
|
getAllowedIps<T>(): Promise<AxiosResponse<T, any>>;
|
|
69
69
|
patchAllowedIps<T>(request: AllowedList.Request): Promise<AxiosResponse<T, any>>;
|
|
70
70
|
getOrganization<T>(): Promise<AxiosResponse<T, any>>;
|
|
@@ -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>>;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { UseMutationResult } from '@tanstack/react-query';
|
|
2
|
-
import { ResponseValidatePasswordRegularUser } from './types';
|
|
3
2
|
export declare function usePostCreateCustomizedApiKeys(): UseMutationResult<unknown>;
|
|
4
3
|
export declare function usePathCreateCustomizedApiKeys(): UseMutationResult<unknown>;
|
|
5
4
|
export declare function useGetCustomizedApiKeysToken(): UseMutationResult<unknown>;
|
|
6
5
|
export declare function usePostCredentialsValidatePassword(): UseMutationResult<unknown>;
|
|
7
|
-
export declare function usePostCredentialsValidatePasswordRegularUser(): UseMutationResult<ResponseValidatePasswordRegularUser>;
|
|
8
6
|
export declare function useDeleteCustomizedApiKeys(): UseMutationResult<unknown>;
|
|
9
7
|
export declare function usePatchApiKeysEditNote(): UseMutationResult<unknown>;
|
|
10
8
|
export declare function usePostApiKeysRoll(): UseMutationResult<unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './organization-config.mutation';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UseMutationResult } from '@tanstack/react-query';
|
|
2
|
+
import { OrganizationConfig } from '../../types';
|
|
3
|
+
import { AxiosResponse } from 'axios';
|
|
4
|
+
import { BFFErrorResponse } from '../smart-routing';
|
|
5
|
+
export declare function usePostOrganizationConfigs(): UseMutationResult<AxiosResponse<OrganizationConfig.PostConfigsResponse>, BFFErrorResponse, OrganizationConfig.PostConfigsRequest>;
|
|
6
|
+
export declare function usePutOrganizationConfigsByAccount(): UseMutationResult<AxiosResponse<OrganizationConfig.PutConfigsByAccountResponse>, BFFErrorResponse, OrganizationConfig.PutConfigsByAccountRequest>;
|
|
@@ -11,3 +11,7 @@ export declare function useChargebacksUpload(): import("@tanstack/react-query").
|
|
|
11
11
|
transactionId: string;
|
|
12
12
|
handleSetProgress: (progress: number) => void;
|
|
13
13
|
}, unknown>;
|
|
14
|
+
export declare function useProviderRawResponse(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Payment.ProviderRawResponse.Response, any, {}>, unknown, {
|
|
15
|
+
transactionCode: string;
|
|
16
|
+
payload: Payment.ProviderRawResponse.Request;
|
|
17
|
+
}, unknown>;
|
|
@@ -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,4 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { OrganizationConfig } from '../../types';
|
|
3
|
+
import { BFFErrorResponse } from '../../mutations';
|
|
4
|
+
export declare function useGetOrganizationConfigs(): UseQueryResult<OrganizationConfig.GetConfigsResponse, BFFErrorResponse>;
|
|
@@ -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
|
+
}
|
|
@@ -490,6 +490,13 @@ export declare namespace Payment {
|
|
|
490
490
|
transaction_type: string;
|
|
491
491
|
description?: string;
|
|
492
492
|
}
|
|
493
|
+
namespace ProviderRawResponse {
|
|
494
|
+
interface Request {
|
|
495
|
+
trace_id: string;
|
|
496
|
+
provider_id: string;
|
|
497
|
+
}
|
|
498
|
+
type Response = Record<string, any>;
|
|
499
|
+
}
|
|
493
500
|
}
|
|
494
501
|
export interface PaymentMethodStyled {
|
|
495
502
|
description: string;
|
|
@@ -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[];
|