@harnessio/react-dbops-service-client 0.33.0 → 0.34.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.
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChangeAuthoringEventResponseResponse } from '../responses/ChangeAuthoringEventResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ChangeAuthoringEventRequestRequestBody } from '../requestBodies/ChangeAuthoringEventRequestRequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface V1CreateChangeAuthoringEventMutationPathParams {
8
+ org: string;
9
+ project: string;
10
+ }
11
+ export interface V1CreateChangeAuthoringEventMutationHeaderParams {
12
+ 'Harness-Account'?: string;
13
+ }
14
+ export type V1CreateChangeAuthoringEventRequestBody = ChangeAuthoringEventRequestRequestBody;
15
+ export type V1CreateChangeAuthoringEventOkResponse = ResponseWithPagination<ChangeAuthoringEventResponseResponse>;
16
+ export type V1CreateChangeAuthoringEventErrorResponse = ErrorResponseResponse;
17
+ export interface V1CreateChangeAuthoringEventProps extends V1CreateChangeAuthoringEventMutationPathParams, Omit<FetcherOptions<unknown, V1CreateChangeAuthoringEventRequestBody, V1CreateChangeAuthoringEventMutationHeaderParams>, 'url'> {
18
+ body: V1CreateChangeAuthoringEventRequestBody;
19
+ }
20
+ export declare function v1CreateChangeAuthoringEvent(props: V1CreateChangeAuthoringEventProps): Promise<V1CreateChangeAuthoringEventOkResponse>;
21
+ /**
22
+ * Receives pipeline execution events from the UI when a user successfully executes a pipeline from the LLM Change Authoring chat interaction
23
+ */
24
+ export declare function useV1CreateChangeAuthoringEventMutation(options?: Omit<UseMutationOptions<V1CreateChangeAuthoringEventOkResponse, V1CreateChangeAuthoringEventErrorResponse, V1CreateChangeAuthoringEventProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<V1CreateChangeAuthoringEventOkResponse, import("..").Error, V1CreateChangeAuthoringEventProps, 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 v1CreateChangeAuthoringEvent(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/change-authoring-event`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Receives pipeline execution events from the UI when a user successfully executes a pipeline from the LLM Change Authoring chat interaction
11
+ */
12
+ export function useV1CreateChangeAuthoringEventMutation(options) {
13
+ return useMutation((mutateProps) => v1CreateChangeAuthoringEvent(mutateProps), options);
14
+ }
@@ -27,6 +27,8 @@ export type { V1ChangesetYamlProjDbInstanceErrorResponse, V1ChangesetYamlProjDbI
27
27
  export { useV1ChangesetYamlProjDbInstanceQuery, v1ChangesetYamlProjDbInstance, } from './hooks/useV1ChangesetYamlProjDbInstanceQuery';
28
28
  export type { V1ChangesetmetadataProjDbInstanceErrorResponse, V1ChangesetmetadataProjDbInstanceOkResponse, V1ChangesetmetadataProjDbInstanceProps, V1ChangesetmetadataProjDbInstanceQueryPathParams, V1ChangesetmetadataProjDbInstanceQueryQueryParams, } from './hooks/useV1ChangesetmetadataProjDbInstanceQuery';
29
29
  export { useV1ChangesetmetadataProjDbInstanceQuery, v1ChangesetmetadataProjDbInstance, } from './hooks/useV1ChangesetmetadataProjDbInstanceQuery';
30
+ export type { V1CreateChangeAuthoringEventErrorResponse, V1CreateChangeAuthoringEventMutationPathParams, V1CreateChangeAuthoringEventOkResponse, V1CreateChangeAuthoringEventProps, V1CreateChangeAuthoringEventRequestBody, } from './hooks/useV1CreateChangeAuthoringEventMutation';
31
+ export { useV1CreateChangeAuthoringEventMutation, v1CreateChangeAuthoringEvent, } from './hooks/useV1CreateChangeAuthoringEventMutation';
30
32
  export type { V1CreateProjDbSchemaInstanceErrorResponse, V1CreateProjDbSchemaInstanceMutationPathParams, V1CreateProjDbSchemaInstanceOkResponse, V1CreateProjDbSchemaInstanceProps, V1CreateProjDbSchemaInstanceRequestBody, } from './hooks/useV1CreateProjDbSchemaInstanceMutation';
31
33
  export { useV1CreateProjDbSchemaInstanceMutation, v1CreateProjDbSchemaInstance, } from './hooks/useV1CreateProjDbSchemaInstanceMutation';
32
34
  export type { V1CreateProjDbSchemaErrorResponse, V1CreateProjDbSchemaMutationPathParams, V1CreateProjDbSchemaOkResponse, V1CreateProjDbSchemaProps, V1CreateProjDbSchemaRequestBody, } from './hooks/useV1CreateProjDbSchemaMutation';
@@ -97,6 +99,7 @@ export type { V2ListProjDbInstancesErrorResponse, V2ListProjDbInstancesMutationP
97
99
  export { useV2ListProjDbInstancesMutation, v2ListProjDbInstances, } from './hooks/useV2ListProjDbInstancesMutation';
98
100
  export type { V2ListProjDbSchemaErrorResponse, V2ListProjDbSchemaMutationPathParams, V2ListProjDbSchemaMutationQueryParams, V2ListProjDbSchemaOkResponse, V2ListProjDbSchemaProps, V2ListProjDbSchemaRequestBody, } from './hooks/useV2ListProjDbSchemaMutation';
99
101
  export { useV2ListProjDbSchemaMutation, v2ListProjDbSchema, } from './hooks/useV2ListProjDbSchemaMutation';
102
+ export type { ChangeAuthoringEventRequestRequestBody } from './requestBodies/ChangeAuthoringEventRequestRequestBody';
100
103
  export type { ConsumeFlywayPluginOutputRespRequestRequestBody } from './requestBodies/ConsumeFlywayPluginOutputRespRequestRequestBody';
101
104
  export type { ConsumePluginOutputRespRequestRequestBody } from './requestBodies/ConsumePluginOutputRespRequestRequestBody';
102
105
  export type { ConsumePluginRespRequestRequestBody } from './requestBodies/ConsumePluginRespRequestRequestBody';
@@ -119,6 +122,7 @@ export type { LogIngestRequestRequestBody } from './requestBodies/LogIngestReque
119
122
  export type { MigrationStateGetRequestRequestBody } from './requestBodies/MigrationStateGetRequestRequestBody';
120
123
  export type { PluginStepInputsRequestRequestBody } from './requestBodies/PluginStepInputsRequestRequestBody';
121
124
  export type { SchemaInstanceMetadataRequestRequestBody } from './requestBodies/SchemaInstanceMetadataRequestRequestBody';
125
+ export type { ChangeAuthoringEventResponseResponse } from './responses/ChangeAuthoringEventResponseResponse';
122
126
  export type { ChangeSetDeploymentYamlResponseResponse } from './responses/ChangeSetDeploymentYamlResponseResponse';
123
127
  export type { ChangeSetMetadataResponseResponse } from './responses/ChangeSetMetadataResponseResponse';
124
128
  export type { CustomOperationResponseResponse } from './responses/CustomOperationResponseResponse';
@@ -147,6 +151,7 @@ export type { SchemaInstanceMetadataResponseResponse } from './responses/SchemaI
147
151
  export type { SnapshotObjectNamesResponseResponse } from './responses/SnapshotObjectNamesResponseResponse';
148
152
  export type { SnapshotObjectValuesResponseResponse } from './responses/SnapshotObjectValuesResponseResponse';
149
153
  export type { AppliedScriptOutput } from './schemas/AppliedScriptOutput';
154
+ export type { ChangeAuthoringEventIn } from './schemas/ChangeAuthoringEventIn';
150
155
  export type { ChangeLogScript } from './schemas/ChangeLogScript';
151
156
  export type { ChangeSetDeploymentStatus } from './schemas/ChangeSetDeploymentStatus';
152
157
  export type { ChangeSetDeploymentYamlOutput } from './schemas/ChangeSetDeploymentYamlOutput';
@@ -12,6 +12,7 @@ export { postV1DbopsDbSnapshotMetadata, usePostV1DbopsDbSnapshotMetadataMutation
12
12
  export { postV1DbopsMetadataSnapshot, usePostV1DbopsMetadataSnapshotMutation, } from './hooks/usePostV1DbopsMetadataSnapshotMutation';
13
13
  export { useV1ChangesetYamlProjDbInstanceQuery, v1ChangesetYamlProjDbInstance, } from './hooks/useV1ChangesetYamlProjDbInstanceQuery';
14
14
  export { useV1ChangesetmetadataProjDbInstanceQuery, v1ChangesetmetadataProjDbInstance, } from './hooks/useV1ChangesetmetadataProjDbInstanceQuery';
15
+ export { useV1CreateChangeAuthoringEventMutation, v1CreateChangeAuthoringEvent, } from './hooks/useV1CreateChangeAuthoringEventMutation';
15
16
  export { useV1CreateProjDbSchemaInstanceMutation, v1CreateProjDbSchemaInstance, } from './hooks/useV1CreateProjDbSchemaInstanceMutation';
16
17
  export { useV1CreateProjDbSchemaMutation, v1CreateProjDbSchema, } from './hooks/useV1CreateProjDbSchemaMutation';
17
18
  export { useV1DefaultLlmPipelineQuery, v1DefaultLlmPipeline, } from './hooks/useV1DefaultLlmPipelineQuery';
@@ -0,0 +1,2 @@
1
+ import type { ChangeAuthoringEventIn } from '../schemas/ChangeAuthoringEventIn';
2
+ export type ChangeAuthoringEventRequestRequestBody = ChangeAuthoringEventIn;
@@ -0,0 +1 @@
1
+ export type ChangeAuthoringEventResponseResponse = unknown;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Request body for creating a change authoring execution event
3
+ */
4
+ export interface ChangeAuthoringEventIn {
5
+ /**
6
+ * Unique chat conversation ID from the LLM change authoring interaction
7
+ */
8
+ conversationId: string;
9
+ /**
10
+ * Unique pipeline execution ID
11
+ */
12
+ pipelineExecutionId: string;
13
+ /**
14
+ * Pipeline identifier that was executed
15
+ */
16
+ pipelineIdentifier: string;
17
+ /**
18
+ * Database schema identifier
19
+ */
20
+ schemaIdentifier: string;
21
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-dbops-service-client",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "description": "Harness React DB Devops service client - DB Devops APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",