@harnessio/react-idp-service-client 0.2.0 → 0.4.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/README.md +1 -1
- package/dist/services/hooks/useCreateBackstagePermissionsMutation.d.ts +19 -0
- package/dist/services/hooks/useCreateBackstagePermissionsMutation.js +14 -0
- package/dist/services/hooks/useGetBackstagePermissionsQuery.d.ts +15 -0
- package/dist/services/hooks/useGetBackstagePermissionsQuery.js +14 -0
- package/dist/services/hooks/useGetStatusInfoByTypeQuery.d.ts +18 -0
- package/dist/services/hooks/useGetStatusInfoByTypeQuery.js +14 -0
- package/dist/services/hooks/useOnboardingAccessCheckV1Query.d.ts +1 -5
- package/dist/services/hooks/useOnboardingAccessCheckV1Query.js +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 +15 -3
- package/dist/services/index.js +4 -0
- package/dist/services/requestBodies/BackstagePermissionsRequestRequestBody.d.ts +2 -0
- package/dist/services/responses/BackstagePermissionsResponseResponse.d.ts +2 -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/CatalogConnectorInfo.d.ts +3 -2
- package/dist/services/schemas/CatalogConnectorInfo.js +0 -3
- package/dist/services/schemas/ConnectorDetails.d.ts +7 -0
- package/dist/services/schemas/ConnectorDetails.js +4 -0
- package/dist/services/schemas/EntitiesForImport.d.ts +2 -3
- package/dist/services/schemas/HarnessBackstageEntities.d.ts +1 -1
- package/dist/services/schemas/ImportHarnessEntitiesRequest.d.ts +1 -1
- package/dist/services/schemas/StatusInfo.d.ts +1 -1
- package/package.json +2 -2
- package/dist/services/requestBodies/ManualComponentImportRequestRequestBody.d.ts +0 -2
- package/dist/services/schemas/ManualComponentImportRequest.d.ts +0 -9
- /package/dist/services/requestBodies/{ManualComponentImportRequestRequestBody.js → BackstagePermissionsRequestRequestBody.js} +0 -0
- /package/dist/services/{schemas/ManualComponentImportRequest.js → responses/BackstagePermissionsResponseResponse.js} +0 -0
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Example:
|
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
## Versioning
|
|
31
|
-
![@harnessio/react-idp-service-client]
|
|
31
|
+

