@harnessio/react-idp-service-client 0.82.2 → 0.84.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 (22) hide show
  1. package/dist/idp-service/src/services/hooks/useDeleteEntityVersionMutation.d.ts +26 -0
  2. package/dist/idp-service/src/services/hooks/useDeleteEntityVersionMutation.js +14 -0
  3. package/dist/idp-service/src/services/hooks/useGetCheckTagsQuery.d.ts +20 -0
  4. package/dist/idp-service/src/services/hooks/useGetCheckTagsQuery.js +14 -0
  5. package/dist/idp-service/src/services/hooks/useGetEntitiesByRefsMutation.d.ts +1 -0
  6. package/dist/idp-service/src/services/hooks/useGetEntitiesQuery.d.ts +1 -0
  7. package/dist/idp-service/src/services/hooks/useGetEntityQuery.d.ts +1 -0
  8. package/dist/idp-service/src/services/hooks/useGetEntityVersionsQuery.d.ts +1 -0
  9. package/dist/idp-service/src/services/index.d.ts +7 -0
  10. package/dist/idp-service/src/services/index.js +2 -0
  11. package/dist/idp-service/src/services/responses/ChecksTagsResponseResponse.d.ts +2 -0
  12. package/dist/idp-service/src/services/responses/ChecksTagsResponseResponse.js +1 -0
  13. package/dist/idp-service/src/services/schemas/CheckStatus.d.ts +6 -0
  14. package/dist/idp-service/src/services/schemas/CheckStatus.js +0 -3
  15. package/dist/idp-service/src/services/schemas/ChecksTags.d.ts +6 -0
  16. package/dist/idp-service/src/services/schemas/ChecksTags.js +4 -0
  17. package/dist/idp-service/src/services/schemas/EntityVersionCreateRequest.d.ts +4 -0
  18. package/dist/idp-service/src/services/schemas/EntityVersionResponse.d.ts +9 -0
  19. package/dist/idp-service/src/services/schemas/EntityVersionUpdateRequest.d.ts +8 -0
  20. package/dist/idp-service/src/services/schemas/EvaluationData.d.ts +7 -0
  21. package/dist/idp-service/src/services/schemas/EvaluationData.js +4 -0
  22. package/package.json +1 -1
