@harnessio/react-idp-service-client 0.79.0 → 0.81.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/useCreateIntegrationMutation.d.ts +1 -1
- package/dist/idp-service/src/services/hooks/useGetIntegrationQuery.d.ts +1 -1
- package/dist/idp-service/src/services/hooks/useGetIntegrationsQuery.d.ts +1 -1
- package/dist/idp-service/src/services/hooks/useUpdateEntityVersionMutation.d.ts +30 -0
- package/dist/idp-service/src/services/hooks/useUpdateEntityVersionMutation.js +14 -0
- package/dist/idp-service/src/services/hooks/useUpdateIntegrationMutation.d.ts +1 -1
- 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/EntityVersionUpdateRequestBodyRequestBody.d.ts +2 -0
- package/dist/idp-service/src/services/requestBodies/EntityVersionUpdateRequestBodyRequestBody.js +1 -0
- package/dist/idp-service/src/services/schemas/BaseIntegrationRequest.d.ts +1 -1
- package/dist/idp-service/src/services/schemas/BaseIntegrationResponse.d.ts +1 -1
- package/dist/idp-service/src/services/schemas/EntityVersionResponse.d.ts +8 -0
- package/dist/idp-service/src/services/schemas/EntityVersionUpdateRequest.d.ts +13 -0
- package/dist/idp-service/src/services/schemas/EntityVersionUpdateRequest.js +4 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import type { IntegrationRequestRequestBody } from '../requestBodies/Integration
|
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface CreateIntegrationMutationPathParams {
|
|
7
|
-
integration: 'git';
|
|
7
|
+
integration: 'catalog' | 'git';
|
|
8
8
|
}
|
|
9
9
|
export interface CreateIntegrationMutationQueryParams {
|
|
10
10
|
dry_run?: boolean;
|
|
@@ -3,7 +3,7 @@ import type { IntegrationResponseResponse } from '../responses/IntegrationRespon
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetIntegrationQueryPathParams {
|
|
6
|
-
integration: 'git';
|
|
6
|
+
integration: 'catalog' | 'git';
|
|
7
7
|
'integration-id': string;
|
|
8
8
|
}
|
|
9
9
|
export interface GetIntegrationQueryHeaderParams {
|
|
@@ -3,7 +3,7 @@ import type { IntegrationResponseListResponse } from '../responses/IntegrationRe
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetIntegrationsQueryPathParams {
|
|
6
|
-
integration: 'git';
|
|
6
|
+
integration: 'catalog' | 'git';
|
|
7
7
|
}
|
|
8
8
|
export interface GetIntegrationsQueryQueryParams {
|
|
9
9
|
page?: number;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityVersionResponseBodyResponse } from '../responses/EntityVersionResponseBodyResponse';
|
|
3
|
+
import type { EntityVersionUpdateRequestBodyRequestBody } from '../requestBodies/EntityVersionUpdateRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface UpdateEntityVersionMutationPathParams {
|
|
7
|
+
scope: string;
|
|
8
|
+
kind: string;
|
|
9
|
+
identifier: string;
|
|
10
|
+
version: string;
|
|
11
|
+
}
|
|
12
|
+
export interface UpdateEntityVersionMutationQueryParams {
|
|
13
|
+
orgIdentifier?: string;
|
|
14
|
+
projectIdentifier?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface UpdateEntityVersionMutationHeaderParams {
|
|
17
|
+
'Harness-Account'?: string;
|
|
18
|
+
}
|
|
19
|
+
export type UpdateEntityVersionRequestBody = EntityVersionUpdateRequestBodyRequestBody;
|
|
20
|
+
export type UpdateEntityVersionOkResponse = ResponseWithPagination<EntityVersionResponseBodyResponse>;
|
|
21
|
+
export type UpdateEntityVersionErrorResponse = unknown;
|
|
22
|
+
export interface UpdateEntityVersionProps extends UpdateEntityVersionMutationPathParams, Omit<FetcherOptions<UpdateEntityVersionMutationQueryParams, UpdateEntityVersionRequestBody, UpdateEntityVersionMutationHeaderParams>, 'url'> {
|
|
23
|
+
queryParams: UpdateEntityVersionMutationQueryParams;
|
|
24
|
+
body: UpdateEntityVersionRequestBody;
|
|
25
|
+
}
|
|
26
|
+
export declare function updateEntityVersion(props: UpdateEntityVersionProps): Promise<UpdateEntityVersionOkResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Update the mutable fields of an EntityVersion.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useUpdateEntityVersionMutation(options?: Omit<UseMutationOptions<UpdateEntityVersionOkResponse, UpdateEntityVersionErrorResponse, UpdateEntityVersionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateEntityVersionOkResponse, unknown, UpdateEntityVersionProps, 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 updateEntityVersion(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/${props.scope}/${props.kind}/${props.identifier}/versions/${props.version}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update the mutable fields of an EntityVersion.
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateEntityVersionMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateEntityVersion(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -4,7 +4,7 @@ import type { IntegrationRequestRequestBody } from '../requestBodies/Integration
|
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface UpdateIntegrationMutationPathParams {
|
|
7
|
-
integration: 'git';
|
|
7
|
+
integration: 'catalog' | 'git';
|
|
8
8
|
'integration-id': string;
|
|
9
9
|
}
|
|
10
10
|
export interface UpdateIntegrationMutationQueryParams {
|
|
@@ -181,6 +181,8 @@ export type { UpdateCustomPluginsInfoErrorResponse, UpdateCustomPluginsInfoMutat
|
|
|
181
181
|
export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
|
|
182
182
|
export type { UpdateEntityErrorResponse, UpdateEntityMutationPathParams, UpdateEntityMutationQueryParams, UpdateEntityOkResponse, UpdateEntityProps, UpdateEntityRequestBody, } from './hooks/useUpdateEntityMutation';
|
|
183
183
|
export { updateEntity, useUpdateEntityMutation } from './hooks/useUpdateEntityMutation';
|
|
184
|
+
export type { UpdateEntityVersionErrorResponse, UpdateEntityVersionMutationPathParams, UpdateEntityVersionMutationQueryParams, UpdateEntityVersionOkResponse, UpdateEntityVersionProps, UpdateEntityVersionRequestBody, } from './hooks/useUpdateEntityVersionMutation';
|
|
185
|
+
export { updateEntityVersion, useUpdateEntityVersionMutation, } from './hooks/useUpdateEntityVersionMutation';
|
|
184
186
|
export type { UpdateGitMetadataErrorResponse, UpdateGitMetadataMutationPathParams, UpdateGitMetadataMutationQueryParams, UpdateGitMetadataOkResponse, UpdateGitMetadataProps, UpdateGitMetadataRequestBody, } from './hooks/useUpdateGitMetadataMutation';
|
|
185
187
|
export { updateGitMetadata, useUpdateGitMetadataMutation, } from './hooks/useUpdateGitMetadataMutation';
|
|
186
188
|
export type { UpdateGroupsErrorResponse, UpdateGroupsMutationQueryParams, UpdateGroupsOkResponse, UpdateGroupsProps, UpdateGroupsRequestBody, } from './hooks/useUpdateGroupsMutation';
|
|
@@ -205,6 +207,7 @@ export type { EntityMoveRequestBodyRequestBody } from './requestBodies/EntityMov
|
|
|
205
207
|
export type { EntityRequestBodyRequestBody } from './requestBodies/EntityRequestBodyRequestBody';
|
|
206
208
|
export type { EntityUpdateRequestBodyRequestBody } from './requestBodies/EntityUpdateRequestBodyRequestBody';
|
|
207
209
|
export type { EntityVersionCreateRequestBodyRequestBody } from './requestBodies/EntityVersionCreateRequestBodyRequestBody';
|
|
210
|
+
export type { EntityVersionUpdateRequestBodyRequestBody } from './requestBodies/EntityVersionUpdateRequestBodyRequestBody';
|
|
208
211
|
export type { GenerateYamlRequestRequestBody } from './requestBodies/GenerateYamlRequestRequestBody';
|
|
209
212
|
export type { GitImportRequestBodyRequestBody } from './requestBodies/GitImportRequestBodyRequestBody';
|
|
210
213
|
export type { GitMetadataUpdateRequestBodyRequestBody } from './requestBodies/GitMetadataUpdateRequestBodyRequestBody';
|
|
@@ -344,6 +347,7 @@ export type { EntityResponse } from './schemas/EntityResponse';
|
|
|
344
347
|
export type { EntityUpdateRequest } from './schemas/EntityUpdateRequest';
|
|
345
348
|
export type { EntityVersionCreateRequest } from './schemas/EntityVersionCreateRequest';
|
|
346
349
|
export type { EntityVersionResponse } from './schemas/EntityVersionResponse';
|
|
350
|
+
export type { EntityVersionUpdateRequest } from './schemas/EntityVersionUpdateRequest';
|
|
347
351
|
export type { ExportDetails } from './schemas/ExportDetails';
|
|
348
352
|
export type { Exports } from './schemas/Exports';
|
|
349
353
|
export type { GenerateYamlRequest } from './schemas/GenerateYamlRequest';
|
|
@@ -89,6 +89,7 @@ export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutat
|
|
|
89
89
|
export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
|
|
90
90
|
export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
|
|
91
91
|
export { updateEntity, useUpdateEntityMutation } from './hooks/useUpdateEntityMutation';
|
|
92
|
+
export { updateEntityVersion, useUpdateEntityVersionMutation, } from './hooks/useUpdateEntityVersionMutation';
|
|
92
93
|
export { updateGitMetadata, useUpdateGitMetadataMutation, } from './hooks/useUpdateGitMetadataMutation';
|
|
93
94
|
export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
|
|
94
95
|
export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
|
package/dist/idp-service/src/services/requestBodies/EntityVersionUpdateRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* Entity Version Response Body
|
|
3
3
|
*/
|
|
4
4
|
export interface EntityVersionResponse {
|
|
5
|
+
/**
|
|
6
|
+
* @format int64
|
|
7
|
+
*/
|
|
8
|
+
created?: number;
|
|
5
9
|
deprecated?: boolean;
|
|
6
10
|
description?: string;
|
|
7
11
|
identifier: string;
|
|
@@ -11,6 +15,10 @@ export interface EntityVersionResponse {
|
|
|
11
15
|
projectIdentifier?: string;
|
|
12
16
|
project_name?: string;
|
|
13
17
|
scope?: 'ACCOUNT' | 'ORGANIZATION' | 'PROJECT';
|
|
18
|
+
/**
|
|
19
|
+
* @format int64
|
|
20
|
+
*/
|
|
21
|
+
updated?: number;
|
|
14
22
|
version: string;
|
|
15
23
|
yaml: string;
|
|
16
24
|
}
|