@harnessio/react-integration-manager-client 0.3.0 → 0.3.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/integration-manager/src/services/hooks/useGetAirbyteIntegrationConfigQuery.d.ts +18 -0
- package/dist/integration-manager/src/services/hooks/useGetAirbyteIntegrationConfigQuery.js +14 -0
- package/dist/integration-manager/src/services/hooks/useUpdateAirbyteIntegrationConfigMutation.d.ts +21 -0
- package/dist/integration-manager/src/services/hooks/useUpdateAirbyteIntegrationConfigMutation.js +14 -0
- package/dist/integration-manager/src/services/index.d.ts +7 -1
- package/dist/integration-manager/src/services/index.js +2 -0
- package/dist/integration-manager/src/services/schemas/IntegrationconfigGetAirbyteIntegrationConfigResponse.d.ts +10 -0
- package/dist/integration-manager/src/services/schemas/IntegrationconfigGetAirbyteIntegrationConfigResponse.js +1 -0
- package/dist/integration-manager/src/services/schemas/IntegrationconfigTriggerSyncResponse.d.ts +0 -3
- package/dist/integration-manager/src/services/schemas/IntegrationconfigTriggerSyncResponse.js +3 -0
- package/dist/integration-manager/src/services/schemas/IntegrationconfigUpdateAirbyteIntegrationResponse.d.ts +10 -0
- package/dist/integration-manager/src/services/schemas/IntegrationconfigUpdateAirbyteIntegrationResponse.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateAirbyteIntegrationConfigRequest.d.ts +12 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateAirbyteIntegrationConfigRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigRequest.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/TypesCatalogConfig.d.ts +1 -1
- package/dist/integration-manager/src/services/schemas/TypesLastSyncInfo.d.ts +1 -1
- package/dist/integration-manager/src/services/schemas/TypesMappingConfig.d.ts +2 -3
- package/dist/integration-manager/src/services/schemas/TypesMappingConfig.js +3 -0
- package/package.json +1 -1
- package/dist/integration-manager/src/services/schemas/IntegrationconfigSyncStatus.d.ts +0 -1
- package/dist/integration-manager/src/services/schemas/IntegrationconfigSyncStatus.js +0 -4
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationconfigGetAirbyteIntegrationConfigResponse } from '../schemas/IntegrationconfigGetAirbyteIntegrationConfigResponse';
|
|
3
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetAirbyteIntegrationConfigQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
integrationconfig_identifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type GetAirbyteIntegrationConfigOkResponse = ResponseWithPagination<IntegrationconfigGetAirbyteIntegrationConfigResponse>;
|
|
11
|
+
export type GetAirbyteIntegrationConfigErrorResponse = UsererrorError;
|
|
12
|
+
export interface GetAirbyteIntegrationConfigProps extends GetAirbyteIntegrationConfigQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
13
|
+
}
|
|
14
|
+
export declare function getAirbyteIntegrationConfig(props: GetAirbyteIntegrationConfigProps): Promise<GetAirbyteIntegrationConfigOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves complete Airbyte integration details including the integration config, airbyte connector, entity schemas, and entity mappings. Returns the same response structure as CreateAirbyteIntegrationConfig for consistency.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useGetAirbyteIntegrationConfigQuery(props: GetAirbyteIntegrationConfigProps, options?: Omit<UseQueryOptions<GetAirbyteIntegrationConfigOkResponse, GetAirbyteIntegrationConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAirbyteIntegrationConfigOkResponse, UsererrorError>;
|
|
@@ -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 getAirbyteIntegrationConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/airbyte/${props.integrationconfig_identifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves complete Airbyte integration details including the integration config, airbyte connector, entity schemas, and entity mappings. Returns the same response structure as CreateAirbyteIntegrationConfig for consistency.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAirbyteIntegrationConfigQuery(props, options) {
|
|
13
|
+
return useQuery(['getAirbyteIntegrationConfig', props.accountIdentifier, props.integrationconfig_identifier], ({ signal }) => getAirbyteIntegrationConfig(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/integration-manager/src/services/hooks/useUpdateAirbyteIntegrationConfigMutation.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationconfigUpdateAirbyteIntegrationResponse } from '../schemas/IntegrationconfigUpdateAirbyteIntegrationResponse';
|
|
3
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
|
+
import type { OpenapiUpdateAirbyteIntegrationConfigRequest } from '../schemas/OpenapiUpdateAirbyteIntegrationConfigRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpdateAirbyteIntegrationConfigMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
integrationconfig_identifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type UpdateAirbyteIntegrationConfigRequestBody = OpenapiUpdateAirbyteIntegrationConfigRequest;
|
|
12
|
+
export type UpdateAirbyteIntegrationConfigOkResponse = ResponseWithPagination<IntegrationconfigUpdateAirbyteIntegrationResponse>;
|
|
13
|
+
export type UpdateAirbyteIntegrationConfigErrorResponse = UsererrorError;
|
|
14
|
+
export interface UpdateAirbyteIntegrationConfigProps extends UpdateAirbyteIntegrationConfigMutationPathParams, Omit<FetcherOptions<unknown, UpdateAirbyteIntegrationConfigRequestBody>, 'url'> {
|
|
15
|
+
body: UpdateAirbyteIntegrationConfigRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export declare function updateAirbyteIntegrationConfig(props: UpdateAirbyteIntegrationConfigProps): Promise<UpdateAirbyteIntegrationConfigOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Updates an Airbyte integration allowing modification of name, integration config, mapping config, and entity mappings per kind. This endpoint updates the configured catalog in the airbyte connector, entity schemas, and entity mappings. Returns the updated integration config along with the associated airbyte connector, entity schemas, and entity mappings.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useUpdateAirbyteIntegrationConfigMutation(options?: Omit<UseMutationOptions<UpdateAirbyteIntegrationConfigOkResponse, UpdateAirbyteIntegrationConfigErrorResponse, UpdateAirbyteIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateAirbyteIntegrationConfigOkResponse, UsererrorError, UpdateAirbyteIntegrationConfigProps, unknown>;
|
package/dist/integration-manager/src/services/hooks/useUpdateAirbyteIntegrationConfigMutation.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 updateAirbyteIntegrationConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/airbyte/${props.integrationconfig_identifier}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Updates an Airbyte integration allowing modification of name, integration config, mapping config, and entity mappings per kind. This endpoint updates the configured catalog in the airbyte connector, entity schemas, and entity mappings. Returns the updated integration config along with the associated airbyte connector, entity schemas, and entity mappings.
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateAirbyteIntegrationConfigMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateAirbyteIntegrationConfig(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -13,6 +13,8 @@ export type { GetAgentErrorResponse, GetAgentOkResponse, GetAgentProps, GetAgent
|
|
|
13
13
|
export { getAgent, useGetAgentQuery } from './hooks/useGetAgentQuery';
|
|
14
14
|
export type { GetAirbyteConnectorCatalogErrorResponse, GetAirbyteConnectorCatalogMutationPathParams, GetAirbyteConnectorCatalogOkResponse, GetAirbyteConnectorCatalogProps, GetAirbyteConnectorCatalogRequestBody, } from './hooks/useGetAirbyteConnectorCatalogMutation';
|
|
15
15
|
export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogMutation, } from './hooks/useGetAirbyteConnectorCatalogMutation';
|
|
16
|
+
export type { GetAirbyteIntegrationConfigErrorResponse, GetAirbyteIntegrationConfigOkResponse, GetAirbyteIntegrationConfigProps, GetAirbyteIntegrationConfigQueryPathParams, } from './hooks/useGetAirbyteIntegrationConfigQuery';
|
|
17
|
+
export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
|
|
16
18
|
export type { GetIntegrationConfigErrorResponse, GetIntegrationConfigOkResponse, GetIntegrationConfigProps, GetIntegrationConfigQueryPathParams, } from './hooks/useGetIntegrationConfigQuery';
|
|
17
19
|
export { getIntegrationConfig, useGetIntegrationConfigQuery, } from './hooks/useGetIntegrationConfigQuery';
|
|
18
20
|
export type { ListAgentsErrorResponse, ListAgentsOkResponse, ListAgentsProps, ListAgentsQueryPathParams, } from './hooks/useListAgentsQuery';
|
|
@@ -23,6 +25,8 @@ export type { TriggerSyncErrorResponse, TriggerSyncMutationPathParams, TriggerSy
|
|
|
23
25
|
export { triggerSync, useTriggerSyncMutation } from './hooks/useTriggerSyncMutation';
|
|
24
26
|
export type { UpdateAgentErrorResponse, UpdateAgentMutationPathParams, UpdateAgentOkResponse, UpdateAgentProps, UpdateAgentRequestBody, } from './hooks/useUpdateAgentMutation';
|
|
25
27
|
export { updateAgent, useUpdateAgentMutation } from './hooks/useUpdateAgentMutation';
|
|
28
|
+
export type { UpdateAirbyteIntegrationConfigErrorResponse, UpdateAirbyteIntegrationConfigMutationPathParams, UpdateAirbyteIntegrationConfigOkResponse, UpdateAirbyteIntegrationConfigProps, UpdateAirbyteIntegrationConfigRequestBody, } from './hooks/useUpdateAirbyteIntegrationConfigMutation';
|
|
29
|
+
export { updateAirbyteIntegrationConfig, useUpdateAirbyteIntegrationConfigMutation, } from './hooks/useUpdateAirbyteIntegrationConfigMutation';
|
|
26
30
|
export type { UpdateIntegrationConfigErrorResponse, UpdateIntegrationConfigMutationPathParams, UpdateIntegrationConfigOkResponse, UpdateIntegrationConfigProps, UpdateIntegrationConfigRequestBody, } from './hooks/useUpdateIntegrationConfigMutation';
|
|
27
31
|
export { updateIntegrationConfig, useUpdateIntegrationConfigMutation, } from './hooks/useUpdateIntegrationConfigMutation';
|
|
28
32
|
export type { UpdateIntegrationStatusErrorResponse, UpdateIntegrationStatusMutationPathParams, UpdateIntegrationStatusMutationQueryParams, UpdateIntegrationStatusOkResponse, UpdateIntegrationStatusProps, } from './hooks/useUpdateIntegrationStatusMutation';
|
|
@@ -33,13 +37,15 @@ export type { EnumAirbyteSyncMode } from './schemas/EnumAirbyteSyncMode';
|
|
|
33
37
|
export type { EnumIntegrationMode } from './schemas/EnumIntegrationMode';
|
|
34
38
|
export type { EnumIntegrationType } from './schemas/EnumIntegrationType';
|
|
35
39
|
export type { IntegrationconfigCreateAirbyteIntegrationResponse } from './schemas/IntegrationconfigCreateAirbyteIntegrationResponse';
|
|
36
|
-
export type {
|
|
40
|
+
export type { IntegrationconfigGetAirbyteIntegrationConfigResponse } from './schemas/IntegrationconfigGetAirbyteIntegrationConfigResponse';
|
|
37
41
|
export type { IntegrationconfigTriggerSyncResponse } from './schemas/IntegrationconfigTriggerSyncResponse';
|
|
42
|
+
export type { IntegrationconfigUpdateAirbyteIntegrationResponse } from './schemas/IntegrationconfigUpdateAirbyteIntegrationResponse';
|
|
38
43
|
export type { OpenapiCreateAgentRequest } from './schemas/OpenapiCreateAgentRequest';
|
|
39
44
|
export type { OpenapiCreateAirbyteIntegrationConfigRequest } from './schemas/OpenapiCreateAirbyteIntegrationConfigRequest';
|
|
40
45
|
export type { OpenapiCreateIntegrationConfigRequest } from './schemas/OpenapiCreateIntegrationConfigRequest';
|
|
41
46
|
export type { OpenapiGetAirbyteConnectorCatalogRequest } from './schemas/OpenapiGetAirbyteConnectorCatalogRequest';
|
|
42
47
|
export type { OpenapiUpdateAgentRequest } from './schemas/OpenapiUpdateAgentRequest';
|
|
48
|
+
export type { OpenapiUpdateAirbyteIntegrationConfigRequest } from './schemas/OpenapiUpdateAirbyteIntegrationConfigRequest';
|
|
43
49
|
export type { OpenapiUpdateIntegrationConfigRequest } from './schemas/OpenapiUpdateIntegrationConfigRequest';
|
|
44
50
|
export type { TypesAgentStatus } from './schemas/TypesAgentStatus';
|
|
45
51
|
export type { TypesAirbyteCatalog } from './schemas/TypesAirbyteCatalog';
|
|
@@ -5,10 +5,12 @@ export { deleteAgent, useDeleteAgentMutation } from './hooks/useDeleteAgentMutat
|
|
|
5
5
|
export { downloadAgentYaml, useDownloadAgentYamlQuery } from './hooks/useDownloadAgentYamlQuery';
|
|
6
6
|
export { getAgent, useGetAgentQuery } from './hooks/useGetAgentQuery';
|
|
7
7
|
export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogMutation, } from './hooks/useGetAirbyteConnectorCatalogMutation';
|
|
8
|
+
export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
|
|
8
9
|
export { getIntegrationConfig, useGetIntegrationConfigQuery, } from './hooks/useGetIntegrationConfigQuery';
|
|
9
10
|
export { listAgents, useListAgentsQuery } from './hooks/useListAgentsQuery';
|
|
10
11
|
export { listIntegrationConfigs, useListIntegrationConfigsQuery, } from './hooks/useListIntegrationConfigsQuery';
|
|
11
12
|
export { triggerSync, useTriggerSyncMutation } from './hooks/useTriggerSyncMutation';
|
|
12
13
|
export { updateAgent, useUpdateAgentMutation } from './hooks/useUpdateAgentMutation';
|
|
14
|
+
export { updateAirbyteIntegrationConfig, useUpdateAirbyteIntegrationConfigMutation, } from './hooks/useUpdateAirbyteIntegrationConfigMutation';
|
|
13
15
|
export { updateIntegrationConfig, useUpdateIntegrationConfigMutation, } from './hooks/useUpdateIntegrationConfigMutation';
|
|
14
16
|
export { updateIntegrationStatus, useUpdateIntegrationStatusMutation, } from './hooks/useUpdateIntegrationStatusMutation';
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
|
|
2
|
+
import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
|
|
3
|
+
export interface OpenapiUpdateAirbyteIntegrationConfigRequest {
|
|
4
|
+
entity_mappings_per_kind?: {
|
|
5
|
+
[key: string]: TypesFieldMapping[];
|
|
6
|
+
} | null;
|
|
7
|
+
integration_config?: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
} | null;
|
|
10
|
+
mapping_config?: TypesMappingConfig;
|
|
11
|
+
name?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
|
|
2
1
|
export interface TypesMappingConfig {
|
|
3
|
-
|
|
4
|
-
correlation_id?: TypesFieldMapping;
|
|
2
|
+
correlation_field?: string;
|
|
5
3
|
display_name_field?: string;
|
|
6
4
|
idp_kind?: string;
|
|
7
5
|
idp_type?: string;
|
|
6
|
+
unique_identifier_field?: string;
|
|
8
7
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type IntegrationconfigSyncStatus = string;
|