@harnessio/react-idp-service-client 0.4.0 → 0.6.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/hooks/useCreateLayoutMutation.d.ts +16 -0
- package/dist/services/hooks/useCreateLayoutMutation.js +14 -0
- package/dist/services/hooks/useGetAllLayoutsQuery.d.ts +15 -0
- package/dist/services/hooks/useGetAllLayoutsQuery.js +14 -0
- package/dist/services/hooks/useGetHarnessEntitiesQuery.d.ts +23 -0
- package/dist/services/hooks/useGetHarnessEntitiesQuery.js +14 -0
- package/dist/services/hooks/useGetLayoutQuery.d.ts +18 -0
- package/dist/services/hooks/useGetLayoutQuery.js +14 -0
- package/dist/services/hooks/useImportHarnessEntitiesMutation.d.ts +19 -0
- package/dist/services/hooks/useImportHarnessEntitiesMutation.js +14 -0
- package/dist/services/hooks/useOnboardingAccessCheckQuery.d.ts +15 -0
- package/dist/services/hooks/useOnboardingAccessCheckQuery.js +14 -0
- package/dist/services/index.d.ts +16 -6
- package/dist/services/index.js +6 -3
- package/dist/services/requestBodies/ManualImportEntityRequestRequestBody.d.ts +2 -0
- package/dist/services/requestBodies/ManualImportEntityRequestRequestBody.js +1 -0
- package/dist/services/responses/GeneralResponseResponse.d.ts +2 -0
- package/dist/services/responses/GeneralResponseResponse.js +1 -0
- package/dist/services/schemas/GeneralResponse.d.ts +3 -0
- package/dist/services/schemas/GeneralResponse.js +4 -0
- package/dist/services/schemas/ImportHarnessEntitiesRequest.d.ts +1 -0
- package/dist/services/schemas/ManualImportEntityRequest.d.ts +10 -0
- package/dist/services/schemas/ManualImportEntityRequest.js +4 -0
- package/package.json +1 -1
- package/dist/services/hooks/useGetHarnessEntitiesV1Query.d.ts +0 -26
- package/dist/services/hooks/useGetHarnessEntitiesV1Query.js +0 -14
- package/dist/services/hooks/useImportHarnessEntitiesV1Mutation.d.ts +0 -22
- package/dist/services/hooks/useImportHarnessEntitiesV1Mutation.js +0 -14
- package/dist/services/hooks/useOnboardingAccessCheckV1Query.d.ts +0 -18
- package/dist/services/hooks/useOnboardingAccessCheckV1Query.js +0 -14
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GeneralResponseResponse } from '../responses/GeneralResponseResponse';
|
|
3
|
+
import { FetcherOptions } from './../../fetcher';
|
|
4
|
+
export interface CreateLayoutMutationHeaderParams {
|
|
5
|
+
'Harness-Account'?: string;
|
|
6
|
+
}
|
|
7
|
+
export type CreateLayoutOkResponse = GeneralResponseResponse;
|
|
8
|
+
export type CreateLayoutErrorResponse = unknown;
|
|
9
|
+
export interface CreateLayoutProps extends Omit<FetcherOptions<unknown, unknown, CreateLayoutMutationHeaderParams>, 'url'> {
|
|
10
|
+
}
|
|
11
|
+
export declare function createLayout(props: CreateLayoutProps): Promise<CreateLayoutOkResponse>;
|
|
12
|
+
export type CreateLayoutMutationProps<T extends keyof CreateLayoutProps> = Omit<CreateLayoutProps, T> & Partial<Pick<CreateLayoutProps, T>>;
|
|
13
|
+
/**
|
|
14
|
+
* Create layout
|
|
15
|
+
*/
|
|
16
|
+
export declare function useCreateLayoutMutation<T extends keyof CreateLayoutProps>(props: Pick<Partial<CreateLayoutProps>, T>, options?: Omit<UseMutationOptions<CreateLayoutOkResponse, CreateLayoutErrorResponse, CreateLayoutMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<import("..").GeneralResponse, unknown, CreateLayoutMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from './../../fetcher';
|
|
6
|
+
export function createLayout(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/layout`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create layout
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateLayoutMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createLayout(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GeneralResponseResponse } from '../responses/GeneralResponseResponse';
|
|
3
|
+
import { FetcherOptions } from './../../fetcher';
|
|
4
|
+
export interface GetAllLayoutsQueryHeaderParams {
|
|
5
|
+
'Harness-Account'?: string;
|
|
6
|
+
}
|
|
7
|
+
export type GetAllLayoutsOkResponse = GeneralResponseResponse;
|
|
8
|
+
export type GetAllLayoutsErrorResponse = unknown;
|
|
9
|
+
export interface GetAllLayoutsProps extends Omit<FetcherOptions<unknown, unknown, GetAllLayoutsQueryHeaderParams>, 'url'> {
|
|
10
|
+
}
|
|
11
|
+
export declare function getAllLayouts(props: GetAllLayoutsProps): Promise<GetAllLayoutsOkResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Get all layouts
|
|
14
|
+
*/
|
|
15
|
+
export declare function useGetAllLayoutsQuery(props: GetAllLayoutsProps, options?: Omit<UseQueryOptions<GetAllLayoutsOkResponse, GetAllLayoutsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<import("..").GeneralResponse, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 getAllLayouts(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/layout`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get all layouts
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAllLayoutsQuery(props, options) {
|
|
13
|
+
return useQuery(['get-all-layouts'], ({ signal }) => getAllLayouts(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { HarnessEntitiesResponseResponse } from '../responses/HarnessEntitiesResponseResponse';
|
|
3
|
+
import { FetcherOptions } from './../../fetcher';
|
|
4
|
+
export interface GetHarnessEntitiesQueryQueryParams {
|
|
5
|
+
page?: number;
|
|
6
|
+
limit?: number;
|
|
7
|
+
sort?: string;
|
|
8
|
+
order?: string;
|
|
9
|
+
search_term?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetHarnessEntitiesQueryHeaderParams {
|
|
12
|
+
'Harness-Account'?: string;
|
|
13
|
+
}
|
|
14
|
+
export type GetHarnessEntitiesOkResponse = HarnessEntitiesResponseResponse;
|
|
15
|
+
export type GetHarnessEntitiesErrorResponse = unknown;
|
|
16
|
+
export interface GetHarnessEntitiesProps extends Omit<FetcherOptions<GetHarnessEntitiesQueryQueryParams, unknown, GetHarnessEntitiesQueryHeaderParams>, 'url'> {
|
|
17
|
+
queryParams: GetHarnessEntitiesQueryQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export declare function getHarnessEntities(props: GetHarnessEntitiesProps): Promise<GetHarnessEntitiesOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Get Harness Entities
|
|
22
|
+
*/
|
|
23
|
+
export declare function useGetHarnessEntitiesQuery(props: GetHarnessEntitiesProps, options?: Omit<UseQueryOptions<GetHarnessEntitiesOkResponse, GetHarnessEntitiesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<import("..").HarnessEntitiesResponse, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 getHarnessEntities(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/onboarding/harness-entities`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Harness Entities
|
|
11
|
+
*/
|
|
12
|
+
export function useGetHarnessEntitiesQuery(props, options) {
|
|
13
|
+
return useQuery(['get-harness-entities', props.queryParams], ({ signal }) => getHarnessEntities(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GeneralResponseResponse } from '../responses/GeneralResponseResponse';
|
|
3
|
+
import { FetcherOptions } from './../../fetcher';
|
|
4
|
+
export interface GetLayoutQueryPathParams {
|
|
5
|
+
'layout-identifier': string;
|
|
6
|
+
}
|
|
7
|
+
export interface GetLayoutQueryHeaderParams {
|
|
8
|
+
'Harness-Account'?: string;
|
|
9
|
+
}
|
|
10
|
+
export type GetLayoutOkResponse = GeneralResponseResponse;
|
|
11
|
+
export type GetLayoutErrorResponse = unknown;
|
|
12
|
+
export interface GetLayoutProps extends GetLayoutQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetLayoutQueryHeaderParams>, 'url'> {
|
|
13
|
+
}
|
|
14
|
+
export declare function getLayout(props: GetLayoutProps): Promise<GetLayoutOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Get Layout
|
|
17
|
+
*/
|
|
18
|
+
export declare function useGetLayoutQuery(props: GetLayoutProps, options?: Omit<UseQueryOptions<GetLayoutOkResponse, GetLayoutErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<import("..").GeneralResponse, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 getLayout(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/layout/${props['layout-identifier']}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Layout
|
|
11
|
+
*/
|
|
12
|
+
export function useGetLayoutQuery(props, options) {
|
|
13
|
+
return useQuery(['get-layout', props['layout-identifier']], ({ signal }) => getLayout(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ImportEntitiesResponseResponse } from '../responses/ImportEntitiesResponseResponse';
|
|
3
|
+
import type { ImportHarnessEntitiesRequestRequestBody } from '../requestBodies/ImportHarnessEntitiesRequestRequestBody';
|
|
4
|
+
import { FetcherOptions } from './../../fetcher';
|
|
5
|
+
export interface ImportHarnessEntitiesMutationHeaderParams {
|
|
6
|
+
'Harness-Account'?: string;
|
|
7
|
+
}
|
|
8
|
+
export type ImportHarnessEntitiesRequestBody = ImportHarnessEntitiesRequestRequestBody;
|
|
9
|
+
export type ImportHarnessEntitiesOkResponse = ImportEntitiesResponseResponse;
|
|
10
|
+
export type ImportHarnessEntitiesErrorResponse = unknown;
|
|
11
|
+
export interface ImportHarnessEntitiesProps extends Omit<FetcherOptions<unknown, ImportHarnessEntitiesRequestBody, ImportHarnessEntitiesMutationHeaderParams>, 'url'> {
|
|
12
|
+
body: ImportHarnessEntitiesRequestBody;
|
|
13
|
+
}
|
|
14
|
+
export declare function importHarnessEntities(props: ImportHarnessEntitiesProps): Promise<ImportHarnessEntitiesOkResponse>;
|
|
15
|
+
export type ImportHarnessEntitiesMutationProps<T extends keyof ImportHarnessEntitiesProps> = Omit<ImportHarnessEntitiesProps, T> & Partial<Pick<ImportHarnessEntitiesProps, T>>;
|
|
16
|
+
/**
|
|
17
|
+
* Import Harness Entities to IDP
|
|
18
|
+
*/
|
|
19
|
+
export declare function useImportHarnessEntitiesMutation<T extends keyof ImportHarnessEntitiesProps>(props: Pick<Partial<ImportHarnessEntitiesProps>, T>, options?: Omit<UseMutationOptions<ImportHarnessEntitiesOkResponse, ImportHarnessEntitiesErrorResponse, ImportHarnessEntitiesMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<import("..").ImportEntitiesResponse, unknown, ImportHarnessEntitiesMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from './../../fetcher';
|
|
6
|
+
export function importHarnessEntities(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/onboarding/import-harness-entities`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Import Harness Entities to IDP
|
|
11
|
+
*/
|
|
12
|
+
export function useImportHarnessEntitiesMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => importHarnessEntities(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
package/dist/services/index.d.ts
CHANGED
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
export type { CreateBackstagePermissionsErrorResponse, CreateBackstagePermissionsMutationProps, CreateBackstagePermissionsOkResponse, CreateBackstagePermissionsProps, CreateBackstagePermissionsRequestBody, } from './hooks/useCreateBackstagePermissionsMutation';
|
|
2
2
|
export { createBackstagePermissions, useCreateBackstagePermissionsMutation, } from './hooks/useCreateBackstagePermissionsMutation';
|
|
3
|
+
export type { CreateLayoutErrorResponse, CreateLayoutMutationProps, CreateLayoutOkResponse, CreateLayoutProps, } from './hooks/useCreateLayoutMutation';
|
|
4
|
+
export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
|
|
5
|
+
export type { GetAllLayoutsErrorResponse, GetAllLayoutsOkResponse, GetAllLayoutsProps, } from './hooks/useGetAllLayoutsQuery';
|
|
6
|
+
export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
|
|
3
7
|
export type { GetBackstagePermissionsErrorResponse, GetBackstagePermissionsOkResponse, GetBackstagePermissionsProps, } from './hooks/useGetBackstagePermissionsQuery';
|
|
4
8
|
export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
|
|
5
|
-
export type {
|
|
6
|
-
export {
|
|
9
|
+
export type { GetHarnessEntitiesErrorResponse, GetHarnessEntitiesOkResponse, GetHarnessEntitiesProps, GetHarnessEntitiesQueryQueryParams, } from './hooks/useGetHarnessEntitiesQuery';
|
|
10
|
+
export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
|
|
11
|
+
export type { GetLayoutErrorResponse, GetLayoutOkResponse, GetLayoutProps, GetLayoutQueryPathParams, } from './hooks/useGetLayoutQuery';
|
|
12
|
+
export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
|
|
7
13
|
export type { GetStatusInfoByTypeErrorResponse, GetStatusInfoByTypeOkResponse, GetStatusInfoByTypeProps, GetStatusInfoByTypeQueryPathParams, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
8
14
|
export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
9
|
-
export type {
|
|
10
|
-
export {
|
|
11
|
-
export type {
|
|
12
|
-
export {
|
|
15
|
+
export type { ImportHarnessEntitiesErrorResponse, ImportHarnessEntitiesMutationProps, ImportHarnessEntitiesOkResponse, ImportHarnessEntitiesProps, ImportHarnessEntitiesRequestBody, } from './hooks/useImportHarnessEntitiesMutation';
|
|
16
|
+
export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
|
|
17
|
+
export type { OnboardingAccessCheckErrorResponse, OnboardingAccessCheckOkResponse, OnboardingAccessCheckProps, } from './hooks/useOnboardingAccessCheckQuery';
|
|
18
|
+
export { onboardingAccessCheck, useOnboardingAccessCheckQuery, } from './hooks/useOnboardingAccessCheckQuery';
|
|
13
19
|
export type { UpdateBackstagePermissionsErrorResponse, UpdateBackstagePermissionsMutationProps, UpdateBackstagePermissionsOkResponse, UpdateBackstagePermissionsProps, UpdateBackstagePermissionsRequestBody, } from './hooks/useUpdateBackstagePermissionsMutation';
|
|
14
20
|
export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
|
|
15
21
|
export type { BackstagePermissionsRequestRequestBody } from './requestBodies/BackstagePermissionsRequestRequestBody';
|
|
16
22
|
export type { EnvironmentSecretRequestListRequestBody } from './requestBodies/EnvironmentSecretRequestListRequestBody';
|
|
17
23
|
export type { EnvironmentSecretRequestRequestBody } from './requestBodies/EnvironmentSecretRequestRequestBody';
|
|
18
24
|
export type { ImportHarnessEntitiesRequestRequestBody } from './requestBodies/ImportHarnessEntitiesRequestRequestBody';
|
|
25
|
+
export type { ManualImportEntityRequestRequestBody } from './requestBodies/ManualImportEntityRequestRequestBody';
|
|
19
26
|
export type { StatusInfoRequestRequestBody } from './requestBodies/StatusInfoRequestRequestBody';
|
|
20
27
|
export type { BackstagePermissionsResponseResponse } from './responses/BackstagePermissionsResponseResponse';
|
|
21
28
|
export type { EnvironmentSecretResponseListResponse } from './responses/EnvironmentSecretResponseListResponse';
|
|
22
29
|
export type { EnvironmentSecretResponseResponse } from './responses/EnvironmentSecretResponseResponse';
|
|
30
|
+
export type { GeneralResponseResponse } from './responses/GeneralResponseResponse';
|
|
23
31
|
export type { HarnessEntitiesResponseResponse } from './responses/HarnessEntitiesResponseResponse';
|
|
24
32
|
export type { ImportEntitiesResponseResponse } from './responses/ImportEntitiesResponseResponse';
|
|
25
33
|
export type { NamespaceResponseResponse } from './responses/NamespaceResponseResponse';
|
|
@@ -34,10 +42,12 @@ export type { EntitiesForImport } from './schemas/EntitiesForImport';
|
|
|
34
42
|
export type { EnvironmentSecret } from './schemas/EnvironmentSecret';
|
|
35
43
|
export type { EnvironmentSecretRequest } from './schemas/EnvironmentSecretRequest';
|
|
36
44
|
export type { EnvironmentSecretResponse } from './schemas/EnvironmentSecretResponse';
|
|
45
|
+
export type { GeneralResponse } from './schemas/GeneralResponse';
|
|
37
46
|
export type { HarnessBackstageEntities } from './schemas/HarnessBackstageEntities';
|
|
38
47
|
export type { HarnessEntitiesResponse } from './schemas/HarnessEntitiesResponse';
|
|
39
48
|
export type { ImportEntitiesResponse } from './schemas/ImportEntitiesResponse';
|
|
40
49
|
export type { ImportHarnessEntitiesRequest } from './schemas/ImportHarnessEntitiesRequest';
|
|
50
|
+
export type { ManualImportEntityRequest } from './schemas/ManualImportEntityRequest';
|
|
41
51
|
export type { NamepsaceResponse } from './schemas/NamepsaceResponse';
|
|
42
52
|
export type { NamespaceInfo } from './schemas/NamespaceInfo';
|
|
43
53
|
export type { OnboardingAccessCheckResponse } from './schemas/OnboardingAccessCheckResponse';
|
package/dist/services/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export { createBackstagePermissions, useCreateBackstagePermissionsMutation, } from './hooks/useCreateBackstagePermissionsMutation';
|
|
2
|
+
export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
|
|
3
|
+
export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
|
|
2
4
|
export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
|
|
3
|
-
export {
|
|
5
|
+
export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
|
|
6
|
+
export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
|
|
4
7
|
export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
8
|
+
export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
|
|
9
|
+
export { onboardingAccessCheck, useOnboardingAccessCheckQuery, } from './hooks/useOnboardingAccessCheckQuery';
|
|
7
10
|
export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,6 +4,7 @@ import type { EntitiesForImport } from '../schemas/EntitiesForImport';
|
|
|
4
4
|
* Details of Harness Entities and Catalog Location info
|
|
5
5
|
*/
|
|
6
6
|
export interface ImportHarnessEntitiesRequest {
|
|
7
|
+
allImport?: boolean;
|
|
7
8
|
catalogConnectorInfo: CatalogConnectorInfo;
|
|
8
9
|
entities: EntitiesForImport[];
|
|
9
10
|
}
|
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { HarnessEntitiesResponseResponse } from '../responses/HarnessEntitiesResponseResponse';
|
|
3
|
-
import { FetcherOptions } from './../../fetcher';
|
|
4
|
-
export interface GetHarnessEntitiesV1QueryPathParams {
|
|
5
|
-
accountIdentifier: string;
|
|
6
|
-
}
|
|
7
|
-
export interface GetHarnessEntitiesV1QueryQueryParams {
|
|
8
|
-
page?: number;
|
|
9
|
-
limit?: number;
|
|
10
|
-
sort?: string;
|
|
11
|
-
order?: string;
|
|
12
|
-
search_term?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface GetHarnessEntitiesV1QueryHeaderParams {
|
|
15
|
-
'Harness-Account'?: string;
|
|
16
|
-
}
|
|
17
|
-
export type GetHarnessEntitiesV1OkResponse = HarnessEntitiesResponseResponse;
|
|
18
|
-
export type GetHarnessEntitiesV1ErrorResponse = unknown;
|
|
19
|
-
export interface GetHarnessEntitiesV1Props extends GetHarnessEntitiesV1QueryPathParams, Omit<FetcherOptions<GetHarnessEntitiesV1QueryQueryParams, unknown, GetHarnessEntitiesV1QueryHeaderParams>, 'url'> {
|
|
20
|
-
queryParams: GetHarnessEntitiesV1QueryQueryParams;
|
|
21
|
-
}
|
|
22
|
-
export declare function getHarnessEntitiesV1(props: GetHarnessEntitiesV1Props): Promise<GetHarnessEntitiesV1OkResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Get Harness Entities
|
|
25
|
-
*/
|
|
26
|
-
export declare function useGetHarnessEntitiesV1Query(props: GetHarnessEntitiesV1Props, options?: Omit<UseQueryOptions<GetHarnessEntitiesV1OkResponse, GetHarnessEntitiesV1ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<import("..").HarnessEntitiesResponse, 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 getHarnessEntitiesV1(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/account/${props.accountIdentifier}/onboarding/harness-entities`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get Harness Entities
|
|
11
|
-
*/
|
|
12
|
-
export function useGetHarnessEntitiesV1Query(props, options) {
|
|
13
|
-
return useQuery(['get-harness-entities-v1', props.accountIdentifier, props.queryParams], ({ signal }) => getHarnessEntitiesV1(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { ImportEntitiesResponseResponse } from '../responses/ImportEntitiesResponseResponse';
|
|
3
|
-
import type { ImportHarnessEntitiesRequestRequestBody } from '../requestBodies/ImportHarnessEntitiesRequestRequestBody';
|
|
4
|
-
import { FetcherOptions } from './../../fetcher';
|
|
5
|
-
export interface ImportHarnessEntitiesV1MutationPathParams {
|
|
6
|
-
accountIdentifier: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ImportHarnessEntitiesV1MutationHeaderParams {
|
|
9
|
-
'Harness-Account'?: string;
|
|
10
|
-
}
|
|
11
|
-
export type ImportHarnessEntitiesV1RequestBody = ImportHarnessEntitiesRequestRequestBody;
|
|
12
|
-
export type ImportHarnessEntitiesV1OkResponse = ImportEntitiesResponseResponse;
|
|
13
|
-
export type ImportHarnessEntitiesV1ErrorResponse = unknown;
|
|
14
|
-
export interface ImportHarnessEntitiesV1Props extends ImportHarnessEntitiesV1MutationPathParams, Omit<FetcherOptions<unknown, ImportHarnessEntitiesV1RequestBody, ImportHarnessEntitiesV1MutationHeaderParams>, 'url'> {
|
|
15
|
-
body: ImportHarnessEntitiesV1RequestBody;
|
|
16
|
-
}
|
|
17
|
-
export declare function importHarnessEntitiesV1(props: ImportHarnessEntitiesV1Props): Promise<ImportHarnessEntitiesV1OkResponse>;
|
|
18
|
-
export type ImportHarnessEntitiesV1MutationProps<T extends keyof ImportHarnessEntitiesV1Props> = Omit<ImportHarnessEntitiesV1Props, T> & Partial<Pick<ImportHarnessEntitiesV1Props, T>>;
|
|
19
|
-
/**
|
|
20
|
-
* Import Harness Entities to IDP
|
|
21
|
-
*/
|
|
22
|
-
export declare function useImportHarnessEntitiesV1Mutation<T extends keyof ImportHarnessEntitiesV1Props>(props: Pick<Partial<ImportHarnessEntitiesV1Props>, T>, options?: Omit<UseMutationOptions<ImportHarnessEntitiesV1OkResponse, ImportHarnessEntitiesV1ErrorResponse, ImportHarnessEntitiesV1MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<import("..").ImportEntitiesResponse, unknown, ImportHarnessEntitiesV1MutationProps<T>, 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 { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from './../../fetcher';
|
|
6
|
-
export function importHarnessEntitiesV1(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/account/${props.accountIdentifier}/onboarding/import-harness-entities`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Import Harness Entities to IDP
|
|
11
|
-
*/
|
|
12
|
-
export function useImportHarnessEntitiesV1Mutation(props, options) {
|
|
13
|
-
return useMutation((mutateProps) => importHarnessEntitiesV1(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { OnboardingAccessCheckResponseResponse } from '../responses/OnboardingAccessCheckResponseResponse';
|
|
3
|
-
import { FetcherOptions } from './../../fetcher';
|
|
4
|
-
export interface OnboardingAccessCheckV1QueryPathParams {
|
|
5
|
-
accountIdentifier: string;
|
|
6
|
-
}
|
|
7
|
-
export interface OnboardingAccessCheckV1QueryHeaderParams {
|
|
8
|
-
'Harness-Account'?: string;
|
|
9
|
-
}
|
|
10
|
-
export type OnboardingAccessCheckV1OkResponse = OnboardingAccessCheckResponseResponse;
|
|
11
|
-
export type OnboardingAccessCheckV1ErrorResponse = unknown;
|
|
12
|
-
export interface OnboardingAccessCheckV1Props extends OnboardingAccessCheckV1QueryPathParams, Omit<FetcherOptions<unknown, unknown, OnboardingAccessCheckV1QueryHeaderParams>, 'url'> {
|
|
13
|
-
}
|
|
14
|
-
export declare function onboardingAccessCheckV1(props: OnboardingAccessCheckV1Props): Promise<OnboardingAccessCheckV1OkResponse>;
|
|
15
|
-
/**
|
|
16
|
-
* Check if User is allowed to perform IDP onboarding workflow
|
|
17
|
-
*/
|
|
18
|
-
export declare function useOnboardingAccessCheckV1Query(props: OnboardingAccessCheckV1Props, options?: Omit<UseQueryOptions<OnboardingAccessCheckV1OkResponse, OnboardingAccessCheckV1ErrorResponse>, '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 onboardingAccessCheckV1(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/account/${props.accountIdentifier}/onboarding/access-check`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Check if User is allowed to perform IDP onboarding workflow
|
|
11
|
-
*/
|
|
12
|
-
export function useOnboardingAccessCheckV1Query(props, options) {
|
|
13
|
-
return useQuery(['onboarding-access-check-v1', props.accountIdentifier], ({ signal }) => onboardingAccessCheckV1(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|