@harnessio/react-idp-service-client 0.3.0 → 0.5.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/useCreateBackstagePermissionsMutation.d.ts +19 -0
- package/dist/services/hooks/useCreateBackstagePermissionsMutation.js +14 -0
- 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/useGetBackstagePermissionsQuery.d.ts +15 -0
- package/dist/services/hooks/useGetBackstagePermissionsQuery.js +14 -0
- package/dist/services/hooks/useGetLayoutQuery.d.ts +18 -0
- package/dist/services/hooks/useGetLayoutQuery.js +14 -0
- package/dist/services/hooks/useGetStatusInfoByTypeQuery.d.ts +1 -1
- package/dist/services/hooks/useUpdateBackstagePermissionsMutation.d.ts +19 -0
- package/dist/services/hooks/useUpdateBackstagePermissionsMutation.js +14 -0
- package/dist/services/index.d.ts +21 -6
- package/dist/services/index.js +6 -3
- package/dist/services/requestBodies/BackstagePermissionsRequestRequestBody.d.ts +2 -0
- package/dist/services/requestBodies/BackstagePermissionsRequestRequestBody.js +1 -0
- package/dist/services/requestBodies/ManualImportEntityRequestRequestBody.d.ts +2 -0
- package/dist/services/requestBodies/ManualImportEntityRequestRequestBody.js +1 -0
- package/dist/services/responses/BackstagePermissionsResponseResponse.d.ts +2 -0
- package/dist/services/responses/BackstagePermissionsResponseResponse.js +1 -0
- package/dist/services/responses/GeneralResponseResponse.d.ts +2 -0
- package/dist/services/responses/GeneralResponseResponse.js +1 -0
- package/dist/services/schemas/BackstagePermissions.d.ts +13 -0
- package/dist/services/schemas/BackstagePermissions.js +4 -0
- package/dist/services/schemas/BackstagePermissionsRequest.d.ts +4 -0
- package/dist/services/schemas/BackstagePermissionsRequest.js +1 -0
- package/dist/services/schemas/BackstagePermissionsResponse.d.ts +4 -0
- package/dist/services/schemas/BackstagePermissionsResponse.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/dist/services/schemas/StatusInfo.d.ts +1 -1
- 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,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { BackstagePermissionsResponseResponse } from '../responses/BackstagePermissionsResponseResponse';
|
|
3
|
+
import type { BackstagePermissionsRequestRequestBody } from '../requestBodies/BackstagePermissionsRequestRequestBody';
|
|
4
|
+
import { FetcherOptions } from './../../fetcher';
|
|
5
|
+
export interface CreateBackstagePermissionsMutationHeaderParams {
|
|
6
|
+
'Harness-Account'?: string;
|
|
7
|
+
}
|
|
8
|
+
export type CreateBackstagePermissionsRequestBody = BackstagePermissionsRequestRequestBody;
|
|
9
|
+
export type CreateBackstagePermissionsOkResponse = BackstagePermissionsResponseResponse;
|
|
10
|
+
export type CreateBackstagePermissionsErrorResponse = unknown;
|
|
11
|
+
export interface CreateBackstagePermissionsProps extends Omit<FetcherOptions<unknown, CreateBackstagePermissionsRequestBody, CreateBackstagePermissionsMutationHeaderParams>, 'url'> {
|
|
12
|
+
body: CreateBackstagePermissionsRequestBody;
|
|
13
|
+
}
|
|
14
|
+
export declare function createBackstagePermissions(props: CreateBackstagePermissionsProps): Promise<CreateBackstagePermissionsOkResponse>;
|
|
15
|
+
export type CreateBackstagePermissionsMutationProps<T extends keyof CreateBackstagePermissionsProps> = Omit<CreateBackstagePermissionsProps, T> & Partial<Pick<CreateBackstagePermissionsProps, T>>;
|
|
16
|
+
/**
|
|
17
|
+
* Creates backstage Permissions for a given account
|
|
18
|
+
*/
|
|
19
|
+
export declare function useCreateBackstagePermissionsMutation<T extends keyof CreateBackstagePermissionsProps>(props: Pick<Partial<CreateBackstagePermissionsProps>, T>, options?: Omit<UseMutationOptions<CreateBackstagePermissionsOkResponse, CreateBackstagePermissionsErrorResponse, CreateBackstagePermissionsMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<import("..").BackstagePermissionsResponse, unknown, CreateBackstagePermissionsMutationProps<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 createBackstagePermissions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/backstage-permissions`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates backstage Permissions for a given account
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateBackstagePermissionsMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createBackstagePermissions(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
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,15 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { BackstagePermissionsResponseResponse } from '../responses/BackstagePermissionsResponseResponse';
|
|
3
|
+
import { FetcherOptions } from './../../fetcher';
|
|
4
|
+
export interface GetBackstagePermissionsQueryHeaderParams {
|
|
5
|
+
'Harness-Account'?: string;
|
|
6
|
+
}
|
|
7
|
+
export type GetBackstagePermissionsOkResponse = BackstagePermissionsResponseResponse;
|
|
8
|
+
export type GetBackstagePermissionsErrorResponse = unknown;
|
|
9
|
+
export interface GetBackstagePermissionsProps extends Omit<FetcherOptions<unknown, unknown, GetBackstagePermissionsQueryHeaderParams>, 'url'> {
|
|
10
|
+
}
|
|
11
|
+
export declare function getBackstagePermissions(props: GetBackstagePermissionsProps): Promise<GetBackstagePermissionsOkResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Get all backstage permissions for a given account
|
|
14
|
+
*/
|
|
15
|
+
export declare function useGetBackstagePermissionsQuery(props: GetBackstagePermissionsProps, options?: Omit<UseQueryOptions<GetBackstagePermissionsOkResponse, GetBackstagePermissionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<import("..").BackstagePermissionsResponse, 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 getBackstagePermissions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/backstage-permissions`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get all backstage permissions for a given account
|
|
11
|
+
*/
|
|
12
|
+
export function useGetBackstagePermissionsQuery(props, options) {
|
|
13
|
+
return useQuery(['get-backstage-permissions'], ({ signal }) => getBackstagePermissions(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
|
+
}
|
|
@@ -2,7 +2,7 @@ import { UseQueryOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { StatusInfoResponseResponse } from '../responses/StatusInfoResponseResponse';
|
|
3
3
|
import { FetcherOptions } from './../../fetcher';
|
|
4
4
|
export interface GetStatusInfoByTypeQueryPathParams {
|
|
5
|
-
type:
|
|
5
|
+
type: 'infra' | 'onboarding';
|
|
6
6
|
}
|
|
7
7
|
export interface GetStatusInfoByTypeQueryHeaderParams {
|
|
8
8
|
'Harness-Account'?: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { BackstagePermissionsResponseResponse } from '../responses/BackstagePermissionsResponseResponse';
|
|
3
|
+
import type { BackstagePermissionsRequestRequestBody } from '../requestBodies/BackstagePermissionsRequestRequestBody';
|
|
4
|
+
import { FetcherOptions } from './../../fetcher';
|
|
5
|
+
export interface UpdateBackstagePermissionsMutationHeaderParams {
|
|
6
|
+
'Harness-Account'?: string;
|
|
7
|
+
}
|
|
8
|
+
export type UpdateBackstagePermissionsRequestBody = BackstagePermissionsRequestRequestBody;
|
|
9
|
+
export type UpdateBackstagePermissionsOkResponse = BackstagePermissionsResponseResponse;
|
|
10
|
+
export type UpdateBackstagePermissionsErrorResponse = unknown;
|
|
11
|
+
export interface UpdateBackstagePermissionsProps extends Omit<FetcherOptions<unknown, UpdateBackstagePermissionsRequestBody, UpdateBackstagePermissionsMutationHeaderParams>, 'url'> {
|
|
12
|
+
body: UpdateBackstagePermissionsRequestBody;
|
|
13
|
+
}
|
|
14
|
+
export declare function updateBackstagePermissions(props: UpdateBackstagePermissionsProps): Promise<UpdateBackstagePermissionsOkResponse>;
|
|
15
|
+
export type UpdateBackstagePermissionsMutationProps<T extends keyof UpdateBackstagePermissionsProps> = Omit<UpdateBackstagePermissionsProps, T> & Partial<Pick<UpdateBackstagePermissionsProps, T>>;
|
|
16
|
+
/**
|
|
17
|
+
* Update Backstage Permission
|
|
18
|
+
*/
|
|
19
|
+
export declare function useUpdateBackstagePermissionsMutation<T extends keyof UpdateBackstagePermissionsProps>(props: Pick<Partial<UpdateBackstagePermissionsProps>, T>, options?: Omit<UseMutationOptions<UpdateBackstagePermissionsOkResponse, UpdateBackstagePermissionsErrorResponse, UpdateBackstagePermissionsMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<import("..").BackstagePermissionsResponse, unknown, UpdateBackstagePermissionsMutationProps<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 updateBackstagePermissions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/backstage-permissions`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update Backstage Permission
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateBackstagePermissionsMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateBackstagePermissions(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
package/dist/services/index.d.ts
CHANGED
|
@@ -1,32 +1,47 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export {
|
|
1
|
+
export type { CreateBackstagePermissionsErrorResponse, CreateBackstagePermissionsMutationProps, CreateBackstagePermissionsOkResponse, CreateBackstagePermissionsProps, CreateBackstagePermissionsRequestBody, } from './hooks/useCreateBackstagePermissionsMutation';
|
|
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';
|
|
7
|
+
export type { GetBackstagePermissionsErrorResponse, GetBackstagePermissionsOkResponse, GetBackstagePermissionsProps, } from './hooks/useGetBackstagePermissionsQuery';
|
|
8
|
+
export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
|
|
9
|
+
export type { GetLayoutErrorResponse, GetLayoutOkResponse, GetLayoutProps, GetLayoutQueryPathParams, } from './hooks/useGetLayoutQuery';
|
|
10
|
+
export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
|
|
3
11
|
export type { GetStatusInfoByTypeErrorResponse, GetStatusInfoByTypeOkResponse, GetStatusInfoByTypeProps, GetStatusInfoByTypeQueryPathParams, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
4
12
|
export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
5
|
-
export type {
|
|
6
|
-
export {
|
|
7
|
-
export type {
|
|
8
|
-
export { onboardingAccessCheckV1, useOnboardingAccessCheckV1Query, } from './hooks/useOnboardingAccessCheckV1Query';
|
|
13
|
+
export type { UpdateBackstagePermissionsErrorResponse, UpdateBackstagePermissionsMutationProps, UpdateBackstagePermissionsOkResponse, UpdateBackstagePermissionsProps, UpdateBackstagePermissionsRequestBody, } from './hooks/useUpdateBackstagePermissionsMutation';
|
|
14
|
+
export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
|
|
15
|
+
export type { BackstagePermissionsRequestRequestBody } from './requestBodies/BackstagePermissionsRequestRequestBody';
|
|
9
16
|
export type { EnvironmentSecretRequestListRequestBody } from './requestBodies/EnvironmentSecretRequestListRequestBody';
|
|
10
17
|
export type { EnvironmentSecretRequestRequestBody } from './requestBodies/EnvironmentSecretRequestRequestBody';
|
|
11
18
|
export type { ImportHarnessEntitiesRequestRequestBody } from './requestBodies/ImportHarnessEntitiesRequestRequestBody';
|
|
19
|
+
export type { ManualImportEntityRequestRequestBody } from './requestBodies/ManualImportEntityRequestRequestBody';
|
|
12
20
|
export type { StatusInfoRequestRequestBody } from './requestBodies/StatusInfoRequestRequestBody';
|
|
21
|
+
export type { BackstagePermissionsResponseResponse } from './responses/BackstagePermissionsResponseResponse';
|
|
13
22
|
export type { EnvironmentSecretResponseListResponse } from './responses/EnvironmentSecretResponseListResponse';
|
|
14
23
|
export type { EnvironmentSecretResponseResponse } from './responses/EnvironmentSecretResponseResponse';
|
|
24
|
+
export type { GeneralResponseResponse } from './responses/GeneralResponseResponse';
|
|
15
25
|
export type { HarnessEntitiesResponseResponse } from './responses/HarnessEntitiesResponseResponse';
|
|
16
26
|
export type { ImportEntitiesResponseResponse } from './responses/ImportEntitiesResponseResponse';
|
|
17
27
|
export type { NamespaceResponseResponse } from './responses/NamespaceResponseResponse';
|
|
18
28
|
export type { OnboardingAccessCheckResponseResponse } from './responses/OnboardingAccessCheckResponseResponse';
|
|
19
29
|
export type { StatusInfoResponseResponse } from './responses/StatusInfoResponseResponse';
|
|
30
|
+
export type { BackstagePermissions } from './schemas/BackstagePermissions';
|
|
31
|
+
export type { BackstagePermissionsRequest } from './schemas/BackstagePermissionsRequest';
|
|
32
|
+
export type { BackstagePermissionsResponse } from './schemas/BackstagePermissionsResponse';
|
|
20
33
|
export type { CatalogConnectorInfo } from './schemas/CatalogConnectorInfo';
|
|
21
34
|
export type { ConnectorDetails } from './schemas/ConnectorDetails';
|
|
22
35
|
export type { EntitiesForImport } from './schemas/EntitiesForImport';
|
|
23
36
|
export type { EnvironmentSecret } from './schemas/EnvironmentSecret';
|
|
24
37
|
export type { EnvironmentSecretRequest } from './schemas/EnvironmentSecretRequest';
|
|
25
38
|
export type { EnvironmentSecretResponse } from './schemas/EnvironmentSecretResponse';
|
|
39
|
+
export type { GeneralResponse } from './schemas/GeneralResponse';
|
|
26
40
|
export type { HarnessBackstageEntities } from './schemas/HarnessBackstageEntities';
|
|
27
41
|
export type { HarnessEntitiesResponse } from './schemas/HarnessEntitiesResponse';
|
|
28
42
|
export type { ImportEntitiesResponse } from './schemas/ImportEntitiesResponse';
|
|
29
43
|
export type { ImportHarnessEntitiesRequest } from './schemas/ImportHarnessEntitiesRequest';
|
|
44
|
+
export type { ManualImportEntityRequest } from './schemas/ManualImportEntityRequest';
|
|
30
45
|
export type { NamepsaceResponse } from './schemas/NamepsaceResponse';
|
|
31
46
|
export type { NamespaceInfo } from './schemas/NamespaceInfo';
|
|
32
47
|
export type { OnboardingAccessCheckResponse } from './schemas/OnboardingAccessCheckResponse';
|
package/dist/services/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { createBackstagePermissions, useCreateBackstagePermissionsMutation, } from './hooks/useCreateBackstagePermissionsMutation';
|
|
2
|
+
export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
|
|
3
|
+
export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
|
|
4
|
+
export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
|
|
5
|
+
export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
|
|
2
6
|
export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
3
|
-
export {
|
|
4
|
-
export { onboardingAccessCheckV1, useOnboardingAccessCheckV1Query, } from './hooks/useOnboardingAccessCheckV1Query';
|
|
7
|
+
export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
-
}
|