@harnessio/react-idp-service-client 0.89.0 → 0.90.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.
- package/dist/idp-service/src/services/hooks/useCreateCompileAndExecuteEnvironmentMutation.d.ts +24 -0
- package/dist/idp-service/src/services/hooks/useCreateCompileAndExecuteEnvironmentMutation.js +14 -0
- package/dist/idp-service/src/services/hooks/useDiscoverEntitiesQuery.d.ts +2 -0
- package/dist/idp-service/src/services/hooks/useSaveDiscoverEntitiesMutation.d.ts +6 -1
- package/dist/idp-service/src/services/hooks/useUnlinkIntegrationEntitiesMutation.d.ts +6 -1
- package/dist/idp-service/src/services/index.d.ts +5 -2
- package/dist/idp-service/src/services/index.js +1 -0
- package/dist/idp-service/src/services/schemas/EnvironmentProxyCreateRequest.d.ts +29 -0
- package/dist/idp-service/src/services/schemas/EnvironmentProxyCreateRequest.js +4 -0
- package/package.json +1 -1
package/dist/idp-service/src/services/hooks/useCreateCompileAndExecuteEnvironmentMutation.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EnvironmentProxyCreateRequest } from '../schemas/EnvironmentProxyCreateRequest';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
5
|
+
export interface CreateCompileAndExecuteEnvironmentMutationQueryParams {
|
|
6
|
+
orgIdentifier?: string;
|
|
7
|
+
projectIdentifier?: string;
|
|
8
|
+
dryRun?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface CreateCompileAndExecuteEnvironmentMutationHeaderParams {
|
|
11
|
+
'Harness-Account'?: string;
|
|
12
|
+
}
|
|
13
|
+
export type CreateCompileAndExecuteEnvironmentRequestBody = EnvironmentProxyCreateRequest;
|
|
14
|
+
export type CreateCompileAndExecuteEnvironmentOkResponse = ResponseWithPagination<unknown>;
|
|
15
|
+
export type CreateCompileAndExecuteEnvironmentErrorResponse = unknown;
|
|
16
|
+
export interface CreateCompileAndExecuteEnvironmentProps extends Omit<FetcherOptions<CreateCompileAndExecuteEnvironmentMutationQueryParams, CreateCompileAndExecuteEnvironmentRequestBody, CreateCompileAndExecuteEnvironmentMutationHeaderParams>, 'url'> {
|
|
17
|
+
queryParams: CreateCompileAndExecuteEnvironmentMutationQueryParams;
|
|
18
|
+
body: CreateCompileAndExecuteEnvironmentRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export declare function createCompileAndExecuteEnvironment(props: CreateCompileAndExecuteEnvironmentProps): Promise<CreateCompileAndExecuteEnvironmentOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Create Compile And Execute Environment
|
|
23
|
+
*/
|
|
24
|
+
export declare function useCreateCompileAndExecuteEnvironmentMutation(options?: Omit<UseMutationOptions<CreateCompileAndExecuteEnvironmentOkResponse, CreateCompileAndExecuteEnvironmentErrorResponse, CreateCompileAndExecuteEnvironmentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateCompileAndExecuteEnvironmentOkResponse, unknown, CreateCompileAndExecuteEnvironmentProps, 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 '../../../../custom-idp-fetcher/index.js';
|
|
6
|
+
export function createCompileAndExecuteEnvironment(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/idp-environments`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create Compile And Execute Environment
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateCompileAndExecuteEnvironmentMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createCompileAndExecuteEnvironment(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -5,13 +5,18 @@ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
|
5
5
|
export interface SaveDiscoverEntitiesMutationPathParams {
|
|
6
6
|
'integration-id': string;
|
|
7
7
|
}
|
|
8
|
+
export interface SaveDiscoverEntitiesMutationQueryParams {
|
|
9
|
+
org_id?: string;
|
|
10
|
+
project_id?: string;
|
|
11
|
+
}
|
|
8
12
|
export interface SaveDiscoverEntitiesMutationHeaderParams {
|
|
9
13
|
'Harness-Account'?: string;
|
|
10
14
|
}
|
|
11
15
|
export type SaveDiscoverEntitiesRequestBody = SaveDiscoverEntitiesRequestRequestBody;
|
|
12
16
|
export type SaveDiscoverEntitiesOkResponse = ResponseWithPagination<unknown>;
|
|
13
17
|
export type SaveDiscoverEntitiesErrorResponse = unknown;
|
|
14
|
-
export interface SaveDiscoverEntitiesProps extends SaveDiscoverEntitiesMutationPathParams, Omit<FetcherOptions<
|
|
18
|
+
export interface SaveDiscoverEntitiesProps extends SaveDiscoverEntitiesMutationPathParams, Omit<FetcherOptions<SaveDiscoverEntitiesMutationQueryParams, SaveDiscoverEntitiesRequestBody, SaveDiscoverEntitiesMutationHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: SaveDiscoverEntitiesMutationQueryParams;
|
|
15
20
|
body: SaveDiscoverEntitiesRequestBody;
|
|
16
21
|
}
|
|
17
22
|
export declare function saveDiscoverEntities(props: SaveDiscoverEntitiesProps): Promise<SaveDiscoverEntitiesOkResponse>;
|
|
@@ -6,13 +6,18 @@ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
|
6
6
|
export interface UnlinkIntegrationEntitiesMutationPathParams {
|
|
7
7
|
'integration-id': string;
|
|
8
8
|
}
|
|
9
|
+
export interface UnlinkIntegrationEntitiesMutationQueryParams {
|
|
10
|
+
org_id?: string;
|
|
11
|
+
project_id?: string;
|
|
12
|
+
}
|
|
9
13
|
export interface UnlinkIntegrationEntitiesMutationHeaderParams {
|
|
10
14
|
'Harness-Account'?: string;
|
|
11
15
|
}
|
|
12
16
|
export type UnlinkIntegrationEntitiesRequestBody = UnlinkIntegrationEntitiesRequestRequestBody;
|
|
13
17
|
export type UnlinkIntegrationEntitiesOkResponse = ResponseWithPagination<UnlinkIntegrationEntitiesResponseResponse>;
|
|
14
18
|
export type UnlinkIntegrationEntitiesErrorResponse = unknown;
|
|
15
|
-
export interface UnlinkIntegrationEntitiesProps extends UnlinkIntegrationEntitiesMutationPathParams, Omit<FetcherOptions<
|
|
19
|
+
export interface UnlinkIntegrationEntitiesProps extends UnlinkIntegrationEntitiesMutationPathParams, Omit<FetcherOptions<UnlinkIntegrationEntitiesMutationQueryParams, UnlinkIntegrationEntitiesRequestBody, UnlinkIntegrationEntitiesMutationHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: UnlinkIntegrationEntitiesMutationQueryParams;
|
|
16
21
|
body: UnlinkIntegrationEntitiesRequestBody;
|
|
17
22
|
}
|
|
18
23
|
export declare function unlinkIntegrationEntities(props: UnlinkIntegrationEntitiesProps): Promise<UnlinkIntegrationEntitiesOkResponse>;
|
|
@@ -13,6 +13,8 @@ export type { CreateBackstagePermissionsErrorResponse, CreateBackstagePermission
|
|
|
13
13
|
export { createBackstagePermissions, useCreateBackstagePermissionsMutation, } from './hooks/useCreateBackstagePermissionsMutation';
|
|
14
14
|
export type { CreateCheckErrorResponse, CreateCheckOkResponse, CreateCheckProps, CreateCheckRequestBody, } from './hooks/useCreateCheckMutation';
|
|
15
15
|
export { createCheck, useCreateCheckMutation } from './hooks/useCreateCheckMutation';
|
|
16
|
+
export type { CreateCompileAndExecuteEnvironmentErrorResponse, CreateCompileAndExecuteEnvironmentMutationQueryParams, CreateCompileAndExecuteEnvironmentOkResponse, CreateCompileAndExecuteEnvironmentProps, CreateCompileAndExecuteEnvironmentRequestBody, } from './hooks/useCreateCompileAndExecuteEnvironmentMutation';
|
|
17
|
+
export { createCompileAndExecuteEnvironment, useCreateCompileAndExecuteEnvironmentMutation, } from './hooks/useCreateCompileAndExecuteEnvironmentMutation';
|
|
16
18
|
export type { CreateEntityErrorResponse, CreateEntityMutationQueryParams, CreateEntityOkResponse, CreateEntityProps, CreateEntityRequestBody, } from './hooks/useCreateEntityMutation';
|
|
17
19
|
export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMutation';
|
|
18
20
|
export type { CreateEntityVersionErrorResponse, CreateEntityVersionMutationQueryParams, CreateEntityVersionOkResponse, CreateEntityVersionProps, CreateEntityVersionRequestBody, } from './hooks/useCreateEntityVersionMutation';
|
|
@@ -185,7 +187,7 @@ export type { SaveConnectorInfoErrorResponse, SaveConnectorInfoOkResponse, SaveC
|
|
|
185
187
|
export { saveConnectorInfo, useSaveConnectorInfoMutation, } from './hooks/useSaveConnectorInfoMutation';
|
|
186
188
|
export type { SaveCustomPluginsInfoErrorResponse, SaveCustomPluginsInfoOkResponse, SaveCustomPluginsInfoProps, SaveCustomPluginsInfoRequestBody, } from './hooks/useSaveCustomPluginsInfoMutation';
|
|
187
189
|
export { saveCustomPluginsInfo, useSaveCustomPluginsInfoMutation, } from './hooks/useSaveCustomPluginsInfoMutation';
|
|
188
|
-
export type { SaveDiscoverEntitiesErrorResponse, SaveDiscoverEntitiesMutationPathParams, SaveDiscoverEntitiesOkResponse, SaveDiscoverEntitiesProps, SaveDiscoverEntitiesRequestBody, } from './hooks/useSaveDiscoverEntitiesMutation';
|
|
190
|
+
export type { SaveDiscoverEntitiesErrorResponse, SaveDiscoverEntitiesMutationPathParams, SaveDiscoverEntitiesMutationQueryParams, SaveDiscoverEntitiesOkResponse, SaveDiscoverEntitiesProps, SaveDiscoverEntitiesRequestBody, } from './hooks/useSaveDiscoverEntitiesMutation';
|
|
189
191
|
export { saveDiscoverEntities, useSaveDiscoverEntitiesMutation, } from './hooks/useSaveDiscoverEntitiesMutation';
|
|
190
192
|
export type { SaveGroupErrorResponse, SaveGroupMutationQueryParams, SaveGroupOkResponse, SaveGroupProps, SaveGroupRequestBody, } from './hooks/useSaveGroupMutation';
|
|
191
193
|
export { saveGroup, useSaveGroupMutation } from './hooks/useSaveGroupMutation';
|
|
@@ -199,7 +201,7 @@ export type { TogglePluginForAccountErrorResponse, TogglePluginForAccountMutatio
|
|
|
199
201
|
export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
|
|
200
202
|
export type { TriggerAggregationRuleComputationErrorResponse, TriggerAggregationRuleComputationMutationPathParams, TriggerAggregationRuleComputationOkResponse, TriggerAggregationRuleComputationProps, } from './hooks/useTriggerAggregationRuleComputationMutation';
|
|
201
203
|
export { triggerAggregationRuleComputation, useTriggerAggregationRuleComputationMutation, } from './hooks/useTriggerAggregationRuleComputationMutation';
|
|
202
|
-
export type { UnlinkIntegrationEntitiesErrorResponse, UnlinkIntegrationEntitiesMutationPathParams, UnlinkIntegrationEntitiesOkResponse, UnlinkIntegrationEntitiesProps, UnlinkIntegrationEntitiesRequestBody, } from './hooks/useUnlinkIntegrationEntitiesMutation';
|
|
204
|
+
export type { UnlinkIntegrationEntitiesErrorResponse, UnlinkIntegrationEntitiesMutationPathParams, UnlinkIntegrationEntitiesMutationQueryParams, UnlinkIntegrationEntitiesOkResponse, UnlinkIntegrationEntitiesProps, UnlinkIntegrationEntitiesRequestBody, } from './hooks/useUnlinkIntegrationEntitiesMutation';
|
|
203
205
|
export { unlinkIntegrationEntities, useUnlinkIntegrationEntitiesMutation, } from './hooks/useUnlinkIntegrationEntitiesMutation';
|
|
204
206
|
export type { UpdateAggregationRuleErrorResponse, UpdateAggregationRuleMutationPathParams, UpdateAggregationRuleOkResponse, UpdateAggregationRuleProps, UpdateAggregationRuleRequestBody, } from './hooks/useUpdateAggregationRuleMutation';
|
|
205
207
|
export { updateAggregationRule, useUpdateAggregationRuleMutation, } from './hooks/useUpdateAggregationRuleMutation';
|
|
@@ -419,6 +421,7 @@ export type { EntityVersionUpdateRequest } from './schemas/EntityVersionUpdateRe
|
|
|
419
421
|
export type { EnvironmentBluePrintInfoResponse } from './schemas/EnvironmentBluePrintInfoResponse';
|
|
420
422
|
export type { EnvironmentBluePrintVersionInfo } from './schemas/EnvironmentBluePrintVersionInfo';
|
|
421
423
|
export type { EnvironmentBlueprintInfoRequest } from './schemas/EnvironmentBlueprintInfoRequest';
|
|
424
|
+
export type { EnvironmentProxyCreateRequest } from './schemas/EnvironmentProxyCreateRequest';
|
|
422
425
|
export type { EvaluationData } from './schemas/EvaluationData';
|
|
423
426
|
export type { ExportDetails } from './schemas/ExportDetails';
|
|
424
427
|
export type { Exports } from './schemas/Exports';
|
|
@@ -5,6 +5,7 @@ export { createAggregationRule, useCreateAggregationRuleMutation, } from './hook
|
|
|
5
5
|
export { createBackstageEnvVariables, useCreateBackstageEnvVariablesMutation, } from './hooks/useCreateBackstageEnvVariablesMutation';
|
|
6
6
|
export { createBackstagePermissions, useCreateBackstagePermissionsMutation, } from './hooks/useCreateBackstagePermissionsMutation';
|
|
7
7
|
export { createCheck, useCreateCheckMutation } from './hooks/useCreateCheckMutation';
|
|
8
|
+
export { createCompileAndExecuteEnvironment, useCreateCompileAndExecuteEnvironmentMutation, } from './hooks/useCreateCompileAndExecuteEnvironmentMutation';
|
|
8
9
|
export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMutation';
|
|
9
10
|
export { createEntityVersion, useCreateEntityVersionMutation, } from './hooks/useCreateEntityVersionMutation';
|
|
10
11
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface EnvironmentProxyCreateRequest {
|
|
2
|
+
/**
|
|
3
|
+
* Reference to the environment this is based on in format environment:account.orgIdentifier.projectIdentifier/identifier
|
|
4
|
+
*/
|
|
5
|
+
based_on_identifier?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
environment_blueprint_identifier: string;
|
|
8
|
+
/**
|
|
9
|
+
* Version of the environment blueprint (e.g., v1.0.0)
|
|
10
|
+
*/
|
|
11
|
+
environment_blueprint_version: string;
|
|
12
|
+
environment_identifier: string;
|
|
13
|
+
environment_name: string;
|
|
14
|
+
/**
|
|
15
|
+
* Inputs for the environment as YAML/JSON string (e.g., ttl, resources)
|
|
16
|
+
*/
|
|
17
|
+
inputs?: string;
|
|
18
|
+
overrides: string;
|
|
19
|
+
owner: string;
|
|
20
|
+
tags?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Target state for the environment
|
|
23
|
+
*/
|
|
24
|
+
target_state?: {};
|
|
25
|
+
/**
|
|
26
|
+
* Type of the environment (e.g., ephemeral, persistent)
|
|
27
|
+
*/
|
|
28
|
+
type?: string;
|
|
29
|
+
}
|