@harnessio/react-idp-service-client 0.80.0 → 0.82.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 (23) hide show
  1. package/dist/idp-service/src/services/hooks/useGetEntitiesByRefsMutation.d.ts +1 -0
  2. package/dist/idp-service/src/services/hooks/useGetEntitiesQuery.d.ts +1 -0
  3. package/dist/idp-service/src/services/hooks/useGetEntityTablesQuery.d.ts +20 -0
  4. package/dist/idp-service/src/services/hooks/useGetEntityTablesQuery.js +14 -0
  5. package/dist/idp-service/src/services/hooks/useUpdateEntityVersionMutation.d.ts +30 -0
  6. package/dist/idp-service/src/services/hooks/useUpdateEntityVersionMutation.js +14 -0
  7. package/dist/idp-service/src/services/index.d.ts +9 -0
  8. package/dist/idp-service/src/services/index.js +2 -0
  9. package/dist/idp-service/src/services/requestBodies/EntityVersionUpdateRequestBodyRequestBody.d.ts +2 -0
  10. package/dist/idp-service/src/services/requestBodies/EntityVersionUpdateRequestBodyRequestBody.js +1 -0
  11. package/dist/idp-service/src/services/responses/EntityTableResponseBodyListResponse.d.ts +2 -0
  12. package/dist/idp-service/src/services/responses/EntityTableResponseBodyListResponse.js +1 -0
  13. package/dist/idp-service/src/services/schemas/Check.d.ts +1 -0
  14. package/dist/idp-service/src/services/schemas/CheckDetails.d.ts +2 -2
  15. package/dist/idp-service/src/services/schemas/EntityColumnDetails.d.ts +14 -0
  16. package/dist/idp-service/src/services/schemas/EntityColumnDetails.js +4 -0
  17. package/dist/idp-service/src/services/schemas/EntityTableResponse.d.ts +19 -0
  18. package/dist/idp-service/src/services/schemas/EntityTableResponse.js +1 -0
  19. package/dist/idp-service/src/services/schemas/EntityVersionResponse.d.ts +8 -0
  20. package/dist/idp-service/src/services/schemas/EntityVersionUpdateRequest.d.ts +13 -0
  21. package/dist/idp-service/src/services/schemas/EntityVersionUpdateRequest.js +4 -0
  22. package/dist/idp-service/src/services/schemas/Rule.d.ts +1 -0
  23. package/package.json +1 -1
@@ -19,6 +19,7 @@ export interface GetEntitiesByRefsMutationQueryParams {
19
19
  owner?: string;
20
20
  lifecycle?: string;
21
21
  tags?: string;
22
+ filter?: string;
22
23
  }
