@yuno-payments/dashboard-api-mfe 0.40.6 → 0.40.9-REC-5259.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 -13
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +8 -8
- package/build/cjs/types/mutations/template-reporting/template-reporting.mutation.d.ts +12 -3
- package/build/cjs/types/queries/index.d.ts +1 -0
- package/build/cjs/types/queries/template-reporting/template-reporting.query.d.ts +4 -4
- package/build/cjs/types/types/reports/reports.d.ts +1 -0
- package/build/cjs/types/types/smart-routing/smart-routing.d.ts +24 -0
- package/build/cjs/types/types/template-reporting/index.d.ts +8 -1
- package/build/cjs/types/types/template-reporting/schedule.types.d.ts +14 -0
- package/build/cjs/types/types/template-reporting/template.types.d.ts +14 -3
- package/build/esm/index.js +6 -13
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +8 -8
- package/build/esm/types/mutations/template-reporting/template-reporting.mutation.d.ts +12 -3
- package/build/esm/types/queries/index.d.ts +1 -0
- package/build/esm/types/queries/template-reporting/template-reporting.query.d.ts +4 -4
- package/build/esm/types/types/reports/reports.d.ts +1 -0
- package/build/esm/types/types/smart-routing/smart-routing.d.ts +24 -0
- package/build/esm/types/types/template-reporting/index.d.ts +8 -1
- package/build/esm/types/types/template-reporting/schedule.types.d.ts +14 -0
- package/build/esm/types/types/template-reporting/template.types.d.ts +14 -3
- package/build/index.d.ts +89 -23
- package/package.json +1 -1
|
@@ -259,18 +259,18 @@ export declare class Api extends HttpClient {
|
|
|
259
259
|
createReportTemplate<T>(payload: Reports.ICreateTemplate): Promise<AxiosResponse<T>>;
|
|
260
260
|
updateReportTemplate<T>(payload: Reports.ICreateTemplate): Promise<AxiosResponse<T>>;
|
|
261
261
|
getReportColumns<T>(templateType: TemplateType, reportType: ReportType): Promise<any>;
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
searchReportTemplates<T>(payload: TemplateReporting.SearchTemplatesRequest): Promise<AxiosResponse<T>>;
|
|
263
|
+
searchReportTemplateById<T>(templateId: number, payload: TemplateReporting.SearchTemplateByIdRequest): Promise<AxiosResponse<T>>;
|
|
264
264
|
createTemplateReporting<T>(payload: TemplateReporting.CreateTemplateRequest): Promise<AxiosResponse<T>>;
|
|
265
265
|
cloneReportTemplate<T>(templateId: number, payload: TemplateReporting.CloneTemplateRequest): Promise<AxiosResponse<T>>;
|
|
266
266
|
updateTemplateSelection<T>(templateId: number, payload: TemplateReporting.UpdateTemplateSelectionRequest): Promise<AxiosResponse<T>>;
|
|
267
267
|
changeTemplateStatus<T>(templateId: number, payload: TemplateReporting.ChangeTemplateStatusRequest): Promise<AxiosResponse<T>>;
|
|
268
|
-
deleteReportTemplate<T>(templateId: number): Promise<AxiosResponse<T>>;
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
deleteReportTemplate<T>(templateId: number, payload: TemplateReporting.DeleteTemplateRequest): Promise<AxiosResponse<T>>;
|
|
269
|
+
searchReportSchedules<T>(payload: TemplateReporting.SearchSchedulesRequest): Promise<AxiosResponse<T>>;
|
|
270
|
+
searchReportScheduleById<T>(scheduleId: number, payload: TemplateReporting.SearchScheduleByIdRequest): Promise<AxiosResponse<T>>;
|
|
271
271
|
createReportSchedule<T>(payload: TemplateReporting.CreateScheduleRequest): Promise<AxiosResponse<T>>;
|
|
272
|
-
|
|
273
|
-
deleteReportSchedule<T>(scheduleId: number): Promise<AxiosResponse<T>>;
|
|
272
|
+
disableReportSchedule<T>(scheduleId: number, payload: TemplateReporting.DisableScheduleRequest): Promise<AxiosResponse<T>>;
|
|
273
|
+
deleteReportSchedule<T>(scheduleId: number, payload: TemplateReporting.DeleteScheduleRequest): Promise<AxiosResponse<T>>;
|
|
274
274
|
getRefundPdf<T>(transactionCode: string, organizationCode: string, accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
275
275
|
getProofOfCancel<T>(transactionCode: string, organizationCode: string, accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
276
276
|
getProofOfPayment<T>(transactionCode: string, organizationCode: string, accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
@@ -510,7 +510,7 @@ export declare class Api extends HttpClient {
|
|
|
510
510
|
getConversionRateChargebacksByCardBrand(body: InsightsFraudBody, params: InsightsFraudParams): Promise<AxiosResponse<any, any>>;
|
|
511
511
|
get3DSExemptions(): Promise<AxiosResponse<SmartRouting.ThreeDSExemptionsResponse>>;
|
|
512
512
|
getNetworkTokensOnboarding(): Promise<AxiosResponse<SmartRouting.NetworkTokensOnboardingResponse>>;
|
|
513
|
-
getNetworkTokensOnboardingByOrganization(organizationCode: string): Promise<AxiosResponse<
|
|
513
|
+
getNetworkTokensOnboardingByOrganization(organizationCode: string): Promise<AxiosResponse<SmartRouting.NetworkTokensOnboardingGetResponse>>;
|
|
514
514
|
postNetworkTokensOnboarding(payload: Connection.NetworkTokensOnboardingData, organizationCode: string): Promise<AxiosResponse<Connection.NetworkTokensOnboardingData>>;
|
|
515
515
|
createChartGPTChart<T>(payload: {
|
|
516
516
|
user_prompt: string;
|
|
@@ -14,7 +14,16 @@ export declare function useChangeTemplateStatus(): UseMutationResult<TemplateRep
|
|
|
14
14
|
templateId: number;
|
|
15
15
|
payload: TemplateReporting.ChangeTemplateStatusRequest;
|
|
16
16
|
}>;
|
|
17
|
-
export declare function useDeleteTemplate(): UseMutationResult<TemplateReporting.DeleteResponse, AxiosError,
|
|
17
|
+
export declare function useDeleteTemplate(): UseMutationResult<TemplateReporting.DeleteResponse, AxiosError, {
|
|
18
|
+
templateId: number;
|
|
19
|
+
payload: TemplateReporting.DeleteTemplateRequest;
|
|
20
|
+
}>;
|
|
18
21
|
export declare function useCreateSchedule(): UseMutationResult<TemplateReporting.ReportSchedule, AxiosError, TemplateReporting.CreateScheduleRequest>;
|
|
19
|
-
export declare function
|
|
20
|
-
|
|
22
|
+
export declare function useDisableSchedule(): UseMutationResult<TemplateReporting.ReportSchedule, AxiosError, {
|
|
23
|
+
scheduleId: number;
|
|
24
|
+
payload: TemplateReporting.DisableScheduleRequest;
|
|
25
|
+
}>;
|
|
26
|
+
export declare function useDeleteSchedule(): UseMutationResult<TemplateReporting.DeleteResponse, AxiosError, {
|
|
27
|
+
scheduleId: number;
|
|
28
|
+
payload: TemplateReporting.DeleteScheduleRequest;
|
|
29
|
+
}>;
|
|
@@ -25,6 +25,7 @@ export * from './mfa';
|
|
|
25
25
|
export * from './saml-config';
|
|
26
26
|
export * from './chartgpt';
|
|
27
27
|
export * from './translation';
|
|
28
|
+
export * from './network-tokens';
|
|
28
29
|
export * from './smart-recovery';
|
|
29
30
|
export * from './network-tokens';
|
|
30
31
|
export * from './template-reporting';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { AxiosError } from 'axios';
|
|
3
3
|
import { TemplateReporting } from '../../types';
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
4
|
+
export declare function useSearchTemplates(payload: TemplateReporting.SearchTemplatesRequest, enabled: boolean): UseQueryResult<TemplateReporting.GetTemplatesListResponse, AxiosError>;
|
|
5
|
+
export declare function useSearchTemplateById(templateId: number, payload: TemplateReporting.SearchTemplateByIdRequest, enabled: boolean): UseQueryResult<TemplateReporting.ReportTemplate, AxiosError>;
|
|
6
|
+
export declare function useSearchSchedules(payload: TemplateReporting.SearchSchedulesRequest, enabled: boolean): UseQueryResult<TemplateReporting.GetSchedulesListResponse, AxiosError>;
|
|
7
|
+
export declare function useSearchScheduleById(scheduleId: number, payload: TemplateReporting.SearchScheduleByIdRequest, enabled: boolean): UseQueryResult<TemplateReporting.ReportSchedule, AxiosError>;
|
|
@@ -326,5 +326,29 @@ export declare namespace SmartRouting {
|
|
|
326
326
|
export interface NetworkTokensOnboardingResponse {
|
|
327
327
|
available: boolean;
|
|
328
328
|
}
|
|
329
|
+
export interface NetworkTokensOnboardingData {
|
|
330
|
+
company_name: string;
|
|
331
|
+
client: string;
|
|
332
|
+
website: string;
|
|
333
|
+
required_provider: string;
|
|
334
|
+
company_legal_name: string;
|
|
335
|
+
company_registered_state: string;
|
|
336
|
+
company_registered_zip_code: string;
|
|
337
|
+
company_registered_address: string;
|
|
338
|
+
company_registered_country: string;
|
|
339
|
+
company_registered_phone: string;
|
|
340
|
+
primary_contact_first_name: string;
|
|
341
|
+
primary_contact_last_name: string;
|
|
342
|
+
business_identification_type: string;
|
|
343
|
+
business_identification_number: string;
|
|
344
|
+
}
|
|
345
|
+
export interface NetworkTokensOnboardingPayload extends NetworkTokensOnboardingData {
|
|
346
|
+
accounts: string[];
|
|
347
|
+
}
|
|
348
|
+
export interface NetworkTokensOnboardingGetResponse extends NetworkTokensOnboardingData {
|
|
349
|
+
id?: string;
|
|
350
|
+
created_at?: string;
|
|
351
|
+
updated_at?: string;
|
|
352
|
+
}
|
|
329
353
|
export {};
|
|
330
354
|
}
|
|
@@ -31,17 +31,24 @@ export declare namespace TemplateReporting {
|
|
|
31
31
|
type TemplateSelection = TemplateTypes.TemplateSelection;
|
|
32
32
|
type ReportTemplateMetadata = TemplateTypes.ReportTemplateMetadata;
|
|
33
33
|
type ReportTemplate = TemplateTypes.ReportTemplate;
|
|
34
|
-
type
|
|
34
|
+
type AvailableColumn = TemplateTypes.AvailableColumn;
|
|
35
|
+
type SearchTemplatesRequest = TemplateTypes.SearchTemplatesRequest;
|
|
36
|
+
type SearchTemplateByIdRequest = TemplateTypes.SearchTemplateByIdRequest;
|
|
35
37
|
type GetTemplatesListResponse = TemplateTypes.GetTemplatesListResponse;
|
|
36
38
|
type CreateTemplateRequest = TemplateTypes.CreateTemplateRequest;
|
|
37
39
|
type CloneTemplateRequest = TemplateTypes.CloneTemplateRequest;
|
|
38
40
|
type UpdateTemplateSelectionRequest = TemplateTypes.UpdateTemplateSelectionRequest;
|
|
39
41
|
type ChangeTemplateStatusRequest = TemplateTypes.ChangeTemplateStatusRequest;
|
|
42
|
+
type DeleteTemplateRequest = TemplateTypes.DeleteTemplateRequest;
|
|
40
43
|
type TemplateWithMetadata = TemplateTypes.TemplateWithMetadata;
|
|
41
44
|
type ReportSchedule = ScheduleTypes.ReportSchedule;
|
|
42
45
|
type ReportScheduleExecution = ScheduleTypes.ReportScheduleExecution;
|
|
46
|
+
type SearchSchedulesRequest = ScheduleTypes.SearchSchedulesRequest;
|
|
47
|
+
type SearchScheduleByIdRequest = ScheduleTypes.SearchScheduleByIdRequest;
|
|
43
48
|
type GetSchedulesListResponse = ScheduleTypes.GetSchedulesListResponse;
|
|
44
49
|
type CreateScheduleRequest = ScheduleTypes.CreateScheduleRequest;
|
|
50
|
+
type DisableScheduleRequest = ScheduleTypes.DisableScheduleRequest;
|
|
51
|
+
type DeleteScheduleRequest = ScheduleTypes.DeleteScheduleRequest;
|
|
45
52
|
type ScheduleWithTemplate = ScheduleTypes.ScheduleWithTemplate;
|
|
46
53
|
type ScheduleWithExecutions = ScheduleTypes.ScheduleWithExecutions;
|
|
47
54
|
}
|
|
@@ -33,6 +33,13 @@ export interface ReportScheduleExecution {
|
|
|
33
33
|
updated_at: string;
|
|
34
34
|
report_schedule?: ReportSchedule;
|
|
35
35
|
}
|
|
36
|
+
export interface SearchSchedulesRequest {
|
|
37
|
+
accounts: string[];
|
|
38
|
+
includeInactive?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface SearchScheduleByIdRequest {
|
|
41
|
+
accounts: string[];
|
|
42
|
+
}
|
|
36
43
|
export interface GetSchedulesListResponse {
|
|
37
44
|
schedules: ReportSchedule[];
|
|
38
45
|
total: number;
|
|
@@ -50,6 +57,13 @@ export interface CreateScheduleRequest {
|
|
|
50
57
|
destination_emails: string[];
|
|
51
58
|
accounts: string[];
|
|
52
59
|
}
|
|
60
|
+
export interface DisableScheduleRequest {
|
|
61
|
+
accounts: string[];
|
|
62
|
+
end_date?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface DeleteScheduleRequest {
|
|
65
|
+
accounts: string[];
|
|
66
|
+
}
|
|
53
67
|
export type ScheduleWithTemplate = ReportSchedule & {
|
|
54
68
|
report_template: ReportTemplate;
|
|
55
69
|
};
|
|
@@ -54,8 +54,14 @@ export interface AvailableColumn {
|
|
|
54
54
|
snowflake_name?: string;
|
|
55
55
|
snowflake_table?: string;
|
|
56
56
|
}
|
|
57
|
-
export interface
|
|
57
|
+
export interface SearchTemplatesRequest {
|
|
58
|
+
accounts: string[];
|
|
58
59
|
module: string;
|
|
60
|
+
type?: string;
|
|
61
|
+
includeInactive?: boolean;
|
|
62
|
+
}
|
|
63
|
+
export interface SearchTemplateByIdRequest {
|
|
64
|
+
accounts: string[];
|
|
59
65
|
}
|
|
60
66
|
export interface GetTemplatesListResponse {
|
|
61
67
|
templates: ReportTemplate[];
|
|
@@ -72,15 +78,20 @@ export interface CreateTemplateRequest {
|
|
|
72
78
|
}
|
|
73
79
|
export interface CloneTemplateRequest {
|
|
74
80
|
name: string;
|
|
75
|
-
accounts
|
|
76
|
-
selection
|
|
81
|
+
accounts: string[];
|
|
82
|
+
selection: TemplateSelection;
|
|
77
83
|
}
|
|
78
84
|
export interface UpdateTemplateSelectionRequest {
|
|
85
|
+
accounts: string[];
|
|
79
86
|
selection: TemplateSelection;
|
|
80
87
|
}
|
|
81
88
|
export interface ChangeTemplateStatusRequest {
|
|
89
|
+
accounts: string[];
|
|
82
90
|
status: TemplateStatusType;
|
|
83
91
|
}
|
|
92
|
+
export interface DeleteTemplateRequest {
|
|
93
|
+
accounts: string[];
|
|
94
|
+
}
|
|
84
95
|
export type TemplateWithMetadata = ReportTemplate & {
|
|
85
96
|
metadata: ReportTemplateMetadata;
|
|
86
97
|
};
|