@harnessio/react-idp-service-client 0.88.1 → 0.88.5
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/useGetBlueprintEnvironmentsQuery.d.ts +29 -0
- package/dist/idp-service/src/services/hooks/useGetBlueprintEnvironmentsQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useGetEnvironmentBlueprintInfoMutation.d.ts +19 -0
- package/dist/idp-service/src/services/hooks/useGetEnvironmentBlueprintInfoMutation.js +14 -0
- package/dist/idp-service/src/services/index.d.ts +9 -0
- package/dist/idp-service/src/services/index.js +2 -0
- package/dist/idp-service/src/services/requestBodies/EnvironmentBlueprintInfoRequestRequestBody.d.ts +2 -0
- package/dist/idp-service/src/services/requestBodies/EnvironmentBlueprintInfoRequestRequestBody.js +1 -0
- package/dist/idp-service/src/services/responses/EnvironmentBlueprintInfoResponseResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/EnvironmentBlueprintInfoResponseResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/AggFormula.d.ts +1 -1
- package/dist/idp-service/src/services/schemas/EnvironmentBluePrintInfoResponse.d.ts +7 -0
- package/dist/idp-service/src/services/schemas/EnvironmentBluePrintInfoResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/EnvironmentBluePrintVersionInfo.d.ts +8 -0
- package/dist/idp-service/src/services/schemas/EnvironmentBluePrintVersionInfo.js +4 -0
- package/dist/idp-service/src/services/schemas/EnvironmentBlueprintInfoRequest.d.ts +3 -0
- package/dist/idp-service/src/services/schemas/EnvironmentBlueprintInfoRequest.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityResponseBodyListResponse } from '../responses/EntityResponseBodyListResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetBlueprintEnvironmentsQueryPathParams {
|
|
6
|
+
identifier: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetBlueprintEnvironmentsQueryQueryParams {
|
|
9
|
+
page?: number;
|
|
10
|
+
/**
|
|
11
|
+
* @default 10
|
|
12
|
+
*/
|
|
13
|
+
limit?: number;
|
|
14
|
+
sort?: string;
|
|
15
|
+
search_term?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface GetBlueprintEnvironmentsQueryHeaderParams {
|
|
18
|
+
'Harness-Account'?: string;
|
|
19
|
+
}
|
|
20
|
+
export type GetBlueprintEnvironmentsOkResponse = ResponseWithPagination<EntityResponseBodyListResponse>;
|
|
21
|
+
export type GetBlueprintEnvironmentsErrorResponse = unknown;
|
|
22
|
+
export interface GetBlueprintEnvironmentsProps extends GetBlueprintEnvironmentsQueryPathParams, Omit<FetcherOptions<GetBlueprintEnvironmentsQueryQueryParams, unknown, GetBlueprintEnvironmentsQueryHeaderParams>, 'url'> {
|
|
23
|
+
queryParams: GetBlueprintEnvironmentsQueryQueryParams;
|
|
24
|
+
}
|
|
25
|
+
export declare function getBlueprintEnvironments(props: GetBlueprintEnvironmentsProps): Promise<GetBlueprintEnvironmentsOkResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Returns a paginated list of environments that reference the specified environment blueprint
|
|
28
|
+
*/
|
|
29
|
+
export declare function useGetBlueprintEnvironmentsQuery(props: GetBlueprintEnvironmentsProps, options?: Omit<UseQueryOptions<GetBlueprintEnvironmentsOkResponse, GetBlueprintEnvironmentsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetBlueprintEnvironmentsOkResponse, 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 getBlueprintEnvironments(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/environment-blueprints/${props.identifier}/environments`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of environments that reference the specified environment blueprint
|
|
11
|
+
*/
|
|
12
|
+
export function useGetBlueprintEnvironmentsQuery(props, options) {
|
|
13
|
+
return useQuery(['get-blueprint-environments', props.identifier, props.queryParams], ({ signal }) => getBlueprintEnvironments(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EnvironmentBlueprintInfoResponseResponse } from '../responses/EnvironmentBlueprintInfoResponseResponse';
|
|
3
|
+
import type { EnvironmentBlueprintInfoRequestRequestBody } from '../requestBodies/EnvironmentBlueprintInfoRequestRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetEnvironmentBlueprintInfoMutationHeaderParams {
|
|
7
|
+
'Harness-Account'?: string;
|
|
8
|
+
}
|
|
9
|
+
export type GetEnvironmentBlueprintInfoRequestBody = EnvironmentBlueprintInfoRequestRequestBody;
|
|
10
|
+
export type GetEnvironmentBlueprintInfoOkResponse = ResponseWithPagination<EnvironmentBlueprintInfoResponseResponse>;
|
|
11
|
+
export type GetEnvironmentBlueprintInfoErrorResponse = unknown;
|
|
12
|
+
export interface GetEnvironmentBlueprintInfoProps extends Omit<FetcherOptions<unknown, GetEnvironmentBlueprintInfoRequestBody, GetEnvironmentBlueprintInfoMutationHeaderParams>, 'url'> {
|
|
13
|
+
body: GetEnvironmentBlueprintInfoRequestBody;
|
|
14
|
+
}
|
|
15
|
+
export declare function getEnvironmentBlueprintInfo(props: GetEnvironmentBlueprintInfoProps): Promise<GetEnvironmentBlueprintInfoOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get Environment Blueprint Info
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGetEnvironmentBlueprintInfoMutation(options?: Omit<UseMutationOptions<GetEnvironmentBlueprintInfoOkResponse, GetEnvironmentBlueprintInfoErrorResponse, GetEnvironmentBlueprintInfoProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetEnvironmentBlueprintInfoOkResponse, unknown, GetEnvironmentBlueprintInfoProps, 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 getEnvironmentBlueprintInfo(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/environment-blueprint`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Environment Blueprint Info
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEnvironmentBlueprintInfoMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => getEnvironmentBlueprintInfo(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -73,6 +73,8 @@ export type { GetAuthInfoAuthIdErrorResponse, GetAuthInfoAuthIdOkResponse, GetAu
|
|
|
73
73
|
export { getAuthInfoAuthId, useGetAuthInfoAuthIdQuery } from './hooks/useGetAuthInfoAuthIdQuery';
|
|
74
74
|
export type { GetBackstagePermissionsErrorResponse, GetBackstagePermissionsOkResponse, GetBackstagePermissionsProps, } from './hooks/useGetBackstagePermissionsQuery';
|
|
75
75
|
export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
|
|
76
|
+
export type { GetBlueprintEnvironmentsErrorResponse, GetBlueprintEnvironmentsOkResponse, GetBlueprintEnvironmentsProps, GetBlueprintEnvironmentsQueryPathParams, GetBlueprintEnvironmentsQueryQueryParams, } from './hooks/useGetBlueprintEnvironmentsQuery';
|
|
77
|
+
export { getBlueprintEnvironments, useGetBlueprintEnvironmentsQuery, } from './hooks/useGetBlueprintEnvironmentsQuery';
|
|
76
78
|
export type { GetCheckGraphErrorResponse, GetCheckGraphOkResponse, GetCheckGraphProps, GetCheckGraphQueryPathParams, GetCheckGraphQueryQueryParams, } from './hooks/useGetCheckGraphQuery';
|
|
77
79
|
export { getCheckGraph, useGetCheckGraphQuery } from './hooks/useGetCheckGraphQuery';
|
|
78
80
|
export type { GetCheckErrorResponse, GetCheckOkResponse, GetCheckProps, GetCheckQueryPathParams, GetCheckQueryQueryParams, } from './hooks/useGetCheckQuery';
|
|
@@ -117,6 +119,8 @@ export type { GetEntityVersionErrorResponse, GetEntityVersionOkResponse, GetEnti
|
|
|
117
119
|
export { getEntityVersion, useGetEntityVersionQuery } from './hooks/useGetEntityVersionQuery';
|
|
118
120
|
export type { GetEntityVersionsErrorResponse, GetEntityVersionsOkResponse, GetEntityVersionsProps, GetEntityVersionsQueryPathParams, GetEntityVersionsQueryQueryParams, } from './hooks/useGetEntityVersionsQuery';
|
|
119
121
|
export { getEntityVersions, useGetEntityVersionsQuery } from './hooks/useGetEntityVersionsQuery';
|
|
122
|
+
export type { GetEnvironmentBlueprintInfoErrorResponse, GetEnvironmentBlueprintInfoOkResponse, GetEnvironmentBlueprintInfoProps, GetEnvironmentBlueprintInfoRequestBody, } from './hooks/useGetEnvironmentBlueprintInfoMutation';
|
|
123
|
+
export { getEnvironmentBlueprintInfo, useGetEnvironmentBlueprintInfoMutation, } from './hooks/useGetEnvironmentBlueprintInfoMutation';
|
|
120
124
|
export type { GetGroupDetailsErrorResponse, GetGroupDetailsOkResponse, GetGroupDetailsProps, GetGroupDetailsQueryPathParams, GetGroupDetailsQueryQueryParams, } from './hooks/useGetGroupDetailsQuery';
|
|
121
125
|
export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDetailsQuery';
|
|
122
126
|
export type { GetHarnessEntitiesCountErrorResponse, GetHarnessEntitiesCountOkResponse, GetHarnessEntitiesCountProps, } from './hooks/useGetHarnessEntitiesCountQuery';
|
|
@@ -239,6 +243,7 @@ export type { EntityTableCreateOrUpdateRequestBodyRequestBody } from './requestB
|
|
|
239
243
|
export type { EntityUpdateRequestBodyRequestBody } from './requestBodies/EntityUpdateRequestBodyRequestBody';
|
|
240
244
|
export type { EntityVersionCreateRequestBodyRequestBody } from './requestBodies/EntityVersionCreateRequestBodyRequestBody';
|
|
241
245
|
export type { EntityVersionUpdateRequestBodyRequestBody } from './requestBodies/EntityVersionUpdateRequestBodyRequestBody';
|
|
246
|
+
export type { EnvironmentBlueprintInfoRequestRequestBody } from './requestBodies/EnvironmentBlueprintInfoRequestRequestBody';
|
|
242
247
|
export type { GenerateYamlRequestRequestBody } from './requestBodies/GenerateYamlRequestRequestBody';
|
|
243
248
|
export type { GitImportRequestBodyRequestBody } from './requestBodies/GitImportRequestBodyRequestBody';
|
|
244
249
|
export type { GitMetadataUpdateRequestBodyRequestBody } from './requestBodies/GitMetadataUpdateRequestBodyRequestBody';
|
|
@@ -292,6 +297,7 @@ export type { EntityTableResponseBodyListResponse } from './responses/EntityTabl
|
|
|
292
297
|
export type { EntityTableResponseBodyResponse } from './responses/EntityTableResponseBodyResponse';
|
|
293
298
|
export type { EntityVersionResponseBodyListResponse } from './responses/EntityVersionResponseBodyListResponse';
|
|
294
299
|
export type { EntityVersionResponseBodyResponse } from './responses/EntityVersionResponseBodyResponse';
|
|
300
|
+
export type { EnvironmentBlueprintInfoResponseResponse } from './responses/EnvironmentBlueprintInfoResponseResponse';
|
|
295
301
|
export type { GenerateYamlResponseResponse } from './responses/GenerateYamlResponseResponse';
|
|
296
302
|
export type { GroupResponseListResponse } from './responses/GroupResponseListResponse';
|
|
297
303
|
export type { GroupResponseResponse } from './responses/GroupResponseResponse';
|
|
@@ -410,6 +416,9 @@ export type { EntityUpdateRequest } from './schemas/EntityUpdateRequest';
|
|
|
410
416
|
export type { EntityVersionCreateRequest } from './schemas/EntityVersionCreateRequest';
|
|
411
417
|
export type { EntityVersionResponse } from './schemas/EntityVersionResponse';
|
|
412
418
|
export type { EntityVersionUpdateRequest } from './schemas/EntityVersionUpdateRequest';
|
|
419
|
+
export type { EnvironmentBluePrintInfoResponse } from './schemas/EnvironmentBluePrintInfoResponse';
|
|
420
|
+
export type { EnvironmentBluePrintVersionInfo } from './schemas/EnvironmentBluePrintVersionInfo';
|
|
421
|
+
export type { EnvironmentBlueprintInfoRequest } from './schemas/EnvironmentBlueprintInfoRequest';
|
|
413
422
|
export type { EvaluationData } from './schemas/EvaluationData';
|
|
414
423
|
export type { ExportDetails } from './schemas/ExportDetails';
|
|
415
424
|
export type { Exports } from './schemas/Exports';
|
|
@@ -35,6 +35,7 @@ export { getAllLayoutsV2, useGetAllLayoutsV2Query } from './hooks/useGetAllLayou
|
|
|
35
35
|
export { getAllowList, useGetAllowListQuery } from './hooks/useGetAllowListQuery';
|
|
36
36
|
export { getAuthInfoAuthId, useGetAuthInfoAuthIdQuery } from './hooks/useGetAuthInfoAuthIdQuery';
|
|
37
37
|
export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
|
|
38
|
+
export { getBlueprintEnvironments, useGetBlueprintEnvironmentsQuery, } from './hooks/useGetBlueprintEnvironmentsQuery';
|
|
38
39
|
export { getCheckGraph, useGetCheckGraphQuery } from './hooks/useGetCheckGraphQuery';
|
|
39
40
|
export { getCheck, useGetCheckQuery } from './hooks/useGetCheckQuery';
|
|
40
41
|
export { getCheckStats, useGetCheckStatsQuery } from './hooks/useGetCheckStatsQuery';
|
|
@@ -57,6 +58,7 @@ export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQu
|
|
|
57
58
|
export { getEntityTables, useGetEntityTablesQuery } from './hooks/useGetEntityTablesQuery';
|
|
58
59
|
export { getEntityVersion, useGetEntityVersionQuery } from './hooks/useGetEntityVersionQuery';
|
|
59
60
|
export { getEntityVersions, useGetEntityVersionsQuery } from './hooks/useGetEntityVersionsQuery';
|
|
61
|
+
export { getEnvironmentBlueprintInfo, useGetEnvironmentBlueprintInfoMutation, } from './hooks/useGetEnvironmentBlueprintInfoMutation';
|
|
60
62
|
export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDetailsQuery';
|
|
61
63
|
export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
|
|
62
64
|
export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
|
package/dist/idp-service/src/services/requestBodies/EnvironmentBlueprintInfoRequestRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type AggFormula = 'AVG' | 'COUNT' | 'MAX' | 'MIN' | 'SUM';
|
|
1
|
+
export type AggFormula = 'AVG' | 'COUNT' | 'MAX' | 'MEDIAN' | 'MIN' | 'SUM';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EnvironmentBluePrintVersionInfo } from '../schemas/EnvironmentBluePrintVersionInfo';
|
|
2
|
+
export interface EnvironmentBluePrintInfoResponse {
|
|
3
|
+
environment_blueprint_identifier?: string;
|
|
4
|
+
referenced_by_environments_count?: number;
|
|
5
|
+
referenced_by_environments_refs?: string[];
|
|
6
|
+
versions?: EnvironmentBluePrintVersionInfo[];
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|