@yuno-payments/dashboard-api-mfe 1.11.3 → 1.11.5
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 +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +9 -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/queries/accounts/accounts.query.d.ts +3 -0
- package/build/cjs/types/queries/security/security.query.d.ts +15 -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 +9 -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/queries/accounts/accounts.query.d.ts +3 -0
- package/build/esm/types/queries/security/security.query.d.ts +15 -0
- package/build/esm/types/types/organization/organization.d.ts +4 -0
- package/build/index.d.ts +35 -2
- package/package.json +6 -6
|
@@ -349,6 +349,14 @@ export declare class Api extends HttpClient {
|
|
|
349
349
|
putAccountPrincipal<T>({ account_code }: {
|
|
350
350
|
account_code: any;
|
|
351
351
|
}): Promise<AxiosResponse<T>>;
|
|
352
|
+
bulkDisableAccounts(payload: Organization.BulkToggleAccountsRequest): Promise<AxiosResponse<Organization.BulkToggleAccountsResponse>>;
|
|
353
|
+
bulkEnableAccounts(payload: Organization.BulkToggleAccountsRequest): Promise<AxiosResponse<Organization.BulkToggleAccountsResponse>>;
|
|
354
|
+
getAccountsByOrganization<T>(params?: {
|
|
355
|
+
includeDisabled?: boolean;
|
|
356
|
+
}): Promise<AxiosResponse<T, any>>;
|
|
357
|
+
getAccountsByOrganizationCode<T>(organizationCode: string, params?: {
|
|
358
|
+
includeDisabled?: boolean;
|
|
359
|
+
}): Promise<AxiosResponse<T, any>>;
|
|
352
360
|
getMergedNotifications<T>(): Promise<AxiosResponse<T>>;
|
|
353
361
|
getNotificationsCustomer<T>(customer: any): Promise<AxiosResponse<T>>;
|
|
354
362
|
getValidateOpsgenieKey<T>(key: any): Promise<AxiosResponse<T>>;
|
|
@@ -413,6 +421,7 @@ export declare class Api extends HttpClient {
|
|
|
413
421
|
workosAdminPortal<T>(): Promise<AxiosResponse<T>>;
|
|
414
422
|
workosDomainVerificationPortal<T>(): Promise<AxiosResponse<T>>;
|
|
415
423
|
workosDomainStatus<T>(): Promise<AxiosResponse<T>>;
|
|
424
|
+
workosSsoConfigStatus<T>(): Promise<AxiosResponse<T>>;
|
|
416
425
|
workosVerifyMfa<T>(body: any): Promise<AxiosResponse<T>>;
|
|
417
426
|
getCardBrands<T>(): Promise<AxiosResponse<T>>;
|
|
418
427
|
getPaymentFilters<T>(section: PaymentFiltersSection): Promise<AxiosResponse<T>>;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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>;
|
|
@@ -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;
|