@harnessio/react-integration-manager-client 0.3.2 → 0.3.4
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/useGetAirbyteConnectorCatalogMutation.d.ts +20 -0
- package/dist/integration-manager/src/services/hooks/{useGetAirbyteConnectorCatalogQuery.js → useGetAirbyteConnectorCatalogMutation.js} +4 -4
- package/dist/integration-manager/src/services/index.d.ts +3 -2
- package/dist/integration-manager/src/services/index.js +1 -1
- package/dist/integration-manager/src/services/schemas/OpenapiGetAirbyteConnectorCatalogRequest.d.ts +7 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetAirbyteConnectorCatalogRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/TypesEntityMapping.d.ts +2 -0
- package/package.json +1 -1
- package/dist/integration-manager/src/services/hooks/useGetAirbyteConnectorCatalogQuery.d.ts +0 -17
package/dist/integration-manager/src/services/hooks/useGetAirbyteConnectorCatalogMutation.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
|
-
import {
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getAirbyteConnectorCatalog(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/airbyte/catalog`, method: '
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/airbyte/catalog`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Retrieves the catalog for an Airbyte connector. This endpoint queries the connector to get available streams and their schemas.
|
|
11
11
|
*/
|
|
12
|
-
export function
|
|
13
|
-
return
|
|
12
|
+
export function useGetAirbyteConnectorCatalogMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => getAirbyteConnectorCatalog(mutateProps), options);
|
|
14
14
|
}
|
|
@@ -11,8 +11,8 @@ export type { DownloadAgentYamlErrorResponse, DownloadAgentYamlOkResponse, Downl
|
|
|
11
11
|
export { downloadAgentYaml, useDownloadAgentYamlQuery } from './hooks/useDownloadAgentYamlQuery';
|
|
12
12
|
export type { GetAgentErrorResponse, GetAgentOkResponse, GetAgentProps, GetAgentQueryPathParams, } from './hooks/useGetAgentQuery';
|
|
13
13
|
export { getAgent, useGetAgentQuery } from './hooks/useGetAgentQuery';
|
|
14
|
-
export type { GetAirbyteConnectorCatalogErrorResponse, GetAirbyteConnectorCatalogOkResponse, GetAirbyteConnectorCatalogProps,
|
|
15
|
-
export { getAirbyteConnectorCatalog,
|
|
14
|
+
export type { GetAirbyteConnectorCatalogErrorResponse, GetAirbyteConnectorCatalogMutationPathParams, GetAirbyteConnectorCatalogOkResponse, GetAirbyteConnectorCatalogProps, GetAirbyteConnectorCatalogRequestBody, } from './hooks/useGetAirbyteConnectorCatalogMutation';
|
|
15
|
+
export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogMutation, } from './hooks/useGetAirbyteConnectorCatalogMutation';
|
|
16
16
|
export type { GetAirbyteIntegrationConfigErrorResponse, GetAirbyteIntegrationConfigOkResponse, GetAirbyteIntegrationConfigProps, GetAirbyteIntegrationConfigQueryPathParams, } from './hooks/useGetAirbyteIntegrationConfigQuery';
|
|
17
17
|
export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
|
|
18
18
|
export type { GetIntegrationConfigErrorResponse, GetIntegrationConfigOkResponse, GetIntegrationConfigProps, GetIntegrationConfigQueryPathParams, } from './hooks/useGetIntegrationConfigQuery';
|
|
@@ -46,6 +46,7 @@ export type { IntegrationconfigUpdateAirbyteIntegrationResponse } from './schema
|
|
|
46
46
|
export type { OpenapiCreateAgentRequest } from './schemas/OpenapiCreateAgentRequest';
|
|
47
47
|
export type { OpenapiCreateAirbyteIntegrationConfigRequest } from './schemas/OpenapiCreateAirbyteIntegrationConfigRequest';
|
|
48
48
|
export type { OpenapiCreateIntegrationConfigRequest } from './schemas/OpenapiCreateIntegrationConfigRequest';
|
|
49
|
+
export type { OpenapiGetAirbyteConnectorCatalogRequest } from './schemas/OpenapiGetAirbyteConnectorCatalogRequest';
|
|
49
50
|
export type { OpenapiUpdateAgentRequest } from './schemas/OpenapiUpdateAgentRequest';
|
|
50
51
|
export type { OpenapiUpdateAirbyteIntegrationConfigRequest } from './schemas/OpenapiUpdateAirbyteIntegrationConfigRequest';
|
|
51
52
|
export type { OpenapiUpdateIntegrationConfigRequest } from './schemas/OpenapiUpdateIntegrationConfigRequest';
|
|
@@ -4,7 +4,7 @@ export { createIntegrationConfig, useCreateIntegrationConfigMutation, } from './
|
|
|
4
4
|
export { deleteAgent, useDeleteAgentMutation } from './hooks/useDeleteAgentMutation';
|
|
5
5
|
export { downloadAgentYaml, useDownloadAgentYamlQuery } from './hooks/useDownloadAgentYamlQuery';
|
|
6
6
|
export { getAgent, useGetAgentQuery } from './hooks/useGetAgentQuery';
|
|
7
|
-
export { getAirbyteConnectorCatalog,
|
|
7
|
+
export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogMutation, } from './hooks/useGetAirbyteConnectorCatalogMutation';
|
|
8
8
|
export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
|
|
9
9
|
export { getIntegrationConfig, useGetIntegrationConfigQuery, } from './hooks/useGetIntegrationConfigQuery';
|
|
10
10
|
export { listAgents, useListAgentsQuery } from './hooks/useListAgentsQuery';
|
package/dist/integration-manager/src/services/schemas/OpenapiGetAirbyteConnectorCatalogRequest.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TypesCatalogConfig } from '../schemas/TypesCatalogConfig';
|
|
2
|
+
import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
|
|
3
|
+
export interface OpenapiGetAirbyteConnectorCatalogRequest {
|
|
4
|
+
config?: TypesCatalogConfig;
|
|
5
|
+
delegate_selectors?: string[] | null;
|
|
6
|
+
integration_type?: EnumIntegrationType;
|
|
7
|
+
}
|
package/dist/integration-manager/src/services/schemas/OpenapiGetAirbyteConnectorCatalogRequest.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
|
|
1
2
|
import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
|
|
2
3
|
import type { TypesEntityMappingSpec } from '../schemas/TypesEntityMappingSpec';
|
|
3
4
|
export interface TypesEntityMapping {
|
|
4
5
|
created?: number;
|
|
5
6
|
entity_schema_id?: string;
|
|
7
|
+
field_mappings?: TypesFieldMapping[];
|
|
6
8
|
id?: string;
|
|
7
9
|
integration_id?: string;
|
|
8
10
|
kind?: string;
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
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 type GetAirbyteConnectorCatalogOkResponse = ResponseWithPagination<AirbyteGetAirbyteConnectorCatalogResponse>;
|
|
10
|
-
export type GetAirbyteConnectorCatalogErrorResponse = ApierrorsErrorResponse;
|
|
11
|
-
export interface GetAirbyteConnectorCatalogProps extends GetAirbyteConnectorCatalogQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
12
|
-
}
|
|
13
|
-
export declare function getAirbyteConnectorCatalog(props: GetAirbyteConnectorCatalogProps): Promise<GetAirbyteConnectorCatalogOkResponse>;
|
|
14
|
-
/**
|
|
15
|
-
* Retrieves the catalog for an Airbyte connector. This endpoint queries the connector to get available streams and their schemas.
|
|
16
|
-
*/
|
|
17
|
-
export declare function useGetAirbyteConnectorCatalogQuery(props: GetAirbyteConnectorCatalogProps, options?: Omit<UseQueryOptions<GetAirbyteConnectorCatalogOkResponse, GetAirbyteConnectorCatalogErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAirbyteConnectorCatalogOkResponse, ApierrorsErrorResponse>;
|