@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.
Files changed (34) hide show
  1. package/README.md +1 -1
  2. package/dist/services/hooks/useCreateBackstagePermissionsMutation.d.ts +19 -0
  3. package/dist/services/hooks/useCreateBackstagePermissionsMutation.js +14 -0
  4. package/dist/services/hooks/useGetBackstagePermissionsQuery.d.ts +15 -0
  5. package/dist/services/hooks/useGetBackstagePermissionsQuery.js +14 -0
  6. package/dist/services/hooks/useGetStatusInfoByTypeQuery.d.ts +18 -0
  7. package/dist/services/hooks/useGetStatusInfoByTypeQuery.js +14 -0
  8. package/dist/services/hooks/useOnboardingAccessCheckV1Query.d.ts +1 -5
  9. package/dist/services/hooks/useOnboardingAccessCheckV1Query.js +1 -1
  10. package/dist/services/hooks/useUpdateBackstagePermissionsMutation.d.ts +19 -0
  11. package/dist/services/hooks/useUpdateBackstagePermissionsMutation.js +14 -0
  12. package/dist/services/index.d.ts +15 -3
  13. package/dist/services/index.js +4 -0
  14. package/dist/services/requestBodies/BackstagePermissionsRequestRequestBody.d.ts +2 -0
  15. package/dist/services/responses/BackstagePermissionsResponseResponse.d.ts +2 -0
  16. package/dist/services/schemas/BackstagePermissions.d.ts +13 -0
  17. package/dist/services/schemas/BackstagePermissions.js +4 -0
  18. package/dist/services/schemas/BackstagePermissionsRequest.d.ts +4 -0
  19. package/dist/services/schemas/BackstagePermissionsRequest.js +1 -0
  20. package/dist/services/schemas/BackstagePermissionsResponse.d.ts +4 -0
  21. package/dist/services/schemas/BackstagePermissionsResponse.js +1 -0
  22. package/dist/services/schemas/CatalogConnectorInfo.d.ts +3 -2
  23. package/dist/services/schemas/CatalogConnectorInfo.js +0 -3
  24. package/dist/services/schemas/ConnectorDetails.d.ts +7 -0
  25. package/dist/services/schemas/ConnectorDetails.js +4 -0
  26. package/dist/services/schemas/EntitiesForImport.d.ts +2 -3
  27. package/dist/services/schemas/HarnessBackstageEntities.d.ts +1 -1
  28. package/dist/services/schemas/ImportHarnessEntitiesRequest.d.ts +1 -1
  29. package/dist/services/schemas/StatusInfo.d.ts +1 -1
  30. package/package.json +2 -2
  31. package/dist/services/requestBodies/ManualComponentImportRequestRequestBody.d.ts +0 -2
  32. package/dist/services/schemas/ManualComponentImportRequest.d.ts +0 -9
  33. /package/dist/services/requestBodies/{ManualComponentImportRequestRequestBody.js → BackstagePermissionsRequestRequestBody.js} +0 -0
  34. /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
+ ![@harnessio/react-idp-service-client](https://img.shields.io/npm/v/@harnessio/react-idp-service-client.svg?style=flat-square)
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<OnboardingAccessCheckV1QueryQueryParams, unknown, OnboardingAccessCheckV1QueryHeaderParams>, 'url'> {
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, props.queryParams], ({ signal }) => onboardingAccessCheckV1(Object.assign(Object.assign({}, props), { signal })), options);
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
+ }
@@ -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, OnboardingAccessCheckV1QueryQueryParams, } from './hooks/useOnboardingAccessCheckV1Query';
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';
@@ -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,2 @@
1
+ import type { BackstagePermissionsRequest } from '../schemas/BackstagePermissionsRequest';
2
+ export type BackstagePermissionsRequestRequestBody = BackstagePermissionsRequest;
@@ -0,0 +1,2 @@
1
+ import type { BackstagePermissionsResponse } from '../schemas/BackstagePermissionsResponse';
2
+ export type BackstagePermissionsResponseResponse = BackstagePermissionsResponse;
@@ -0,0 +1,13 @@
1
+ export interface BackstagePermissions {
2
+ /**
3
+ * @format int64
4
+ */
5
+ created?: number;
6
+ identifer?: string;
7
+ permissions?: string[];
8
+ /**
9
+ * @format int64
10
+ */
11
+ updated?: number;
12
+ user_group?: string;
13
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { BackstagePermissions } from '../schemas/BackstagePermissions';
2
+ export interface BackstagePermissionsRequest {
3
+ data?: BackstagePermissions;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { BackstagePermissions } from '../schemas/BackstagePermissions';
2
+ export interface BackstagePermissionsResponse {
3
+ data?: BackstagePermissions;
4
+ }
@@ -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
- infraConnectorIdentifier: string;
7
+ infraConnector: ConnectorDetails;
7
8
  path: string;
8
9
  repo: string;
9
- sourceConnectorIdentifier: string;
10
+ sourceConnector: ConnectorDetails;
10
11
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Connector details containing identifier and type
3
+ */
4
+ export interface ConnectorDetails {
5
+ identifier: string;
6
+ type: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -2,7 +2,6 @@
2
2
  * Details of Harness Entities to import
3
3
  */
4
4
  export interface EntitiesForImport {
5
- orgs: string[];
6
- projects: string[];
7
- services: string[];
5
+ entityType: string;
6
+ identifier: string;
8
7
  }
@@ -2,8 +2,8 @@
2
2
  * Harness entities mapping with backstage entities
3
3
  */
4
4
  export interface HarnessBackstageEntities {
5
- absoluteIdentifier: string;
6
5
  entityType: string;
6
+ identifier: string;
7
7
  name: string;
8
8
  owner: string;
9
9
  system: string;
@@ -5,5 +5,5 @@ import type { EntitiesForImport } from '../schemas/EntitiesForImport';
5
5
  */
6
6
  export interface ImportHarnessEntitiesRequest {
7
7
  catalogConnectorInfo: CatalogConnectorInfo;
8
- entities: EntitiesForImport;
8
+ entities: EntitiesForImport[];
9
9
  }
@@ -1,5 +1,5 @@
1
1
  export interface StatusInfo {
2
- currentStatus?: string;
2
+ currentStatus?: 'COMPLETED' | 'FAILED' | 'NOT_FOUND' | 'PENDING' | 'RUNNING';
3
3
  reason?: string;
4
4
  /**
5
5
  * @format int64
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.2.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": "^4.20.4",
31
+ "@tanstack/react-query": "4.20.4",
32
32
  "@types/qs": "^6.9.7",
33
33
  "qs": "^6.9.4"
34
34
  },
@@ -1,2 +0,0 @@
1
- import type { ManualComponentImportRequest } from '../schemas/ManualComponentImportRequest';
2
- export type ManualComponentImportRequestRequestBody = ManualComponentImportRequest;
@@ -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
- }