@harnessio/react-idp-service-client 0.88.0 → 0.88.4
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/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 +7 -0
- package/dist/idp-service/src/services/index.js +1 -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/DiscoverEntitiesResponse.d.ts +10 -5
- 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,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
|
+
}
|
|
@@ -117,6 +117,8 @@ export type { GetEntityVersionErrorResponse, GetEntityVersionOkResponse, GetEnti
|
|
|
117
117
|
export { getEntityVersion, useGetEntityVersionQuery } from './hooks/useGetEntityVersionQuery';
|
|
118
118
|
export type { GetEntityVersionsErrorResponse, GetEntityVersionsOkResponse, GetEntityVersionsProps, GetEntityVersionsQueryPathParams, GetEntityVersionsQueryQueryParams, } from './hooks/useGetEntityVersionsQuery';
|
|
119
119
|
export { getEntityVersions, useGetEntityVersionsQuery } from './hooks/useGetEntityVersionsQuery';
|
|
120
|
+
export type { GetEnvironmentBlueprintInfoErrorResponse, GetEnvironmentBlueprintInfoOkResponse, GetEnvironmentBlueprintInfoProps, GetEnvironmentBlueprintInfoRequestBody, } from './hooks/useGetEnvironmentBlueprintInfoMutation';
|
|
121
|
+
export { getEnvironmentBlueprintInfo, useGetEnvironmentBlueprintInfoMutation, } from './hooks/useGetEnvironmentBlueprintInfoMutation';
|
|
120
122
|
export type { GetGroupDetailsErrorResponse, GetGroupDetailsOkResponse, GetGroupDetailsProps, GetGroupDetailsQueryPathParams, GetGroupDetailsQueryQueryParams, } from './hooks/useGetGroupDetailsQuery';
|
|
121
123
|
export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDetailsQuery';
|
|
122
124
|
export type { GetHarnessEntitiesCountErrorResponse, GetHarnessEntitiesCountOkResponse, GetHarnessEntitiesCountProps, } from './hooks/useGetHarnessEntitiesCountQuery';
|
|
@@ -239,6 +241,7 @@ export type { EntityTableCreateOrUpdateRequestBodyRequestBody } from './requestB
|
|
|
239
241
|
export type { EntityUpdateRequestBodyRequestBody } from './requestBodies/EntityUpdateRequestBodyRequestBody';
|
|
240
242
|
export type { EntityVersionCreateRequestBodyRequestBody } from './requestBodies/EntityVersionCreateRequestBodyRequestBody';
|
|
241
243
|
export type { EntityVersionUpdateRequestBodyRequestBody } from './requestBodies/EntityVersionUpdateRequestBodyRequestBody';
|
|
244
|
+
export type { EnvironmentBlueprintInfoRequestRequestBody } from './requestBodies/EnvironmentBlueprintInfoRequestRequestBody';
|
|
242
245
|
export type { GenerateYamlRequestRequestBody } from './requestBodies/GenerateYamlRequestRequestBody';
|
|
243
246
|
export type { GitImportRequestBodyRequestBody } from './requestBodies/GitImportRequestBodyRequestBody';
|
|
244
247
|
export type { GitMetadataUpdateRequestBodyRequestBody } from './requestBodies/GitMetadataUpdateRequestBodyRequestBody';
|
|
@@ -292,6 +295,7 @@ export type { EntityTableResponseBodyListResponse } from './responses/EntityTabl
|
|
|
292
295
|
export type { EntityTableResponseBodyResponse } from './responses/EntityTableResponseBodyResponse';
|
|
293
296
|
export type { EntityVersionResponseBodyListResponse } from './responses/EntityVersionResponseBodyListResponse';
|
|
294
297
|
export type { EntityVersionResponseBodyResponse } from './responses/EntityVersionResponseBodyResponse';
|
|
298
|
+
export type { EnvironmentBlueprintInfoResponseResponse } from './responses/EnvironmentBlueprintInfoResponseResponse';
|
|
295
299
|
export type { GenerateYamlResponseResponse } from './responses/GenerateYamlResponseResponse';
|
|
296
300
|
export type { GroupResponseListResponse } from './responses/GroupResponseListResponse';
|
|
297
301
|
export type { GroupResponseResponse } from './responses/GroupResponseResponse';
|
|
@@ -410,6 +414,9 @@ export type { EntityUpdateRequest } from './schemas/EntityUpdateRequest';
|
|
|
410
414
|
export type { EntityVersionCreateRequest } from './schemas/EntityVersionCreateRequest';
|
|
411
415
|
export type { EntityVersionResponse } from './schemas/EntityVersionResponse';
|
|
412
416
|
export type { EntityVersionUpdateRequest } from './schemas/EntityVersionUpdateRequest';
|
|
417
|
+
export type { EnvironmentBluePrintInfoResponse } from './schemas/EnvironmentBluePrintInfoResponse';
|
|
418
|
+
export type { EnvironmentBluePrintVersionInfo } from './schemas/EnvironmentBluePrintVersionInfo';
|
|
419
|
+
export type { EnvironmentBlueprintInfoRequest } from './schemas/EnvironmentBlueprintInfoRequest';
|
|
413
420
|
export type { EvaluationData } from './schemas/EvaluationData';
|
|
414
421
|
export type { ExportDetails } from './schemas/ExportDetails';
|
|
415
422
|
export type { Exports } from './schemas/Exports';
|
|
@@ -57,6 +57,7 @@ export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQu
|
|
|
57
57
|
export { getEntityTables, useGetEntityTablesQuery } from './hooks/useGetEntityTablesQuery';
|
|
58
58
|
export { getEntityVersion, useGetEntityVersionQuery } from './hooks/useGetEntityVersionQuery';
|
|
59
59
|
export { getEntityVersions, useGetEntityVersionsQuery } from './hooks/useGetEntityVersionsQuery';
|
|
60
|
+
export { getEnvironmentBlueprintInfo, useGetEnvironmentBlueprintInfoMutation, } from './hooks/useGetEnvironmentBlueprintInfoMutation';
|
|
60
61
|
export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDetailsQuery';
|
|
61
62
|
export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
|
|
62
63
|
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,9 +1,14 @@
|
|
|
1
1
|
export interface DiscoverEntitiesResponse {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
action_destination: {
|
|
3
|
+
default_action?: 'MERGE' | 'REGISTER';
|
|
4
|
+
merge?: Array<{
|
|
5
|
+
entity_ref?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
}>;
|
|
8
|
+
register?: {
|
|
9
|
+
name?: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
7
12
|
/**
|
|
8
13
|
* @format int64
|
|
9
14
|
*/
|
|
@@ -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 {};
|