@yuno-payments/dashboard-api-mfe 0.42.1 → 0.42.2
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 +1 -1
- package/build/cjs/types/api/api.types.d.ts +12 -0
- package/build/cjs/types/mutations/developers/developers.mutation.d.ts +0 -1
- package/build/cjs/types/queries/developers/developers.query.d.ts +1 -3
- package/build/cjs/types/types/data-report/data-report.d.ts +23 -8
- package/build/esm/index.js +3 -3
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +1 -1
- package/build/esm/types/api/api.types.d.ts +12 -0
- package/build/esm/types/mutations/developers/developers.mutation.d.ts +0 -1
- package/build/esm/types/queries/developers/developers.query.d.ts +1 -3
- package/build/esm/types/types/data-report/data-report.d.ts +23 -8
- package/build/index.d.ts +38 -14
- package/package.json +1 -1
|
@@ -63,7 +63,7 @@ export declare class Api extends HttpClient {
|
|
|
63
63
|
getTransactionHistoryByPaymentCode<T>({ payment_code, }: {
|
|
64
64
|
payment_code: any;
|
|
65
65
|
}): Promise<AxiosResponse<T, any>>;
|
|
66
|
-
getDeveloperCredentials<T>(password: any, accountCode: any
|
|
66
|
+
getDeveloperCredentials<T>(password: any, accountCode: any): Promise<AxiosResponse<T, any>>;
|
|
67
67
|
getDeveloperCredentialsValidatePassword<T>(password: any): Promise<AxiosResponse<T, any>>;
|
|
68
68
|
getDeveloperCredentialsValidatePasswordRegularUser<T>(password: any): Promise<AxiosResponse<T, any>>;
|
|
69
69
|
getAllowedIps<T>(): Promise<AxiosResponse<T, any>>;
|
|
@@ -6,6 +6,12 @@ export interface GetPaymentsParams {
|
|
|
6
6
|
enabled?: boolean;
|
|
7
7
|
account_code?: string;
|
|
8
8
|
payment_link_code?: string;
|
|
9
|
+
metadata?: Array<{
|
|
10
|
+
field: string;
|
|
11
|
+
formatType: 'TEXT' | 'NUMBER';
|
|
12
|
+
type: string;
|
|
13
|
+
values: string | string[];
|
|
14
|
+
}>;
|
|
9
15
|
}
|
|
10
16
|
export interface GetPaymentsEvaluatedParams {
|
|
11
17
|
start_date: string | Date;
|
|
@@ -127,6 +133,12 @@ export interface GetTransactionsParams {
|
|
|
127
133
|
page?: number;
|
|
128
134
|
size?: number;
|
|
129
135
|
account_code?: string;
|
|
136
|
+
metadata?: Array<{
|
|
137
|
+
field: string;
|
|
138
|
+
formatType: 'TEXT' | 'NUMBER';
|
|
139
|
+
type: string;
|
|
140
|
+
values: string | string[];
|
|
141
|
+
}>;
|
|
130
142
|
}
|
|
131
143
|
export interface GetPayoutDetail {
|
|
132
144
|
payout_code: string;
|
|
@@ -2,11 +2,9 @@ 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, }: {
|
|
6
6
|
password: string;
|
|
7
7
|
accountCode: string;
|
|
8
|
-
otp?: string;
|
|
9
|
-
mfaToken?: string;
|
|
10
8
|
}): UseQueryResult<Developer.DeveloperCredentials, unknown>;
|
|
11
9
|
export declare function useGetCustomizedApiKeysMembers(): UseQueryResult<User.ICustomizedApiKeysMembers, unknown>;
|
|
12
10
|
export declare function useGetAllowedIps(): UseQueryResult<AllowedList.Response, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare namespace DataReport {
|
|
2
|
-
enum InsightsVolumeMetricsV2Path {
|
|
2
|
+
export enum InsightsVolumeMetricsV2Path {
|
|
3
3
|
REFUNDS_AND_CHARGEBACKS = "refunds-and-chargebacks",
|
|
4
4
|
APPROVED_PAYMENTS = "approved-payments",
|
|
5
5
|
PAYMENT_METHODS = "payment-methods",
|
|
@@ -8,7 +8,7 @@ export declare namespace DataReport {
|
|
|
8
8
|
UNIQUE_CUSTOMER_PAYMENTS = "unique-customer-payments",
|
|
9
9
|
TOTAL_PAYMENTS = "total-payments"
|
|
10
10
|
}
|
|
11
|
-
interface SmartRouting {
|
|
11
|
+
export interface SmartRouting {
|
|
12
12
|
version: string;
|
|
13
13
|
code_integration: string;
|
|
14
14
|
Conditions: {
|
|
@@ -21,31 +21,46 @@ export declare namespace DataReport {
|
|
|
21
21
|
cost: number;
|
|
22
22
|
}[];
|
|
23
23
|
}
|
|
24
|
-
enum OverviewMetricType {
|
|
24
|
+
export enum OverviewMetricType {
|
|
25
25
|
GENERAL = "volume-and-total-payments",
|
|
26
26
|
LATENCY = "provider-latency",
|
|
27
27
|
STATUS = "status",
|
|
28
28
|
SUBSCRIPTIONS = "subscriptions"
|
|
29
29
|
}
|
|
30
|
-
interface
|
|
31
|
-
|
|
30
|
+
interface MetadataField {
|
|
31
|
+
field: string;
|
|
32
|
+
formatType: 'TEXT' | 'NUMBER';
|
|
33
|
+
type: string;
|
|
34
|
+
values: string | string[];
|
|
35
|
+
}
|
|
36
|
+
interface MetadataFieldFilter {
|
|
37
|
+
key: string;
|
|
38
|
+
conditional: string;
|
|
39
|
+
values: string | string[];
|
|
40
|
+
}
|
|
41
|
+
export interface InsightMetricParams {
|
|
42
|
+
[a: string]: string | boolean | number | string[] | MetadataField[] | undefined;
|
|
32
43
|
account_code?: string;
|
|
33
44
|
connection_name?: string;
|
|
45
|
+
metadata?: MetadataField[];
|
|
34
46
|
}
|
|
35
|
-
interface InsightMetricBody {
|
|
47
|
+
export interface InsightMetricBody {
|
|
36
48
|
account_codes?: string[];
|
|
37
49
|
account_code?: string[];
|
|
38
50
|
connection_name?: string[];
|
|
51
|
+
metadata_filters?: MetadataFieldFilter[];
|
|
52
|
+
metadata?: MetadataField[];
|
|
39
53
|
}
|
|
40
|
-
interface InsightExportParams {
|
|
54
|
+
export interface InsightExportParams {
|
|
41
55
|
type?: string;
|
|
42
56
|
code?: string;
|
|
43
57
|
}
|
|
44
|
-
interface InsightsHomeMetrics {
|
|
58
|
+
export interface InsightsHomeMetrics {
|
|
45
59
|
account_codes?: string[];
|
|
46
60
|
organization_code?: string;
|
|
47
61
|
currency_code?: string;
|
|
48
62
|
timezone?: string;
|
|
49
63
|
isLiveMode?: boolean;
|
|
50
64
|
}
|
|
65
|
+
export {};
|
|
51
66
|
}
|