@yuno-payments/dashboard-api-mfe 0.34.27-beta.1 → 0.34.29
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 +7 -4
- package/build/cjs/types/mutations/batch-refunds/batch-refunds.mutation.d.ts +11 -1
- package/build/cjs/types/queries/feature-flags/index.d.ts +3 -2
- package/build/cjs/types/queries/smart-routing/smart-routing.query.d.ts +1 -0
- package/build/cjs/types/types/batch-refunds/batch-refunds.d.ts +6 -0
- package/build/cjs/types/types/smart-routing/smart-routing.d.ts +3 -0
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +7 -4
- package/build/esm/types/mutations/batch-refunds/batch-refunds.mutation.d.ts +11 -1
- package/build/esm/types/queries/feature-flags/index.d.ts +3 -2
- package/build/esm/types/queries/smart-routing/smart-routing.query.d.ts +1 -0
- package/build/esm/types/types/batch-refunds/batch-refunds.d.ts +6 -0
- package/build/esm/types/types/smart-routing/smart-routing.d.ts +3 -0
- package/build/index.d.ts +30 -6
- package/package.json +3 -2
- /package/build/cjs/types/queries/feature-flags/{feature.test.d.ts → feature-flags.test.d.ts} +0 -0
- /package/build/esm/types/queries/feature-flags/{feature.test.d.ts → feature-flags.test.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
1
|
+
import { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
2
|
import { HttpClient } from '../lib/http-client';
|
|
3
3
|
import { GetPaymentsParams, GetPaymentParams, GetPaymentTransactionsParams, GetTransactionDetailsParams, GetPaymentMethodsByProviderParams, GetReconciliationMetricParams, FirebaseUserSubscribe, PathNotification, TimeZoneCatalog, GetTransactionDetailsV2Params, MfaUserSubscribe, UserInviteMultiaccountPayload, GetTransactionsParams, PaymentsSettings, GetPayoutDetail, GetPayoutTransactionDetail, PinnedSections, MfaUserPayload, ThemeSettings } from './api.types';
|
|
4
|
-
import { Audit, OperationTransaction, Organization, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType,
|
|
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 } 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';
|
|
@@ -511,9 +511,9 @@ export declare class Api extends HttpClient {
|
|
|
511
511
|
promise: Promise<AxiosResponse<T, any>>;
|
|
512
512
|
cancel: () => void;
|
|
513
513
|
};
|
|
514
|
-
batchRefundByFile({ payload, }: {
|
|
514
|
+
batchRefundByFile<T>({ payload, }: {
|
|
515
515
|
payload: any;
|
|
516
|
-
}): Promise<AxiosResponse<
|
|
516
|
+
}): Promise<AxiosResponse<T, AxiosError>>;
|
|
517
517
|
uploadBatchRefundsV2<T>({ payload }: {
|
|
518
518
|
payload: any;
|
|
519
519
|
}): Promise<AxiosResponse<T, any>>;
|
|
@@ -522,6 +522,8 @@ export declare class Api extends HttpClient {
|
|
|
522
522
|
handleSetProgress: any;
|
|
523
523
|
}): Promise<AxiosResponse<T, any>>;
|
|
524
524
|
getBatchRefunds<T>(limit: any, offset: any): Promise<AxiosResponse<T, any>>;
|
|
525
|
+
getBatchRefundProcessedFileDownload<T>(batchRefundId: string, organizationCode: string, accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
526
|
+
getBatchRefundUserFileDownload<T>(batchRefundId: string, organizationCode: string, accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
525
527
|
getMFAConfig<T>({ organizationCode }: {
|
|
526
528
|
organizationCode: any;
|
|
527
529
|
}): Promise<AxiosResponse<T, any>>;
|
|
@@ -575,5 +577,6 @@ export declare class Api extends HttpClient {
|
|
|
575
577
|
getInsightsConversionRateOverview(body: ConversionRateBody, params: ConversionRateParams): Promise<AxiosResponse<ConversionRateOverview>>;
|
|
576
578
|
getInsightsConversionRateOverviewFraud3ds(body: ConversionRateBody, params: ConversionRateParams): Promise<AxiosResponse<ConversionRateOverviewFraud3ds>>;
|
|
577
579
|
getConversionRateChargebacksByCardBrand(body: InsightsFraudBody, params: InsightsFraudParams): Promise<AxiosResponse<any, any>>;
|
|
580
|
+
get3DSExcemptions(): Promise<AxiosResponse<string[]>>;
|
|
578
581
|
}
|
|
579
582
|
export {};
|
|
@@ -16,10 +16,20 @@ export declare function useUploadBatchRefundsFileV2({ fileName, onSuccess, onErr
|
|
|
16
16
|
export declare function useUploadBatchRefundsFile({ handleSetProgress, }: {
|
|
17
17
|
handleSetProgress: (progress: number) => void;
|
|
18
18
|
}): UseMutationResult<any, unknown, BatchRefunds.UploadRequest, unknown>;
|
|
19
|
-
export declare function useUploadBatchRefundsV2(): UseMutationResult<BatchRefunds.
|
|
19
|
+
export declare function useUploadBatchRefundsV2(): UseMutationResult<BatchRefunds.ListBatchRefunds[], AxiosError<{
|
|
20
20
|
data: {
|
|
21
21
|
code: string;
|
|
22
22
|
message: string;
|
|
23
23
|
};
|
|
24
24
|
}, any>, BatchRefunds.UploadRequest, unknown>;
|
|
25
25
|
export declare function usePostBatchRefundByFile(): UseMutationResult<BatchRefunds.ListBatchRefunds[], unknown, BatchRefunds.BatchRefundByFile, unknown>;
|
|
26
|
+
export declare function useGetBatchRefundProcessedFileDownload(): UseMutationResult<BatchRefunds.BatchRefundByFileResponse, AxiosError<unknown, any>, {
|
|
27
|
+
batchRefundId: string;
|
|
28
|
+
organizationCode: string;
|
|
29
|
+
accountCode: string;
|
|
30
|
+
}, unknown>;
|
|
31
|
+
export declare function useGetBatchRefundUserFileDownload(): UseMutationResult<BatchRefunds.BatchRefundUserFileResponse, AxiosError<unknown, any>, {
|
|
32
|
+
batchRefundId: string;
|
|
33
|
+
organizationCode: string;
|
|
34
|
+
accountCode: string;
|
|
35
|
+
}, unknown>;
|
|
@@ -4,5 +4,6 @@ export interface FeatureFlagsResult {
|
|
|
4
4
|
result: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare function useFeatureFlags(data: FeatureFlags.Request): UseQueryResult<FeatureFlagsResult, unknown>;
|
|
7
|
-
export declare
|
|
8
|
-
export declare function
|
|
7
|
+
export declare const ALL_FEATURE_FLAGS: string[];
|
|
8
|
+
export declare function useAllFeatureFlags(body: FeatureFlags.RequestAll): UseQueryResult<FeatureFlagsResult, unknown>;
|
|
9
|
+
export declare function useCachedFeatureFlag(name: string): UseQueryResult<FeatureFlagsResult>;
|
|
@@ -25,3 +25,4 @@ export declare function useGetSmartRoutingSearchConditionValues({ text, conditio
|
|
|
25
25
|
conditionType: string;
|
|
26
26
|
}): UseQueryResult<SmartRouting.ConditionTypeValues & ErrorProp, unknown>;
|
|
27
27
|
export declare function useProviderConversionRatesData(): UseQueryResult<SmartRouting.SRConversionRates[] & ErrorProp, unknown>;
|
|
28
|
+
export declare function use3DSExcemptions(): UseQueryResult<SmartRouting.ThreeDSExcemptionsResponse>;
|
|
@@ -29,4 +29,10 @@ export declare namespace BatchRefunds {
|
|
|
29
29
|
interface BatchRefundByFile {
|
|
30
30
|
file_name: string;
|
|
31
31
|
}
|
|
32
|
+
interface BatchRefundByFileResponse {
|
|
33
|
+
download_file_url: string;
|
|
34
|
+
}
|
|
35
|
+
interface BatchRefundUserFileResponse {
|
|
36
|
+
uploaded_file_url: string;
|
|
37
|
+
}
|
|
32
38
|
}
|