@yuno-payments/dashboard-api-mfe 0.41.7-metadata-beta.1 → 0.42.3-subscriptions-beta.1
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 +15 -2
- package/build/cjs/types/api/api.test.d.ts +1 -0
- package/build/cjs/types/api/api.types.d.ts +0 -12
- package/build/cjs/types/mutations/index.d.ts +1 -1
- package/build/cjs/types/mutations/subscriptions/index.d.ts +1 -0
- package/build/cjs/types/mutations/subscriptions/subscriptions.mutation.d.ts +18 -0
- package/build/cjs/types/queries/index.d.ts +1 -1
- 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/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 +15 -2
- package/build/esm/types/api/api.test.d.ts +1 -0
- package/build/esm/types/api/api.types.d.ts +0 -12
- package/build/esm/types/mutations/index.d.ts +1 -1
- package/build/esm/types/mutations/subscriptions/index.d.ts +1 -0
- package/build/esm/types/mutations/subscriptions/subscriptions.mutation.d.ts +18 -0
- package/build/esm/types/queries/index.d.ts +1 -1
- 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/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 +52 -45
- 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>>;
|
|
@@ -386,6 +390,15 @@ export declare class Api extends HttpClient {
|
|
|
386
390
|
postDeletePaymentLink<T>({ code }: {
|
|
387
391
|
code: any;
|
|
388
392
|
}): Promise<AxiosResponse<T, any>>;
|
|
393
|
+
postSubscription<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
394
|
+
getSubscriptionByCode<T>(subscriptionCode: string): Promise<AxiosResponse<T, any>>;
|
|
395
|
+
postPauseSubscription<T>(subscriptionCode: string): Promise<AxiosResponse<T, any>>;
|
|
396
|
+
postResumeSubscription<T>(subscriptionCode: string): Promise<AxiosResponse<T, any>>;
|
|
397
|
+
postCancelSubscription<T>(subscriptionCode: string): Promise<AxiosResponse<T, any>>;
|
|
398
|
+
patchSubscription<T>(subscriptionCode: string, payload: any): Promise<AxiosResponse<T, any>>;
|
|
399
|
+
postRescheduleSubscription<T>(subscriptionCode: string): Promise<AxiosResponse<T, any>>;
|
|
400
|
+
getSubscriptionPayments<T>(subscriptionCode: string, page?: number, size?: number): Promise<AxiosResponse<T, any>>;
|
|
401
|
+
postListSubscriptions<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
389
402
|
getTimezone<T>(organizationCode: string): Promise<AxiosResponse<T, any>>;
|
|
390
403
|
getInstallmentPlans(accountCode: string): Promise<AxiosResponse<GetInstallmentPlansResponse>>;
|
|
391
404
|
firebaseUserSubscribe<T>(payload: FirebaseUserSubscribe): Promise<AxiosResponse<T>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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;
|
|
@@ -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';
|
|
@@ -28,4 +29,3 @@ export * from './saml-config';
|
|
|
28
29
|
export * from './ai';
|
|
29
30
|
export * from './chartgpt';
|
|
30
31
|
export * from './template-reporting';
|
|
31
|
-
export * from './organization-config';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './subscriptions.mutation';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare function useCreateSubscription(): import("@tanstack/react-query").UseMutationResult<any, unknown, any, unknown>;
|
|
2
|
+
export declare function usePauseSubscription(): import("@tanstack/react-query").UseMutationResult<any, unknown, {
|
|
3
|
+
subscriptionCode: string;
|
|
4
|
+
}, unknown>;
|
|
5
|
+
export declare function useResumeSubscription(): import("@tanstack/react-query").UseMutationResult<any, unknown, {
|
|
6
|
+
subscriptionCode: string;
|
|
7
|
+
}, unknown>;
|
|
8
|
+
export declare function useCancelSubscription(): import("@tanstack/react-query").UseMutationResult<any, unknown, {
|
|
9
|
+
subscriptionCode: string;
|
|
10
|
+
}, unknown>;
|
|
11
|
+
export declare function useUpdateSubscription(): import("@tanstack/react-query").UseMutationResult<any, unknown, {
|
|
12
|
+
subscriptionCode: string;
|
|
13
|
+
payload: any;
|
|
14
|
+
}, unknown>;
|
|
15
|
+
export declare function useRescheduleSubscription(): import("@tanstack/react-query").UseMutationResult<any, unknown, {
|
|
16
|
+
subscriptionCode: string;
|
|
17
|
+
}, unknown>;
|
|
18
|
+
export declare function useListSubscriptions(): import("@tanstack/react-query").UseMutationResult<any, unknown, any, 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';
|
|
@@ -29,4 +30,3 @@ export * from './network-tokens';
|
|
|
29
30
|
export * from './smart-recovery';
|
|
30
31
|
export * from './network-tokens';
|
|
31
32
|
export * from './template-reporting';
|
|
32
|
-
export * from './organization-config';
|
|
@@ -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>;
|
|
@@ -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
|
}
|