@yuno-payments/dashboard-api-mfe 1.13.0 → 1.14.3
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 +5 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +13 -3
- package/build/cjs/types/api/api.singleton.test.d.ts +1 -0
- package/build/cjs/types/api/api.types.d.ts +1 -0
- package/build/cjs/types/lib/session-expired/emit-expired.d.ts +4 -0
- package/build/cjs/types/lib/session-expired/emit-expired.test.d.ts +1 -0
- package/build/cjs/types/lib/session-expired/index.d.ts +1 -0
- package/build/cjs/types/mutations/certificates/certificates.mutation.d.ts +31 -0
- package/build/cjs/types/mutations/certificates/index.d.ts +1 -0
- package/build/cjs/types/mutations/index.d.ts +1 -0
- package/build/cjs/types/mutations/organizations/organizations.mutation.d.ts +0 -1
- package/build/cjs/types/mutations/users/users.mutation.d.ts +0 -1
- package/build/cjs/types/queries/certificates/certificates.query.d.ts +6 -0
- package/build/cjs/types/queries/certificates/index.d.ts +1 -0
- package/build/cjs/types/queries/index.d.ts +1 -0
- package/build/cjs/types/queries/organizations/organizations.query.d.ts +0 -1
- package/build/cjs/types/types/certificates/certificates.d.ts +26 -0
- package/build/cjs/types/types/certificates/index.d.ts +1 -0
- package/build/cjs/types/types/data-report/data-report.d.ts +1 -0
- package/build/cjs/types/types/index.d.ts +1 -0
- package/build/cjs/types/types/payment/payment.d.ts +1 -0
- package/build/cjs/types/types/user/user.d.ts +0 -9
- package/build/cjs/types/yuno-dashboard-api-mfe.d.ts +1 -0
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +13 -3
- package/build/esm/types/api/api.singleton.test.d.ts +1 -0
- package/build/esm/types/api/api.types.d.ts +1 -0
- package/build/esm/types/lib/session-expired/emit-expired.d.ts +4 -0
- package/build/esm/types/lib/session-expired/emit-expired.test.d.ts +1 -0
- package/build/esm/types/lib/session-expired/index.d.ts +1 -0
- package/build/esm/types/mutations/certificates/certificates.mutation.d.ts +31 -0
- package/build/esm/types/mutations/certificates/index.d.ts +1 -0
- package/build/esm/types/mutations/index.d.ts +1 -0
- package/build/esm/types/mutations/organizations/organizations.mutation.d.ts +0 -1
- package/build/esm/types/mutations/users/users.mutation.d.ts +0 -1
- package/build/esm/types/queries/certificates/certificates.query.d.ts +6 -0
- package/build/esm/types/queries/certificates/index.d.ts +1 -0
- package/build/esm/types/queries/index.d.ts +1 -0
- package/build/esm/types/queries/organizations/organizations.query.d.ts +0 -1
- package/build/esm/types/types/certificates/certificates.d.ts +26 -0
- package/build/esm/types/types/certificates/index.d.ts +1 -0
- package/build/esm/types/types/data-report/data-report.d.ts +1 -0
- package/build/esm/types/types/index.d.ts +1 -0
- package/build/esm/types/types/payment/payment.d.ts +1 -0
- package/build/esm/types/types/user/user.d.ts +0 -9
- package/build/esm/types/yuno-dashboard-api-mfe.d.ts +1 -0
- package/build/index.d.ts +78 -16
- package/package.json +1 -1
|
@@ -79,7 +79,6 @@ export declare class Api extends HttpClient {
|
|
|
79
79
|
getPayoutHistoryDetails<T>(params: GetPayoutDetail, organizationCode: string): Promise<AxiosResponse<T, any>>;
|
|
80
80
|
getPayoutTimeline<T>(payoutCode: string, organizationCode: string): Promise<AxiosResponse<T, any>>;
|
|
81
81
|
getPaymentMethodsByCountry<T>({ provider_id, country }: Organization.PaymentMethods, organizationCodeFromAccount: any): Promise<AxiosResponse<T, any>>;
|
|
82
|
-
getOrgByName<T>(name: any): Promise<AxiosResponse<T, any>>;
|
|
83
82
|
createOperationTransaction<T>(payload: OperationTransaction.Request, transactionId: string, paymentId: string, action: OperationTransaction.Actions): Promise<AxiosResponse<T, any>>;
|
|
84
83
|
getPaymentMethodsAndProviders<T>(): Promise<AxiosResponse<T, any>>;
|
|
85
84
|
getTransactionDetailsV2<T>(params: GetTransactionDetailsV2Params): Promise<AxiosResponse<T, any>>;
|
|
@@ -98,7 +97,6 @@ export declare class Api extends HttpClient {
|
|
|
98
97
|
getAllowedIps<T>(): Promise<AxiosResponse<T, any>>;
|
|
99
98
|
patchAllowedIps<T>(request: AllowedList.Request): Promise<AxiosResponse<T, any>>;
|
|
100
99
|
getOrganization<T>(): Promise<AxiosResponse<T, any>>;
|
|
101
|
-
getAllOrganization<T>(): Promise<AxiosResponse<T, any>>;
|
|
102
100
|
getProviderParams<T>(param: any, organizationCodeFromAccount: any): Promise<AxiosResponse<T, any>>;
|
|
103
101
|
getIntegrationByAccountV2<T>({ accountCode, organizationCode, }: {
|
|
104
102
|
accountCode: string;
|
|
@@ -594,7 +592,6 @@ export declare class Api extends HttpClient {
|
|
|
594
592
|
postCreateInsightsReport<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
595
593
|
getInsightsReport<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
596
594
|
getInsightsReportAgain<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
597
|
-
createUserAuth0<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
598
595
|
getSamlConfig<T>(): Promise<AxiosResponse<T, any>>;
|
|
599
596
|
createSamlConfig<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
600
597
|
updateSamlConfig<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
@@ -676,6 +673,19 @@ export declare class Api extends HttpClient {
|
|
|
676
673
|
createRecipient<T>(organizationCode: string, payload: CreateRecipientPayload): Promise<AxiosResponse<T, any>>;
|
|
677
674
|
updateRecipient<T>(organizationCode: string, recipientId: string, payload: UpdateRecipientPayload): Promise<AxiosResponse<T, any>>;
|
|
678
675
|
deleteRecipient<T>(organizationCode: string, recipientId: string): Promise<AxiosResponse<T, any>>;
|
|
676
|
+
createCertificate<T>(organizationCode: string, accountCode: string, payload: {
|
|
677
|
+
merchantId: string;
|
|
678
|
+
expiresAt: string;
|
|
679
|
+
accountCodes: string[];
|
|
680
|
+
type: 'PAYMENT_PROCESSING' | 'MERCHANT_IDENTITY';
|
|
681
|
+
}): Promise<AxiosResponse<T, any>>;
|
|
682
|
+
getCertificates<T>(organizationCode: string, accountCode: string, type?: 'PAYMENT_PROCESSING' | 'MERCHANT_IDENTITY'): Promise<AxiosResponse<T, any>>;
|
|
683
|
+
downloadCertificate<T>(organizationCode: string, accountCode: string, certificateCode: string): Promise<AxiosResponse<T, any>>;
|
|
684
|
+
updateCertificateAccounts<T>(organizationCode: string, accountCode: string, certificateCode: string, payload: {
|
|
685
|
+
accountCodes: string[];
|
|
686
|
+
}): Promise<AxiosResponse<T, any>>;
|
|
687
|
+
deleteCertificate<T>(organizationCode: string, accountCode: string, certificateCode: string): Promise<AxiosResponse<T, any>>;
|
|
688
|
+
deleteCertificateAccount<T>(organizationCode: string, accountCode: string, certificateCode: string, accountCodeToRemove: string): Promise<AxiosResponse<T, any>>;
|
|
679
689
|
createOnboarding<T>(organizationCode: string, recipientId: string, payload: CreateOnboardingPayload): Promise<AxiosResponse<T, any>>;
|
|
680
690
|
updateOnboarding<T>(organizationCode: string, recipientId: string, onboardingId: string, payload: UpdateOnboardingPayload): Promise<AxiosResponse<T, any>>;
|
|
681
691
|
blockOnboarding<T>(organizationCode: string, recipientId: string, onboardingId: string): Promise<AxiosResponse<T, any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { emitExpired, resetExpiredGuard, isExpiredFired, SESSION_EXPIRED_MESSAGE_TYPE, } from './emit-expired';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AxiosError } from 'axios';
|
|
2
|
+
import { UseMutationResult } from '@tanstack/react-query';
|
|
3
|
+
import { Certificates } from '../../types/certificates';
|
|
4
|
+
import { BFFErrorResponse } from '../smart-routing/smart-routing.mutation';
|
|
5
|
+
interface CreateCertificateParams {
|
|
6
|
+
organizationCode: string;
|
|
7
|
+
accountCode: string;
|
|
8
|
+
payload: Certificates.CreateCertificatePayload;
|
|
9
|
+
}
|
|
10
|
+
interface UpdateCertificateAccountsParams {
|
|
11
|
+
organizationCode: string;
|
|
12
|
+
accountCode: string;
|
|
13
|
+
certificateCode: string;
|
|
14
|
+
payload: Certificates.UpdateCertificateAccountsPayload;
|
|
15
|
+
}
|
|
16
|
+
interface DeleteCertificateParams {
|
|
17
|
+
organizationCode: string;
|
|
18
|
+
accountCode: string;
|
|
19
|
+
certificateCode: string;
|
|
20
|
+
}
|
|
21
|
+
interface DeleteCertificateAccountParams {
|
|
22
|
+
organizationCode: string;
|
|
23
|
+
accountCode: string;
|
|
24
|
+
certificateCode: string;
|
|
25
|
+
accountCodeToRemove: string;
|
|
26
|
+
}
|
|
27
|
+
export declare function useCreateCertificate(): UseMutationResult<Certificates.Certificate, AxiosError<BFFErrorResponse>, CreateCertificateParams>;
|
|
28
|
+
export declare function useUpdateCertificateAccounts(): UseMutationResult<Certificates.Certificate, AxiosError<BFFErrorResponse>, UpdateCertificateAccountsParams>;
|
|
29
|
+
export declare function useDeleteCertificate(): UseMutationResult<void, AxiosError<BFFErrorResponse>, DeleteCertificateParams>;
|
|
30
|
+
export declare function useDeleteCertificateAccount(): UseMutationResult<void, AxiosError<BFFErrorResponse>, DeleteCertificateAccountParams>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './certificates.mutation';
|
|
@@ -9,7 +9,6 @@ export declare function useUnInviteUsersV2(): import("@tanstack/react-query").Us
|
|
|
9
9
|
userCode: string;
|
|
10
10
|
organizationCode: string;
|
|
11
11
|
}, unknown>;
|
|
12
|
-
export declare function useCreateUserAuth0(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<User.CreateUserAuth0Response, any, {}>, unknown, User.CreateUserAuth0Request, unknown>;
|
|
13
12
|
export declare function usePostCall(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any, {}>, unknown, void, unknown>;
|
|
14
13
|
export declare function useLoginMethods(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any, {}>, unknown, {
|
|
15
14
|
methodCode: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AxiosError } from 'axios';
|
|
2
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
3
|
+
import { Certificates } from '../../types/certificates';
|
|
4
|
+
import { BFFErrorResponse } from '../../mutations';
|
|
5
|
+
export declare function useGetCertificates(organizationCode: string, accountCode: string, enabled?: boolean, type?: Certificates.CertificateType): UseQueryResult<Certificates.Certificate[], AxiosError<BFFErrorResponse>>;
|
|
6
|
+
export declare function useDownloadCertificate(organizationCode: string, accountCode: string, certificateCode: string, enabled?: boolean): UseQueryResult<Certificates.CertificateDownload, AxiosError<BFFErrorResponse>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './certificates.query';
|
|
@@ -5,7 +5,6 @@ import { CustomAxiosResponse } from '../../utils/handler-error';
|
|
|
5
5
|
import { AxiosError } from 'axios';
|
|
6
6
|
import { BFFErrorResponse } from '../../mutations';
|
|
7
7
|
export declare function useGetOrganization(): UseQueryResult<Organization.Organization, CustomAxiosResponse<null>>;
|
|
8
|
-
export declare function useGetAllOrganizations(): UseQueryResult<Organization.Organization[], CustomAxiosResponse<null>>;
|
|
9
8
|
export declare function useGetProviderParams(params: {
|
|
10
9
|
id: string;
|
|
11
10
|
}): UseQueryResult<Organization.ProviderParams, CustomAxiosResponse<null>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare namespace Certificates {
|
|
2
|
+
type CertificateType = 'PAYMENT_PROCESSING' | 'MERCHANT_IDENTITY';
|
|
3
|
+
interface Certificate {
|
|
4
|
+
code: string;
|
|
5
|
+
merchantId: string;
|
|
6
|
+
type: CertificateType;
|
|
7
|
+
accountCodes: string[];
|
|
8
|
+
expiresAt: string;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
}
|
|
11
|
+
interface CertificateDownload {
|
|
12
|
+
code: string;
|
|
13
|
+
merchantId: string;
|
|
14
|
+
type: CertificateType;
|
|
15
|
+
csrPem: string;
|
|
16
|
+
}
|
|
17
|
+
interface CreateCertificatePayload {
|
|
18
|
+
merchantId: string;
|
|
19
|
+
expiresAt: string;
|
|
20
|
+
accountCodes: string[];
|
|
21
|
+
type: CertificateType;
|
|
22
|
+
}
|
|
23
|
+
interface UpdateCertificateAccountsPayload {
|
|
24
|
+
accountCodes: string[];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './certificates';
|
|
@@ -45,6 +45,7 @@ export declare namespace DataReport {
|
|
|
45
45
|
[a: string]: string | boolean | number | string[] | MetadataField[] | undefined;
|
|
46
46
|
account_code?: string;
|
|
47
47
|
connection_name?: string;
|
|
48
|
+
stored_credentials_usage?: string;
|
|
48
49
|
metadata?: MetadataField[];
|
|
49
50
|
}
|
|
50
51
|
export interface InsightMetricBody {
|
|
@@ -480,6 +480,7 @@ export declare namespace Payment {
|
|
|
480
480
|
provider_iso8583_response_code: string[];
|
|
481
481
|
fst_response_code: string[];
|
|
482
482
|
fst_provider_score: string[];
|
|
483
|
+
stored_credentials_usages?: string[];
|
|
483
484
|
}
|
|
484
485
|
interface TransactionHistoryByPayment {
|
|
485
486
|
payment_method_type: string;
|
|
@@ -148,15 +148,6 @@ export declare namespace User {
|
|
|
148
148
|
name: string;
|
|
149
149
|
code: string;
|
|
150
150
|
}
|
|
151
|
-
interface CreateUserAuth0Request {
|
|
152
|
-
user_name: string;
|
|
153
|
-
user_email: string;
|
|
154
|
-
}
|
|
155
|
-
interface CreateUserAuth0Response {
|
|
156
|
-
email: string;
|
|
157
|
-
name: string;
|
|
158
|
-
user_id: string;
|
|
159
|
-
}
|
|
160
151
|
interface ImpersonationUserItem {
|
|
161
152
|
code: string;
|
|
162
153
|
name: string;
|