@yuno-payments/dashboard-api-mfe 1.2.4 → 1.2.8

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.
@@ -383,6 +383,8 @@ export declare class Api extends HttpClient {
383
383
  pageSize?: number;
384
384
  }): Promise<AxiosResponse<T>>;
385
385
  changePasswordV2<T>(body: any): Promise<AxiosResponse<T>>;
386
+ workosPasswordReset<T>(body: any): Promise<AxiosResponse<T>>;
387
+ workosAdminPortal<T>(): Promise<AxiosResponse<T>>;
386
388
  getCardBrands<T>(): Promise<AxiosResponse<T>>;
387
389
  getPaymentFilters<T>(section: PaymentFiltersSection): Promise<AxiosResponse<T>>;
388
390
  getPaymentMetricsFilters<T>(): Promise<AxiosResponse<T>>;
@@ -418,6 +420,9 @@ export declare class Api extends HttpClient {
418
420
  createInstallmentsPlan<T, P = unknown>(payload: P): Promise<AxiosResponse<T>>;
419
421
  updateInstallmentsPlan<T, P = unknown>(code: string, payload: P): Promise<AxiosResponse<T>>;
420
422
  deleteInstallmentsPlan<T>(code: string): Promise<AxiosResponse<T>>;
423
+ searchInstallmentsPlans(payload: Installments.SearchInstallmentsPlansRequest): Promise<AxiosResponse<Installments.SearchInstallmentsPlansResponse>>;
424
+ bulkCreateInstallmentsPlans(payload: Installments.BulkCreateInstallmentsPlansRequest): Promise<AxiosResponse<Installments.BulkCreateInstallmentsPlansResponse>>;
425
+ bulkDeleteInstallmentsPlans(payload: Installments.BulkDeleteInstallmentsPlansRequest): Promise<AxiosResponse<Installments.BulkDeleteInstallmentsPlansResponse>>;
421
426
  firebaseUserSubscribe<T>(payload: FirebaseUserSubscribe): Promise<AxiosResponse<T>>;
422
427
  postUserSettings<T>(payload: TimeZoneCatalog | PaymentsSettings): Promise<AxiosResponse<T>>;
423
428
  postUserSettingsTables<T>(payload: PaymentsSettings, section: string): Promise<AxiosResponse<T>>;
@@ -531,13 +536,6 @@ export declare class Api extends HttpClient {
531
536
  getCustomizedApiKeysToken<T>(code: string, password?: string, otp?: string, mfaToken?: string): Promise<AxiosResponse<T, any>>;
532
537
  validatePasswordStatus<T>(): Promise<AxiosResponse<T, any, {}>>;
533
538
  deleteCustomizedApiKeys<T>(code: any): Promise<AxiosResponse<T, any>>;
534
- getOrganizationKeysMetadata<T>(): Promise<AxiosResponse<T, any>>;
535
- patchOrganizationKeysNote<T>(payload: {
536
- note: string;
537
- }, password: string): Promise<AxiosResponse<T, any>>;
538
- postOrganizationKeysRoll<T>(password: string, otp?: string): Promise<AxiosResponse<T, any>>;
539
- postOrganizationKeysTamRequest<T>(password: string, otp?: string): Promise<AxiosResponse<T, any>>;
540
- postOrganizationKeysMarkRevealed<T>(password: string, otp?: string): Promise<AxiosResponse<T, any>>;
541
539
  postCreateInsightsReport<T>(payload: any): Promise<AxiosResponse<T, any>>;
542
540
  getInsightsReport<T>(payload: any): Promise<AxiosResponse<T, any>>;
543
541
  getInsightsReportAgain<T>(payload: any): Promise<AxiosResponse<T, any>>;
@@ -6,6 +6,7 @@ export interface GetPaymentsParams {
6
6
  enabled?: boolean;
7
7
  account_code?: string;
8
8
  payment_link_code?: string;
9
+ recipient_id?: string;
9
10
  metadata?: Array<{
10
11
  field: string;
11
12
  formatType: 'TEXT' | 'NUMBER';
@@ -133,6 +134,7 @@ export interface GetTransactionsParams {
133
134
  page?: number;
134
135
  size?: number;
135
136
  account_code?: string;
137
+ recipient_id?: string;
136
138
  metadata?: Array<{
137
139
  field: string;
138
140
  formatType: 'TEXT' | 'NUMBER';
@@ -3,3 +3,6 @@ export declare const installmentsPlansMock: Installments.GetInstallmentsPlansRes
3
3
  export declare const createInstallmentsPlanMock: Installments.CreateInstallmentsPlanResponse;
4
4
  export declare const updateInstallmentsPlanMock: Installments.UpdateInstallmentsPlanResponse;
5
5
  export declare const deleteInstallmentsPlanMock: Installments.DeleteInstallmentsPlanResponse;
6
+ export declare const searchInstallmentsPlansMock: Installments.SearchInstallmentsPlansResponse;
7
+ export declare const bulkCreateInstallmentsPlansMock: Installments.BulkCreateInstallmentsPlansResponse;
8
+ export declare const bulkDeleteInstallmentsPlansMock: Installments.BulkDeleteInstallmentsPlansResponse;
@@ -20,12 +20,5 @@ export declare function useGetCredentialsMFA(): UseMutationResult<{
20
20
  }, unknown, {
21
21
  password?: string | undefined;
22
22
  accountCode?: string | undefined;
23
- otp?: string | undefined;
24
- mfaToken?: string | undefined;
25
23
  }, unknown>;
26
24
  export declare function usePostCredentialsWithOtpMfa(): UseMutationResult<unknown>;
27
- export declare function useGetOrganizationKeysMetadata(): UseMutationResult<unknown>;
28
- export declare function usePatchOrganizationKeysNote(): UseMutationResult<unknown>;
29
- export declare function usePostOrganizationKeysRoll(): UseMutationResult<unknown>;
30
- export declare function usePostOrganizationKeysTamRequest(): UseMutationResult<unknown>;
31
- export declare function usePostOrganizationKeysMarkRevealed(): UseMutationResult<unknown>;
@@ -9,3 +9,9 @@ export declare function useUpdateInstallmentsPlan(): import("@tanstack/react-que
9
9
  export declare function useDeleteInstallmentsPlan(): import("@tanstack/react-query").UseMutationResult<Installments.DeleteInstallmentsPlanResponse, unknown, {
10
10
  code: string;
11
11
  }, unknown>;
12
+ export declare function useBulkCreateInstallmentsPlans(): import("@tanstack/react-query").UseMutationResult<Installments.BulkCreateInstallmentsPlansResponse, unknown, {
13
+ payload: Installments.BulkCreateInstallmentsPlansRequest;
14
+ }, unknown>;
15
+ export declare function useBulkDeleteInstallmentsPlans(): import("@tanstack/react-query").UseMutationResult<Installments.BulkDeleteInstallmentsPlansResponse, unknown, {
16
+ payload: Installments.BulkDeleteInstallmentsPlansRequest;
17
+ }, unknown>;
@@ -1,3 +1,5 @@
1
1
  import { User } from '../../types';
2
2
  import { UseMutationResult } from '@tanstack/react-query';
3
3
  export declare function useChangePasswordV2(): UseMutationResult<User.ChangePasswordResponse, User.FailureReason>;
4
+ export declare function useWorkosPasswordReset(): UseMutationResult<User.WorkosPasswordResetResponse, User.FailureReason, User.WorkosPasswordResetRequest>;
5
+ export declare function useWorkosAdminPortal(): UseMutationResult<User.WorkosAdminPortalResponse, User.FailureReason>;
@@ -1,3 +1,4 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import { Installments } from '../../types';
3
3
  export declare function useGetInstallmentsPlans(accountCode: string, enabled?: boolean, params?: Installments.GetInstallmentsPlansParams): UseQueryResult<Installments.GetInstallmentsPlansResponse, Error>;
4
+ export declare function useSearchInstallmentsPlans(payload: Installments.SearchInstallmentsPlansRequest, enabled?: boolean): UseQueryResult<Installments.SearchInstallmentsPlansResponse, Error>;
@@ -77,4 +77,49 @@ export declare namespace Installments {
77
77
  deleted?: boolean;
78
78
  message?: string;
79
79
  }
80
+ interface SearchInstallmentsPlansRequest {
81
+ account_id?: string[];
82
+ country_code?: string[];
83
+ brand?: string[];
84
+ name?: string;
85
+ merchant_reference?: string;
86
+ issuer?: string;
87
+ bin?: string;
88
+ start_date?: string;
89
+ end_date?: string;
90
+ page?: number;
91
+ size?: number;
92
+ }
93
+ interface SearchInstallmentsPlansResponse {
94
+ data: InstallmentsPlan[];
95
+ total: number;
96
+ page: number;
97
+ size: number;
98
+ }
99
+ interface BulkCreateInstallmentsPlansRequest {
100
+ account_ids: string[];
101
+ name: string;
102
+ source?: string;
103
+ merchant_reference?: string;
104
+ country_code: string;
105
+ amount?: PlanAmount;
106
+ installments_plan?: InstallmentPlanItem[];
107
+ availability?: Availability;
108
+ }
109
+ interface BulkCreateInstallmentsPlansResponse {
110
+ created: InstallmentsPlan[];
111
+ errors?: string[];
112
+ }
113
+ interface BulkDeleteInstallmentsPlansRequest {
114
+ codes: string[];
115
+ }
116
+ interface BulkDeleteError {
117
+ code: string;
118
+ error_code: string;
119
+ message?: string;
120
+ }
121
+ interface BulkDeleteInstallmentsPlansResponse {
122
+ deleted: string[];
123
+ errors?: BulkDeleteError[];
124
+ }
80
125
  }
@@ -116,6 +116,15 @@ export declare namespace User {
116
116
  id_token: string;
117
117
  token_type: string;
118
118
  }
119
+ interface WorkosPasswordResetRequest {
120
+ email: string;
121
+ }
122
+ interface WorkosPasswordResetResponse {
123
+ success: boolean;
124
+ }
125
+ interface WorkosAdminPortalResponse {
126
+ link: string;
127
+ }
119
128
  interface ICustomizedApiKeysMembers {
120
129
  code: string;
121
130
  first_name: string;