@harnessio/react-idp-service-client 0.80.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.
@@ -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
+ }
@@ -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';
@@ -0,0 +1,2 @@
1
+ import type { EntityVersionUpdateRequest } from '../schemas/EntityVersionUpdateRequest';
2
+ export type EntityVersionUpdateRequestBodyRequestBody = EntityVersionUpdateRequest;
@@ -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
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Entity Version Update Request Body
3
+ */
4
+ export interface EntityVersionUpdateRequest {
5
+ /**
6
+ * Is the EntityVersion deprecated.
7
+ */
8
+ deprecated?: boolean;
9
+ /**
10
+ * Description of the EntityVersion.
11
+ */
12
+ description?: 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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.80.0",
3
+ "version": "0.81.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",