@yuno-payments/dashboard-api-mfe 0.36.60-RC.1 → 0.36.60-RC.10
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 +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +3 -3
- package/build/cjs/types/lib/http-client/http-client.d.ts +7 -0
- package/build/cjs/types/mutations/connections/connections.mutation.d.ts +3 -4
- package/build/cjs/types/queries/network-tokens/network-tokens.query.d.ts +2 -2
- package/build/cjs/types/types/audit/audit.d.ts +3 -2
- package/build/cjs/types/types/connection/connection.d.ts +18 -0
- package/build/cjs/types/types/smart-routing/smart-routing.d.ts +0 -24
- package/build/esm/index.js +3 -3
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +3 -3
- package/build/esm/types/lib/http-client/http-client.d.ts +7 -0
- package/build/esm/types/mutations/connections/connections.mutation.d.ts +3 -4
- package/build/esm/types/queries/network-tokens/network-tokens.query.d.ts +2 -2
- package/build/esm/types/types/audit/audit.d.ts +3 -2
- package/build/esm/types/types/connection/connection.d.ts +18 -0
- package/build/esm/types/types/smart-routing/smart-routing.d.ts +0 -24
- package/build/index.d.ts +27 -33
- package/package.json +24 -25
|
@@ -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 } from '../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, Connection } 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';
|
|
@@ -497,8 +497,8 @@ export declare class Api extends HttpClient {
|
|
|
497
497
|
getConversionRateChargebacksByCardBrand(body: InsightsFraudBody, params: InsightsFraudParams): Promise<AxiosResponse<any, any>>;
|
|
498
498
|
get3DSExemptions(): Promise<AxiosResponse<SmartRouting.ThreeDSExemptionsResponse>>;
|
|
499
499
|
getNetworkTokensOnboarding(): Promise<AxiosResponse<SmartRouting.NetworkTokensOnboardingResponse>>;
|
|
500
|
-
getNetworkTokensOnboardingByOrganization(organizationCode: string): Promise<AxiosResponse<
|
|
501
|
-
postNetworkTokensOnboarding(payload:
|
|
500
|
+
getNetworkTokensOnboardingByOrganization(organizationCode: string): Promise<AxiosResponse<Connection.NetworkTokensOnboardingData>>;
|
|
501
|
+
postNetworkTokensOnboarding(payload: Connection.NetworkTokensOnboardingData, organizationCode: string): Promise<AxiosResponse<Connection.NetworkTokensOnboardingData>>;
|
|
502
502
|
createChartGPTChart<T>(payload: {
|
|
503
503
|
user_prompt: string;
|
|
504
504
|
}): Promise<AxiosResponse<T, any>>;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { Axios } from './axios';
|
|
2
2
|
import { AxiosRequestConfig, AxiosResponse, AxiosError, CancelTokenSource } from 'axios';
|
|
3
|
+
/**
|
|
4
|
+
* Serializes parameters for URL query string with proper encoding
|
|
5
|
+
* and handling of arrays without duplication
|
|
6
|
+
* @param params - Object with parameters to serialize
|
|
7
|
+
* @returns URL encoded query string
|
|
8
|
+
*/
|
|
9
|
+
export declare const serializeParams: (params: Record<string, any>) => string;
|
|
3
10
|
/**
|
|
4
11
|
* @class Api Class is a fancy es6 wrapper class for axios.
|
|
5
12
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Connection
|
|
1
|
+
import { Connection } from '../../types';
|
|
2
2
|
import { Cost } from '../../types/connection/costs';
|
|
3
3
|
import { CustomAxiosResponse } from '../../utils/handler-error';
|
|
4
4
|
type PatchConnection = {
|
|
@@ -33,9 +33,8 @@ export declare function useValidateCredentials(): import("@tanstack/react-query"
|
|
|
33
33
|
payment_method: string;
|
|
34
34
|
};
|
|
35
35
|
}, unknown>;
|
|
36
|
-
export declare function
|
|
37
|
-
|
|
38
|
-
payload: SmartRouting.NetworkTokensOnboardingPayload;
|
|
36
|
+
export declare function usePostNetworkTokensOnboarding(): import("@tanstack/react-query").UseMutationResult<Connection.NetworkTokensOnboardingData, unknown, {
|
|
37
|
+
payload: Connection.NetworkTokensOnboardingData;
|
|
39
38
|
organizationCode: string;
|
|
40
39
|
}, unknown>;
|
|
41
40
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { AxiosError } from 'axios';
|
|
3
|
-
import {
|
|
3
|
+
import { Connection } from '../../types';
|
|
4
4
|
import { CustomAxiosResponse } from '../../utils/handler-error';
|
|
5
|
-
export declare function useGetNetworkTokensOnboardingByOrganization(organizationCode: string): UseQueryResult<
|
|
5
|
+
export declare function useGetNetworkTokensOnboardingByOrganization(organizationCode: string): UseQueryResult<Connection.NetworkTokensOnboardingData, AxiosError<CustomAxiosResponse>>;
|
|
@@ -109,12 +109,13 @@ export declare namespace Audit {
|
|
|
109
109
|
}
|
|
110
110
|
interface ExportApiLogsRequest {
|
|
111
111
|
report_name: string;
|
|
112
|
-
account_code
|
|
112
|
+
account_code?: string[];
|
|
113
113
|
start_date: string;
|
|
114
114
|
end_date: string;
|
|
115
115
|
time_zone: string;
|
|
116
|
-
method?: string[];
|
|
117
116
|
organizationCode?: string;
|
|
117
|
+
status_codes?: string[];
|
|
118
|
+
methods?: string[];
|
|
118
119
|
}
|
|
119
120
|
interface AuditApiJSON {
|
|
120
121
|
[key: string]: string;
|
|
@@ -51,4 +51,22 @@ export declare namespace Connection {
|
|
|
51
51
|
}
|
|
52
52
|
];
|
|
53
53
|
};
|
|
54
|
+
interface NetworkTokensOnboardingData {
|
|
55
|
+
name: string;
|
|
56
|
+
legal_name: string;
|
|
57
|
+
website: string;
|
|
58
|
+
identification_type: string;
|
|
59
|
+
identification_number: string;
|
|
60
|
+
address_line_1: string;
|
|
61
|
+
address_line_2: string;
|
|
62
|
+
city: string;
|
|
63
|
+
state: string;
|
|
64
|
+
country: string;
|
|
65
|
+
zip_code: string;
|
|
66
|
+
phone: string;
|
|
67
|
+
contact_first_name: string;
|
|
68
|
+
contact_last_name: string;
|
|
69
|
+
contact_email: string;
|
|
70
|
+
account_codes: string[];
|
|
71
|
+
}
|
|
54
72
|
}
|
|
@@ -326,29 +326,5 @@ export declare namespace SmartRouting {
|
|
|
326
326
|
export interface NetworkTokensOnboardingResponse {
|
|
327
327
|
available: boolean;
|
|
328
328
|
}
|
|
329
|
-
export interface NetworkTokensOnboardingData {
|
|
330
|
-
company_name: string;
|
|
331
|
-
client: string;
|
|
332
|
-
website: string;
|
|
333
|
-
required_provider: string;
|
|
334
|
-
company_legal_name: string;
|
|
335
|
-
company_registered_state: string;
|
|
336
|
-
company_registered_zip_code: string;
|
|
337
|
-
company_registered_address: string;
|
|
338
|
-
company_registered_country: string;
|
|
339
|
-
company_registered_phone: string;
|
|
340
|
-
primary_contact_first_name: string;
|
|
341
|
-
primary_contact_last_name: string;
|
|
342
|
-
business_identification_type: string;
|
|
343
|
-
business_identification_number: string;
|
|
344
|
-
}
|
|
345
|
-
export interface NetworkTokensOnboardingPayload extends NetworkTokensOnboardingData {
|
|
346
|
-
accounts: string[];
|
|
347
|
-
}
|
|
348
|
-
export interface NetworkTokensOnboardingGetResponse extends NetworkTokensOnboardingData {
|
|
349
|
-
id?: string;
|
|
350
|
-
created_at?: string;
|
|
351
|
-
updated_at?: string;
|
|
352
|
-
}
|
|
353
329
|
export {};
|
|
354
330
|
}
|