@harnessio/react-integration-manager-client 0.3.6 → 0.3.7

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,20 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { AirbyteFetchAirbyteConnectorCatalogResponse } from '../schemas/AirbyteFetchAirbyteConnectorCatalogResponse';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { OpenapiGetAirbyteConnectorCatalogRequest } from '../schemas/OpenapiGetAirbyteConnectorCatalogRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface FetchAirbyteConnectorCatalogMutationPathParams {
8
+ accountIdentifier: string;
9
+ }
10
+ export type FetchAirbyteConnectorCatalogRequestBody = OpenapiGetAirbyteConnectorCatalogRequest;
11
+ export type FetchAirbyteConnectorCatalogOkResponse = ResponseWithPagination<AirbyteFetchAirbyteConnectorCatalogResponse>;
12
+ export type FetchAirbyteConnectorCatalogErrorResponse = ApierrorsErrorResponse;
13
+ export interface FetchAirbyteConnectorCatalogProps extends FetchAirbyteConnectorCatalogMutationPathParams, Omit<FetcherOptions<unknown, FetchAirbyteConnectorCatalogRequestBody>, 'url'> {
14
+ body: FetchAirbyteConnectorCatalogRequestBody;
15
+ }
16
+ export declare function fetchAirbyteConnectorCatalog(props: FetchAirbyteConnectorCatalogProps): Promise<FetchAirbyteConnectorCatalogOkResponse>;
17
+ /**
18
+ * Fetches the catalog for an Airbyte connector by actively discovering available streams and their schemas from the source. Use the hard_refresh parameter to bypass cache.
19
+ */
20
+ export declare function useFetchAirbyteConnectorCatalogMutation(options?: Omit<UseMutationOptions<FetchAirbyteConnectorCatalogOkResponse, FetchAirbyteConnectorCatalogErrorResponse, FetchAirbyteConnectorCatalogProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<FetchAirbyteConnectorCatalogOkResponse, ApierrorsErrorResponse, FetchAirbyteConnectorCatalogProps, 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 fetchAirbyteConnectorCatalog(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/airbyte/catalog`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Fetches the catalog for an Airbyte connector by actively discovering available streams and their schemas from the source. Use the hard_refresh parameter to bypass cache.
11
+ */
12
+ export function useFetchAirbyteConnectorCatalogMutation(options) {
13
+ return useMutation((mutateProps) => fetchAirbyteConnectorCatalog(mutateProps), options);
14
+ }
@@ -9,6 +9,8 @@ export type { DeleteAgentErrorResponse, DeleteAgentMutationPathParams, DeleteAge
9
9
  export { deleteAgent, useDeleteAgentMutation } from './hooks/useDeleteAgentMutation';
10
10
  export type { DownloadAgentYamlErrorResponse, DownloadAgentYamlOkResponse, DownloadAgentYamlProps, DownloadAgentYamlQueryPathParams, } from './hooks/useDownloadAgentYamlQuery';
11
11
  export { downloadAgentYaml, useDownloadAgentYamlQuery } from './hooks/useDownloadAgentYamlQuery';
12
+ export type { FetchAirbyteConnectorCatalogErrorResponse, FetchAirbyteConnectorCatalogMutationPathParams, FetchAirbyteConnectorCatalogOkResponse, FetchAirbyteConnectorCatalogProps, FetchAirbyteConnectorCatalogRequestBody, } from './hooks/useFetchAirbyteConnectorCatalogMutation';
13
+ export { fetchAirbyteConnectorCatalog, useFetchAirbyteConnectorCatalogMutation, } from './hooks/useFetchAirbyteConnectorCatalogMutation';
12
14
  export type { GetAgentErrorResponse, GetAgentOkResponse, GetAgentProps, GetAgentQueryPathParams, } from './hooks/useGetAgentQuery';
13
15
  export { getAgent, useGetAgentQuery } from './hooks/useGetAgentQuery';
14
16
  export type { GetAirbyteConnectorCatalogErrorResponse, GetAirbyteConnectorCatalogOkResponse, GetAirbyteConnectorCatalogProps, GetAirbyteConnectorCatalogQueryPathParams, GetAirbyteConnectorCatalogQueryQueryParams, } from './hooks/useGetAirbyteConnectorCatalogQuery';
@@ -31,6 +33,7 @@ export type { UpdateIntegrationConfigErrorResponse, UpdateIntegrationConfigMutat
31
33
  export { updateIntegrationConfig, useUpdateIntegrationConfigMutation, } from './hooks/useUpdateIntegrationConfigMutation';
32
34
  export type { UpdateIntegrationStatusErrorResponse, UpdateIntegrationStatusMutationPathParams, UpdateIntegrationStatusMutationQueryParams, UpdateIntegrationStatusOkResponse, UpdateIntegrationStatusProps, } from './hooks/useUpdateIntegrationStatusMutation';
33
35
  export { updateIntegrationStatus, useUpdateIntegrationStatusMutation, } from './hooks/useUpdateIntegrationStatusMutation';
36
+ export type { AirbyteFetchAirbyteConnectorCatalogResponse } from './schemas/AirbyteFetchAirbyteConnectorCatalogResponse';
34
37
  export type { AirbyteGetAirbyteConnectorCatalogResponse } from './schemas/AirbyteGetAirbyteConnectorCatalogResponse';
35
38
  export type { ApierrorsErrorDetail } from './schemas/ApierrorsErrorDetail';
36
39
  export type { ApierrorsErrorResponse } from './schemas/ApierrorsErrorResponse';
@@ -44,6 +47,7 @@ export type { IntegrationconfigTriggerSyncResponse } from './schemas/Integration
44
47
  export type { OpenapiCreateAgentRequest } from './schemas/OpenapiCreateAgentRequest';
45
48
  export type { OpenapiCreateAirbyteIntegrationConfigRequest } from './schemas/OpenapiCreateAirbyteIntegrationConfigRequest';
46
49
  export type { OpenapiCreateIntegrationConfigRequest } from './schemas/OpenapiCreateIntegrationConfigRequest';
50
+ export type { OpenapiGetAirbyteConnectorCatalogRequest } from './schemas/OpenapiGetAirbyteConnectorCatalogRequest';
47
51
  export type { OpenapiUpdateAgentRequest } from './schemas/OpenapiUpdateAgentRequest';
48
52
  export type { OpenapiUpdateAirbyteIntegrationConfigRequest } from './schemas/OpenapiUpdateAirbyteIntegrationConfigRequest';
49
53
  export type { OpenapiUpdateIntegrationConfigRequest } from './schemas/OpenapiUpdateIntegrationConfigRequest';
@@ -57,6 +61,7 @@ export type { TypesEntityMapping } from './schemas/TypesEntityMapping';
57
61
  export type { TypesEntityMappingSpec } from './schemas/TypesEntityMappingSpec';
58
62
  export type { TypesEntitySchema } from './schemas/TypesEntitySchema';
59
63
  export type { TypesFieldMapping } from './schemas/TypesFieldMapping';
64
+ export type { TypesHarnessAirbyteConfig } from './schemas/TypesHarnessAirbyteConfig';
60
65
  export type { TypesIntegrationAgent } from './schemas/TypesIntegrationAgent';
61
66
  export type { TypesIntegrationConfig } from './schemas/TypesIntegrationConfig';
62
67
  export type { TypesJsonSchema } from './schemas/TypesJsonSchema';
@@ -3,6 +3,7 @@ export { createAirbyteIntegrationConfig, useCreateAirbyteIntegrationConfigMutati
3
3
  export { createIntegrationConfig, useCreateIntegrationConfigMutation, } from './hooks/useCreateIntegrationConfigMutation';
4
4
  export { deleteAgent, useDeleteAgentMutation } from './hooks/useDeleteAgentMutation';
5
5
  export { downloadAgentYaml, useDownloadAgentYamlQuery } from './hooks/useDownloadAgentYamlQuery';
6
+ export { fetchAirbyteConnectorCatalog, useFetchAirbyteConnectorCatalogMutation, } from './hooks/useFetchAirbyteConnectorCatalogMutation';
6
7
  export { getAgent, useGetAgentQuery } from './hooks/useGetAgentQuery';
7
8
  export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogQuery, } from './hooks/useGetAirbyteConnectorCatalogQuery';
8
9
  export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
@@ -0,0 +1,9 @@
1
+ import type { TypesAirbyteCatalogDiscovered } from '../schemas/TypesAirbyteCatalogDiscovered';
2
+ import type { TypesHarnessAirbyteConfig } from '../schemas/TypesHarnessAirbyteConfig';
3
+ import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
4
+ export interface AirbyteFetchAirbyteConnectorCatalogResponse {
5
+ catalog?: TypesAirbyteCatalogDiscovered;
6
+ config?: TypesHarnessAirbyteConfig;
7
+ integration_type?: EnumIntegrationType;
8
+ k8s_harness_connector_ref?: string;
9
+ }
@@ -0,0 +1,8 @@
1
+ import type { TypesHarnessAirbyteConfig } from '../schemas/TypesHarnessAirbyteConfig';
2
+ import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
3
+ export interface OpenapiGetAirbyteConnectorCatalogRequest {
4
+ config?: TypesHarnessAirbyteConfig;
5
+ delegate_selectors?: string[] | null;
6
+ hard_refresh?: boolean;
7
+ integration_type?: EnumIntegrationType;
8
+ }
@@ -0,0 +1,5 @@
1
+ export interface TypesHarnessAirbyteConfig {
2
+ service_now_harness_connector_ref?: string;
3
+ service_now_table_filter?: string;
4
+ start_date?: string;
5
+ }
@@ -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-integration-manager-client",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Harness React integration manager client - Integration Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",