@yuno-payments/dashboard-api-mfe 1.2.4 → 1.2.12
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 +39 -205
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +12 -8
- package/build/cjs/types/api/api.types.d.ts +2 -0
- package/build/cjs/types/msw/mocks/installments/installments.mock.d.ts +3 -0
- package/build/cjs/types/mutations/developers/developers.mutation.d.ts +0 -7
- package/build/cjs/types/mutations/installments/installments.mutation.d.ts +6 -0
- package/build/cjs/types/mutations/security/security.mutation.d.ts +2 -0
- package/build/cjs/types/queries/accounts/accounts.query.d.ts +4 -0
- package/build/cjs/types/queries/installments/installments.query.d.ts +1 -0
- package/build/cjs/types/queries/users/users.query.d.ts +1 -1
- package/build/cjs/types/types/installments/installments.d.ts +45 -0
- package/build/cjs/types/types/user/user.d.ts +9 -0
- package/build/esm/index.js +39 -205
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +12 -8
- package/build/esm/types/api/api.types.d.ts +2 -0
- package/build/esm/types/msw/mocks/installments/installments.mock.d.ts +3 -0
- package/build/esm/types/mutations/developers/developers.mutation.d.ts +0 -7
- package/build/esm/types/mutations/installments/installments.mutation.d.ts +6 -0
- package/build/esm/types/mutations/security/security.mutation.d.ts +2 -0
- package/build/esm/types/queries/accounts/accounts.query.d.ts +4 -0
- package/build/esm/types/queries/installments/installments.query.d.ts +1 -0
- package/build/esm/types/queries/users/users.query.d.ts +1 -1
- package/build/esm/types/types/installments/installments.d.ts +45 -0
- package/build/esm/types/types/user/user.d.ts +9 -0
- package/build/index.d.ts +83 -17
- package/package.json +2 -6
|
@@ -296,7 +296,7 @@ export declare class Api extends HttpClient {
|
|
|
296
296
|
getUserFull(): Promise<AxiosResponse<GetUserFullResponse, any>>;
|
|
297
297
|
getImpersonationUsers<T>(): Promise<AxiosResponse<T, any>>;
|
|
298
298
|
getImpersonationEnabled<T>(): Promise<AxiosResponse<T, any>>;
|
|
299
|
-
getUsersToImpersonate(organizationCode: string, accountCodes?: string[], page?: number, pageSize?: number, searchValue?: string): Promise<AxiosResponse<User.UsersToImpersonateResponse>>;
|
|
299
|
+
getUsersToImpersonate(organizationCode: string, accountCodes?: string[], page?: number, pageSize?: number, searchValue?: string, roleIds?: string[]): Promise<AxiosResponse<User.UsersToImpersonateResponse>>;
|
|
300
300
|
getAccountsForImpersonation(organizationCode: string): Promise<AxiosResponse<{
|
|
301
301
|
response: Array<{
|
|
302
302
|
name: string;
|
|
@@ -304,6 +304,12 @@ export declare class Api extends HttpClient {
|
|
|
304
304
|
code_testing: string;
|
|
305
305
|
}>;
|
|
306
306
|
}>>;
|
|
307
|
+
getRolesForImpersonation(organizationCode: string): Promise<AxiosResponse<{
|
|
308
|
+
roles: Array<{
|
|
309
|
+
id: string;
|
|
310
|
+
name: string;
|
|
311
|
+
}>;
|
|
312
|
+
}>>;
|
|
307
313
|
updateProfile<T>(payload: User.UserRequestPayload): Promise<AxiosResponse<T>>;
|
|
308
314
|
inviteUsersMassive<T>(data: UserInviteMultiaccountPayload, organizationCode: string): Promise<AxiosResponse<T>>;
|
|
309
315
|
inviteUsersMassiveV2<T>(data: UserInviteMultiaccountPayload): Promise<AxiosResponse<T>>;
|
|
@@ -383,6 +389,8 @@ export declare class Api extends HttpClient {
|
|
|
383
389
|
pageSize?: number;
|
|
384
390
|
}): Promise<AxiosResponse<T>>;
|
|
385
391
|
changePasswordV2<T>(body: any): Promise<AxiosResponse<T>>;
|
|
392
|
+
workosPasswordReset<T>(body: any): Promise<AxiosResponse<T>>;
|
|
393
|
+
workosAdminPortal<T>(): Promise<AxiosResponse<T>>;
|
|
386
394
|
getCardBrands<T>(): Promise<AxiosResponse<T>>;
|
|
387
395
|
getPaymentFilters<T>(section: PaymentFiltersSection): Promise<AxiosResponse<T>>;
|
|
388
396
|
getPaymentMetricsFilters<T>(): Promise<AxiosResponse<T>>;
|
|
@@ -418,6 +426,9 @@ export declare class Api extends HttpClient {
|
|
|
418
426
|
createInstallmentsPlan<T, P = unknown>(payload: P): Promise<AxiosResponse<T>>;
|
|
419
427
|
updateInstallmentsPlan<T, P = unknown>(code: string, payload: P): Promise<AxiosResponse<T>>;
|
|
420
428
|
deleteInstallmentsPlan<T>(code: string): Promise<AxiosResponse<T>>;
|
|
429
|
+
searchInstallmentsPlans(payload: Installments.SearchInstallmentsPlansRequest): Promise<AxiosResponse<Installments.SearchInstallmentsPlansResponse>>;
|
|
430
|
+
bulkCreateInstallmentsPlans(payload: Installments.BulkCreateInstallmentsPlansRequest): Promise<AxiosResponse<Installments.BulkCreateInstallmentsPlansResponse>>;
|
|
431
|
+
bulkDeleteInstallmentsPlans(payload: Installments.BulkDeleteInstallmentsPlansRequest): Promise<AxiosResponse<Installments.BulkDeleteInstallmentsPlansResponse>>;
|
|
421
432
|
firebaseUserSubscribe<T>(payload: FirebaseUserSubscribe): Promise<AxiosResponse<T>>;
|
|
422
433
|
postUserSettings<T>(payload: TimeZoneCatalog | PaymentsSettings): Promise<AxiosResponse<T>>;
|
|
423
434
|
postUserSettingsTables<T>(payload: PaymentsSettings, section: string): Promise<AxiosResponse<T>>;
|
|
@@ -531,13 +542,6 @@ export declare class Api extends HttpClient {
|
|
|
531
542
|
getCustomizedApiKeysToken<T>(code: string, password?: string, otp?: string, mfaToken?: string): Promise<AxiosResponse<T, any>>;
|
|
532
543
|
validatePasswordStatus<T>(): Promise<AxiosResponse<T, any, {}>>;
|
|
533
544
|
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
545
|
postCreateInsightsReport<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
542
546
|
getInsightsReport<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
543
547
|
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>;
|
|
@@ -23,4 +23,8 @@ export declare function useGetAccountsForImpersonation(organizationCode?: string
|
|
|
23
23
|
code_live: string;
|
|
24
24
|
code_testing: string;
|
|
25
25
|
}>, unknown>;
|
|
26
|
+
export declare function useGetRolesForImpersonation(organizationCode?: string): UseQueryResult<Array<{
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}>, unknown>;
|
|
26
30
|
export declare function useGetPendingDuplicateAccounts(refetchInterval?: number): UseQueryResult<AxiosResponse<PendingDuplicateAccountsResponse>, AxiosError>;
|
|
@@ -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>;
|
|
@@ -8,7 +8,7 @@ export declare function useEmailVerification(email: string): UseQueryResult<User
|
|
|
8
8
|
export declare function useGetLoginMethods(): UseQueryResult<unknown, unknown>;
|
|
9
9
|
export declare function useGetImpersonationUsers(): UseQueryResult<User.ImpersonationUser[], AxiosError>;
|
|
10
10
|
export declare function useGetImpersonationEnabled(): UseQueryResult<User.ImpersonationEnabledResponse, AxiosError>;
|
|
11
|
-
export declare function useGetUsersToImpersonate(organizationCode: string, accountCodes?: string[], page?: number, pageSize?: number, searchValue?: string): UseQueryResult<User.UsersToImpersonateResponse, AxiosError>;
|
|
11
|
+
export declare function useGetUsersToImpersonate(organizationCode: string, accountCodes?: string[], page?: number, pageSize?: number, searchValue?: string, roleIds?: string[]): UseQueryResult<User.UsersToImpersonateResponse, AxiosError>;
|
|
12
12
|
export declare function useCommunications(payload: {
|
|
13
13
|
start_date: string;
|
|
14
14
|
end_date: string;
|
|
@@ -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;
|