@harnessio/react-idp-service-client 0.89.0 → 0.89.1
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/index.d.ts +3 -0
- 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
|
+
}
|
|
@@ -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';
|
|
@@ -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
|
+
}
|