|
|
32
32
|
|
|
33
33
|
Once development phase is completed, this repo will have changes and versioning driven by API spec only.
|
|
34
34
|
|
|
@@ -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,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 { StatusInfoResponseResponse } from '../responses/StatusInfoResponseResponse';
|
|
3
|
+
import { FetcherOptions } from './../../fetcher';
|
|
4
|
+
export interface GetStatusInfoByTypeQueryPathParams {
|
|
5
|
+
type: 'infra' | 'onboarding';
|
|
6
|
+
}
|
|
7
|
+
export interface GetStatusInfoByTypeQueryHeaderParams {
|
|
8
|
+
'Harness-Account'?: string;
|
|
9
|
+
}
|
|
10
|
+
export type GetStatusInfoByTypeOkResponse = StatusInfoResponseResponse;
|
|
11
|
+
export type GetStatusInfoByTypeErrorResponse = unknown;
|
|
12
|
+
export interface GetStatusInfoByTypeProps extends GetStatusInfoByTypeQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetStatusInfoByTypeQueryHeaderParams>, 'url'> {
|
|
13
|
+
}
|
|
14
|
+
export declare function getStatusInfoByType(props: GetStatusInfoByTypeProps): Promise<GetStatusInfoByTypeOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Get status info for the given type
|
|
17
|
+
*/
|
|
18
|
+
export declare function useGetStatusInfoByTypeQuery(props: GetStatusInfoByTypeProps, options?: Omit<UseQueryOptions<GetStatusInfoByTypeOkResponse, GetStatusInfoByTypeErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<import("..").StatusInfoResponse, 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 getStatusInfoByType(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/status-info/${props.type}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get status info for the given type
|
|
11
|
+
*/
|
|
12
|
+
export function useGetStatusInfoByTypeQuery(props, options) {
|
|
13
|
+
return useQuery(['get-status-info-by-type', props.type], ({ signal }) => getStatusInfoByType(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -4,16 +4,12 @@ import { FetcherOptions } from './../../fetcher';
|
|
|
4
4
|
export interface OnboardingAccessCheckV1QueryPathParams {
|
|
5
5
|
accountIdentifier: string;
|
|
6
6
|
}
|
|
7
|
-
export interface OnboardingAccessCheckV1QueryQueryParams {
|
|
8
|
-
userId?: string;
|
|
9
|
-
}
|
|
10
7
|
export interface OnboardingAccessCheckV1QueryHeaderParams {
|
|
11
8
|
'Harness-Account'?: string;
|
|
12
9
|
}
|
|
13
10
|
export type OnboardingAccessCheckV1OkResponse = OnboardingAccessCheckResponseResponse;
|
|
14
11
|
export type OnboardingAccessCheckV1ErrorResponse = unknown;
|
|
15
|
-
export interface OnboardingAccessCheckV1Props extends OnboardingAccessCheckV1QueryPathParams, Omit<FetcherOptions<
|
|
16
|
-
queryParams: OnboardingAccessCheckV1QueryQueryParams;
|
|
12
|
+
export interface OnboardingAccessCheckV1Props extends OnboardingAccessCheckV1QueryPathParams, Omit<FetcherOptions<unknown, unknown, OnboardingAccessCheckV1QueryHeaderParams>, 'url'> {
|
|
17
13
|
}
|
|
18
14
|
export declare function onboardingAccessCheckV1(props: OnboardingAccessCheckV1Props): Promise<OnboardingAccessCheckV1OkResponse>;
|
|
19
15
|
/**
|
|
@@ -10,5 +10,5 @@ export function onboardingAccessCheckV1(props) {
|
|
|
10
10
|
* Check if User is allowed to perform IDP onboarding workflow
|
|
11
11
|
*/
|
|
12
12
|
export function useOnboardingAccessCheckV1Query(props, options) {
|
|
13
|
-
return useQuery(['onboarding-access-check-v1', props.accountIdentifier
|
|
13
|
+
return useQuery(['onboarding-access-check-v1', props.accountIdentifier], ({ signal }) => onboardingAccessCheckV1(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
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 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,14 +1,23 @@
|
|
|
1
|
+
export type { CreateBackstagePermissionsErrorResponse, CreateBackstagePermissionsMutationProps, CreateBackstagePermissionsOkResponse, CreateBackstagePermissionsProps, CreateBackstagePermissionsRequestBody, } from './hooks/useCreateBackstagePermissionsMutation';
|
|
2
|
+
export { createBackstagePermissions, useCreateBackstagePermissionsMutation, } from './hooks/useCreateBackstagePermissionsMutation';
|
|
3
|
+
export type { GetBackstagePermissionsErrorResponse, GetBackstagePermissionsOkResponse, GetBackstagePermissionsProps, } from './hooks/useGetBackstagePermissionsQuery';
|
|
4
|
+
export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
|
|
1
5
|
export type { GetHarnessEntitiesV1ErrorResponse, GetHarnessEntitiesV1OkResponse, GetHarnessEntitiesV1Props, GetHarnessEntitiesV1QueryPathParams, GetHarnessEntitiesV1QueryQueryParams, } from './hooks/useGetHarnessEntitiesV1Query';
|
|
2
6
|
export { getHarnessEntitiesV1, useGetHarnessEntitiesV1Query, } from './hooks/useGetHarnessEntitiesV1Query';
|
|
7
|
+
export type { GetStatusInfoByTypeErrorResponse, GetStatusInfoByTypeOkResponse, GetStatusInfoByTypeProps, GetStatusInfoByTypeQueryPathParams, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
8
|
+
export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
3
9
|
export type { ImportHarnessEntitiesV1ErrorResponse, ImportHarnessEntitiesV1MutationPathParams, ImportHarnessEntitiesV1MutationProps, ImportHarnessEntitiesV1OkResponse, ImportHarnessEntitiesV1Props, ImportHarnessEntitiesV1RequestBody, } from './hooks/useImportHarnessEntitiesV1Mutation';
|
|
4
10
|
export { importHarnessEntitiesV1, useImportHarnessEntitiesV1Mutation, } from './hooks/useImportHarnessEntitiesV1Mutation';
|
|
5
|
-
export type { OnboardingAccessCheckV1ErrorResponse, OnboardingAccessCheckV1OkResponse, OnboardingAccessCheckV1Props, OnboardingAccessCheckV1QueryPathParams,
|
|
11
|
+
export type { OnboardingAccessCheckV1ErrorResponse, OnboardingAccessCheckV1OkResponse, OnboardingAccessCheckV1Props, OnboardingAccessCheckV1QueryPathParams, } from './hooks/useOnboardingAccessCheckV1Query';
|
|
6
12
|
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';
|
|
7
16
|
export type { EnvironmentSecretRequestListRequestBody } from './requestBodies/EnvironmentSecretRequestListRequestBody';
|
|
8
17
|
export type { EnvironmentSecretRequestRequestBody } from './requestBodies/EnvironmentSecretRequestRequestBody';
|
|
9
18
|
export type { ImportHarnessEntitiesRequestRequestBody } from './requestBodies/ImportHarnessEntitiesRequestRequestBody';
|
|
10
|
-
export type { ManualComponentImportRequestRequestBody } from './requestBodies/ManualComponentImportRequestRequestBody';
|
|
11
19
|
export type { StatusInfoRequestRequestBody } from './requestBodies/StatusInfoRequestRequestBody';
|
|
20
|
+
export type { BackstagePermissionsResponseResponse } from './responses/BackstagePermissionsResponseResponse';
|
|
12
21
|
export type { EnvironmentSecretResponseListResponse } from './responses/EnvironmentSecretResponseListResponse';
|
|
13
22
|
export type { EnvironmentSecretResponseResponse } from './responses/EnvironmentSecretResponseResponse';
|
|
14
23
|
export type { HarnessEntitiesResponseResponse } from './responses/HarnessEntitiesResponseResponse';
|
|
@@ -16,7 +25,11 @@ export type { ImportEntitiesResponseResponse } from './responses/ImportEntitiesR
|
|
|
16
25
|
export type { NamespaceResponseResponse } from './responses/NamespaceResponseResponse';
|
|
17
26
|
export type { OnboardingAccessCheckResponseResponse } from './responses/OnboardingAccessCheckResponseResponse';
|
|
18
27
|
export type { StatusInfoResponseResponse } from './responses/StatusInfoResponseResponse';
|
|
28
|
+
export type { BackstagePermissions } from './schemas/BackstagePermissions';
|
|
29
|
+
export type { BackstagePermissionsRequest } from './schemas/BackstagePermissionsRequest';
|
|
30
|
+
export type { BackstagePermissionsResponse } from './schemas/BackstagePermissionsResponse';
|
|
19
31
|
export type { CatalogConnectorInfo } from './schemas/CatalogConnectorInfo';
|
|
32
|
+
export type { ConnectorDetails } from './schemas/ConnectorDetails';
|
|
20
33
|
export type { EntitiesForImport } from './schemas/EntitiesForImport';
|
|
21
34
|
export type { EnvironmentSecret } from './schemas/EnvironmentSecret';
|
|
22
35
|
export type { EnvironmentSecretRequest } from './schemas/EnvironmentSecretRequest';
|
|
@@ -25,7 +38,6 @@ export type { HarnessBackstageEntities } from './schemas/HarnessBackstageEntitie
|
|
|
25
38
|
export type { HarnessEntitiesResponse } from './schemas/HarnessEntitiesResponse';
|
|
26
39
|
export type { ImportEntitiesResponse } from './schemas/ImportEntitiesResponse';
|
|
27
40
|
export type { ImportHarnessEntitiesRequest } from './schemas/ImportHarnessEntitiesRequest';
|
|
28
|
-
export type { ManualComponentImportRequest } from './schemas/ManualComponentImportRequest';
|
|
29
41
|
export type { NamepsaceResponse } from './schemas/NamepsaceResponse';
|
|
30
42
|
export type { NamespaceInfo } from './schemas/NamespaceInfo';
|
|
31
43
|
export type { OnboardingAccessCheckResponse } from './schemas/OnboardingAccessCheckResponse';
|
package/dist/services/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export { createBackstagePermissions, useCreateBackstagePermissionsMutation, } from './hooks/useCreateBackstagePermissionsMutation';
|
|
2
|
+
export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
|
|
1
3
|
export { getHarnessEntitiesV1, useGetHarnessEntitiesV1Query, } from './hooks/useGetHarnessEntitiesV1Query';
|
|
4
|
+
export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
2
5
|
export { importHarnessEntitiesV1, useImportHarnessEntitiesV1Mutation, } from './hooks/useImportHarnessEntitiesV1Mutation';
|
|
3
6
|
export { onboardingAccessCheckV1, useOnboardingAccessCheckV1Query, } from './hooks/useOnboardingAccessCheckV1Query';
|
|
7
|
+
export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type { ConnectorDetails } from '../schemas/ConnectorDetails';
|
|
1
2
|
/**
|
|
2
3
|
* Details of IDP catalog connector
|
|
3
4
|
*/
|
|
4
5
|
export interface CatalogConnectorInfo {
|
|
5
6
|
branch: string;
|
|
6
|
-
|
|
7
|
+
infraConnector: ConnectorDetails;
|
|
7
8
|
path: string;
|
|
8
9
|
repo: string;
|
|
9
|
-
|
|
10
|
+
sourceConnector: ConnectorDetails;
|
|
10
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-idp-service-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Harness React idp service client - IDP APIs integrated with react hooks",
|
|
5
5
|
"author": "Harness Inc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"fmt": "prettier --write ./index.ts"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@tanstack/react-query": "
|
|
31
|
+
"@tanstack/react-query": "4.20.4",
|
|
32
32
|
"@types/qs": "^6.9.7",
|
|
33
33
|
"qs": "^6.9.4"
|
|
34
34
|
},
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CatalogConnectorInfo } from '../schemas/CatalogConnectorInfo';
|
|
2
|
-
/**
|
|
3
|
-
* Details of yaml and Catalog Location info to manually import component
|
|
4
|
-
*/
|
|
5
|
-
export interface ManualComponentImportRequest {
|
|
6
|
-
catalogConnectorInfo: CatalogConnectorInfo;
|
|
7
|
-
entityName: string;
|
|
8
|
-
yaml: string;
|
|
9
|
-
}
|
|
File without changes
|
|
File without changes
|