@yuno-payments/dashboard-api-mfe 1.12.0 → 1.12.2-certificate-beta.2
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 +22 -0
- package/build/cjs/types/msw/handlers/accounts.d.ts +1 -0
- package/build/cjs/types/mutations/accounts/accounts.mutation.d.ts +2 -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/queries/accounts/accounts.query.d.ts +3 -0
- 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/security/security.query.d.ts +15 -0
- 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/index.d.ts +1 -0
- package/build/cjs/types/types/organization/organization.d.ts +4 -0
- package/build/esm/index.js +5 -5
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +22 -0
- package/build/esm/types/msw/handlers/accounts.d.ts +1 -0
- package/build/esm/types/mutations/accounts/accounts.mutation.d.ts +2 -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/queries/accounts/accounts.query.d.ts +3 -0
- 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/security/security.query.d.ts +15 -0
- 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/index.d.ts +1 -0
- package/build/esm/types/types/organization/organization.d.ts +4 -0
- package/build/index.d.ts +105 -2
- package/package.json +6 -6
|
@@ -352,6 +352,14 @@ export declare class Api extends HttpClient {
|
|
|
352
352
|
putAccountPrincipal<T>({ account_code }: {
|
|
353
353
|
account_code: any;
|
|
354
354
|
}): Promise<AxiosResponse<T>>;
|
|
355
|
+
bulkDisableAccounts(payload: Organization.BulkToggleAccountsRequest): Promise<AxiosResponse<Organization.BulkToggleAccountsResponse>>;
|
|
356
|
+
bulkEnableAccounts(payload: Organization.BulkToggleAccountsRequest): Promise<AxiosResponse<Organization.BulkToggleAccountsResponse>>;
|
|
357
|
+
getAccountsByOrganization<T>(params?: {
|
|
358
|
+
includeDisabled?: boolean;
|
|
359
|
+
}): Promise<AxiosResponse<T, any>>;
|
|
360
|
+
getAccountsByOrganizationCode<T>(organizationCode: string, params?: {
|
|
361
|
+
includeDisabled?: boolean;
|
|
362
|
+
}): Promise<AxiosResponse<T, any>>;
|
|
355
363
|
getMergedNotifications<T>(): Promise<AxiosResponse<T>>;
|
|
356
364
|
getNotificationsCustomer<T>(customer: any): Promise<AxiosResponse<T>>;
|
|
357
365
|
getValidateOpsgenieKey<T>(key: any): Promise<AxiosResponse<T>>;
|
|
@@ -416,6 +424,7 @@ export declare class Api extends HttpClient {
|
|
|
416
424
|
workosAdminPortal<T>(): Promise<AxiosResponse<T>>;
|
|
417
425
|
workosDomainVerificationPortal<T>(): Promise<AxiosResponse<T>>;
|
|
418
426
|
workosDomainStatus<T>(): Promise<AxiosResponse<T>>;
|
|
427
|
+
workosSsoConfigStatus<T>(): Promise<AxiosResponse<T>>;
|
|
419
428
|
workosVerifyMfa<T>(body: any): Promise<AxiosResponse<T>>;
|
|
420
429
|
getCardBrands<T>(): Promise<AxiosResponse<T>>;
|
|
421
430
|
getPaymentFilters<T>(section: PaymentFiltersSection): Promise<AxiosResponse<T>>;
|
|
@@ -667,6 +676,19 @@ export declare class Api extends HttpClient {
|
|
|
667
676
|
createRecipient<T>(organizationCode: string, payload: CreateRecipientPayload): Promise<AxiosResponse<T, any>>;
|
|
668
677
|
updateRecipient<T>(organizationCode: string, recipientId: string, payload: UpdateRecipientPayload): Promise<AxiosResponse<T, any>>;
|
|
669
678
|
deleteRecipient<T>(organizationCode: string, recipientId: string): Promise<AxiosResponse<T, any>>;
|
|
679
|
+
createCertificate<T>(organizationCode: string, accountCode: string, payload: {
|
|
680
|
+
merchantId: string;
|
|
681
|
+
expiresAt: string;
|
|
682
|
+
accountCodes: string[];
|
|
683
|
+
type: 'PAYMENT_PROCESSING' | 'MERCHANT_IDENTITY';
|
|
684
|
+
}): Promise<AxiosResponse<T, any>>;
|
|
685
|
+
getCertificates<T>(organizationCode: string, accountCode: string, type?: 'PAYMENT_PROCESSING' | 'MERCHANT_IDENTITY'): Promise<AxiosResponse<T, any>>;
|
|
686
|
+
downloadCertificate<T>(organizationCode: string, accountCode: string, certificateCode: string): Promise<AxiosResponse<T, any>>;
|
|
687
|
+
updateCertificateAccounts<T>(organizationCode: string, accountCode: string, certificateCode: string, payload: {
|
|
688
|
+
accountCodes: string[];
|
|
689
|
+
}): Promise<AxiosResponse<T, any>>;
|
|
690
|
+
deleteCertificate<T>(organizationCode: string, accountCode: string, certificateCode: string): Promise<AxiosResponse<T, any>>;
|
|
691
|
+
deleteCertificateAccount<T>(organizationCode: string, accountCode: string, certificateCode: string, accountCodeToRemove: string): Promise<AxiosResponse<T, any>>;
|
|
670
692
|
createOnboarding<T>(organizationCode: string, recipientId: string, payload: CreateOnboardingPayload): Promise<AxiosResponse<T, any>>;
|
|
671
693
|
updateOnboarding<T>(organizationCode: string, recipientId: string, onboardingId: string, payload: UpdateOnboardingPayload): Promise<AxiosResponse<T, any>>;
|
|
672
694
|
blockOnboarding<T>(organizationCode: string, recipientId: string, onboardingId: string): Promise<AxiosResponse<T, any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const accountsHandlers: import("msw/lib/core/handlers/HttpHandler").HttpHandler[];
|
|
@@ -44,6 +44,8 @@ export declare function usePatchAccountV2(): UseMutationResult<AxiosResponse<Org
|
|
|
44
44
|
export declare function usePutAccountPrincipal(): UseMutationResult<AxiosResponse<Organization.Account, any, {}>, unknown, {
|
|
45
45
|
account_code: string;
|
|
46
46
|
}, unknown>;
|
|
47
|
+
export declare function useBulkDisableAccounts(): UseMutationResult<AxiosResponse<Organization.BulkToggleAccountsResponse>, AxiosError, Organization.BulkToggleAccountsRequest>;
|
|
48
|
+
export declare function useBulkEnableAccounts(): UseMutationResult<AxiosResponse<Organization.BulkToggleAccountsResponse>, AxiosError, Organization.BulkToggleAccountsRequest>;
|
|
47
49
|
export declare function usePutAccountsUserMassive(): UseMutationResult<AxiosResponse<Organization.Account, any, {}>, unknown, {
|
|
48
50
|
organizationCode: string;
|
|
49
51
|
userCode: string;
|
|
@@ -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';
|
|
@@ -13,6 +13,9 @@ export declare function useGetWebhooksV2Detail({ accountCode, enabled, }: {
|
|
|
13
13
|
}): UseQueryResult<Webhook.WebHookV2[], unknown>;
|
|
14
14
|
export declare function useGetAccounts(organizationCode?: string): UseQueryResult<Organization.Account[], unknown>;
|
|
15
15
|
export declare function useGetAccountsV2(organizationCode: string): UseQueryResult<Organization.Account[], unknown>;
|
|
16
|
+
export declare function useGetAccountsByOrganization(params?: {
|
|
17
|
+
includeDisabled?: boolean;
|
|
18
|
+
}): UseQueryResult<Organization.Account[], unknown>;
|
|
16
19
|
export declare function useGetAccountsByUser(userCode: string): UseQueryResult<{
|
|
17
20
|
accountsV2ByUser: Organization.Account[];
|
|
18
21
|
error?: AxiosError;
|
|
@@ -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';
|
|
@@ -6,3 +6,18 @@ export interface WorkosDomainStatusResponse {
|
|
|
6
6
|
has_verified_domain: boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare function useWorkosDomainStatus(): import("@tanstack/react-query").UseQueryResult<WorkosDomainStatusResponse, unknown>;
|
|
9
|
+
export interface WorkosSsoConnection {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
connectionType: string;
|
|
13
|
+
state: string;
|
|
14
|
+
}
|
|
15
|
+
export interface WorkosSsoConfigStatusResponse {
|
|
16
|
+
hasWorkosOrg: boolean;
|
|
17
|
+
domainVerified: boolean;
|
|
18
|
+
domainState: string | null;
|
|
19
|
+
connectionActive: boolean;
|
|
20
|
+
connections: WorkosSsoConnection[];
|
|
21
|
+
readyToMigrate: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function useWorkosSsoConfigStatus(): import("@tanstack/react-query").UseQueryResult<WorkosSsoConfigStatusResponse, unknown>;
|
|
@@ -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';
|
|
@@ -73,6 +73,10 @@ export declare namespace Organization {
|
|
|
73
73
|
user_account_code: string;
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
+
interface BulkToggleAccountsRequest {
|
|
77
|
+
accountCodes: string[];
|
|
78
|
+
}
|
|
79
|
+
type BulkToggleAccountsResponse = Account[];
|
|
76
80
|
interface Integration {
|
|
77
81
|
code: string;
|
|
78
82
|
provider_id: string;
|