23
24
  export interface GetEntitiesByRefsMutationHeaderParams {
24
25
  'Harness-Account'?: string;
@@ -19,6 +19,7 @@ export interface GetEntitiesQueryQueryParams {
19
19
  owner?: string;
20
20
  lifecycle?: string;
21
21
  tags?: string;
22
+ filter?: string;
22
23
  }
23
24
  export interface GetEntitiesQueryHeaderParams {
24
25
  'Harness-Account'?: string;
@@ -0,0 +1,20 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { EntityTableResponseBodyListResponse } from '../responses/EntityTableResponseBodyListResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetEntityTablesQueryQueryParams {
6
+ kind?: string;
7
+ }
8
+ export interface GetEntityTablesQueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetEntityTablesOkResponse = ResponseWithPagination<EntityTableResponseBodyListResponse>;
12
+ export type GetEntityTablesErrorResponse = unknown;
13
+ export interface GetEntityTablesProps extends Omit<FetcherOptions<GetEntityTablesQueryQueryParams, unknown, GetEntityTablesQueryHeaderParams>, 'url'> {
14
+ queryParams: GetEntityTablesQueryQueryParams;
15
+ }
16
+ export declare function getEntityTables(props: GetEntityTablesProps): Promise<GetEntityTablesOkResponse>;
17
+ /**
18
+ * Get Entity Tables.
19
+ */
20
+ export declare function useGetEntityTablesQuery(props: GetEntityTablesProps, options?: Omit<UseQueryOptions<GetEntityTablesOkResponse, GetEntityTablesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEntityTablesOkResponse, 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/index.js';
6
+ export function getEntityTables(props) {
7
+ return fetcher(Object.assign({ url: `/v1/entities/tables`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Entity Tables.
11
+ */
12
+ export function useGetEntityTablesQuery(props, options) {
13
+ return useQuery(['get-entity-tables', props.queryParams], ({ signal }) => getEntityTables(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -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
+ }
@@ -95,6 +95,8 @@ export type { GetEntityErrorResponse, GetEntityOkResponse, GetEntityProps, GetEn
95
95
  export { getEntity, useGetEntityQuery } from './hooks/useGetEntityQuery';
96
96
  export type { GetEntityRefsErrorResponse, GetEntityRefsOkResponse, GetEntityRefsProps, GetEntityRefsQueryQueryParams, } from './hooks/useGetEntityRefsQuery';
97
97
  export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQuery';
98
+ export type { GetEntityTablesErrorResponse, GetEntityTablesOkResponse, GetEntityTablesProps, GetEntityTablesQueryQueryParams, } from './hooks/useGetEntityTablesQuery';
99
+ export { getEntityTables, useGetEntityTablesQuery } from './hooks/useGetEntityTablesQuery';
98
100
  export type { GetEntityVersionErrorResponse, GetEntityVersionOkResponse, GetEntityVersionProps, GetEntityVersionQueryPathParams, GetEntityVersionQueryQueryParams, } from './hooks/useGetEntityVersionQuery';
99
101
  export { getEntityVersion, useGetEntityVersionQuery } from './hooks/useGetEntityVersionQuery';
100
102
  export type { GetEntityVersionsErrorResponse, GetEntityVersionsOkResponse, GetEntityVersionsProps, GetEntityVersionsQueryPathParams, GetEntityVersionsQueryQueryParams, } from './hooks/useGetEntityVersionsQuery';
@@ -181,6 +183,8 @@ export type { UpdateCustomPluginsInfoErrorResponse, UpdateCustomPluginsInfoMutat
181
183
  export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
182
184
  export type { UpdateEntityErrorResponse, UpdateEntityMutationPathParams, UpdateEntityMutationQueryParams, UpdateEntityOkResponse, UpdateEntityProps, UpdateEntityRequestBody, } from './hooks/useUpdateEntityMutation';
183
185
  export { updateEntity, useUpdateEntityMutation } from './hooks/useUpdateEntityMutation';
186
+ export type { UpdateEntityVersionErrorResponse, UpdateEntityVersionMutationPathParams, UpdateEntityVersionMutationQueryParams, UpdateEntityVersionOkResponse, UpdateEntityVersionProps, UpdateEntityVersionRequestBody, } from './hooks/useUpdateEntityVersionMutation';
187
+ export { updateEntityVersion, useUpdateEntityVersionMutation, } from './hooks/useUpdateEntityVersionMutation';
184
188
  export type { UpdateGitMetadataErrorResponse, UpdateGitMetadataMutationPathParams, UpdateGitMetadataMutationQueryParams, UpdateGitMetadataOkResponse, UpdateGitMetadataProps, UpdateGitMetadataRequestBody, } from './hooks/useUpdateGitMetadataMutation';
185
189
  export { updateGitMetadata, useUpdateGitMetadataMutation, } from './hooks/useUpdateGitMetadataMutation';
186
190
  export type { UpdateGroupsErrorResponse, UpdateGroupsMutationQueryParams, UpdateGroupsOkResponse, UpdateGroupsProps, UpdateGroupsRequestBody, } from './hooks/useUpdateGroupsMutation';
@@ -205,6 +209,7 @@ export type { EntityMoveRequestBodyRequestBody } from './requestBodies/EntityMov
205
209
  export type { EntityRequestBodyRequestBody } from './requestBodies/EntityRequestBodyRequestBody';
206
210
  export type { EntityUpdateRequestBodyRequestBody } from './requestBodies/EntityUpdateRequestBodyRequestBody';
207
211
  export type { EntityVersionCreateRequestBodyRequestBody } from './requestBodies/EntityVersionCreateRequestBodyRequestBody';
212
+ export type { EntityVersionUpdateRequestBodyRequestBody } from './requestBodies/EntityVersionUpdateRequestBodyRequestBody';
208
213
  export type { GenerateYamlRequestRequestBody } from './requestBodies/GenerateYamlRequestRequestBody';
209
214
  export type { GitImportRequestBodyRequestBody } from './requestBodies/GitImportRequestBodyRequestBody';
210
215
  export type { GitMetadataUpdateRequestBodyRequestBody } from './requestBodies/GitMetadataUpdateRequestBodyRequestBody';
@@ -246,6 +251,7 @@ export type { EntityKindsResponseBodyResponse } from './responses/EntityKindsRes
246
251
  export type { EntityRefsResponseResponse } from './responses/EntityRefsResponseResponse';
247
252
  export type { EntityResponseBodyListResponse } from './responses/EntityResponseBodyListResponse';
248
253
  export type { EntityResponseBodyResponse } from './responses/EntityResponseBodyResponse';
254
+ export type { EntityTableResponseBodyListResponse } from './responses/EntityTableResponseBodyListResponse';
249
255
  export type { EntityVersionResponseBodyListResponse } from './responses/EntityVersionResponseBodyListResponse';
250
256
  export type { EntityVersionResponseBodyResponse } from './responses/EntityVersionResponseBodyResponse';
251
257
  export type { GenerateYamlResponseResponse } from './responses/GenerateYamlResponseResponse';
@@ -330,6 +336,7 @@ export type { EntitiesByRefsRequest } from './schemas/EntitiesByRefsRequest';
330
336
  export type { EntitiesForImport } from './schemas/EntitiesForImport';
331
337
  export type { EntitiesGroups } from './schemas/EntitiesGroups';
332
338
  export type { EntitiesGroupsResponse } from './schemas/EntitiesGroupsResponse';
339
+ export type { EntityColumnDetails } from './schemas/EntityColumnDetails';
333
340
  export type { EntityConvertResponse } from './schemas/EntityConvertResponse';
334
341
  export type { EntityCreateRequest } from './schemas/EntityCreateRequest';
335
342
  export type { EntityFilterQueryRequest } from './schemas/EntityFilterQueryRequest';
@@ -341,9 +348,11 @@ export type { EntityMoveRequest } from './schemas/EntityMoveRequest';
341
348
  export type { EntityRefs } from './schemas/EntityRefs';
342
349
  export type { EntityRequest } from './schemas/EntityRequest';
343
350
  export type { EntityResponse } from './schemas/EntityResponse';
351
+ export type { EntityTableResponse } from './schemas/EntityTableResponse';
344
352
  export type { EntityUpdateRequest } from './schemas/EntityUpdateRequest';
345
353
  export type { EntityVersionCreateRequest } from './schemas/EntityVersionCreateRequest';
346
354
  export type { EntityVersionResponse } from './schemas/EntityVersionResponse';
355
+ export type { EntityVersionUpdateRequest } from './schemas/EntityVersionUpdateRequest';
347
356
  export type { ExportDetails } from './schemas/ExportDetails';
348
357
  export type { Exports } from './schemas/Exports';
349
358
  export type { GenerateYamlRequest } from './schemas/GenerateYamlRequest';
@@ -46,6 +46,7 @@ export { getEntities, useGetEntitiesQuery } from './hooks/useGetEntitiesQuery';
46
46
  export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
47
47
  export { getEntity, useGetEntityQuery } from './hooks/useGetEntityQuery';
48
48
  export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQuery';
49
+ export { getEntityTables, useGetEntityTablesQuery } from './hooks/useGetEntityTablesQuery';
49
50
  export { getEntityVersion, useGetEntityVersionQuery } from './hooks/useGetEntityVersionQuery';
50
51
  export { getEntityVersions, useGetEntityVersionsQuery } from './hooks/useGetEntityVersionsQuery';
51
52
  export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDetailsQuery';
@@ -89,6 +90,7 @@ export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutat
89
90
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
90
91
  export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
91
92
  export { updateEntity, useUpdateEntityMutation } from './hooks/useUpdateEntityMutation';
93
+ export { updateEntityVersion, useUpdateEntityVersionMutation, } from './hooks/useUpdateEntityVersionMutation';
92
94
  export { updateGitMetadata, useUpdateGitMetadataMutation, } from './hooks/useUpdateGitMetadataMutation';
93
95
  export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
94
96
  export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
@@ -0,0 +1,2 @@
1
+ import type { EntityVersionUpdateRequest } from '../schemas/EntityVersionUpdateRequest';
2
+ export type EntityVersionUpdateRequestBodyRequestBody = EntityVersionUpdateRequest;
@@ -0,0 +1,2 @@
1
+ import type { EntityTableResponse } from '../schemas/EntityTableResponse';
2
+ export type EntityTableResponseBodyListResponse = EntityTableResponse[];
@@ -7,5 +7,6 @@ export interface Check {
7
7
  expression?: string;
8
8
  identifier: string;
9
9
  name: string;
10
+ rule_description?: string;
10
11
  tags?: string[];
11
12
  }
@@ -8,6 +8,6 @@ export interface CheckDetails extends Check {
8
8
  * @format double
9
9
  */
10
10
  percentage?: number;
11
- rule_strategy: 'ALL_OF' | 'ANY_OF';
12
- rules: Rule[];
11
+ rule_strategy: 'ADVANCED' | 'ALL_OF' | 'ANY_OF';
12
+ rules?: Rule[];
13
13
  }
@@ -0,0 +1,14 @@
1
+ export interface EntityColumnDetails {
2
+ accessor_key: string;
3
+ description?: string;
4
+ harness_managed?: boolean;
5
+ header_name: string;
6
+ id: string;
7
+ pinned?: string;
8
+ properties?: {
9
+ [key: string]: any;
10
+ };
11
+ size: number;
12
+ type: string;
13
+ visible?: boolean;
14
+ }
@@ -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,19 @@
1
+ import type { EntityColumnDetails } from '../schemas/EntityColumnDetails';
2
+ /**
3
+ * Entity Table Response
4
+ */
5
+ export interface EntityTableResponse {
6
+ column_details?: EntityColumnDetails[];
7
+ /**
8
+ * Identifier of the entity table.
9
+ */
10
+ identifier?: string;
11
+ /**
12
+ * Kind of the entity table.
13
+ */
14
+ kind?: string;
15
+ /**
16
+ * Name of the entity table.
17
+ */
18
+ name?: string;
19
+ }
@@ -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 {};
@@ -5,5 +5,6 @@ export interface Rule {
5
5
  identifier?: string;
6
6
  input_values?: InputValue[];
7
7
  operator: string;
8
+ rule_description?: string;
8
9
  value?: string;
9
10
  }
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.82.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",