@@ -0,0 +1,26 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface DeleteEntityVersionMutationPathParams {
5
+ scope: string;
6
+ kind: string;
7
+ identifier: string;
8
+ version: string;
9
+ }
10
+ export interface DeleteEntityVersionMutationQueryParams {
11
+ orgIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export interface DeleteEntityVersionMutationHeaderParams {
15
+ 'Harness-Account'?: string;
16
+ }
17
+ export type DeleteEntityVersionOkResponse = ResponseWithPagination<unknown>;
18
+ export type DeleteEntityVersionErrorResponse = unknown;
19
+ export interface DeleteEntityVersionProps extends DeleteEntityVersionMutationPathParams, Omit<FetcherOptions<DeleteEntityVersionMutationQueryParams, unknown, DeleteEntityVersionMutationHeaderParams>, 'url'> {
20
+ queryParams: DeleteEntityVersionMutationQueryParams;
21
+ }
22
+ export declare function deleteEntityVersion(props: DeleteEntityVersionProps): Promise<DeleteEntityVersionOkResponse>;
23
+ /**
24
+ * Delete an EntityVersion
25
+ */
26
+ export declare function useDeleteEntityVersionMutation(options?: Omit<UseMutationOptions<DeleteEntityVersionOkResponse, DeleteEntityVersionErrorResponse, DeleteEntityVersionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteEntityVersionOkResponse, unknown, DeleteEntityVersionProps, 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 deleteEntityVersion(props) {
7
+ return fetcher(Object.assign({ url: `/v1/entities/${props.scope}/${props.kind}/${props.identifier}/versions/${props.version}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete an EntityVersion
11
+ */
12
+ export function useDeleteEntityVersionMutation(options) {
13
+ return useMutation((mutateProps) => deleteEntityVersion(mutateProps), options);
14
+ }
@@ -0,0 +1,20 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChecksTagsResponseResponse } from '../responses/ChecksTagsResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetCheckTagsQueryQueryParams {
6
+ search_term?: string;
7
+ }
8
+ export interface GetCheckTagsQueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetCheckTagsOkResponse = ResponseWithPagination<ChecksTagsResponseResponse>;
12
+ export type GetCheckTagsErrorResponse = unknown;
13
+ export interface GetCheckTagsProps extends Omit<FetcherOptions<GetCheckTagsQueryQueryParams, unknown, GetCheckTagsQueryHeaderParams>, 'url'> {
14
+ queryParams: GetCheckTagsQueryQueryParams;
15
+ }
16
+ export declare function getCheckTags(props: GetCheckTagsProps): Promise<GetCheckTagsOkResponse>;
17
+ /**
18
+ * Get tags for checks
19
+ */
20
+ export declare function useGetCheckTagsQuery(props: GetCheckTagsProps, options?: Omit<UseQueryOptions<GetCheckTagsOkResponse, GetCheckTagsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCheckTagsOkResponse, 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 getCheckTags(props) {
7
+ return fetcher(Object.assign({ url: `/v1/checks/filters/tags`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get tags for checks
11
+ */
12
+ export function useGetCheckTagsQuery(props, options) {
13
+ return useQuery(['get-check-tags', props.queryParams], ({ signal }) => getCheckTags(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -20,6 +20,7 @@ export interface GetEntitiesByRefsMutationQueryParams {
20
20
  lifecycle?: string;
21
21
  tags?: string;
22
22
  filter?: string;
23
+ resolve_placeholders?: boolean;
23
24
  }
24
25
  export interface GetEntitiesByRefsMutationHeaderParams {
25
26
  'Harness-Account'?: string;
@@ -10,6 +10,7 @@ export interface GetEntitiesQueryQueryParams {
10
10
  limit?: number;
11
11
  sort?: string;
12
12
  search_term?: string;
13
+ resolve_placeholders?: boolean;
13
14
  scopes?: string;
14
15
  entity_refs?: string;
15
16
  owned_by_me?: boolean;
@@ -14,6 +14,7 @@ export interface GetEntityQueryQueryParams {
14
14
  connector_ref?: string;
15
15
  repo_name?: string;
16
16
  load_from_fallback_branch?: boolean;
17
+ resolve_placeholders?: boolean;
17
18
  }
18
19
  export interface GetEntityQueryHeaderParams {
19
20
  'Harness-Account'?: string;
@@ -17,6 +17,7 @@ export interface GetEntityVersionsQueryQueryParams {
17
17
  limit?: number;
18
18
  search_term?: string;
19
19
  deprecated?: boolean;
20
+ published?: boolean;
20
21
  }
21
22
  export interface GetEntityVersionsQueryHeaderParams {
22
23
  'Harness-Account'?: string;
@@ -35,6 +35,8 @@ export type { DeleteCustomPluginInfoErrorResponse, DeleteCustomPluginInfoMutatio
35
35
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
36
36
  export type { DeleteEntityErrorResponse, DeleteEntityMutationPathParams, DeleteEntityMutationQueryParams, DeleteEntityOkResponse, DeleteEntityProps, } from './hooks/useDeleteEntityMutation';
37
37
  export { deleteEntity, useDeleteEntityMutation } from './hooks/useDeleteEntityMutation';
38
+ export type { DeleteEntityVersionErrorResponse, DeleteEntityVersionMutationPathParams, DeleteEntityVersionMutationQueryParams, DeleteEntityVersionOkResponse, DeleteEntityVersionProps, } from './hooks/useDeleteEntityVersionMutation';
39
+ export { deleteEntityVersion, useDeleteEntityVersionMutation, } from './hooks/useDeleteEntityVersionMutation';
38
40
  export type { DeleteGroupErrorResponse, DeleteGroupMutationPathParams, DeleteGroupMutationQueryParams, DeleteGroupOkResponse, DeleteGroupProps, } from './hooks/useDeleteGroupMutation';
39
41
  export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
40
42
  export type { DeleteHeadersQuickLinksIconErrorResponse, DeleteHeadersQuickLinksIconMutationPathParams, DeleteHeadersQuickLinksIconOkResponse, DeleteHeadersQuickLinksIconProps, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
@@ -67,6 +69,8 @@ export type { GetCheckErrorResponse, GetCheckOkResponse, GetCheckProps, GetCheck
67
69
  export { getCheck, useGetCheckQuery } from './hooks/useGetCheckQuery';
68
70
  export type { GetCheckStatsErrorResponse, GetCheckStatsOkResponse, GetCheckStatsProps, GetCheckStatsQueryPathParams, GetCheckStatsQueryQueryParams, } from './hooks/useGetCheckStatsQuery';
69
71
  export { getCheckStats, useGetCheckStatsQuery } from './hooks/useGetCheckStatsQuery';
72
+ export type { GetCheckTagsErrorResponse, GetCheckTagsOkResponse, GetCheckTagsProps, GetCheckTagsQueryQueryParams, } from './hooks/useGetCheckTagsQuery';
73
+ export { getCheckTags, useGetCheckTagsQuery } from './hooks/useGetCheckTagsQuery';
70
74
  export type { GetChecksErrorResponse, GetChecksOkResponse, GetChecksProps, GetChecksQueryQueryParams, } from './hooks/useGetChecksQuery';
71
75
  export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
72
76
  export type { GetConnectorInfoErrorResponse, GetConnectorInfoOkResponse, GetConnectorInfoProps, } from './hooks/useGetConnectorInfoQuery';
@@ -241,6 +245,7 @@ export type { CheckDetailsResponseResponse } from './responses/CheckDetailsRespo
241
245
  export type { CheckGraphResponseResponse } from './responses/CheckGraphResponseResponse';
242
246
  export type { CheckResponseListResponse } from './responses/CheckResponseListResponse';
243
247
  export type { CheckStatsResponseResponse } from './responses/CheckStatsResponseResponse';
248
+ export type { ChecksTagsResponseResponse } from './responses/ChecksTagsResponseResponse';
244
249
  export type { ConfigurationEntitiesResponseResponse } from './responses/ConfigurationEntitiesResponseResponse';
245
250
  export type { ConnectorInfoResponseResponse } from './responses/ConnectorInfoResponseResponse';
246
251
  export type { CustomPluginInfoResponseResponse } from './responses/CustomPluginInfoResponseResponse';
@@ -324,6 +329,7 @@ export type { CheckResponse } from './schemas/CheckResponse';
324
329
  export type { CheckStats } from './schemas/CheckStats';
325
330
  export type { CheckStatsResponse } from './schemas/CheckStatsResponse';
326
331
  export type { CheckStatus } from './schemas/CheckStatus';
332
+ export type { ChecksTags } from './schemas/ChecksTags';
327
333
  export type { ConfigurationEntities } from './schemas/ConfigurationEntities';
328
334
  export type { ConnectorDetails } from './schemas/ConnectorDetails';
329
335
  export type { ConnectorInfoRequest } from './schemas/ConnectorInfoRequest';
@@ -362,6 +368,7 @@ export type { EntityUpdateRequest } from './schemas/EntityUpdateRequest';
362
368
  export type { EntityVersionCreateRequest } from './schemas/EntityVersionCreateRequest';
363
369
  export type { EntityVersionResponse } from './schemas/EntityVersionResponse';
364
370
  export type { EntityVersionUpdateRequest } from './schemas/EntityVersionUpdateRequest';
371
+ export type { EvaluationData } from './schemas/EvaluationData';
365
372
  export type { ExportDetails } from './schemas/ExportDetails';
366
373
  export type { Exports } from './schemas/Exports';
367
374
  export type { GenerateYamlRequest } from './schemas/GenerateYamlRequest';
@@ -16,6 +16,7 @@ export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutat
16
16
  export { deleteCustomLinkCardQuickLinks, useDeleteCustomLinkCardQuickLinksMutation, } from './hooks/useDeleteCustomLinkCardQuickLinksMutation';
17
17
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
18
18
  export { deleteEntity, useDeleteEntityMutation } from './hooks/useDeleteEntityMutation';
19
+ export { deleteEntityVersion, useDeleteEntityVersionMutation, } from './hooks/useDeleteEntityVersionMutation';
19
20
  export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
20
21
  export { deleteHeadersQuickLinksIcon, useDeleteHeadersQuickLinksIconMutation, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
21
22
  export { deleteHomePageLayoutCardsIcon, useDeleteHomePageLayoutCardsIconMutation, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
@@ -32,6 +33,7 @@ export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hoo
32
33
  export { getCheckGraph, useGetCheckGraphQuery } from './hooks/useGetCheckGraphQuery';
33
34
  export { getCheck, useGetCheckQuery } from './hooks/useGetCheckQuery';
34
35
  export { getCheckStats, useGetCheckStatsQuery } from './hooks/useGetCheckStatsQuery';
36
+ export { getCheckTags, useGetCheckTagsQuery } from './hooks/useGetCheckTagsQuery';
35
37
  export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
36
38
  export { getConnectorInfo, useGetConnectorInfoQuery } from './hooks/useGetConnectorInfoQuery';
37
39
  export { getCustomPluginStatusLogs, useGetCustomPluginStatusLogsQuery, } from './hooks/useGetCustomPluginStatusLogsQuery';
@@ -0,0 +1,2 @@
1
+ import type { ChecksTags } from '../schemas/ChecksTags';
2
+ export type ChecksTagsResponseResponse = ChecksTags;
@@ -1,11 +1,17 @@
1
+ import type { EvaluationData } from '../schemas/EvaluationData';
1
2
  /**
2
3
  * Info for single check status
3
4
  */
4
5
  export interface CheckStatus {
6
+ checkDescription?: string;
5
7
  custom?: boolean;
8
+ evaluationData?: EvaluationData[];
9
+ expression?: string;
10
+ failureSummary?: string;
6
11
  identifier?: string;
7
12
  name: string;
8
13
  reason?: string;
14
+ ruleStrategy?: string;
9
15
  status: 'FAIL' | 'PASS';
10
16
  weight: number;
11
17
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ *
3
+ */
4
+ export interface ChecksTags {
5
+ tags?: string[];
6
+ }
@@ -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 {};
@@ -10,6 +10,10 @@ export interface EntityVersionCreateRequest {
10
10
  * Description of the EntityVersion. Will inherit the description from the Entity if not provided.
11
11
  */
12
12
  description?: string;
13
+ /**
14
+ * Is the EntityVersion published.
15
+ */
16
+ published?: boolean;
13
17
  /**
14
18
  * Version of the Entity.
15
19
  */
@@ -7,6 +7,10 @@ export interface EntityVersionResponse {
7
7
  */
8
8
  created?: number;
9
9
  deprecated?: boolean;
10
+ /**
11
+ * @format int64
12
+ */
13
+ deprecatedAt?: number;
10
14
  description?: string;
11
15
  identifier: string;
12
16
  kind: 'api' | 'component' | 'environment' | 'environmentblueprint' | 'group' | 'resource' | 'system' | 'user' | 'workflow';
@@ -14,6 +18,11 @@ export interface EntityVersionResponse {
14
18
  org_name?: string;
15
19
  projectIdentifier?: string;
16
20
  project_name?: string;
21
+ published?: boolean;
22
+ /**
23
+ * @format int64
24
+ */
25
+ publishedAt?: number;
17
26
  scope?: 'ACCOUNT' | 'ORGANIZATION' | 'PROJECT';
18
27
  /**
19
28
  * @format int64
@@ -10,4 +10,12 @@ export interface EntityVersionUpdateRequest {
10
10
  * Description of the EntityVersion.
11
11
  */
12
12
  description?: string;
13
+ /**
14
+ * Is the EntityVersion published.
15
+ */
16
+ published?: boolean;
17
+ /**
18
+ * (to be passed as a String).
19
+ */
20
+ yaml?: string;
13
21
  }
@@ -0,0 +1,7 @@
1
+ export interface EvaluationData {
2
+ actualValue?: string;
3
+ expectedValue?: string;
4
+ reason?: string;
5
+ ruleDescription?: string;
6
+ ruleExpression: string;
7
+ }
@@ -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.82.2",
3
+ "version": "0.84.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",