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

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 (30) hide show
  1. package/dist/integration-manager/src/services/hooks/useCreateAirbyteIntegrationConfigMutation.d.ts +2 -2
  2. package/dist/integration-manager/src/services/hooks/useGetAirbyteConnectorCatalogQuery.d.ts +32 -0
  3. package/dist/integration-manager/src/services/hooks/useGetAirbyteConnectorCatalogQuery.js +14 -0
  4. package/dist/integration-manager/src/services/hooks/useGetAirbyteIntegrationConfigQuery.d.ts +2 -2
  5. package/dist/integration-manager/src/services/hooks/useUpdateAirbyteIntegrationConfigMutation.d.ts +2 -2
  6. package/dist/integration-manager/src/services/index.d.ts +6 -9
  7. package/dist/integration-manager/src/services/index.js +1 -1
  8. package/dist/integration-manager/src/services/schemas/AirbyteGetAirbyteConnectorCatalogResponse.d.ts +4 -5
  9. package/dist/integration-manager/src/services/schemas/{IntegrationconfigCreateAirbyteIntegrationResponse.d.ts → IntegrationconfigAirbyteIntegrationResponse.d.ts} +1 -1
  10. package/dist/integration-manager/src/services/schemas/OpenapiCreateAirbyteIntegrationConfigRequest.d.ts +2 -2
  11. package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigRequest.d.ts +0 -2
  12. package/dist/integration-manager/src/services/schemas/TypesAirbyteCatalogConfigured.d.ts +4 -0
  13. package/dist/integration-manager/src/services/schemas/TypesAirbyteCatalogDiscovered.d.ts +4 -0
  14. package/dist/integration-manager/src/services/schemas/TypesAirbyteConnector.d.ts +4 -3
  15. package/dist/integration-manager/src/services/schemas/{TypesAirbyteConfiguredStream.d.ts → TypesAirbyteStreamConfigured.d.ts} +2 -1
  16. package/package.json +1 -1
  17. package/dist/integration-manager/src/services/hooks/useGetAirbyteConnectorCatalogMutation.d.ts +0 -20
  18. package/dist/integration-manager/src/services/hooks/useGetAirbyteConnectorCatalogMutation.js +0 -14
  19. package/dist/integration-manager/src/services/schemas/IntegrationconfigGetAirbyteIntegrationConfigResponse.d.ts +0 -10
  20. package/dist/integration-manager/src/services/schemas/IntegrationconfigUpdateAirbyteIntegrationResponse.d.ts +0 -10
  21. package/dist/integration-manager/src/services/schemas/OpenapiGetAirbyteConnectorCatalogRequest.d.ts +0 -7
  22. package/dist/integration-manager/src/services/schemas/TypesAirbyteCatalog.d.ts +0 -4
  23. package/dist/integration-manager/src/services/schemas/TypesAirbyteCatalog.js +0 -1
  24. package/dist/integration-manager/src/services/schemas/TypesAirbyteConfiguredStream.js +0 -1
  25. package/dist/integration-manager/src/services/schemas/TypesCatalogConfig.d.ts +0 -5
  26. package/dist/integration-manager/src/services/schemas/TypesCatalogConfig.js +0 -4
  27. /package/dist/integration-manager/src/services/schemas/{IntegrationconfigCreateAirbyteIntegrationResponse.js → IntegrationconfigAirbyteIntegrationResponse.js} +0 -0
  28. /package/dist/integration-manager/src/services/schemas/{IntegrationconfigGetAirbyteIntegrationConfigResponse.js → TypesAirbyteCatalogConfigured.js} +0 -0
  29. /package/dist/integration-manager/src/services/schemas/{IntegrationconfigUpdateAirbyteIntegrationResponse.js → TypesAirbyteCatalogDiscovered.js} +0 -0
  30. /package/dist/integration-manager/src/services/schemas/{OpenapiGetAirbyteConnectorCatalogRequest.js → TypesAirbyteStreamConfigured.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { IntegrationconfigCreateAirbyteIntegrationResponse } from '../schemas/IntegrationconfigCreateAirbyteIntegrationResponse';
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<IntegrationconfigCreateAirbyteIntegrationResponse>;
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;
@@ -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
+ }
@@ -1,5 +1,5 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { IntegrationconfigGetAirbyteIntegrationConfigResponse } from '../schemas/IntegrationconfigGetAirbyteIntegrationConfigResponse';
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<IntegrationconfigGetAirbyteIntegrationConfigResponse>;
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
  }
