@yuno-payments/dashboard-api-mfe 0.36.5 → 0.36.15
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 +7 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +7 -4
- package/build/cjs/types/msw/handlers/insights.d.ts +1 -0
- package/build/cjs/types/msw/handlers/payments.d.ts +1 -0
- package/build/cjs/types/msw/mocks/payments/payments.mock.d.ts +92 -0
- package/build/cjs/types/msw/mocks/payments/transaction-details.mock.d.ts +579 -0
- package/build/cjs/types/mutations/ai/ai.mutation.d.ts +2 -1
- package/build/cjs/types/queries/data-report/data-report.query.d.ts +1 -1
- package/build/cjs/types/queries/feature-flags/index.d.ts +1 -2
- package/build/cjs/types/queries/index.d.ts +1 -0
- package/build/cjs/types/queries/translation/index.d.ts +1 -0
- package/build/cjs/types/queries/translation/translation.query.d.ts +5 -0
- package/build/cjs/types/queries/users/users.query.d.ts +1 -0
- package/build/cjs/types/types/ai/ai.d.ts +24 -0
- package/build/cjs/types/types/ai/index.d.ts +1 -0
- package/build/cjs/types/types/index.d.ts +2 -0
- package/build/cjs/types/types/payment/payment.d.ts +3 -1
- package/build/cjs/types/types/translation/index.d.ts +1 -0
- package/build/cjs/types/types/translation/translation.d.ts +8 -0
- package/build/cjs/types/types/user/user.d.ts +3 -0
- package/build/esm/index.js +7 -7
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +7 -4
- package/build/esm/types/msw/handlers/insights.d.ts +1 -0
- package/build/esm/types/msw/handlers/payments.d.ts +1 -0
- package/build/esm/types/msw/mocks/payments/payments.mock.d.ts +92 -0
- package/build/esm/types/msw/mocks/payments/transaction-details.mock.d.ts +579 -0
- package/build/esm/types/mutations/ai/ai.mutation.d.ts +2 -1
- package/build/esm/types/queries/data-report/data-report.query.d.ts +1 -1
- package/build/esm/types/queries/feature-flags/index.d.ts +1 -2
- package/build/esm/types/queries/index.d.ts +1 -0
- package/build/esm/types/queries/translation/index.d.ts +1 -0
- package/build/esm/types/queries/translation/translation.query.d.ts +5 -0
- package/build/esm/types/queries/users/users.query.d.ts +1 -0
- package/build/esm/types/types/ai/ai.d.ts +24 -0
- package/build/esm/types/types/ai/index.d.ts +1 -0
- package/build/esm/types/types/index.d.ts +2 -0
- package/build/esm/types/types/payment/payment.d.ts +3 -1
- package/build/esm/types/types/translation/index.d.ts +1 -0
- package/build/esm/types/types/translation/translation.d.ts +8 -0
- package/build/esm/types/types/user/user.d.ts +3 -0
- package/build/index.d.ts +53 -8
- package/package.json +1 -1
- /package/build/cjs/types/msw/{handlers.d.ts → handlers/index.d.ts} +0 -0
- /package/build/esm/types/msw/{handlers.d.ts → handlers/index.d.ts} +0 -0
|
@@ -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 } 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 } 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';
|
|
@@ -158,6 +158,7 @@ export declare class Api extends HttpClient {
|
|
|
158
158
|
removeDeclinedGroup<T>(organizationCode: string, declinedGroupCode: number | string): Promise<AxiosResponse<T, any>>;
|
|
159
159
|
multiAccountDeclinedGroupCreate<T>(organizationCode: string, payload: SmartRouting.PayloadDeclinedGroupCreate): Promise<AxiosResponse<T, any>>;
|
|
160
160
|
generateAIWorkflowRoutes<T>(organizationCode: string, payload: SmartRouting.PayloadAIWorkflowCreate): Promise<AxiosResponse<T, any>>;
|
|
161
|
+
postAIGenerationFeedback<T>(payload: AI.AIGenerate): Promise<AxiosResponse<T, any>>;
|
|
161
162
|
getRoutingMonitorsTemplates<T>(organizationCode: any): Promise<AxiosResponse<T, RoutingMonitors.TemplateSelector[]>>;
|
|
162
163
|
getRoutingMonitorsTemplate<T>(code: string, organizationCode: string): Promise<AxiosResponse<T, RoutingMonitors.Template>>;
|
|
163
164
|
createMonitorThreshold<T>(data: any, organizationCode: any): Promise<AxiosResponse<T>>;
|
|
@@ -235,6 +236,7 @@ export declare class Api extends HttpClient {
|
|
|
235
236
|
deleteScheduledReport<T>(reportCode: string): Promise<AxiosResponse<T>>;
|
|
236
237
|
getProfile<T>(): Promise<AxiosResponse<T, any>>;
|
|
237
238
|
getImpersonationUsers<T>(): Promise<AxiosResponse<T, any>>;
|
|
239
|
+
getImpersonationEnabled<T>(): Promise<AxiosResponse<T, any>>;
|
|
238
240
|
updateProfile<T>(payload: User.UserRequestPayload): Promise<AxiosResponse<T>>;
|
|
239
241
|
inviteUsersMassive<T>(data: UserInviteMultiaccountPayload, organizationCode: string): Promise<AxiosResponse<T>>;
|
|
240
242
|
unInviteUsersV2<T>({ userCode, organizationCode, }: {
|
|
@@ -288,9 +290,8 @@ export declare class Api extends HttpClient {
|
|
|
288
290
|
deleteRoles<T>(id: any): Promise<AxiosResponse<T>>;
|
|
289
291
|
getRolesPermissions<T>(): Promise<AxiosResponse<T>>;
|
|
290
292
|
getFeatureFlagId<T>({ name, ...rest }: FeatureFlags.Request): Promise<AxiosResponse<T>>;
|
|
291
|
-
getFeatureFlagIdAll({
|
|
292
|
-
|
|
293
|
-
body: FeatureFlags.RequestAll;
|
|
293
|
+
getFeatureFlagIdAll({ accountCode, }: {
|
|
294
|
+
accountCode?: string;
|
|
294
295
|
}): Promise<AxiosResponse<FeatureFlagsResult, any>>;
|
|
295
296
|
getPermissionsCatalog<T>(): Promise<AxiosResponse<T>>;
|
|
296
297
|
changePasswordV2<T>(body: any): Promise<AxiosResponse<T>>;
|
|
@@ -466,5 +467,7 @@ export declare class Api extends HttpClient {
|
|
|
466
467
|
}): Promise<AxiosResponse<T, any>>;
|
|
467
468
|
executeChartGPTChart<T>(chartgpt_id: string): Promise<AxiosResponse<T, any>>;
|
|
468
469
|
getChartsByUser<T>(): Promise<AxiosResponse<T, any>>;
|
|
470
|
+
getLanguages<T>(): Promise<AxiosResponse<T, any>>;
|
|
471
|
+
getTranslations<T>(): Promise<AxiosResponse<T, any>>;
|
|
469
472
|
}
|
|
470
473
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const insightsHandlers: import("msw/lib/core/handlers/HttpHandler").HttpHandler[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const paymentsHandlers: import("msw/lib/core/handlers/HttpHandler").HttpHandler[];
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export declare const paymentsMock: {
|
|
2
|
+
content: ({
|
|
3
|
+
test_credential: boolean;
|
|
4
|
+
organization_code: string;
|
|
5
|
+
account_code: string;
|
|
6
|
+
id: number;
|
|
7
|
+
code: string;
|
|
8
|
+
order_id: string;
|
|
9
|
+
status: string;
|
|
10
|
+
sub_status: string;
|
|
11
|
+
amount_value: number;
|
|
12
|
+
currency_code: string;
|
|
13
|
+
created_at: string;
|
|
14
|
+
updated_at: string;
|
|
15
|
+
captured: number;
|
|
16
|
+
refunded: number;
|
|
17
|
+
country: string;
|
|
18
|
+
customer_code: string;
|
|
19
|
+
description: string;
|
|
20
|
+
subscription_id: string;
|
|
21
|
+
condition_set_id: number;
|
|
22
|
+
payment_type: string;
|
|
23
|
+
transaction_payment: {
|
|
24
|
+
code: string;
|
|
25
|
+
provider_id: string;
|
|
26
|
+
payment_method_type: string;
|
|
27
|
+
parent_payment_method_type: null;
|
|
28
|
+
}[];
|
|
29
|
+
customer_payer: {
|
|
30
|
+
customer_payer_id: number;
|
|
31
|
+
payment_id: number;
|
|
32
|
+
document_number: string;
|
|
33
|
+
email: string;
|
|
34
|
+
}[];
|
|
35
|
+
card_transaction: {
|
|
36
|
+
card_transaction_id: number;
|
|
37
|
+
transaction_id: number;
|
|
38
|
+
three_ds_electronic_commerce_indicator: null;
|
|
39
|
+
three_ds_transaction_id: null;
|
|
40
|
+
bin: string;
|
|
41
|
+
brand: string;
|
|
42
|
+
installments: number;
|
|
43
|
+
network_token: null;
|
|
44
|
+
}[];
|
|
45
|
+
bnpl_transaction: never[];
|
|
46
|
+
} | {
|
|
47
|
+
organization_code: string;
|
|
48
|
+
account_code: string;
|
|
49
|
+
id: number;
|
|
50
|
+
code: string;
|
|
51
|
+
order_id: string;
|
|
52
|
+
status: string;
|
|
53
|
+
sub_status: string;
|
|
54
|
+
amount_value: number;
|
|
55
|
+
currency_code: string;
|
|
56
|
+
created_at: string;
|
|
57
|
+
updated_at: string;
|
|
58
|
+
captured: number;
|
|
59
|
+
refunded: number;
|
|
60
|
+
country: string;
|
|
61
|
+
customer_code: string;
|
|
62
|
+
description: string;
|
|
63
|
+
subscription_id: string;
|
|
64
|
+
condition_set_id: number;
|
|
65
|
+
payment_type: string;
|
|
66
|
+
transaction_payment: {
|
|
67
|
+
code: string;
|
|
68
|
+
provider_id: string;
|
|
69
|
+
payment_method_type: string;
|
|
70
|
+
parent_payment_method_type: null;
|
|
71
|
+
}[];
|
|
72
|
+
customer_payer: {
|
|
73
|
+
customer_payer_id: number;
|
|
74
|
+
payment_id: number;
|
|
75
|
+
document_number: string;
|
|
76
|
+
email: string;
|
|
77
|
+
}[];
|
|
78
|
+
card_transaction: {
|
|
79
|
+
card_transaction_id: number;
|
|
80
|
+
transaction_id: number;
|
|
81
|
+
three_ds_electronic_commerce_indicator: null;
|
|
82
|
+
three_ds_transaction_id: null;
|
|
83
|
+
bin: string;
|
|
84
|
+
brand: string;
|
|
85
|
+
installments: number;
|
|
86
|
+
network_token: null;
|
|
87
|
+
}[];
|
|
88
|
+
bnpl_transaction: never[];
|
|
89
|
+
test_credential?: undefined;
|
|
90
|
+
})[];
|
|
91
|
+
last_page: boolean;
|
|
92
|
+
};
|