@harnessio/react-idp-service-client 0.7.0 → 0.8.0
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/dist/services/index.d.ts
CHANGED
|
@@ -14,8 +14,6 @@ export type { GetStatusInfoByTypeErrorResponse, GetStatusInfoByTypeOkResponse, G
|
|
|
14
14
|
export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
15
15
|
export type { ImportHarnessEntitiesErrorResponse, ImportHarnessEntitiesMutationProps, ImportHarnessEntitiesOkResponse, ImportHarnessEntitiesProps, ImportHarnessEntitiesRequestBody, } from './hooks/useImportHarnessEntitiesMutation';
|
|
16
16
|
export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
|
|
17
|
-
export type { OnboardingAccessCheckErrorResponse, OnboardingAccessCheckOkResponse, OnboardingAccessCheckProps, } from './hooks/useOnboardingAccessCheckQuery';
|
|
18
|
-
export { onboardingAccessCheck, useOnboardingAccessCheckQuery, } from './hooks/useOnboardingAccessCheckQuery';
|
|
19
17
|
export type { UpdateBackstagePermissionsErrorResponse, UpdateBackstagePermissionsMutationProps, UpdateBackstagePermissionsOkResponse, UpdateBackstagePermissionsProps, UpdateBackstagePermissionsRequestBody, } from './hooks/useUpdateBackstagePermissionsMutation';
|
|
20
18
|
export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
|
|
21
19
|
export type { BackstagePermissionsRequestRequestBody } from './requestBodies/BackstagePermissionsRequestRequestBody';
|
package/dist/services/index.js
CHANGED
|
@@ -6,5 +6,4 @@ export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHa
|
|
|
6
6
|
export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
|
|
7
7
|
export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
8
8
|
export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
|
|
9
|
-
export { onboardingAccessCheck, useOnboardingAccessCheckQuery, } from './hooks/useOnboardingAccessCheckQuery';
|
|
10
9
|
export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { OnboardingAccessCheckResponseResponse } from '../responses/OnboardingAccessCheckResponseResponse';
|
|
3
|
-
import { FetcherOptions } from './../../fetcher';
|
|
4
|
-
export interface OnboardingAccessCheckQueryHeaderParams {
|
|
5
|
-
'Harness-Account'?: string;
|
|
6
|
-
}
|
|
7
|
-
export type OnboardingAccessCheckOkResponse = OnboardingAccessCheckResponseResponse;
|
|
8
|
-
export type OnboardingAccessCheckErrorResponse = unknown;
|
|
9
|
-
export interface OnboardingAccessCheckProps extends Omit<FetcherOptions<unknown, unknown, OnboardingAccessCheckQueryHeaderParams>, 'url'> {
|
|
10
|
-
}
|
|
11
|
-
export declare function onboardingAccessCheck(props: OnboardingAccessCheckProps): Promise<OnboardingAccessCheckOkResponse>;
|
|
12
|
-
/**
|
|
13
|
-
* Check if User is allowed to perform IDP onboarding workflow
|
|
14
|
-
*/
|
|
15
|
-
export declare function useOnboardingAccessCheckQuery(props: OnboardingAccessCheckProps, options?: Omit<UseQueryOptions<OnboardingAccessCheckOkResponse, OnboardingAccessCheckErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<import("..").OnboardingAccessCheckResponse, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
-
// Please do not modify this code directly.
|
|
4
|
-
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from './../../fetcher';
|
|
6
|
-
export function onboardingAccessCheck(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/onboarding/access-check`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Check if User is allowed to perform IDP onboarding workflow
|
|
11
|
-
*/
|
|
12
|
-
export function useOnboardingAccessCheckQuery(props, options) {
|
|
13
|
-
return useQuery(['onboarding-access-check'], ({ signal }) => onboardingAccessCheck(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|