@@ -1,5 +1,5 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { IntegrationconfigUpdateAirbyteIntegrationResponse } from '../schemas/IntegrationconfigUpdateAirbyteIntegrationResponse';
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<IntegrationconfigUpdateAirbyteIntegrationResponse>;
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;
@@ -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, GetAirbyteConnectorCatalogMutationPathParams, GetAirbyteConnectorCatalogOkResponse, GetAirbyteConnectorCatalogProps, GetAirbyteConnectorCatalogRequestBody, } from './hooks/useGetAirbyteConnectorCatalogMutation';
15
- export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogMutation, } from './hooks/useGetAirbyteConnectorCatalogMutation';
14
+ export type { GetAirbyteConnectorCatalogErrorResponse, GetAirbyteConnectorCatalogOkResponse, GetAirbyteConnectorCatalogProps, GetAirbyteConnectorCatalogQueryPathParams, GetAirbyteConnectorCatalogQueryQueryParams, } from './hooks/useGetAirbyteConnectorCatalogQuery';
15
+ export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogQuery, } from './hooks/useGetAirbyteConnectorCatalogQuery';
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';
@@ -38,24 +38,21 @@ export type { EnumAirbyteDestinationSyncMode } from './schemas/EnumAirbyteDestin
38
38
  export type { EnumAirbyteSyncMode } from './schemas/EnumAirbyteSyncMode';
39
39
  export type { EnumIntegrationMode } from './schemas/EnumIntegrationMode';
40
40
  export type { EnumIntegrationType } from './schemas/EnumIntegrationType';
41
- export type { IntegrationconfigCreateAirbyteIntegrationResponse } from './schemas/IntegrationconfigCreateAirbyteIntegrationResponse';
42
- export type { IntegrationconfigGetAirbyteIntegrationConfigResponse } from './schemas/IntegrationconfigGetAirbyteIntegrationConfigResponse';
41
+ export type { IntegrationconfigAirbyteIntegrationResponse } from './schemas/IntegrationconfigAirbyteIntegrationResponse';
43
42
  export type { IntegrationconfigSyncStatus } from './schemas/IntegrationconfigSyncStatus';
44
43
  export type { IntegrationconfigTriggerSyncResponse } from './schemas/IntegrationconfigTriggerSyncResponse';
45
- export type { IntegrationconfigUpdateAirbyteIntegrationResponse } from './schemas/IntegrationconfigUpdateAirbyteIntegrationResponse';
46
44
  export type { OpenapiCreateAgentRequest } from './schemas/OpenapiCreateAgentRequest';
47
45
  export type { OpenapiCreateAirbyteIntegrationConfigRequest } from './schemas/OpenapiCreateAirbyteIntegrationConfigRequest';
48
46
  export type { OpenapiCreateIntegrationConfigRequest } from './schemas/OpenapiCreateIntegrationConfigRequest';
49
- export type { OpenapiGetAirbyteConnectorCatalogRequest } from './schemas/OpenapiGetAirbyteConnectorCatalogRequest';
50
47
  export type { OpenapiUpdateAgentRequest } from './schemas/OpenapiUpdateAgentRequest';
51
48
  export type { OpenapiUpdateAirbyteIntegrationConfigRequest } from './schemas/OpenapiUpdateAirbyteIntegrationConfigRequest';
52
49
  export type { OpenapiUpdateIntegrationConfigRequest } from './schemas/OpenapiUpdateIntegrationConfigRequest';
