@harnessio/react-intelligence-service-client 0.5.2-beta.0 → 0.5.2-beta.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/intelligence-service/src/services/hooks/useCreateEntityMutation.d.ts +2 -2
- package/dist/intelligence-service/src/services/index.d.ts +2 -0
- package/dist/intelligence-service/src/services/schemas/EnumRequestAction.d.ts +1 -0
- package/dist/intelligence-service/src/services/schemas/EnumRequestAction.js +4 -0
- package/dist/intelligence-service/src/services/schemas/TypesEntityInfo.d.ts +2 -0
- package/dist/intelligence-service/src/services/schemas/TypesEntityOperationResponse.d.ts +10 -0
- package/dist/intelligence-service/src/services/schemas/TypesEntityOperationResponse.js +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TypesEntityOperationResponse } from '../schemas/TypesEntityOperationResponse';
|
|
3
3
|
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
4
|
import type { TypesHarnessEntity } from '../schemas/TypesHarnessEntity';
|
|
5
5
|
import type { ResponseWithPagination } from '../helpers';
|
|
@@ -8,7 +8,7 @@ export interface CreateEntityMutationHeaderParams {
|
|
|
8
8
|
'harness-account': string;
|
|
9
9
|
}
|
|
10
10
|
export type CreateEntityRequestBody = TypesHarnessEntity;
|
|
11
|
-
export type CreateEntityOkResponse = ResponseWithPagination<
|
|
11
|
+
export type CreateEntityOkResponse = ResponseWithPagination<TypesEntityOperationResponse>;
|
|
12
12
|
export type CreateEntityErrorResponse = UsererrorError;
|
|
13
13
|
export interface CreateEntityProps extends Omit<FetcherOptions<unknown, CreateEntityRequestBody, CreateEntityMutationHeaderParams>, 'url'> {
|
|
14
14
|
body: CreateEntityRequestBody;
|
|
@@ -6,12 +6,14 @@ export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMu
|
|
|
6
6
|
export type { EnumAction } from './schemas/EnumAction';
|
|
7
7
|
export type { EnumEntityType } from './schemas/EnumEntityType';
|
|
8
8
|
export type { EnumMessageType } from './schemas/EnumMessageType';
|
|
9
|
+
export type { EnumRequestAction } from './schemas/EnumRequestAction';
|
|
9
10
|
export type { EnumRole } from './schemas/EnumRole';
|
|
10
11
|
export type { TypesChat } from './schemas/TypesChat';
|
|
11
12
|
export type { TypesChatOutput } from './schemas/TypesChatOutput';
|
|
12
13
|
export type { TypesChatResponse } from './schemas/TypesChatResponse';
|
|
13
14
|
export type { TypesConversation } from './schemas/TypesConversation';
|
|
14
15
|
export type { TypesEntityInfo } from './schemas/TypesEntityInfo';
|
|
16
|
+
export type { TypesEntityOperationResponse } from './schemas/TypesEntityOperationResponse';
|
|
15
17
|
export type { TypesHarnessEntity } from './schemas/TypesHarnessEntity';
|
|
16
18
|
export type { TypesMessage } from './schemas/TypesMessage';
|
|
17
19
|
export type { TypesResponseMessage } from './schemas/TypesResponseMessage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EnumRequestAction = string;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { EnumEntityType } from '../schemas/EnumEntityType';
|
|
2
|
+
import type { EnumRequestAction } from '../schemas/EnumRequestAction';
|
|
2
3
|
export interface TypesEntityInfo {
|
|
3
4
|
account_identifier?: string;
|
|
4
5
|
entity_type?: EnumEntityType;
|
|
5
6
|
identifier?: string;
|
|
6
7
|
org_identifier?: string;
|
|
7
8
|
project_identifier?: string;
|
|
9
|
+
request_action?: EnumRequestAction;
|
|
8
10
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TypesEntityInfo } from '../schemas/TypesEntityInfo';
|
|
2
|
+
import type { EnumEntityType } from '../schemas/EnumEntityType';
|
|
3
|
+
export interface TypesEntityOperationResponse {
|
|
4
|
+
entity_info?: TypesEntityInfo;
|
|
5
|
+
entity_type?: EnumEntityType;
|
|
6
|
+
error?: string;
|
|
7
|
+
status_code?: number;
|
|
8
|
+
status_message?: string;
|
|
9
|
+
success?: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-intelligence-service-client",
|
|
3
|
-
"version": "0.5.2-beta.
|
|
3
|
+
"version": "0.5.2-beta.1",
|
|
4
4
|
"description": "Harness React Intelligence service client - Intelligence APIs integrated with react hooks",
|
|
5
5
|
"author": "Harness Inc",
|
|
6
6
|
"license": "MIT",
|