@harnessio/react-idp-service-client 0.69.0 → 0.71.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.
@@ -0,0 +1,29 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { DefaultSaveResponseResponse } from '../responses/DefaultSaveResponseResponse';
3
+ import type { GitMetadataUpdateRequestBodyRequestBody } from '../requestBodies/GitMetadataUpdateRequestBodyRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface UpdateGitMetadataMutationPathParams {
7
+ scope: string;
8
+ kind: string;
9
+ identifier: string;
10
+ }
11
+ export interface UpdateGitMetadataMutationQueryParams {
12
+ orgIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ }
15
+ export interface UpdateGitMetadataMutationHeaderParams {
16
+ 'Harness-Account'?: string;
17
+ }
18
+ export type UpdateGitMetadataRequestBody = GitMetadataUpdateRequestBodyRequestBody;
19
+ export type UpdateGitMetadataOkResponse = ResponseWithPagination<DefaultSaveResponseResponse>;
20
+ export type UpdateGitMetadataErrorResponse = unknown;
21
+ export interface UpdateGitMetadataProps extends UpdateGitMetadataMutationPathParams, Omit<FetcherOptions<UpdateGitMetadataMutationQueryParams, UpdateGitMetadataRequestBody, UpdateGitMetadataMutationHeaderParams>, 'url'> {
22
+ queryParams: UpdateGitMetadataMutationQueryParams;
23
+ body: UpdateGitMetadataRequestBody;
24
+ }
25
+ export declare function updateGitMetadata(props: UpdateGitMetadataProps): Promise<UpdateGitMetadataOkResponse>;
26
+ /**
27
+ * Update GitMetadata for Remote Entities
28
+ */
29
+ export declare function useUpdateGitMetadataMutation(options?: Omit<UseMutationOptions<UpdateGitMetadataOkResponse, UpdateGitMetadataErrorResponse, UpdateGitMetadataProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateGitMetadataOkResponse, unknown, UpdateGitMetadataProps, 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/index.js';
6
+ export function updateGitMetadata(props) {
7
+ return fetcher(Object.assign({ url: `/v1/entities/git-metadata/${props.scope}/${props.kind}/${props.identifier}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update GitMetadata for Remote Entities
11
+ */
12
+ export function useUpdateGitMetadataMutation(options) {
13
+ return useMutation((mutateProps) => updateGitMetadata(mutateProps), options);
14
+ }
@@ -169,6 +169,8 @@ export type { UpdateCustomPluginsInfoErrorResponse, UpdateCustomPluginsInfoMutat
169
169
  export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
170
170
  export type { UpdateEntityErrorResponse, UpdateEntityMutationPathParams, UpdateEntityMutationQueryParams, UpdateEntityOkResponse, UpdateEntityProps, UpdateEntityRequestBody, } from './hooks/useUpdateEntityMutation';
171
171
  export { updateEntity, useUpdateEntityMutation } from './hooks/useUpdateEntityMutation';
172
+ export type { UpdateGitMetadataErrorResponse, UpdateGitMetadataMutationPathParams, UpdateGitMetadataMutationQueryParams, UpdateGitMetadataOkResponse, UpdateGitMetadataProps, UpdateGitMetadataRequestBody, } from './hooks/useUpdateGitMetadataMutation';
173
+ export { updateGitMetadata, useUpdateGitMetadataMutation, } from './hooks/useUpdateGitMetadataMutation';
172
174
  export type { UpdateGroupsErrorResponse, UpdateGroupsMutationQueryParams, UpdateGroupsOkResponse, UpdateGroupsProps, UpdateGroupsRequestBody, } from './hooks/useUpdateGroupsMutation';
173
175
  export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
174
176
  export type { UpdateIntegrationErrorResponse, UpdateIntegrationMutationPathParams, UpdateIntegrationMutationQueryParams, UpdateIntegrationOkResponse, UpdateIntegrationProps, UpdateIntegrationRequestBody, } from './hooks/useUpdateIntegrationMutation';
@@ -189,6 +191,7 @@ export type { EntityRequestBodyRequestBody } from './requestBodies/EntityRequest
189
191
  export type { EntityUpdateRequestBodyRequestBody } from './requestBodies/EntityUpdateRequestBodyRequestBody';
190
192
  export type { GenerateYamlRequestRequestBody } from './requestBodies/GenerateYamlRequestRequestBody';
191
193
  export type { GitImportRequestBodyRequestBody } from './requestBodies/GitImportRequestBodyRequestBody';
194
+ export type { GitMetadataUpdateRequestBodyRequestBody } from './requestBodies/GitMetadataUpdateRequestBodyRequestBody';
192
195
  export type { GroupRequestListRequestBody } from './requestBodies/GroupRequestListRequestBody';
193
196
  export type { GroupRequestRequestBody } from './requestBodies/GroupRequestRequestBody';
194
197
  export type { HomePageLayoutRequestRequestBody } from './requestBodies/HomePageLayoutRequestRequestBody';
@@ -325,6 +328,7 @@ export type { GitCreateDetails } from './schemas/GitCreateDetails';
325
328
  export type { GitDetails } from './schemas/GitDetails';
326
329
  export type { GitImportDetails } from './schemas/GitImportDetails';
327
330
  export type { GitIntegrationRequest } from './schemas/GitIntegrationRequest';
331
+ export type { GitMetadataUpdateRequest } from './schemas/GitMetadataUpdateRequest';
328
332
  export type { GitUpdateDetails } from './schemas/GitUpdateDetails';
329
333
  export type { Group } from './schemas/Group';
330
334
  export type { GroupRequest } from './schemas/GroupRequest';
@@ -83,6 +83,7 @@ export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutat
83
83
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
84
84
  export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
85
85
  export { updateEntity, useUpdateEntityMutation } from './hooks/useUpdateEntityMutation';
86
+ export { updateGitMetadata, useUpdateGitMetadataMutation, } from './hooks/useUpdateGitMetadataMutation';
86
87
  export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
87
88
  export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
88
89
  export { updatePluginRequestV2, useUpdatePluginRequestV2Mutation, } from './hooks/useUpdatePluginRequestV2Mutation';
@@ -0,0 +1,2 @@
1
+ import type { GitMetadataUpdateRequest } from '../schemas/GitMetadataUpdateRequest';
2
+ export type GitMetadataUpdateRequestBodyRequestBody = GitMetadataUpdateRequest;
@@ -7,6 +7,10 @@ export interface EntityResponse {
7
7
  cache_response_data?: CacheResponseData;
8
8
  description?: string;
9
9
  entity_ref: string;
10
+ entity_validity_details?: {
11
+ error_messages?: string[];
12
+ is_valid?: boolean;
13
+ };
10
14
  git_details?: GitDetails;
11
15
  groups?: Array<{
12
16
  group_description?: string;
@@ -5,7 +5,6 @@ export interface GitImportDetails {
5
5
  branch_name?: string;
6
6
  connector_ref?: string;
7
7
  file_path?: string;
8
- is_force_import?: boolean;
9
8
  is_harness_code_repo?: boolean;
10
9
  repo_name?: string;
11
10
  }
@@ -0,0 +1,18 @@
1
+ export interface GitMetadataUpdateRequest {
2
+ /**
3
+ * Name of the branch.
4
+ */
5
+ branch_name?: string;
6
+ /**
7
+ * Harness connector id used for entity CRUD operations
8
+ */
9
+ connector_ref?: string;
10
+ /**
11
+ * File path of the entity in the repository.
12
+ */
13
+ file_path?: string;
14
+ /**
15
+ * Name of the repository.
16
+ */
17
+ repo_name?: string;
18
+ }
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.69.0",
3
+ "version": "0.71.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",