53
50
  export type { TypesAgentStatus } from './schemas/TypesAgentStatus';
54
- export type { TypesAirbyteCatalog } from './schemas/TypesAirbyteCatalog';
55
- export type { TypesAirbyteConfiguredStream } from './schemas/TypesAirbyteConfiguredStream';
51
+ export type { TypesAirbyteCatalogConfigured } from './schemas/TypesAirbyteCatalogConfigured';
52
+ export type { TypesAirbyteCatalogDiscovered } from './schemas/TypesAirbyteCatalogDiscovered';
56
53
  export type { TypesAirbyteConnector } from './schemas/TypesAirbyteConnector';
57
54
  export type { TypesAirbyteStream } from './schemas/TypesAirbyteStream';
58
- export type { TypesCatalogConfig } from './schemas/TypesCatalogConfig';
55
+ export type { TypesAirbyteStreamConfigured } from './schemas/TypesAirbyteStreamConfigured';
59
56
  export type { TypesEntityMapping } from './schemas/TypesEntityMapping';
60
57
  export type { TypesEntityMappingSpec } from './schemas/TypesEntityMappingSpec';
61
58
  export type { TypesEntitySchema } from './schemas/TypesEntitySchema';
@@ -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, useGetAirbyteConnectorCatalogMutation, } from './hooks/useGetAirbyteConnectorCatalogMutation';
7
+ export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogQuery, } from './hooks/useGetAirbyteConnectorCatalogQuery';
8
8
  export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
9
9
  export { getIntegrationConfig, useGetIntegrationConfigQuery, } from './hooks/useGetIntegrationConfigQuery';
10
10
  export { listAgents, useListAgentsQuery } from './hooks/useListAgentsQuery';
@@ -1,9 +1,8 @@
1
- import type { TypesAirbyteCatalog } from '../schemas/TypesAirbyteCatalog';
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?: TypesAirbyteCatalog;
6
- config?: TypesCatalogConfig;
4
+ catalog?: TypesAirbyteCatalogDiscovered;
7
5
  integration_type?: EnumIntegrationType;
8
- k8s_harness_connector_ref?: string;
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 IntegrationconfigCreateAirbyteIntegrationResponse {
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 { TypesAirbyteCatalog } from '../schemas/TypesAirbyteCatalog';
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?: TypesAirbyteCatalog;
6
+ discovered_catalog?: TypesAirbyteCatalogDiscovered;
7
7
  entity_mappings_per_kind?: {
8
8
  [key: string]: TypesFieldMapping[];
9
9
  } | null;
@@ -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
  }
@@ -0,0 +1,4 @@
1
+ import type { TypesAirbyteStreamConfigured } from '../schemas/TypesAirbyteStreamConfigured';
2
+ export interface TypesAirbyteCatalogConfigured {
3
+ streams?: TypesAirbyteStreamConfigured[] | null;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { TypesAirbyteStream } from '../schemas/TypesAirbyteStream';
2
+ export interface TypesAirbyteCatalogDiscovered {
3
+ streams?: TypesAirbyteStream[] | null;
4
+ }
@@ -1,9 +1,10 @@
1
- import type { TypesAirbyteCatalog } from '../schemas/TypesAirbyteCatalog';
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?: TypesAirbyteCatalog;
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?: TypesAirbyteCatalog;
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 TypesAirbyteConfiguredStream {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-integration-manager-client",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
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,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>;
@@ -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
- }
@@ -1,7 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
1
- import type { TypesAirbyteConfiguredStream } from '../schemas/TypesAirbyteConfiguredStream';
2
- export interface TypesAirbyteCatalog {
3
- streams?: TypesAirbyteConfiguredStream[] | null;
4
- }
@@ -1,5 +0,0 @@
1
- export interface TypesCatalogConfig {
2
- service_now_harness_connector_ref?: string;
3
- service_now_table_filter?: string;
4
- start_date?: string;
5
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};