@yuno-payments/dashboard-api-mfe 0.38.2 → 0.38.4
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.types.d.ts +12 -0
- package/build/cjs/types/types/data-report/data-report.d.ts +23 -8
- package/build/esm/index.js +2 -2
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.types.d.ts +12 -0
- package/build/esm/types/types/data-report/data-report.d.ts +23 -8
- package/build/index.d.ts +35 -8
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -199,6 +199,12 @@ 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
|
+
}>;
|
|
202
208
|
}
|
|
203
209
|
interface GetPaymentsEvaluatedParams {
|
|
204
210
|
start_date: string | Date;
|
|
@@ -320,6 +326,12 @@ interface GetTransactionsParams {
|
|
|
320
326
|
page?: number;
|
|
321
327
|
size?: number;
|
|
322
328
|
account_code?: string;
|
|
329
|
+
metadata?: Array<{
|
|
330
|
+
field: string;
|
|
331
|
+
formatType: 'TEXT' | 'NUMBER';
|
|
332
|
+
type: string;
|
|
333
|
+
values: string | string[];
|
|
334
|
+
}>;
|
|
323
335
|
}
|
|
324
336
|
interface GetPayoutDetail {
|
|
325
337
|
payout_code: string;
|
|
@@ -2357,7 +2369,7 @@ declare namespace Team {
|
|
|
2357
2369
|
}
|
|
2358
2370
|
|
|
2359
2371
|
declare namespace DataReport {
|
|
2360
|
-
enum InsightsVolumeMetricsV2Path {
|
|
2372
|
+
export enum InsightsVolumeMetricsV2Path {
|
|
2361
2373
|
REFUNDS_AND_CHARGEBACKS = "refunds-and-chargebacks",
|
|
2362
2374
|
APPROVED_PAYMENTS = "approved-payments",
|
|
2363
2375
|
PAYMENT_METHODS = "payment-methods",
|
|
@@ -2366,7 +2378,7 @@ declare namespace DataReport {
|
|
|
2366
2378
|
UNIQUE_CUSTOMER_PAYMENTS = "unique-customer-payments",
|
|
2367
2379
|
TOTAL_PAYMENTS = "total-payments"
|
|
2368
2380
|
}
|
|
2369
|
-
interface SmartRouting {
|
|
2381
|
+
export interface SmartRouting {
|
|
2370
2382
|
version: string;
|
|
2371
2383
|
code_integration: string;
|
|
2372
2384
|
Conditions: {
|
|
@@ -2379,33 +2391,48 @@ declare namespace DataReport {
|
|
|
2379
2391
|
cost: number;
|
|
2380
2392
|
}[];
|
|
2381
2393
|
}
|
|
2382
|
-
enum OverviewMetricType {
|
|
2394
|
+
export enum OverviewMetricType {
|
|
2383
2395
|
GENERAL = "volume-and-total-payments",
|
|
2384
2396
|
LATENCY = "provider-latency",
|
|
2385
2397
|
STATUS = "status",
|
|
2386
2398
|
SUBSCRIPTIONS = "subscriptions"
|
|
2387
2399
|
}
|
|
2388
|
-
interface
|
|
2389
|
-
|
|
2400
|
+
interface MetadataField {
|
|
2401
|
+
field: string;
|
|
2402
|
+
formatType: 'TEXT' | 'NUMBER';
|
|
2403
|
+
type: string;
|
|
2404
|
+
values: string | string[];
|
|
2405
|
+
}
|
|
2406
|
+
interface MetadataFieldFilter {
|
|
2407
|
+
key: string;
|
|
2408
|
+
conditional: string;
|
|
2409
|
+
values: string | string[];
|
|
2410
|
+
}
|
|
2411
|
+
export interface InsightMetricParams {
|
|
2412
|
+
[a: string]: string | boolean | number | string[] | MetadataField[] | undefined;
|
|
2390
2413
|
account_code?: string;
|
|
2391
2414
|
connection_name?: string;
|
|
2415
|
+
metadata?: MetadataField[];
|
|
2392
2416
|
}
|
|
2393
|
-
interface InsightMetricBody {
|
|
2417
|
+
export interface InsightMetricBody {
|
|
2394
2418
|
account_codes?: string[];
|
|
2395
2419
|
account_code?: string[];
|
|
2396
2420
|
connection_name?: string[];
|
|
2421
|
+
metadata_filters?: MetadataFieldFilter[];
|
|
2422
|
+
metadata?: MetadataField[];
|
|
2397
2423
|
}
|
|
2398
|
-
interface InsightExportParams {
|
|
2424
|
+
export interface InsightExportParams {
|
|
2399
2425
|
type?: string;
|
|
2400
2426
|
code?: string;
|
|
2401
2427
|
}
|
|
2402
|
-
interface InsightsHomeMetrics {
|
|
2428
|
+
export interface InsightsHomeMetrics {
|
|
2403
2429
|
account_codes?: string[];
|
|
2404
2430
|
organization_code?: string;
|
|
2405
2431
|
currency_code?: string;
|
|
2406
2432
|
timezone?: string;
|
|
2407
2433
|
isLiveMode?: boolean;
|
|
2408
2434
|
}
|
|
2435
|
+
export {};
|
|
2409
2436
|
}
|
|
2410
2437
|
|
|
2411
2438
|
interface InsightsFraudParams {
|