@harnessio/react-idp-service-client 0.99.0 → 0.99.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 +2 -1
- package/dist/idp-service/src/services/index.d.ts +1 -0
- package/dist/idp-service/src/services/schemas/EntityResponse.d.ts +6 -0
- package/dist/idp-service/src/services/schemas/EntityVersionResponse.d.ts +6 -0
- package/dist/idp-service/src/services/schemas/EnvironmentProxyResponse.d.ts +14 -0
- package/dist/idp-service/src/services/schemas/EnvironmentProxyResponse.js +4 -0
- package/package.json +1 -1
package/dist/idp-service/src/services/hooks/useCreateCompileAndExecuteEnvironmentMutation.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EnvironmentProxyResponse } from '../schemas/EnvironmentProxyResponse';
|
|
2
3
|
import type { EnvironmentProxyCreateRequest } from '../schemas/EnvironmentProxyCreateRequest';
|
|
3
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
5
|
import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
@@ -11,7 +12,7 @@ export interface CreateCompileAndExecuteEnvironmentMutationHeaderParams {
|
|
|
11
12
|
'Harness-Account'?: string;
|
|
12
13
|
}
|
|
13
14
|
export type CreateCompileAndExecuteEnvironmentRequestBody = EnvironmentProxyCreateRequest;
|
|
14
|
-
export type CreateCompileAndExecuteEnvironmentOkResponse = ResponseWithPagination<
|
|
15
|
+
export type CreateCompileAndExecuteEnvironmentOkResponse = ResponseWithPagination<EnvironmentProxyResponse>;
|
|
15
16
|
export type CreateCompileAndExecuteEnvironmentErrorResponse = unknown;
|
|
16
17
|
export interface CreateCompileAndExecuteEnvironmentProps extends Omit<FetcherOptions<CreateCompileAndExecuteEnvironmentMutationQueryParams, CreateCompileAndExecuteEnvironmentRequestBody, CreateCompileAndExecuteEnvironmentMutationHeaderParams>, 'url'> {
|
|
17
18
|
queryParams: CreateCompileAndExecuteEnvironmentMutationQueryParams;
|
|
@@ -484,6 +484,7 @@ export type { EnvironmentBluePrintInfoResponse } from './schemas/EnvironmentBlue
|
|
|
484
484
|
export type { EnvironmentBluePrintVersionInfo } from './schemas/EnvironmentBluePrintVersionInfo';
|
|
485
485
|
export type { EnvironmentBlueprintInfoRequest } from './schemas/EnvironmentBlueprintInfoRequest';
|
|
486
486
|
export type { EnvironmentProxyCreateRequest } from './schemas/EnvironmentProxyCreateRequest';
|
|
487
|
+
export type { EnvironmentProxyResponse } from './schemas/EnvironmentProxyResponse';
|
|
487
488
|
export type { EvaluationData } from './schemas/EvaluationData';
|
|
488
489
|
export type { ExportDetails } from './schemas/ExportDetails';
|
|
489
490
|
export type { Exports } from './schemas/Exports';
|
|
@@ -17,6 +17,12 @@ export interface EntityResponse {
|
|
|
17
17
|
is_valid?: boolean;
|
|
18
18
|
};
|
|
19
19
|
git_details?: GitDetails;
|
|
20
|
+
/**
|
|
21
|
+
* OPA policy evaluation metadata. Present only when OPA governance is enabled for IDP catalog entities.
|
|
22
|
+
*/
|
|
23
|
+
governance_metadata?: {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
20
26
|
groups?: Array<{
|
|
21
27
|
group_description?: string;
|
|
22
28
|
group_icon?: string;
|
|
@@ -12,6 +12,12 @@ export interface EntityVersionResponse {
|
|
|
12
12
|
*/
|
|
13
13
|
deprecatedAt?: number;
|
|
14
14
|
description?: string;
|
|
15
|
+
/**
|
|
16
|
+
* OPA policy evaluation metadata. Present only when OPA governance is enabled for IDP catalog entities.
|
|
17
|
+
*/
|
|
18
|
+
governance_metadata?: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
15
21
|
identifier: string;
|
|
16
22
|
kind: 'aiasset' | 'aidependency' | 'api' | 'component' | 'environment' | 'environmentblueprint' | 'group' | 'hierarchy' | 'resource' | 'system' | 'user' | 'workflow';
|
|
17
23
|
orgIdentifier?: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface EnvironmentProxyResponse {
|
|
2
|
+
/**
|
|
3
|
+
* OPA policy evaluation metadata. Present only when OPA governance is enabled for IDP catalog entities.
|
|
4
|
+
*/
|
|
5
|
+
governance_metadata?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* The compile/execute response from the environment orchestrator.
|
|
10
|
+
*/
|
|
11
|
+
response?: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|