@harnessio/react-integration-manager-client 0.3.5 → 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.
- package/dist/integration-manager/src/services/hooks/useCreateAirbyteIntegrationConfigMutation.d.ts +2 -2
- package/dist/integration-manager/src/services/hooks/useFetchAirbyteConnectorCatalogMutation.d.ts +20 -0
- package/dist/integration-manager/src/services/hooks/useFetchAirbyteConnectorCatalogMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useGetAirbyteConnectorCatalogQuery.d.ts +32 -0
- package/dist/integration-manager/src/services/hooks/useGetAirbyteConnectorCatalogQuery.js +14 -0
- package/dist/integration-manager/src/services/hooks/useGetAirbyteIntegrationConfigQuery.d.ts +2 -2
- package/dist/integration-manager/src/services/hooks/useUpdateAirbyteIntegrationConfigMutation.d.ts +2 -2
- package/dist/integration-manager/src/services/index.d.ts +10 -8
- package/dist/integration-manager/src/services/index.js +2 -1
- package/dist/integration-manager/src/services/schemas/AirbyteFetchAirbyteConnectorCatalogResponse.d.ts +9 -0
- package/dist/integration-manager/src/services/schemas/AirbyteGetAirbyteConnectorCatalogResponse.d.ts +4 -5
- package/dist/integration-manager/src/services/schemas/{IntegrationconfigCreateAirbyteIntegrationResponse.d.ts → IntegrationconfigAirbyteIntegrationResponse.d.ts} +1 -1
- package/dist/integration-manager/src/services/schemas/OpenapiCreateAirbyteIntegrationConfigRequest.d.ts +2 -2
- package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigRequest.d.ts +0 -2
- package/dist/integration-manager/src/services/schemas/OpenapiGetAirbyteConnectorCatalogRequest.d.ts +3 -2
- package/dist/integration-manager/src/services/schemas/TypesAirbyteCatalogConfigured.d.ts +4 -0
- package/dist/integration-manager/src/services/schemas/TypesAirbyteCatalogDiscovered.d.ts +4 -0
- package/dist/integration-manager/src/services/schemas/TypesAirbyteConnector.d.ts +4 -3
- package/dist/integration-manager/src/services/schemas/{TypesAirbyteConfiguredStream.d.ts → TypesAirbyteStreamConfigured.d.ts} +2 -1
- package/dist/integration-manager/src/services/schemas/{TypesCatalogConfig.d.ts → TypesHarnessAirbyteConfig.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/integration-manager/src/services/hooks/useGetAirbyteConnectorCatalogMutation.d.ts +0 -20
- package/dist/integration-manager/src/services/hooks/useGetAirbyteConnectorCatalogMutation.js +0 -14
- package/dist/integration-manager/src/services/schemas/IntegrationconfigGetAirbyteIntegrationConfigResponse.d.ts +0 -10
- package/dist/integration-manager/src/services/schemas/IntegrationconfigUpdateAirbyteIntegrationResponse.d.ts +0 -10
- package/dist/integration-manager/src/services/schemas/TypesAirbyteCatalog.d.ts +0 -4
- /package/dist/integration-manager/src/services/schemas/{IntegrationconfigCreateAirbyteIntegrationResponse.js → AirbyteFetchAirbyteConnectorCatalogResponse.js} +0 -0
- /package/dist/integration-manager/src/services/schemas/{IntegrationconfigGetAirbyteIntegrationConfigResponse.js → IntegrationconfigAirbyteIntegrationResponse.js} +0 -0
- /package/dist/integration-manager/src/services/schemas/{IntegrationconfigUpdateAirbyteIntegrationResponse.js → TypesAirbyteCatalogConfigured.js} +0 -0
- /package/dist/integration-manager/src/services/schemas/{TypesAirbyteCatalog.js → TypesAirbyteCatalogDiscovered.js} +0 -0
- /package/dist/integration-manager/src/services/schemas/{TypesAirbyteConfiguredStream.js → TypesAirbyteStreamConfigured.js} +0 -0
- /package/dist/integration-manager/src/services/schemas/{TypesCatalogConfig.js → TypesHarnessAirbyteConfig.js} +0 -0
package/dist/integration-manager/src/services/hooks/useCreateAirbyteIntegrationConfigMutation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IntegrationconfigAirbyteIntegrationResponse } from '../schemas/IntegrationconfigAirbyteIntegrationResponse';
|
|
3
3
|
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
4
|
import type { OpenapiCreateAirbyteIntegrationConfigRequest } from '../schemas/OpenapiCreateAirbyteIntegrationConfigRequest';
|
|
5
5
|
import type { ResponseWithPagination } from '../helpers';
|
|
@@ -8,7 +8,7 @@ export interface CreateAirbyteIntegrationConfigMutationPathParams {
|
|
|
8
8
|
accountIdentifier: string;
|
|
9
9
|
}
|
|
10
10
|
export type CreateAirbyteIntegrationConfigRequestBody = OpenapiCreateAirbyteIntegrationConfigRequest;
|
|
11
|
-
export type CreateAirbyteIntegrationConfigOkResponse = ResponseWithPagination<
|
|
11
|
+
export type CreateAirbyteIntegrationConfigOkResponse = ResponseWithPagination<IntegrationconfigAirbyteIntegrationResponse>;
|
|
12
12
|
export type CreateAirbyteIntegrationConfigErrorResponse = ApierrorsErrorResponse;
|
|
13
13
|
export interface CreateAirbyteIntegrationConfigProps extends CreateAirbyteIntegrationConfigMutationPathParams, Omit<FetcherOptions<unknown, CreateAirbyteIntegrationConfigRequestBody>, 'url'> {
|
|
14
14
|
body: CreateAirbyteIntegrationConfigRequestBody;
|
package/dist/integration-manager/src/services/hooks/useFetchAirbyteConnectorCatalogMutation.d.ts
ADDED
|
@@ -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>;
|
package/dist/integration-manager/src/services/hooks/useFetchAirbyteConnectorCatalogMutation.js
ADDED
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AirbyteGetAirbyteConnectorCatalogResponse } from '../schemas/AirbyteGetAirbyteConnectorCatalogResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetAirbyteConnectorCatalogQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetAirbyteConnectorCatalogQueryQueryParams {
|
|
10
|
+
/**
|
|
11
|
+
* Type of integration connector
|
|
12
|
+
*/
|
|
13
|
+
integration_type: string;
|
|
14
|
+
/**
|
|
15
|
+
* Filter for specific tables/streams
|
|
16
|
+
*/
|
|
17
|
+
table_filter?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Start date filter
|
|
20
|
+
*/
|
|
21
|
+
start_date?: string;
|
|
22
|
+
}
|
|
23
|
+
export type GetAirbyteConnectorCatalogOkResponse = ResponseWithPagination<AirbyteGetAirbyteConnectorCatalogResponse>;
|
|
24
|
+
export type GetAirbyteConnectorCatalogErrorResponse = ApierrorsErrorResponse;
|
|
25
|
+
export interface GetAirbyteConnectorCatalogProps extends GetAirbyteConnectorCatalogQueryPathParams, Omit<FetcherOptions<GetAirbyteConnectorCatalogQueryQueryParams, unknown>, 'url'> {
|
|
26
|
+
queryParams: GetAirbyteConnectorCatalogQueryQueryParams;
|
|
27
|
+
}
|
|
28
|
+
export declare function getAirbyteConnectorCatalog(props: GetAirbyteConnectorCatalogProps): Promise<GetAirbyteConnectorCatalogOkResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves a cached Airbyte connector catalog filtered by integration type, table filter, and start date. This is a lightweight endpoint that returns previously discovered catalog data.
|
|
31
|
+
*/
|
|
32
|
+
export declare function useGetAirbyteConnectorCatalogQuery(props: GetAirbyteConnectorCatalogProps, options?: Omit<UseQueryOptions<GetAirbyteConnectorCatalogOkResponse, GetAirbyteConnectorCatalogErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAirbyteConnectorCatalogOkResponse, ApierrorsErrorResponse>;
|
|
@@ -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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getAirbyteConnectorCatalog(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/airbyte/catalog`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a cached Airbyte connector catalog filtered by integration type, table filter, and start date. This is a lightweight endpoint that returns previously discovered catalog data.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAirbyteConnectorCatalogQuery(props, options) {
|
|
13
|
+
return useQuery(['getAirbyteConnectorCatalog', props.accountIdentifier, props.queryParams], ({ signal }) => getAirbyteConnectorCatalog(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/integration-manager/src/services/hooks/useGetAirbyteIntegrationConfigQuery.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IntegrationconfigAirbyteIntegrationResponse } from '../schemas/IntegrationconfigAirbyteIntegrationResponse';
|
|
3
3
|
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -7,7 +7,7 @@ export interface GetAirbyteIntegrationConfigQueryPathParams {
|
|
|
7
7
|
accountIdentifier: string;
|
|
8
8
|
integrationconfig_identifier: string;
|
|
9
9
|
}
|
|
10
|
-
export type GetAirbyteIntegrationConfigOkResponse = ResponseWithPagination<
|
|
10
|
+
export type GetAirbyteIntegrationConfigOkResponse = ResponseWithPagination<IntegrationconfigAirbyteIntegrationResponse>;
|
|
11
11
|
export type GetAirbyteIntegrationConfigErrorResponse = ApierrorsErrorResponse;
|
|
12
12
|
export interface GetAirbyteIntegrationConfigProps extends GetAirbyteIntegrationConfigQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
13
13
|
}
|
package/dist/integration-manager/src/services/hooks/useUpdateAirbyteIntegrationConfigMutation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IntegrationconfigAirbyteIntegrationResponse } from '../schemas/IntegrationconfigAirbyteIntegrationResponse';
|
|
3
3
|
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
4
|
import type { OpenapiUpdateAirbyteIntegrationConfigRequest } from '../schemas/OpenapiUpdateAirbyteIntegrationConfigRequest';
|
|
5
5
|
import type { ResponseWithPagination } from '../helpers';
|
|
@@ -9,7 +9,7 @@ export interface UpdateAirbyteIntegrationConfigMutationPathParams {
|
|
|
9
9
|
integrationconfig_identifier: string;
|
|
10
10
|
}
|
|
11
11
|
export type UpdateAirbyteIntegrationConfigRequestBody = OpenapiUpdateAirbyteIntegrationConfigRequest;
|
|
12
|
-
export type UpdateAirbyteIntegrationConfigOkResponse = ResponseWithPagination<
|
|
12
|
+
export type UpdateAirbyteIntegrationConfigOkResponse = ResponseWithPagination<IntegrationconfigAirbyteIntegrationResponse>;
|
|
13
13
|
export type UpdateAirbyteIntegrationConfigErrorResponse = ApierrorsErrorResponse;
|
|
14
14
|
export interface UpdateAirbyteIntegrationConfigProps extends UpdateAirbyteIntegrationConfigMutationPathParams, Omit<FetcherOptions<unknown, UpdateAirbyteIntegrationConfigRequestBody>, 'url'> {
|
|
15
15
|
body: UpdateAirbyteIntegrationConfigRequestBody;
|
|
@@ -9,10 +9,12 @@ 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
|
-
export type { GetAirbyteConnectorCatalogErrorResponse,
|
|
15
|
-
export { getAirbyteConnectorCatalog,
|
|
16
|
+
export type { GetAirbyteConnectorCatalogErrorResponse, GetAirbyteConnectorCatalogOkResponse, GetAirbyteConnectorCatalogProps, GetAirbyteConnectorCatalogQueryPathParams, GetAirbyteConnectorCatalogQueryQueryParams, } from './hooks/useGetAirbyteConnectorCatalogQuery';
|
|
17
|
+
export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogQuery, } from './hooks/useGetAirbyteConnectorCatalogQuery';
|
|
16
18
|
export type { GetAirbyteIntegrationConfigErrorResponse, GetAirbyteIntegrationConfigOkResponse, GetAirbyteIntegrationConfigProps, GetAirbyteIntegrationConfigQueryPathParams, } from './hooks/useGetAirbyteIntegrationConfigQuery';
|
|
17
19
|
export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
|
|
18
20
|
export type { GetIntegrationConfigErrorResponse, GetIntegrationConfigOkResponse, GetIntegrationConfigProps, GetIntegrationConfigQueryPathParams, } from './hooks/useGetIntegrationConfigQuery';
|
|
@@ -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';
|
|
@@ -38,11 +41,9 @@ export type { EnumAirbyteDestinationSyncMode } from './schemas/EnumAirbyteDestin
|
|
|
38
41
|
export type { EnumAirbyteSyncMode } from './schemas/EnumAirbyteSyncMode';
|
|
39
42
|
export type { EnumIntegrationMode } from './schemas/EnumIntegrationMode';
|
|
40
43
|
export type { EnumIntegrationType } from './schemas/EnumIntegrationType';
|
|
41
|
-
export type {
|
|
42
|
-
export type { IntegrationconfigGetAirbyteIntegrationConfigResponse } from './schemas/IntegrationconfigGetAirbyteIntegrationConfigResponse';
|
|
44
|
+
export type { IntegrationconfigAirbyteIntegrationResponse } from './schemas/IntegrationconfigAirbyteIntegrationResponse';
|
|
43
45
|
export type { IntegrationconfigSyncStatus } from './schemas/IntegrationconfigSyncStatus';
|
|
44
46
|
export type { IntegrationconfigTriggerSyncResponse } from './schemas/IntegrationconfigTriggerSyncResponse';
|
|
45
|
-
export type { IntegrationconfigUpdateAirbyteIntegrationResponse } from './schemas/IntegrationconfigUpdateAirbyteIntegrationResponse';
|
|
46
47
|
export type { OpenapiCreateAgentRequest } from './schemas/OpenapiCreateAgentRequest';
|
|
47
48
|
export type { OpenapiCreateAirbyteIntegrationConfigRequest } from './schemas/OpenapiCreateAirbyteIntegrationConfigRequest';
|
|
48
49
|
export type { OpenapiCreateIntegrationConfigRequest } from './schemas/OpenapiCreateIntegrationConfigRequest';
|
|
@@ -51,15 +52,16 @@ export type { OpenapiUpdateAgentRequest } from './schemas/OpenapiUpdateAgentRequ
|
|
|
51
52
|
export type { OpenapiUpdateAirbyteIntegrationConfigRequest } from './schemas/OpenapiUpdateAirbyteIntegrationConfigRequest';
|
|
52
53
|
export type { OpenapiUpdateIntegrationConfigRequest } from './schemas/OpenapiUpdateIntegrationConfigRequest';
|
|
53
54
|
export type { TypesAgentStatus } from './schemas/TypesAgentStatus';
|
|
54
|
-
export type {
|
|
55
|
-
export type {
|
|
55
|
+
export type { TypesAirbyteCatalogConfigured } from './schemas/TypesAirbyteCatalogConfigured';
|
|
56
|
+
export type { TypesAirbyteCatalogDiscovered } from './schemas/TypesAirbyteCatalogDiscovered';
|
|
56
57
|
export type { TypesAirbyteConnector } from './schemas/TypesAirbyteConnector';
|
|
57
58
|
export type { TypesAirbyteStream } from './schemas/TypesAirbyteStream';
|
|
58
|
-
export type {
|
|
59
|
+
export type { TypesAirbyteStreamConfigured } from './schemas/TypesAirbyteStreamConfigured';
|
|
59
60
|
export type { TypesEntityMapping } from './schemas/TypesEntityMapping';
|
|
60
61
|
export type { TypesEntityMappingSpec } from './schemas/TypesEntityMappingSpec';
|
|
61
62
|
export type { TypesEntitySchema } from './schemas/TypesEntitySchema';
|
|
62
63
|
export type { TypesFieldMapping } from './schemas/TypesFieldMapping';
|
|
64
|
+
export type { TypesHarnessAirbyteConfig } from './schemas/TypesHarnessAirbyteConfig';
|
|
63
65
|
export type { TypesIntegrationAgent } from './schemas/TypesIntegrationAgent';
|
|
64
66
|
export type { TypesIntegrationConfig } from './schemas/TypesIntegrationConfig';
|
|
65
67
|
export type { TypesJsonSchema } from './schemas/TypesJsonSchema';
|
|
@@ -3,8 +3,9 @@ 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
|
-
export { getAirbyteConnectorCatalog,
|
|
8
|
+
export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogQuery, } from './hooks/useGetAirbyteConnectorCatalogQuery';
|
|
8
9
|
export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
|
|
9
10
|
export { getIntegrationConfig, useGetIntegrationConfigQuery, } from './hooks/useGetIntegrationConfigQuery';
|
|
10
11
|
export { listAgents, useListAgentsQuery } from './hooks/useListAgentsQuery';
|
|
@@ -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
|
+
}
|
package/dist/integration-manager/src/services/schemas/AirbyteGetAirbyteConnectorCatalogResponse.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { TypesCatalogConfig } from '../schemas/TypesCatalogConfig';
|
|
1
|
+
import type { TypesAirbyteCatalogDiscovered } from '../schemas/TypesAirbyteCatalogDiscovered';
|
|
3
2
|
import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
|
|
4
3
|
export interface AirbyteGetAirbyteConnectorCatalogResponse {
|
|
5
|
-
catalog?:
|
|
6
|
-
config?: TypesCatalogConfig;
|
|
4
|
+
catalog?: TypesAirbyteCatalogDiscovered;
|
|
7
5
|
integration_type?: EnumIntegrationType;
|
|
8
|
-
|
|
6
|
+
start_date?: string;
|
|
7
|
+
table_filter?: string;
|
|
9
8
|
}
|
|
@@ -2,7 +2,7 @@ import type { TypesAirbyteConnector } from '../schemas/TypesAirbyteConnector';
|
|
|
2
2
|
import type { TypesEntityMapping } from '../schemas/TypesEntityMapping';
|
|
3
3
|
import type { TypesEntitySchema } from '../schemas/TypesEntitySchema';
|
|
4
4
|
import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
|
|
5
|
-
export interface
|
|
5
|
+
export interface IntegrationconfigAirbyteIntegrationResponse {
|
|
6
6
|
airbyte_connector?: TypesAirbyteConnector;
|
|
7
7
|
entity_mappings?: TypesEntityMapping[] | null;
|
|
8
8
|
entity_schemas?: TypesEntitySchema[] | null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TypesAirbyteCatalogDiscovered } from '../schemas/TypesAirbyteCatalogDiscovered';
|
|
2
2
|
import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
|
|
3
3
|
import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
|
|
4
4
|
import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
|
|
5
5
|
export interface OpenapiCreateAirbyteIntegrationConfigRequest {
|
|
6
|
-
discovered_catalog?:
|
|
6
|
+
discovered_catalog?: TypesAirbyteCatalogDiscovered;
|
|
7
7
|
entity_mappings_per_kind?: {
|
|
8
8
|
[key: string]: TypesFieldMapping[];
|
|
9
9
|
} | null;
|
package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigRequest.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
|
|
2
|
-
import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
|
|
3
2
|
export interface OpenapiCreateIntegrationConfigRequest {
|
|
4
3
|
configuration?: {
|
|
5
4
|
[key: string]: any;
|
|
@@ -7,6 +6,5 @@ export interface OpenapiCreateIntegrationConfigRequest {
|
|
|
7
6
|
identifier?: string;
|
|
8
7
|
integration_type?: EnumIntegrationType;
|
|
9
8
|
kinds?: string[];
|
|
10
|
-
mapping_config?: TypesMappingConfig;
|
|
11
9
|
name?: string;
|
|
12
10
|
}
|
package/dist/integration-manager/src/services/schemas/OpenapiGetAirbyteConnectorCatalogRequest.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TypesHarnessAirbyteConfig } from '../schemas/TypesHarnessAirbyteConfig';
|
|
2
2
|
import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
|
|
3
3
|
export interface OpenapiGetAirbyteConnectorCatalogRequest {
|
|
4
|
-
config?:
|
|
4
|
+
config?: TypesHarnessAirbyteConfig;
|
|
5
5
|
delegate_selectors?: string[] | null;
|
|
6
|
+
hard_refresh?: boolean;
|
|
6
7
|
integration_type?: EnumIntegrationType;
|
|
7
8
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TypesAirbyteCatalogConfigured } from '../schemas/TypesAirbyteCatalogConfigured';
|
|
2
|
+
import type { TypesAirbyteCatalogDiscovered } from '../schemas/TypesAirbyteCatalogDiscovered';
|
|
2
3
|
export type TypesAirbyteConnector = {
|
|
3
4
|
config_schema?: {
|
|
4
5
|
[key: string]: any;
|
|
5
6
|
};
|
|
6
|
-
configured_catalog?:
|
|
7
|
+
configured_catalog?: TypesAirbyteCatalogConfigured;
|
|
7
8
|
connector_image?: string;
|
|
8
9
|
connector_tag?: string;
|
|
9
10
|
/**
|
|
@@ -11,7 +12,7 @@ export type TypesAirbyteConnector = {
|
|
|
11
12
|
*/
|
|
12
13
|
created?: string;
|
|
13
14
|
delegate_selectors?: string[];
|
|
14
|
-
discovered_catalog?:
|
|
15
|
+
discovered_catalog?: TypesAirbyteCatalogDiscovered;
|
|
15
16
|
id?: string;
|
|
16
17
|
integration_id?: string;
|
|
17
18
|
k8s_connector_ref?: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { EnumAirbyteDestinationSyncMode } from '../schemas/EnumAirbyteDestinationSyncMode';
|
|
2
2
|
import type { TypesAirbyteStream } from '../schemas/TypesAirbyteStream';
|
|
3
3
|
import type { EnumAirbyteSyncMode } from '../schemas/EnumAirbyteSyncMode';
|
|
4
|
-
export interface
|
|
4
|
+
export interface TypesAirbyteStreamConfigured {
|
|
5
|
+
cursor_field?: string[];
|
|
5
6
|
destination_sync_mode?: EnumAirbyteDestinationSyncMode;
|
|
6
7
|
stream?: TypesAirbyteStream;
|
|
7
8
|
sync_mode?: EnumAirbyteSyncMode;
|
package/package.json
CHANGED
package/dist/integration-manager/src/services/hooks/useGetAirbyteConnectorCatalogMutation.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { AirbyteGetAirbyteConnectorCatalogResponse } from '../schemas/AirbyteGetAirbyteConnectorCatalogResponse';
|
|
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 GetAirbyteConnectorCatalogMutationPathParams {
|
|
8
|
-
accountIdentifier: string;
|
|
9
|
-
}
|
|
10
|
-
export type GetAirbyteConnectorCatalogRequestBody = OpenapiGetAirbyteConnectorCatalogRequest;
|
|
11
|
-
export type GetAirbyteConnectorCatalogOkResponse = ResponseWithPagination<AirbyteGetAirbyteConnectorCatalogResponse>;
|
|
12
|
-
export type GetAirbyteConnectorCatalogErrorResponse = ApierrorsErrorResponse;
|
|
13
|
-
export interface GetAirbyteConnectorCatalogProps extends GetAirbyteConnectorCatalogMutationPathParams, Omit<FetcherOptions<unknown, GetAirbyteConnectorCatalogRequestBody>, 'url'> {
|
|
14
|
-
body: GetAirbyteConnectorCatalogRequestBody;
|
|
15
|
-
}
|
|
16
|
-
export declare function getAirbyteConnectorCatalog(props: GetAirbyteConnectorCatalogProps): Promise<GetAirbyteConnectorCatalogOkResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves the catalog for an Airbyte connector. This endpoint queries the connector to get available streams and their schemas.
|
|
19
|
-
*/
|
|
20
|
-
export declare function useGetAirbyteConnectorCatalogMutation(options?: Omit<UseMutationOptions<GetAirbyteConnectorCatalogOkResponse, GetAirbyteConnectorCatalogErrorResponse, GetAirbyteConnectorCatalogProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetAirbyteConnectorCatalogOkResponse, ApierrorsErrorResponse, GetAirbyteConnectorCatalogProps, unknown>;
|
package/dist/integration-manager/src/services/hooks/useGetAirbyteConnectorCatalogMutation.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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 getAirbyteConnectorCatalog(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/airbyte/catalog`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves the catalog for an Airbyte connector. This endpoint queries the connector to get available streams and their schemas.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetAirbyteConnectorCatalogMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => getAirbyteConnectorCatalog(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { TypesAirbyteConnector } from '../schemas/TypesAirbyteConnector';
|
|
2
|
-
import type { TypesEntityMapping } from '../schemas/TypesEntityMapping';
|
|
3
|
-
import type { TypesEntitySchema } from '../schemas/TypesEntitySchema';
|
|
4
|
-
import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
|
|
5
|
-
export interface IntegrationconfigGetAirbyteIntegrationConfigResponse {
|
|
6
|
-
airbyte_connector?: TypesAirbyteConnector;
|
|
7
|
-
entity_mappings?: TypesEntityMapping[] | null;
|
|
8
|
-
entity_schemas?: TypesEntitySchema[] | null;
|
|
9
|
-
integration_config?: TypesIntegrationConfig;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { TypesAirbyteConnector } from '../schemas/TypesAirbyteConnector';
|
|
2
|
-
import type { TypesEntityMapping } from '../schemas/TypesEntityMapping';
|
|
3
|
-
import type { TypesEntitySchema } from '../schemas/TypesEntitySchema';
|
|
4
|
-
import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
|
|
5
|
-
export interface IntegrationconfigUpdateAirbyteIntegrationResponse {
|
|
6
|
-
airbyte_connector?: TypesAirbyteConnector;
|
|
7
|
-
entity_mappings?: TypesEntityMapping[] | null;
|
|
8
|
-
entity_schemas?: TypesEntitySchema[] | null;
|
|
9
|
-
integration_config?: TypesIntegrationConfig;
|
|
10
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|