@yuno-payments/dashboard-api-mfe 0.42.6 → 0.42.8
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 +12 -2
- package/build/cjs/types/api/api.test.d.ts +1 -0
- package/build/cjs/types/api/api.types.d.ts +16 -0
- package/build/cjs/types/mutations/developers/developers.mutation.d.ts +1 -0
- package/build/cjs/types/mutations/index.d.ts +1 -0
- package/build/cjs/types/mutations/subscriptions/index.d.ts +1 -0
- package/build/cjs/types/mutations/subscriptions/subscriptions.mutation.d.ts +19 -0
- package/build/cjs/types/queries/developers/developers.query.d.ts +3 -1
- package/build/cjs/types/queries/index.d.ts +1 -0
- package/build/cjs/types/queries/payments/payouts-timeline.query.test.d.ts +1 -0
- package/build/cjs/types/queries/payments/payouts.query.d.ts +1 -0
- package/build/cjs/types/queries/subscriptions/index.d.ts +1 -0
- package/build/cjs/types/queries/subscriptions/subscriptions.query.d.ts +3 -0
- package/build/cjs/types/types/payouts/payouts.d.ts +19 -0
- package/build/esm/index.js +6 -6
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +12 -2
- package/build/esm/types/api/api.test.d.ts +1 -0
- package/build/esm/types/api/api.types.d.ts +16 -0
- package/build/esm/types/mutations/developers/developers.mutation.d.ts +1 -0
- package/build/esm/types/mutations/index.d.ts +1 -0
- package/build/esm/types/mutations/subscriptions/index.d.ts +1 -0
- package/build/esm/types/mutations/subscriptions/subscriptions.mutation.d.ts +19 -0
- package/build/esm/types/queries/developers/developers.query.d.ts +3 -1
- package/build/esm/types/queries/index.d.ts +1 -0
- package/build/esm/types/queries/payments/payouts-timeline.query.test.d.ts +1 -0
- package/build/esm/types/queries/payments/payouts.query.d.ts +1 -0
- package/build/esm/types/queries/subscriptions/index.d.ts +1 -0
- package/build/esm/types/queries/subscriptions/subscriptions.query.d.ts +3 -0
- package/build/esm/types/types/payouts/payouts.d.ts +19 -0
- package/build/index.d.ts +75 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
2
|
import { HttpClient } from '../lib/http-client';
|
|
3
|
-
import { GetPaymentsParams, GetReconciliationMetricParams, FirebaseUserSubscribe, PathNotification, TimeZoneCatalog, GetTransactionDetailsV2Params, MfaUserSubscribe, UserInviteMultiaccountPayload, GetTransactionsParams, PaymentsSettings, GetPayoutDetail, GetPayoutTransactionDetail, PinnedSections, ThemeSettings } from './api.types';
|
|
3
|
+
import { GetPaymentsParams, GetReconciliationMetricParams, FirebaseUserSubscribe, PathNotification, TimeZoneCatalog, GetTransactionDetailsV2Params, MfaUserSubscribe, UserInviteMultiaccountPayload, GetTransactionsParams, PaymentsSettings, GetPayoutDetail, GetPayoutTransactionDetail, PinnedSections, ThemeSettings, ListSubscriptionsParams } from './api.types';
|
|
4
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';
|
|
@@ -49,6 +49,7 @@ export declare class Api extends HttpClient {
|
|
|
49
49
|
getPayoutDetails<T>(params: GetPayoutDetail): Promise<AxiosResponse<T, any>>;
|
|
50
50
|
getPayoutTransactionDetails<T>(params: GetPayoutTransactionDetail): Promise<AxiosResponse<T, any>>;
|
|
51
51
|
getPayoutHistoryDetails<T>(params: GetPayoutDetail, organizationCode: string): Promise<AxiosResponse<T, any>>;
|
|
52
|
+
getPayoutTimeline<T>(payoutCode: string, organizationCode: string): Promise<AxiosResponse<T, any>>;
|
|
52
53
|
getPaymentMethodsByCountry<T>({ provider_id, country }: Organization.PaymentMethods, organizationCodeFromAccount: any): Promise<AxiosResponse<T, any>>;
|
|
53
54
|
getOrgByName<T>(name: any): Promise<AxiosResponse<T, any>>;
|
|
54
55
|
createOperationTransaction<T>(payload: OperationTransaction.Request, transactionId: string, paymentId: string, action: OperationTransaction.Actions): Promise<AxiosResponse<T, any>>;
|
|
@@ -63,7 +64,7 @@ export declare class Api extends HttpClient {
|
|
|
63
64
|
getTransactionHistoryByPaymentCode<T>({ payment_code, }: {
|
|
64
65
|
payment_code: any;
|
|
65
66
|
}): Promise<AxiosResponse<T, any>>;
|
|
66
|
-
getDeveloperCredentials<T>(password: any, accountCode: any): Promise<AxiosResponse<T, any>>;
|
|
67
|
+
getDeveloperCredentials<T>(password: any, accountCode: any, otp?: string, mfaToken?: string): Promise<AxiosResponse<T, any>>;
|
|
67
68
|
getDeveloperCredentialsValidatePassword<T>(password: any): Promise<AxiosResponse<T, any>>;
|
|
68
69
|
getDeveloperCredentialsValidatePasswordRegularUser<T>(password: any): Promise<AxiosResponse<T, any>>;
|
|
69
70
|
getAllowedIps<T>(): Promise<AxiosResponse<T, any>>;
|
|
@@ -390,6 +391,15 @@ export declare class Api extends HttpClient {
|
|
|
390
391
|
postDeletePaymentLink<T>({ code }: {
|
|
391
392
|
code: any;
|
|
392
393
|
}): Promise<AxiosResponse<T, any>>;
|
|
394
|
+
postSubscription<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
395
|
+
getSubscriptionByCode<T>(subscriptionCode: string): Promise<AxiosResponse<T, any>>;
|
|
396
|
+
postPauseSubscription<T>(subscriptionCode: string): Promise<AxiosResponse<T, any>>;
|
|
397
|
+
postResumeSubscription<T>(subscriptionCode: string): Promise<AxiosResponse<T, any>>;
|
|
398
|
+
postCancelSubscription<T>(subscriptionCode: string): Promise<AxiosResponse<T, any>>;
|
|
399
|
+
patchSubscription<T>(subscriptionCode: string, payload: any): Promise<AxiosResponse<T, any>>;
|
|
400
|
+
postRescheduleSubscription<T>(subscriptionCode: string): Promise<AxiosResponse<T, any>>;
|
|
401
|
+
getSubscriptionPayments<T>(subscriptionCode: string, page?: number, size?: number): Promise<AxiosResponse<T, any>>;
|
|
402
|
+
postListSubscriptions<T>(payload: ListSubscriptionsParams): Promise<AxiosResponse<T, any>>;
|
|
393
403
|
getTimezone<T>(organizationCode: string): Promise<AxiosResponse<T, any>>;
|
|
394
404
|
getInstallmentPlans(accountCode: string): Promise<AxiosResponse<GetInstallmentPlansResponse>>;
|
|
395
405
|
firebaseUserSubscribe<T>(payload: FirebaseUserSubscribe): Promise<AxiosResponse<T>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -208,4 +208,20 @@ export interface PinnedSections {
|
|
|
208
208
|
sections: string[];
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
+
export interface ListSubscriptionsParams {
|
|
212
|
+
organization_code: string;
|
|
213
|
+
account_codes?: string[];
|
|
214
|
+
start_date?: string;
|
|
215
|
+
end_date?: string;
|
|
216
|
+
statuses?: string[];
|
|
217
|
+
countries?: string[];
|
|
218
|
+
payment_method_types?: string[];
|
|
219
|
+
page?: number;
|
|
220
|
+
size?: number;
|
|
221
|
+
merchant_reference?: string;
|
|
222
|
+
subscription_id?: string;
|
|
223
|
+
payment_id?: string;
|
|
224
|
+
customer_search?: string;
|
|
225
|
+
timezone?: string;
|
|
226
|
+
}
|
|
211
227
|
export {};
|
|
@@ -11,6 +11,7 @@ export * from './routing-monitors';
|
|
|
11
11
|
export * from './notifications';
|
|
12
12
|
export * from './team';
|
|
13
13
|
export * from './payment-links';
|
|
14
|
+
export * from './subscriptions';
|
|
14
15
|
export * from './settings';
|
|
15
16
|
export * from './multi-factor-authentication';
|
|
16
17
|
export * from './fraud-screening';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './subscriptions.mutation';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ListSubscriptionsParams } from '../../api/api.types';
|
|
2
|
+
export declare function useCreateSubscription(): import("@tanstack/react-query").UseMutationResult<any, unknown, any, unknown>;
|
|
3
|
+
export declare function usePauseSubscription(): import("@tanstack/react-query").UseMutationResult<any, unknown, {
|
|
4
|
+
subscriptionCode: string;
|
|
5
|
+
}, unknown>;
|
|
6
|
+
export declare function useResumeSubscription(): import("@tanstack/react-query").UseMutationResult<any, unknown, {
|
|
7
|
+
subscriptionCode: string;
|
|
8
|
+
}, unknown>;
|
|
9
|
+
export declare function useCancelSubscription(): import("@tanstack/react-query").UseMutationResult<any, unknown, {
|
|
10
|
+
subscriptionCode: string;
|
|
11
|
+
}, unknown>;
|
|
12
|
+
export declare function useUpdateSubscription(): import("@tanstack/react-query").UseMutationResult<any, unknown, {
|
|
13
|
+
subscriptionCode: string;
|
|
14
|
+
payload: any;
|
|
15
|
+
}, unknown>;
|
|
16
|
+
export declare function useRescheduleSubscription(): import("@tanstack/react-query").UseMutationResult<any, unknown, {
|
|
17
|
+
subscriptionCode: string;
|
|
18
|
+
}, unknown>;
|
|
19
|
+
export declare function useListSubscriptions(): import("@tanstack/react-query").UseMutationResult<any, unknown, ListSubscriptionsParams, unknown>;
|
|
@@ -2,9 +2,11 @@ import { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
|
|
|
2
2
|
import type { Developer, User } from '../../types';
|
|
3
3
|
import { CustomizedApiKeys } from '../../types/customized-api-keys';
|
|
4
4
|
import { AllowedList } from '../../types/allowed-list';
|
|
5
|
-
export declare function useGetCredentials({ password, accountCode, }: {
|
|
5
|
+
export declare function useGetCredentials({ password, accountCode, otp, mfaToken, }: {
|
|
6
6
|
password: string;
|
|
7
7
|
accountCode: string;
|
|
8
|
+
otp?: string;
|
|
9
|
+
mfaToken?: string;
|
|
8
10
|
}): UseQueryResult<Developer.DeveloperCredentials, unknown>;
|
|
9
11
|
export declare function useGetCustomizedApiKeysMembers(): UseQueryResult<User.ICustomizedApiKeysMembers, unknown>;
|
|
10
12
|
export declare function useGetAllowedIps(): UseQueryResult<AllowedList.Response, unknown>;
|
|
@@ -17,6 +17,7 @@ export * from './reconciliations';
|
|
|
17
17
|
export * from './feature-flags';
|
|
18
18
|
export * from './audit';
|
|
19
19
|
export * from './payment-links';
|
|
20
|
+
export * from './subscriptions';
|
|
20
21
|
export * from './firebase';
|
|
21
22
|
export * from './fraud-screening';
|
|
22
23
|
export * from './batch-refunds';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,3 +4,4 @@ import { Payouts } from '../../types/payouts';
|
|
|
4
4
|
import { AxiosError } from 'axios';
|
|
5
5
|
export declare function usePayoutsList(params: GetPaymentsParams | null): UseQueryResult<Payouts.List | AxiosError>;
|
|
6
6
|
export declare function usePayoutsFilters(enabled?: boolean): UseQueryResult<Payouts.Filters>;
|
|
7
|
+
export declare function useGetPayoutTimeline(payoutCode: string | null, enabled?: boolean): UseQueryResult<Payouts.Timeline | AxiosError>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './subscriptions.query';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
export declare function useGetSubscriptionByCode(subscriptionCode: string, enabled?: boolean): UseQueryResult<any, unknown>;
|
|
3
|
+
export declare function useGetSubscriptionPayments(subscriptionCode: string, page?: number, size?: number, enabled?: boolean): UseQueryResult<any, unknown>;
|
|
@@ -103,4 +103,23 @@ export declare namespace Payouts {
|
|
|
103
103
|
document_number: string;
|
|
104
104
|
document_type: string;
|
|
105
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
|
+
}
|
|
106
125
|
}
|