@yuno-payments/dashboard-api-mfe 0.41.7-metadata-beta.1 → 0.42.0
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 +6 -2
- package/build/cjs/types/api/api.types.d.ts +0 -12
- package/build/cjs/types/queries/team/team.query.d.ts +6 -2
- package/build/cjs/types/types/data-report/data-report.d.ts +8 -23
- package/build/esm/index.js +6 -6
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +6 -2
- package/build/esm/types/api/api.types.d.ts +0 -12
- package/build/esm/types/queries/team/team.query.d.ts +6 -2
- package/build/esm/types/types/data-report/data-report.d.ts +8 -23
- package/build/index.d.ts +20 -39
- package/package.json +1 -1
|
@@ -339,10 +339,14 @@ export declare class Api extends HttpClient {
|
|
|
339
339
|
teamsFiltersMembers<T>({ organizationCode, }: {
|
|
340
340
|
organizationCode: any;
|
|
341
341
|
}): Promise<AxiosResponse<T, any>>;
|
|
342
|
-
postMembersPaginatedV2<T>({ organizationCode, accountCodes,
|
|
342
|
+
postMembersPaginatedV2<T>({ organizationCode, accountCodes, search, status, roleId, statuses, roleIds, page, pageSize, }: {
|
|
343
343
|
organizationCode: any;
|
|
344
344
|
accountCodes: any;
|
|
345
|
-
|
|
345
|
+
search: any;
|
|
346
|
+
status: any;
|
|
347
|
+
roleId: any;
|
|
348
|
+
statuses: any;
|
|
349
|
+
roleIds: any;
|
|
346
350
|
page: any;
|
|
347
351
|
pageSize: any;
|
|
348
352
|
}): Promise<AxiosResponse<T, any>>;
|
|
@@ -6,12 +6,6 @@ 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
|
-
}>;
|
|
15
9
|
}
|
|
16
10
|
export interface GetPaymentsEvaluatedParams {
|
|
17
11
|
start_date: string | Date;
|
|
@@ -133,12 +127,6 @@ export interface GetTransactionsParams {
|
|
|
133
127
|
page?: number;
|
|
134
128
|
size?: number;
|
|
135
129
|
account_code?: string;
|
|
136
|
-
metadata?: Array<{
|
|
137
|
-
field: string;
|
|
138
|
-
formatType: 'TEXT' | 'NUMBER';
|
|
139
|
-
type: string;
|
|
140
|
-
values: string | string[];
|
|
141
|
-
}>;
|
|
142
130
|
}
|
|
143
131
|
export interface GetPayoutDetail {
|
|
144
132
|
payout_code: string;
|
|
@@ -2,10 +2,14 @@ import { UseQueryResult } from '@tanstack/react-query';
|
|
|
2
2
|
import { AxiosError } from 'axios';
|
|
3
3
|
import { Team } from '../../types';
|
|
4
4
|
export declare function useGetTeamsFiltersMembers(): UseQueryResult<Team.TeamList[], unknown>;
|
|
5
|
-
export declare function usePostMembersPaginatedV2({ organizationCode, accountCodes,
|
|
5
|
+
export declare function usePostMembersPaginatedV2({ organizationCode, accountCodes, search, status, roleId, statuses, roleIds, page, pageSize, }: {
|
|
6
6
|
organizationCode: any;
|
|
7
7
|
accountCodes: any;
|
|
8
|
-
|
|
8
|
+
search: any;
|
|
9
|
+
status: any;
|
|
10
|
+
roleId: any;
|
|
11
|
+
statuses: any;
|
|
12
|
+
roleIds: any;
|
|
9
13
|
page: any;
|
|
10
14
|
pageSize: any;
|
|
11
15
|
}): UseQueryResult<Team.TeamResponse, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare namespace DataReport {
|
|
2
|
-
|
|
2
|
+
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
|
-
|
|
11
|
+
interface SmartRouting {
|
|
12
12
|
version: string;
|
|
13
13
|
code_integration: string;
|
|
14
14
|
Conditions: {
|
|
@@ -21,46 +21,31 @@ export declare namespace DataReport {
|
|
|
21
21
|
cost: number;
|
|
22
22
|
}[];
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
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
|
-
|
|
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;
|
|
30
|
+
interface InsightMetricParams {
|
|
31
|
+
[a: string]: string | boolean | number | string[] | undefined;
|
|
43
32
|
account_code?: string;
|
|
44
33
|
connection_name?: string;
|
|
45
|
-
metadata?: MetadataField[];
|
|
46
34
|
}
|
|
47
|
-
|
|
35
|
+
interface InsightMetricBody {
|
|
48
36
|
account_codes?: string[];
|
|
49
37
|
account_code?: string[];
|
|
50
38
|
connection_name?: string[];
|
|
51
|
-
metadata_filters?: MetadataFieldFilter[];
|
|
52
|
-
metadata?: MetadataField[];
|
|
53
39
|
}
|
|
54
|
-
|
|
40
|
+
interface InsightExportParams {
|
|
55
41
|
type?: string;
|
|
56
42
|
code?: string;
|
|
57
43
|
}
|
|
58
|
-
|
|
44
|
+
interface InsightsHomeMetrics {
|
|
59
45
|
account_codes?: string[];
|
|
60
46
|
organization_code?: string;
|
|
61
47
|
currency_code?: string;
|
|
62
48
|
timezone?: string;
|
|
63
49
|
isLiveMode?: boolean;
|
|
64
50
|
}
|
|
65
|
-
export {};
|
|
66
51
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -199,12 +199,6 @@ interface GetPaymentsParams {
|
|
|
199
199
|
enabled?: boolean;
|
|
200
200
|
account_code?: string;
|
|
201
201
|
payment_link_code?: string;
|
|
202
|
-
metadata?: Array<{
|
|
203
|
-
field: string;
|
|
204
|
-
formatType: 'TEXT' | 'NUMBER';
|
|
205
|
-
type: string;
|
|
206
|
-
values: string | string[];
|
|
207
|
-
}>;
|
|
208
202
|
}
|
|
209
203
|
interface GetPaymentsEvaluatedParams {
|
|
210
204
|
start_date: string | Date;
|
|
@@ -326,12 +320,6 @@ interface GetTransactionsParams {
|
|
|
326
320
|
page?: number;
|
|
327
321
|
size?: number;
|
|
328
322
|
account_code?: string;
|
|
329
|
-
metadata?: Array<{
|
|
330
|
-
field: string;
|
|
331
|
-
formatType: 'TEXT' | 'NUMBER';
|
|
332
|
-
type: string;
|
|
333
|
-
values: string | string[];
|
|
334
|
-
}>;
|
|
335
323
|
}
|
|
336
324
|
interface GetPayoutDetail {
|
|
337
325
|
payout_code: string;
|
|
@@ -2469,7 +2457,7 @@ declare namespace Team {
|
|
|
2469
2457
|
}
|
|
2470
2458
|
|
|
2471
2459
|
declare namespace DataReport {
|
|
2472
|
-
|
|
2460
|
+
enum InsightsVolumeMetricsV2Path {
|
|
2473
2461
|
REFUNDS_AND_CHARGEBACKS = "refunds-and-chargebacks",
|
|
2474
2462
|
APPROVED_PAYMENTS = "approved-payments",
|
|
2475
2463
|
PAYMENT_METHODS = "payment-methods",
|
|
@@ -2478,7 +2466,7 @@ declare namespace DataReport {
|
|
|
2478
2466
|
UNIQUE_CUSTOMER_PAYMENTS = "unique-customer-payments",
|
|
2479
2467
|
TOTAL_PAYMENTS = "total-payments"
|
|
2480
2468
|
}
|
|
2481
|
-
|
|
2469
|
+
interface SmartRouting {
|
|
2482
2470
|
version: string;
|
|
2483
2471
|
code_integration: string;
|
|
2484
2472
|
Conditions: {
|
|
@@ -2491,48 +2479,33 @@ declare namespace DataReport {
|
|
|
2491
2479
|
cost: number;
|
|
2492
2480
|
}[];
|
|
2493
2481
|
}
|
|
2494
|
-
|
|
2482
|
+
enum OverviewMetricType {
|
|
2495
2483
|
GENERAL = "volume-and-total-payments",
|
|
2496
2484
|
LATENCY = "provider-latency",
|
|
2497
2485
|
STATUS = "status",
|
|
2498
2486
|
SUBSCRIPTIONS = "subscriptions"
|
|
2499
2487
|
}
|
|
2500
|
-
interface
|
|
2501
|
-
|
|
2502
|
-
formatType: 'TEXT' | 'NUMBER';
|
|
2503
|
-
type: string;
|
|
2504
|
-
values: string | string[];
|
|
2505
|
-
}
|
|
2506
|
-
interface MetadataFieldFilter {
|
|
2507
|
-
key: string;
|
|
2508
|
-
conditional: string;
|
|
2509
|
-
values: string | string[];
|
|
2510
|
-
}
|
|
2511
|
-
export interface InsightMetricParams {
|
|
2512
|
-
[a: string]: string | boolean | number | string[] | MetadataField[] | undefined;
|
|
2488
|
+
interface InsightMetricParams {
|
|
2489
|
+
[a: string]: string | boolean | number | string[] | undefined;
|
|
2513
2490
|
account_code?: string;
|
|
2514
2491
|
connection_name?: string;
|
|
2515
|
-
metadata?: MetadataField[];
|
|
2516
2492
|
}
|
|
2517
|
-
|
|
2493
|
+
interface InsightMetricBody {
|
|
2518
2494
|
account_codes?: string[];
|
|
2519
2495
|
account_code?: string[];
|
|
2520
2496
|
connection_name?: string[];
|
|
2521
|
-
metadata_filters?: MetadataFieldFilter[];
|
|
2522
|
-
metadata?: MetadataField[];
|
|
2523
2497
|
}
|
|
2524
|
-
|
|
2498
|
+
interface InsightExportParams {
|
|
2525
2499
|
type?: string;
|
|
2526
2500
|
code?: string;
|
|
2527
2501
|
}
|
|
2528
|
-
|
|
2502
|
+
interface InsightsHomeMetrics {
|
|
2529
2503
|
account_codes?: string[];
|
|
2530
2504
|
organization_code?: string;
|
|
2531
2505
|
currency_code?: string;
|
|
2532
2506
|
timezone?: string;
|
|
2533
2507
|
isLiveMode?: boolean;
|
|
2534
2508
|
}
|
|
2535
|
-
export {};
|
|
2536
2509
|
}
|
|
2537
2510
|
|
|
2538
2511
|
interface InsightsFraudParams {
|
|
@@ -5480,10 +5453,14 @@ declare function useGetReportColumns(enabled: boolean, templateType: TemplateTyp
|
|
|
5480
5453
|
declare function useGetRefundPdf(transactionCode: string, accountCode: string): UseQueryResult<RefundPdfResponse, AxiosError>;
|
|
5481
5454
|
|
|
5482
5455
|
declare function useGetTeamsFiltersMembers(): UseQueryResult<Team.TeamList[], unknown>;
|
|
5483
|
-
declare function usePostMembersPaginatedV2({ organizationCode, accountCodes,
|
|
5456
|
+
declare function usePostMembersPaginatedV2({ organizationCode, accountCodes, search, status, roleId, statuses, roleIds, page, pageSize, }: {
|
|
5484
5457
|
organizationCode: any;
|
|
5485
5458
|
accountCodes: any;
|
|
5486
|
-
|
|
5459
|
+
search: any;
|
|
5460
|
+
status: any;
|
|
5461
|
+
roleId: any;
|
|
5462
|
+
statuses: any;
|
|
5463
|
+
roleIds: any;
|
|
5487
5464
|
page: any;
|
|
5488
5465
|
pageSize: any;
|
|
5489
5466
|
}): UseQueryResult<Team.TeamResponse, unknown>;
|
|
@@ -6100,10 +6077,14 @@ declare class Api extends HttpClient {
|
|
|
6100
6077
|
teamsFiltersMembers<T>({ organizationCode, }: {
|
|
6101
6078
|
organizationCode: any;
|
|
6102
6079
|
}): Promise<AxiosResponse<T, any>>;
|
|
6103
|
-
postMembersPaginatedV2<T>({ organizationCode, accountCodes,
|
|
6080
|
+
postMembersPaginatedV2<T>({ organizationCode, accountCodes, search, status, roleId, statuses, roleIds, page, pageSize, }: {
|
|
6104
6081
|
organizationCode: any;
|
|
6105
6082
|
accountCodes: any;
|
|
6106
|
-
|
|
6083
|
+
search: any;
|
|
6084
|
+
status: any;
|
|
6085
|
+
roleId: any;
|
|
6086
|
+
statuses: any;
|
|
6087
|
+
roleIds: any;
|
|
6107
6088
|
page: any;
|
|
6108
6089
|
pageSize: any;
|
|
6109
6090
|
}): Promise<AxiosResponse<T, any>>;
|