@harnessio/react-integration-manager-client 0.3.1 → 0.3.3

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.
Files changed (35) hide show
  1. package/dist/integration-manager/src/services/hooks/useCreateAgentMutation.d.ts +3 -3
  2. package/dist/integration-manager/src/services/hooks/useCreateAirbyteIntegrationConfigMutation.d.ts +3 -3
  3. package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigMutation.d.ts +3 -3
  4. package/dist/integration-manager/src/services/hooks/useDeleteAgentMutation.d.ts +3 -3
  5. package/dist/integration-manager/src/services/hooks/useDownloadAgentYamlQuery.d.ts +3 -3
  6. package/dist/integration-manager/src/services/hooks/useGetAgentQuery.d.ts +3 -3
  7. package/dist/integration-manager/src/services/hooks/useGetAirbyteConnectorCatalogMutation.d.ts +3 -3
  8. package/dist/integration-manager/src/services/hooks/useGetAirbyteIntegrationConfigQuery.d.ts +3 -3
  9. package/dist/integration-manager/src/services/hooks/useGetIntegrationConfigQuery.d.ts +3 -3
  10. package/dist/integration-manager/src/services/hooks/useListAgentsQuery.d.ts +3 -3
  11. package/dist/integration-manager/src/services/hooks/useTriggerSyncMutation.d.ts +3 -3
  12. package/dist/integration-manager/src/services/hooks/useUpdateAgentMutation.d.ts +3 -3
  13. package/dist/integration-manager/src/services/hooks/useUpdateAirbyteIntegrationConfigMutation.d.ts +3 -3
  14. package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigMutation.d.ts +3 -3
  15. package/dist/integration-manager/src/services/hooks/useUpdateIntegrationStatusMutation.d.ts +3 -3
  16. package/dist/integration-manager/src/services/index.d.ts +4 -2
  17. package/dist/integration-manager/src/services/schemas/ApierrorsErrorDetail.d.ts +13 -0
  18. package/dist/integration-manager/src/services/schemas/ApierrorsErrorResponse.d.ts +5 -0
  19. package/dist/integration-manager/src/services/schemas/ApierrorsErrorResponse.js +1 -0
  20. package/dist/integration-manager/src/services/schemas/IntegrationconfigSyncStatus.d.ts +1 -0
  21. package/dist/integration-manager/src/services/schemas/IntegrationconfigTriggerSyncResponse.d.ts +3 -0
  22. package/dist/integration-manager/src/services/schemas/IntegrationconfigTriggerSyncResponse.js +0 -3
  23. package/dist/integration-manager/src/services/schemas/OpenapiCreateAirbyteIntegrationConfigRequest.d.ts +3 -1
  24. package/dist/integration-manager/src/services/schemas/OpenapiGetAirbyteConnectorCatalogRequest.d.ts +0 -1
  25. package/dist/integration-manager/src/services/schemas/OpenapiUpdateAirbyteIntegrationConfigRequest.d.ts +3 -1
  26. package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigRequest.d.ts +0 -1
  27. package/dist/integration-manager/src/services/schemas/TypesAirbyteConnector.d.ts +1 -0
  28. package/dist/integration-manager/src/services/schemas/TypesEntityMappingSpec.d.ts +2 -2
  29. package/dist/integration-manager/src/services/schemas/TypesLastSyncInfo.d.ts +1 -1
  30. package/dist/integration-manager/src/services/schemas/{TypesScopeInfo.d.ts → TypesScope.d.ts} +1 -1
  31. package/dist/integration-manager/src/services/schemas/TypesScope.js +4 -0
  32. package/package.json +1 -1
  33. package/dist/integration-manager/src/services/schemas/UsererrorError.d.ts +0 -6
  34. /package/dist/integration-manager/src/services/schemas/{TypesScopeInfo.js → ApierrorsErrorDetail.js} +0 -0
  35. /package/dist/integration-manager/src/services/schemas/{UsererrorError.js → IntegrationconfigSyncStatus.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { TypesIntegrationAgent } from '../schemas/TypesIntegrationAgent';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
4
  import type { OpenapiCreateAgentRequest } from '../schemas/OpenapiCreateAgentRequest';
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -9,7 +9,7 @@ export interface CreateAgentMutationPathParams {
9
9
  }
10
10
  export type CreateAgentRequestBody = OpenapiCreateAgentRequest;
11
11
  export type CreateAgentOkResponse = ResponseWithPagination<TypesIntegrationAgent>;
12
- export type CreateAgentErrorResponse = UsererrorError;
12
+ export type CreateAgentErrorResponse = ApierrorsErrorResponse;
13
13
  export interface CreateAgentProps extends CreateAgentMutationPathParams, Omit<FetcherOptions<unknown, CreateAgentRequestBody>, 'url'> {
14
14
  body: CreateAgentRequestBody;
15
15
  }
@@ -17,4 +17,4 @@ export declare function createAgent(props: CreateAgentProps): Promise<CreateAgen
17
17
  /**
18
18
  * Create a new integration agent with the specified configuration. Agent names must be unique within the space path scope.
19
19
  */
20
- export declare function useCreateAgentMutation(options?: Omit<UseMutationOptions<CreateAgentOkResponse, CreateAgentErrorResponse, CreateAgentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateAgentOkResponse, UsererrorError, CreateAgentProps, unknown>;
20
+ export declare function useCreateAgentMutation(options?: Omit<UseMutationOptions<CreateAgentOkResponse, CreateAgentErrorResponse, CreateAgentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateAgentOkResponse, ApierrorsErrorResponse, CreateAgentProps, unknown>;
@@ -1,6 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { IntegrationconfigCreateAirbyteIntegrationResponse } from '../schemas/IntegrationconfigCreateAirbyteIntegrationResponse';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
4
  import type { OpenapiCreateAirbyteIntegrationConfigRequest } from '../schemas/OpenapiCreateAirbyteIntegrationConfigRequest';
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -9,7 +9,7 @@ export interface CreateAirbyteIntegrationConfigMutationPathParams {
9
9
  }
10
10
  export type CreateAirbyteIntegrationConfigRequestBody = OpenapiCreateAirbyteIntegrationConfigRequest;
11
11
  export type CreateAirbyteIntegrationConfigOkResponse = ResponseWithPagination<IntegrationconfigCreateAirbyteIntegrationResponse>;
12
- export type CreateAirbyteIntegrationConfigErrorResponse = UsererrorError;
12
+ export type CreateAirbyteIntegrationConfigErrorResponse = ApierrorsErrorResponse;
13
13
  export interface CreateAirbyteIntegrationConfigProps extends CreateAirbyteIntegrationConfigMutationPathParams, Omit<FetcherOptions<unknown, CreateAirbyteIntegrationConfigRequestBody>, 'url'> {
14
14
  body: CreateAirbyteIntegrationConfigRequestBody;
15
15
  }
@@ -17,4 +17,4 @@ export declare function createAirbyteIntegrationConfig(props: CreateAirbyteInteg
17
17
  /**
18
18
  * Creates an Airbyte integration with connector catalog information. This endpoint creates the integration config, entity schemas, entity mappings, and airbyte connector with catalog information within a single transaction. Returns the created integration config along with the associated airbyte connector, entity schemas, and entity mappings.
19
19
  */
20
- export declare function useCreateAirbyteIntegrationConfigMutation(options?: Omit<UseMutationOptions<CreateAirbyteIntegrationConfigOkResponse, CreateAirbyteIntegrationConfigErrorResponse, CreateAirbyteIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateAirbyteIntegrationConfigOkResponse, UsererrorError, CreateAirbyteIntegrationConfigProps, unknown>;
20
+ export declare function useCreateAirbyteIntegrationConfigMutation(options?: Omit<UseMutationOptions<CreateAirbyteIntegrationConfigOkResponse, CreateAirbyteIntegrationConfigErrorResponse, CreateAirbyteIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateAirbyteIntegrationConfigOkResponse, ApierrorsErrorResponse, CreateAirbyteIntegrationConfigProps, unknown>;
@@ -1,6 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
4
  import type { OpenapiCreateIntegrationConfigRequest } from '../schemas/OpenapiCreateIntegrationConfigRequest';
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -9,7 +9,7 @@ export interface CreateIntegrationConfigMutationPathParams {
9
9
  }
10
10
  export type CreateIntegrationConfigRequestBody = OpenapiCreateIntegrationConfigRequest;
11
11
  export type CreateIntegrationConfigOkResponse = ResponseWithPagination<TypesIntegrationConfig>;
12
- export type CreateIntegrationConfigErrorResponse = UsererrorError;
12
+ export type CreateIntegrationConfigErrorResponse = ApierrorsErrorResponse;
13
13
  export interface CreateIntegrationConfigProps extends CreateIntegrationConfigMutationPathParams, Omit<FetcherOptions<unknown, CreateIntegrationConfigRequestBody>, 'url'> {
14
14
  body: CreateIntegrationConfigRequestBody;
15
15
  }
@@ -17,4 +17,4 @@ export declare function createIntegrationConfig(props: CreateIntegrationConfigPr
17
17
  /**
18
18
  * Create integration configuration
19
19
  */
20
- export declare function useCreateIntegrationConfigMutation(options?: Omit<UseMutationOptions<CreateIntegrationConfigOkResponse, CreateIntegrationConfigErrorResponse, CreateIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationConfigOkResponse, UsererrorError, CreateIntegrationConfigProps, unknown>;
20
+ export declare function useCreateIntegrationConfigMutation(options?: Omit<UseMutationOptions<CreateIntegrationConfigOkResponse, CreateIntegrationConfigErrorResponse, CreateIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationConfigOkResponse, ApierrorsErrorResponse, CreateIntegrationConfigProps, unknown>;
@@ -1,5 +1,5 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { UsererrorError } from '../schemas/UsererrorError';
2
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface DeleteAgentMutationPathParams {
@@ -7,11 +7,11 @@ export interface DeleteAgentMutationPathParams {
7
7
  agent_name: string;
8
8
  }
9
9
  export type DeleteAgentOkResponse = ResponseWithPagination<unknown>;
10
- export type DeleteAgentErrorResponse = UsererrorError;
10
+ export type DeleteAgentErrorResponse = ApierrorsErrorResponse;
11
11
  export interface DeleteAgentProps extends DeleteAgentMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
12
12
  }
13
13
  export declare function deleteAgent(props: DeleteAgentProps): Promise<DeleteAgentOkResponse>;
14
14
  /**
15
15
  * Delete an integration agent by its name.
16
16
  */
17
- export declare function useDeleteAgentMutation(options?: Omit<UseMutationOptions<DeleteAgentOkResponse, DeleteAgentErrorResponse, DeleteAgentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteAgentOkResponse, UsererrorError, DeleteAgentProps, unknown>;
17
+ export declare function useDeleteAgentMutation(options?: Omit<UseMutationOptions<DeleteAgentOkResponse, DeleteAgentErrorResponse, DeleteAgentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteAgentOkResponse, ApierrorsErrorResponse, DeleteAgentProps, unknown>;
@@ -1,5 +1,5 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { UsererrorError } from '../schemas/UsererrorError';
2
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface DownloadAgentYamlQueryPathParams {
@@ -7,11 +7,11 @@ export interface DownloadAgentYamlQueryPathParams {
7
7
  agent_name: string;
8
8
  }
9
9
  export type DownloadAgentYamlOkResponse = ResponseWithPagination<unknown>;
10
- export type DownloadAgentYamlErrorResponse = UsererrorError;
10
+ export type DownloadAgentYamlErrorResponse = ApierrorsErrorResponse;
11
11
  export interface DownloadAgentYamlProps extends DownloadAgentYamlQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
12
12
  }
13
13
  export declare function downloadAgentYaml(props: DownloadAgentYamlProps): Promise<DownloadAgentYamlOkResponse>;
14
14
  /**
15
15
  * Download the Kubernetes manifest YAML file for deploying the agent. The YAML contains all necessary resources (Namespace, ServiceAccount, Role, RoleBinding, ConfigMap, Deployment, Service, HPA) with the agent name and namespace pre-configured.
16
16
  */
17
- export declare function useDownloadAgentYamlQuery(props: DownloadAgentYamlProps, options?: Omit<UseQueryOptions<DownloadAgentYamlOkResponse, DownloadAgentYamlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<DownloadAgentYamlOkResponse, UsererrorError>;
17
+ export declare function useDownloadAgentYamlQuery(props: DownloadAgentYamlProps, options?: Omit<UseQueryOptions<DownloadAgentYamlOkResponse, DownloadAgentYamlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<DownloadAgentYamlOkResponse, ApierrorsErrorResponse>;
@@ -1,6 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { TypesIntegrationAgent } from '../schemas/TypesIntegrationAgent';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface GetAgentQueryPathParams {
@@ -8,11 +8,11 @@ export interface GetAgentQueryPathParams {
8
8
  agent_name: string;
9
9
  }
10
10
  export type GetAgentOkResponse = ResponseWithPagination<TypesIntegrationAgent>;
11
- export type GetAgentErrorResponse = UsererrorError;
11
+ export type GetAgentErrorResponse = ApierrorsErrorResponse;
12
12
  export interface GetAgentProps extends GetAgentQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
13
13
  }
14
14
  export declare function getAgent(props: GetAgentProps): Promise<GetAgentOkResponse>;
15
15
  /**
16
16
  * Get an integration agent by its name.
17
17
  */
18
- export declare function useGetAgentQuery(props: GetAgentProps, options?: Omit<UseQueryOptions<GetAgentOkResponse, GetAgentErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAgentOkResponse, UsererrorError>;
18
+ export declare function useGetAgentQuery(props: GetAgentProps, options?: Omit<UseQueryOptions<GetAgentOkResponse, GetAgentErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAgentOkResponse, ApierrorsErrorResponse>;
@@ -1,6 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { AirbyteGetAirbyteConnectorCatalogResponse } from '../schemas/AirbyteGetAirbyteConnectorCatalogResponse';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
4
  import type { OpenapiGetAirbyteConnectorCatalogRequest } from '../schemas/OpenapiGetAirbyteConnectorCatalogRequest';
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -9,7 +9,7 @@ export interface GetAirbyteConnectorCatalogMutationPathParams {
9
9
  }
10
10
  export type GetAirbyteConnectorCatalogRequestBody = OpenapiGetAirbyteConnectorCatalogRequest;
11
11
  export type GetAirbyteConnectorCatalogOkResponse = ResponseWithPagination<AirbyteGetAirbyteConnectorCatalogResponse>;
12
- export type GetAirbyteConnectorCatalogErrorResponse = UsererrorError;
12
+ export type GetAirbyteConnectorCatalogErrorResponse = ApierrorsErrorResponse;
13
13
  export interface GetAirbyteConnectorCatalogProps extends GetAirbyteConnectorCatalogMutationPathParams, Omit<FetcherOptions<unknown, GetAirbyteConnectorCatalogRequestBody>, 'url'> {
14
14
  body: GetAirbyteConnectorCatalogRequestBody;
15
15
  }
@@ -17,4 +17,4 @@ export declare function getAirbyteConnectorCatalog(props: GetAirbyteConnectorCat
17
17
  /**
18
18
  * Retrieves the catalog for an Airbyte connector. This endpoint queries the connector to get available streams and their schemas.
19
19
  */
20
- export declare function useGetAirbyteConnectorCatalogMutation(options?: Omit<UseMutationOptions<GetAirbyteConnectorCatalogOkResponse, GetAirbyteConnectorCatalogErrorResponse, GetAirbyteConnectorCatalogProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetAirbyteConnectorCatalogOkResponse, UsererrorError, GetAirbyteConnectorCatalogProps, unknown>;
20
+ export declare function useGetAirbyteConnectorCatalogMutation(options?: Omit<UseMutationOptions<GetAirbyteConnectorCatalogOkResponse, GetAirbyteConnectorCatalogErrorResponse, GetAirbyteConnectorCatalogProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetAirbyteConnectorCatalogOkResponse, ApierrorsErrorResponse, GetAirbyteConnectorCatalogProps, unknown>;
@@ -1,6 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { IntegrationconfigGetAirbyteIntegrationConfigResponse } from '../schemas/IntegrationconfigGetAirbyteIntegrationConfigResponse';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface GetAirbyteIntegrationConfigQueryPathParams {
@@ -8,11 +8,11 @@ export interface GetAirbyteIntegrationConfigQueryPathParams {
8
8
  integrationconfig_identifier: string;
9
9
  }
10
10
  export type GetAirbyteIntegrationConfigOkResponse = ResponseWithPagination<IntegrationconfigGetAirbyteIntegrationConfigResponse>;
11
- export type GetAirbyteIntegrationConfigErrorResponse = UsererrorError;
11
+ export type GetAirbyteIntegrationConfigErrorResponse = ApierrorsErrorResponse;
12
12
  export interface GetAirbyteIntegrationConfigProps extends GetAirbyteIntegrationConfigQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
13
13
  }
14
14
  export declare function getAirbyteIntegrationConfig(props: GetAirbyteIntegrationConfigProps): Promise<GetAirbyteIntegrationConfigOkResponse>;
15
15
  /**
16
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
17
  */
18
- export declare function useGetAirbyteIntegrationConfigQuery(props: GetAirbyteIntegrationConfigProps, options?: Omit<UseQueryOptions<GetAirbyteIntegrationConfigOkResponse, GetAirbyteIntegrationConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAirbyteIntegrationConfigOkResponse, UsererrorError>;
18
+ export declare function useGetAirbyteIntegrationConfigQuery(props: GetAirbyteIntegrationConfigProps, options?: Omit<UseQueryOptions<GetAirbyteIntegrationConfigOkResponse, GetAirbyteIntegrationConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAirbyteIntegrationConfigOkResponse, ApierrorsErrorResponse>;
@@ -1,6 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface GetIntegrationConfigQueryPathParams {
@@ -8,11 +8,11 @@ export interface GetIntegrationConfigQueryPathParams {
8
8
  integrationconfig_identifier: string;
9
9
  }
10
10
  export type GetIntegrationConfigOkResponse = ResponseWithPagination<TypesIntegrationConfig>;
11
- export type GetIntegrationConfigErrorResponse = UsererrorError;
11
+ export type GetIntegrationConfigErrorResponse = ApierrorsErrorResponse;
12
12
  export interface GetIntegrationConfigProps extends GetIntegrationConfigQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
13
13
  }
14
14
  export declare function getIntegrationConfig(props: GetIntegrationConfigProps): Promise<GetIntegrationConfigOkResponse>;
15
15
  /**
16
16
  * Get integration configuration
17
17
  */
18
- export declare function useGetIntegrationConfigQuery(props: GetIntegrationConfigProps, options?: Omit<UseQueryOptions<GetIntegrationConfigOkResponse, GetIntegrationConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetIntegrationConfigOkResponse, UsererrorError>;
18
+ export declare function useGetIntegrationConfigQuery(props: GetIntegrationConfigProps, options?: Omit<UseQueryOptions<GetIntegrationConfigOkResponse, GetIntegrationConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetIntegrationConfigOkResponse, ApierrorsErrorResponse>;
@@ -1,17 +1,17 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { TypesIntegrationAgent } from '../schemas/TypesIntegrationAgent';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface ListAgentsQueryPathParams {
7
7
  accountIdentifier: string;
8
8
  }
9
9
  export type ListAgentsOkResponse = ResponseWithPagination<TypesIntegrationAgent[]>;
10
- export type ListAgentsErrorResponse = UsererrorError;
10
+ export type ListAgentsErrorResponse = ApierrorsErrorResponse;
11
11
  export interface ListAgentsProps extends ListAgentsQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
12
12
  }
13
13
  export declare function listAgents(props: ListAgentsProps): Promise<ListAgentsOkResponse>;
14
14
  /**
15
15
  * List all integration agents in the current space path scope.
16
16
  */
17
- export declare function useListAgentsQuery(props: ListAgentsProps, options?: Omit<UseQueryOptions<ListAgentsOkResponse, ListAgentsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListAgentsOkResponse, UsererrorError>;
17
+ export declare function useListAgentsQuery(props: ListAgentsProps, options?: Omit<UseQueryOptions<ListAgentsOkResponse, ListAgentsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListAgentsOkResponse, ApierrorsErrorResponse>;
@@ -1,6 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { IntegrationconfigTriggerSyncResponse } from '../schemas/IntegrationconfigTriggerSyncResponse';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface TriggerSyncMutationPathParams {
@@ -8,11 +8,11 @@ export interface TriggerSyncMutationPathParams {
8
8
  integrationconfig_identifier: string;
9
9
  }
10
10
  export type TriggerSyncOkResponse = ResponseWithPagination<IntegrationconfigTriggerSyncResponse>;
11
- export type TriggerSyncErrorResponse = UsererrorError;
11
+ export type TriggerSyncErrorResponse = ApierrorsErrorResponse;
12
12
  export interface TriggerSyncProps extends TriggerSyncMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
13
13
  }
14
14
  export declare function triggerSync(props: TriggerSyncProps): Promise<TriggerSyncOkResponse>;
15
15
  /**
16
16
  * Manually triggers a full sync for the specified integration. The sync will start from the beginning and process all configured kinds. Returns an acknowledgement with the sync ID that can be used to track the sync operation.
17
17
  */
18
- export declare function useTriggerSyncMutation(options?: Omit<UseMutationOptions<TriggerSyncOkResponse, TriggerSyncErrorResponse, TriggerSyncProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TriggerSyncOkResponse, UsererrorError, TriggerSyncProps, unknown>;
18
+ export declare function useTriggerSyncMutation(options?: Omit<UseMutationOptions<TriggerSyncOkResponse, TriggerSyncErrorResponse, TriggerSyncProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TriggerSyncOkResponse, ApierrorsErrorResponse, TriggerSyncProps, unknown>;
@@ -1,6 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { TypesIntegrationAgent } from '../schemas/TypesIntegrationAgent';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
4
  import type { OpenapiUpdateAgentRequest } from '../schemas/OpenapiUpdateAgentRequest';
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -10,7 +10,7 @@ export interface UpdateAgentMutationPathParams {
10
10
  }
11
11
  export type UpdateAgentRequestBody = OpenapiUpdateAgentRequest;
12
12
  export type UpdateAgentOkResponse = ResponseWithPagination<TypesIntegrationAgent>;
13
- export type UpdateAgentErrorResponse = UsererrorError;
13
+ export type UpdateAgentErrorResponse = ApierrorsErrorResponse;
14
14
  export interface UpdateAgentProps extends UpdateAgentMutationPathParams, Omit<FetcherOptions<unknown, UpdateAgentRequestBody>, 'url'> {
15
15
  body: UpdateAgentRequestBody;
16
16
  }
@@ -18,4 +18,4 @@ export declare function updateAgent(props: UpdateAgentProps): Promise<UpdateAgen
18
18
  /**
19
19
  * Update an existing integration agent. Only the fields provided in the request body will be updated.
20
20
  */
21
- export declare function useUpdateAgentMutation(options?: Omit<UseMutationOptions<UpdateAgentOkResponse, UpdateAgentErrorResponse, UpdateAgentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateAgentOkResponse, UsererrorError, UpdateAgentProps, unknown>;
21
+ export declare function useUpdateAgentMutation(options?: Omit<UseMutationOptions<UpdateAgentOkResponse, UpdateAgentErrorResponse, UpdateAgentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateAgentOkResponse, ApierrorsErrorResponse, UpdateAgentProps, unknown>;
@@ -1,6 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { IntegrationconfigUpdateAirbyteIntegrationResponse } from '../schemas/IntegrationconfigUpdateAirbyteIntegrationResponse';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
4
  import type { OpenapiUpdateAirbyteIntegrationConfigRequest } from '../schemas/OpenapiUpdateAirbyteIntegrationConfigRequest';
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -10,7 +10,7 @@ export interface UpdateAirbyteIntegrationConfigMutationPathParams {
10
10
  }
11
11
  export type UpdateAirbyteIntegrationConfigRequestBody = OpenapiUpdateAirbyteIntegrationConfigRequest;
12
12
  export type UpdateAirbyteIntegrationConfigOkResponse = ResponseWithPagination<IntegrationconfigUpdateAirbyteIntegrationResponse>;
13
- export type UpdateAirbyteIntegrationConfigErrorResponse = UsererrorError;
13
+ export type UpdateAirbyteIntegrationConfigErrorResponse = ApierrorsErrorResponse;
14
14
  export interface UpdateAirbyteIntegrationConfigProps extends UpdateAirbyteIntegrationConfigMutationPathParams, Omit<FetcherOptions<unknown, UpdateAirbyteIntegrationConfigRequestBody>, 'url'> {
15
15
  body: UpdateAirbyteIntegrationConfigRequestBody;
16
16
  }
@@ -18,4 +18,4 @@ export declare function updateAirbyteIntegrationConfig(props: UpdateAirbyteInteg
18
18
  /**
19
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
20
  */
21
- export declare function useUpdateAirbyteIntegrationConfigMutation(options?: Omit<UseMutationOptions<UpdateAirbyteIntegrationConfigOkResponse, UpdateAirbyteIntegrationConfigErrorResponse, UpdateAirbyteIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateAirbyteIntegrationConfigOkResponse, UsererrorError, UpdateAirbyteIntegrationConfigProps, unknown>;
21
+ export declare function useUpdateAirbyteIntegrationConfigMutation(options?: Omit<UseMutationOptions<UpdateAirbyteIntegrationConfigOkResponse, UpdateAirbyteIntegrationConfigErrorResponse, UpdateAirbyteIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateAirbyteIntegrationConfigOkResponse, ApierrorsErrorResponse, UpdateAirbyteIntegrationConfigProps, unknown>;
@@ -1,6 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
4
  import type { OpenapiUpdateIntegrationConfigRequest } from '../schemas/OpenapiUpdateIntegrationConfigRequest';
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -10,7 +10,7 @@ export interface UpdateIntegrationConfigMutationPathParams {
10
10
  }
11
11
  export type UpdateIntegrationConfigRequestBody = OpenapiUpdateIntegrationConfigRequest;
12
12
  export type UpdateIntegrationConfigOkResponse = ResponseWithPagination<TypesIntegrationConfig>;
13
- export type UpdateIntegrationConfigErrorResponse = UsererrorError;
13
+ export type UpdateIntegrationConfigErrorResponse = ApierrorsErrorResponse;
14
14
  export interface UpdateIntegrationConfigProps extends UpdateIntegrationConfigMutationPathParams, Omit<FetcherOptions<unknown, UpdateIntegrationConfigRequestBody>, 'url'> {
15
15
  body: UpdateIntegrationConfigRequestBody;
16
16
  }
@@ -18,4 +18,4 @@ export declare function updateIntegrationConfig(props: UpdateIntegrationConfigPr
18
18
  /**
19
19
  * Update integration configuration
20
20
  */
21
- export declare function useUpdateIntegrationConfigMutation(options?: Omit<UseMutationOptions<UpdateIntegrationConfigOkResponse, UpdateIntegrationConfigErrorResponse, UpdateIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateIntegrationConfigOkResponse, UsererrorError, UpdateIntegrationConfigProps, unknown>;
21
+ export declare function useUpdateIntegrationConfigMutation(options?: Omit<UseMutationOptions<UpdateIntegrationConfigOkResponse, UpdateIntegrationConfigErrorResponse, UpdateIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateIntegrationConfigOkResponse, ApierrorsErrorResponse, UpdateIntegrationConfigProps, unknown>;
@@ -1,6 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface UpdateIntegrationStatusMutationPathParams {
@@ -14,7 +14,7 @@ export interface UpdateIntegrationStatusMutationQueryParams {
14
14
  action: string;
15
15
  }
16
16
  export type UpdateIntegrationStatusOkResponse = ResponseWithPagination<TypesIntegrationConfig>;
17
- export type UpdateIntegrationStatusErrorResponse = UsererrorError;
17
+ export type UpdateIntegrationStatusErrorResponse = ApierrorsErrorResponse;
18
18
  export interface UpdateIntegrationStatusProps extends UpdateIntegrationStatusMutationPathParams, Omit<FetcherOptions<UpdateIntegrationStatusMutationQueryParams, unknown>, 'url'> {
19
19
  queryParams: UpdateIntegrationStatusMutationQueryParams;
20
20
  }
@@ -22,4 +22,4 @@ export declare function updateIntegrationStatus(props: UpdateIntegrationStatusPr
22
22
  /**
23
23
  * Enable or disable an integration configuration. Use action='enable' to enable the integration or action='disable' to disable it. Enabling an integration will trigger an initial sync if the integration is enabled for the first time.
24
24
  */
25
- export declare function useUpdateIntegrationStatusMutation(options?: Omit<UseMutationOptions<UpdateIntegrationStatusOkResponse, UpdateIntegrationStatusErrorResponse, UpdateIntegrationStatusProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateIntegrationStatusOkResponse, UsererrorError, UpdateIntegrationStatusProps, unknown>;
25
+ export declare function useUpdateIntegrationStatusMutation(options?: Omit<UseMutationOptions<UpdateIntegrationStatusOkResponse, UpdateIntegrationStatusErrorResponse, UpdateIntegrationStatusProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateIntegrationStatusOkResponse, ApierrorsErrorResponse, UpdateIntegrationStatusProps, unknown>;
@@ -32,12 +32,15 @@ export { updateIntegrationConfig, useUpdateIntegrationConfigMutation, } from './
32
32
  export type { UpdateIntegrationStatusErrorResponse, UpdateIntegrationStatusMutationPathParams, UpdateIntegrationStatusMutationQueryParams, UpdateIntegrationStatusOkResponse, UpdateIntegrationStatusProps, } from './hooks/useUpdateIntegrationStatusMutation';
33
33
  export { updateIntegrationStatus, useUpdateIntegrationStatusMutation, } from './hooks/useUpdateIntegrationStatusMutation';
34
34
  export type { AirbyteGetAirbyteConnectorCatalogResponse } from './schemas/AirbyteGetAirbyteConnectorCatalogResponse';
35
+ export type { ApierrorsErrorDetail } from './schemas/ApierrorsErrorDetail';
36
+ export type { ApierrorsErrorResponse } from './schemas/ApierrorsErrorResponse';
35
37
  export type { EnumAirbyteDestinationSyncMode } from './schemas/EnumAirbyteDestinationSyncMode';
36
38
  export type { EnumAirbyteSyncMode } from './schemas/EnumAirbyteSyncMode';
37
39
  export type { EnumIntegrationMode } from './schemas/EnumIntegrationMode';
38
40
  export type { EnumIntegrationType } from './schemas/EnumIntegrationType';
39
41
  export type { IntegrationconfigCreateAirbyteIntegrationResponse } from './schemas/IntegrationconfigCreateAirbyteIntegrationResponse';
40
42
  export type { IntegrationconfigGetAirbyteIntegrationConfigResponse } from './schemas/IntegrationconfigGetAirbyteIntegrationConfigResponse';
43
+ export type { IntegrationconfigSyncStatus } from './schemas/IntegrationconfigSyncStatus';
41
44
  export type { IntegrationconfigTriggerSyncResponse } from './schemas/IntegrationconfigTriggerSyncResponse';
42
45
  export type { IntegrationconfigUpdateAirbyteIntegrationResponse } from './schemas/IntegrationconfigUpdateAirbyteIntegrationResponse';
43
46
  export type { OpenapiCreateAgentRequest } from './schemas/OpenapiCreateAgentRequest';
@@ -64,7 +67,6 @@ export type { TypesLastSyncInfo } from './schemas/TypesLastSyncInfo';
64
67
  export type { TypesMappingConfig } from './schemas/TypesMappingConfig';
65
68
  export type { TypesMappingSpec } from './schemas/TypesMappingSpec';
66
69
  export type { TypesSchemaMapping } from './schemas/TypesSchemaMapping';
70
+ export type { TypesScope } from './schemas/TypesScope';
67
71
  export type { TypesScopeConfig } from './schemas/TypesScopeConfig';
68
- export type { TypesScopeInfo } from './schemas/TypesScopeInfo';
69
72
  export type { TypesSyncState } from './schemas/TypesSyncState';
70
- export type { UsererrorError } from './schemas/UsererrorError';
@@ -0,0 +1,13 @@
1
+ export interface ApierrorsErrorDetail {
2
+ /**
3
+ * @example "INTEGRATION_NOT_FOUND"
4
+ */
5
+ code?: string;
6
+ /**
7
+ * @example "integration config not found"
8
+ */
9
+ message?: string;
10
+ values?: {
11
+ [key: string]: any;
12
+ };
13
+ }
@@ -0,0 +1,5 @@
1
+ import type { ApierrorsErrorDetail } from '../schemas/ApierrorsErrorDetail';
2
+ export interface ApierrorsErrorResponse {
3
+ error?: ApierrorsErrorDetail;
4
+ message?: string;
5
+ }
@@ -0,0 +1 @@
1
+ export type IntegrationconfigSyncStatus = string;
@@ -1,3 +1,6 @@
1
+ import type { IntegrationconfigSyncStatus } from '../schemas/IntegrationconfigSyncStatus';
1
2
  export interface IntegrationconfigTriggerSyncResponse {
3
+ message?: string;
4
+ status?: IntegrationconfigSyncStatus;
2
5
  sync_id?: string;
3
6
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -13,6 +13,8 @@ export interface OpenapiCreateAirbyteIntegrationConfigRequest {
13
13
  } | null;
14
14
  integration_type?: EnumIntegrationType;
15
15
  kinds?: string[] | null;
16
- mapping_config?: TypesMappingConfig;
16
+ mapping_config_per_kind?: {
17
+ [key: string]: TypesMappingConfig;
18
+ };
17
19
  name?: string;
18
20
  }
@@ -4,5 +4,4 @@ export interface OpenapiGetAirbyteConnectorCatalogRequest {
4
4
  config?: TypesCatalogConfig;
5
5
  delegate_selectors?: string[] | null;
6
6
  integration_type?: EnumIntegrationType;
7
- k8s_harness_connector_ref?: string;
8
7
  }
@@ -7,6 +7,8 @@ export interface OpenapiUpdateAirbyteIntegrationConfigRequest {
7
7
  integration_config?: {
8
8
  [key: string]: any;
9
9
  } | null;
10
- mapping_config?: TypesMappingConfig;
10
+ mapping_config_per_kind?: {
11
+ [key: string]: TypesMappingConfig;
12
+ };
11
13
  name?: string;
12
14
  }
@@ -2,5 +2,4 @@ export interface OpenapiUpdateIntegrationConfigRequest {
2
2
  configuration?: {
3
3
  [key: string]: any;
4
4
  } | null;
5
- enabled?: boolean | null;
6
5
  }
@@ -19,6 +19,7 @@ export type TypesAirbyteConnector = {
19
19
  * @format date-time
20
20
  */
21
21
  last_updated?: string;
22
+ namespace?: string;
22
23
  space_path?: string;
23
24
  version?: string;
24
25
  } | null;
@@ -1,9 +1,9 @@
1
- import type { TypesScopeInfo } from '../schemas/TypesScopeInfo';
1
+ import type { TypesScope } from '../schemas/TypesScope';
2
2
  export interface TypesEntityMappingSpec {
3
3
  identifier?: string;
4
4
  name?: string;
5
5
  properties?: {
6
6
  [key: string]: any;
7
7
  } | null;
8
- scope?: TypesScopeInfo;
8
+ scope?: TypesScope;
9
9
  }
@@ -1,7 +1,7 @@
1
1
  export interface TypesLastSyncInfo {
2
2
  completed_at?: number;
3
3
  duration_ms?: number;
4
- entities_synced?: number;
4
+ entities_synced_count?: number;
5
5
  error?: string;
6
6
  started_at?: number;
7
7
  success?: boolean;
@@ -1,4 +1,4 @@
1
- export interface TypesScopeInfo {
1
+ export interface TypesScope {
2
2
  account_identifier?: string;
3
3
  org_identifier?: string;
4
4
  project_identifier?: string;
@@ -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.1",
3
+ "version": "0.3.3",
4
4
  "description": "Harness React integration manager client - Integration Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,6 +0,0 @@
1
- export interface UsererrorError {
2
- message?: string;
3
- values?: {
4
- [key: string]: any;
5
- };
6
- }