@harnessio/react-idp-service-client 0.69.0 → 0.70.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/idp-service/src/services/hooks/useUpdateGitMetadataMutation.d.ts +29 -0
- package/dist/idp-service/src/services/hooks/useUpdateGitMetadataMutation.js +14 -0
- package/dist/idp-service/src/services/index.d.ts +4 -0
- package/dist/idp-service/src/services/index.js +1 -0
- package/dist/idp-service/src/services/requestBodies/GitMetadataUpdateRequestBodyRequestBody.d.ts +2 -0
- package/dist/idp-service/src/services/requestBodies/GitMetadataUpdateRequestBodyRequestBody.js +1 -0
- package/dist/idp-service/src/services/schemas/GitMetadataUpdateRequest.d.ts +18 -0
- package/dist/idp-service/src/services/schemas/GitMetadataUpdateRequest.js +4 -0
- package/package.json +1 -1
|
@@ -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';
|
package/dist/idp-service/src/services/requestBodies/GitMetadataUpdateRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
+
}
|