@harnessio/react-integration-manager-client 0.3.7 → 0.3.9

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 (21) hide show
  1. package/dist/integration-manager/src/services/hooks/useGetAirbyteConnectorCatalogQuery.d.ts +4 -0
  2. package/dist/integration-manager/src/services/hooks/useListDefaultMappingFieldsQuery.d.ts +22 -0
  3. package/dist/integration-manager/src/services/hooks/useListDefaultMappingFieldsQuery.js +14 -0
  4. package/dist/integration-manager/src/services/hooks/useListDefaultSchemasQuery.d.ts +22 -0
  5. package/dist/integration-manager/src/services/hooks/useListDefaultSchemasQuery.js +14 -0
  6. package/dist/integration-manager/src/services/index.d.ts +9 -0
  7. package/dist/integration-manager/src/services/index.js +2 -0
  8. package/dist/integration-manager/src/services/schemas/AirbyteFetchAirbyteConnectorCatalogResponse.d.ts +0 -1
  9. package/dist/integration-manager/src/services/schemas/TypesDefaultEntitySchema.d.ts +16 -0
  10. package/dist/integration-manager/src/services/schemas/TypesDefaultEntitySchema.js +1 -0
  11. package/dist/integration-manager/src/services/schemas/TypesDefaultKind.d.ts +11 -0
  12. package/dist/integration-manager/src/services/schemas/TypesDefaultKind.js +1 -0
  13. package/dist/integration-manager/src/services/schemas/TypesDefaultMappingField.d.ts +5 -0
  14. package/dist/integration-manager/src/services/schemas/TypesDefaultMappingField.js +4 -0
  15. package/dist/integration-manager/src/services/schemas/TypesEntitySchema.d.ts +1 -0
  16. package/dist/integration-manager/src/services/schemas/TypesHarnessAirbyteConfig.d.ts +1 -1
  17. package/dist/integration-manager/src/services/schemas/TypesKindMappingFields.d.ts +5 -0
  18. package/dist/integration-manager/src/services/schemas/TypesKindMappingFields.js +1 -0
  19. package/dist/integration-manager/src/services/schemas/TypesListDefaultMappingFieldsResponse.d.ts +4 -0
  20. package/dist/integration-manager/src/services/schemas/TypesListDefaultMappingFieldsResponse.js +1 -0
  21. package/package.json +1 -1
@@ -11,6 +11,10 @@ export interface GetAirbyteConnectorCatalogQueryQueryParams {
11
11
  * Type of integration connector
12
12
  */
13
13
  integration_type: string;
14
+ /**
15
+ * Reference to the connector
16
+ */
17
+ connector_ref: string;
14
18
  /**
15
19
  * Filter for specific tables/streams
16
20
  */
@@ -0,0 +1,22 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TypesListDefaultMappingFieldsResponse } from '../schemas/TypesListDefaultMappingFieldsResponse';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListDefaultMappingFieldsQueryPathParams {
7
+ accountIdentifier: string;
8
+ }
9
+ export interface ListDefaultMappingFieldsQueryQueryParams {
10
+ integration_type?: string;
11
+ kind?: string;
12
+ }
13
+ export type ListDefaultMappingFieldsOkResponse = ResponseWithPagination<TypesListDefaultMappingFieldsResponse>;
14
+ export type ListDefaultMappingFieldsErrorResponse = ApierrorsErrorResponse;
15
+ export interface ListDefaultMappingFieldsProps extends ListDefaultMappingFieldsQueryPathParams, Omit<FetcherOptions<ListDefaultMappingFieldsQueryQueryParams, unknown>, 'url'> {
16
+ queryParams: ListDefaultMappingFieldsQueryQueryParams;
17
+ }
18
+ export declare function listDefaultMappingFields(props: ListDefaultMappingFieldsProps): Promise<ListDefaultMappingFieldsOkResponse>;
19
+ /**
20
+ * Returns fields from the default mapping for the given integration type. Query 'integration_type' is required. Only primary kinds are included. Only fields inside the mapping's metadata (properties.metadata) are returned. Response is mappings: an array of { kind, fields } where fields is a list of { field_name, display_name, description }. Optional query 'kind' filters to a single kind; when omitted, all primary kinds are returned.
21
+ */
22
+ export declare function useListDefaultMappingFieldsQuery(props: ListDefaultMappingFieldsProps, options?: Omit<UseQueryOptions<ListDefaultMappingFieldsOkResponse, ListDefaultMappingFieldsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListDefaultMappingFieldsOkResponse, 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 listDefaultMappingFields(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration/default-mapping-fields`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns fields from the default mapping for the given integration type. Query 'integration_type' is required. Only primary kinds are included. Only fields inside the mapping's metadata (properties.metadata) are returned. Response is mappings: an array of { kind, fields } where fields is a list of { field_name, display_name, description }. Optional query 'kind' filters to a single kind; when omitted, all primary kinds are returned.
11
+ */
12
+ export function useListDefaultMappingFieldsQuery(props, options) {
13
+ return useQuery(['listDefaultMappingFields', props.accountIdentifier, props.queryParams], ({ signal }) => listDefaultMappingFields(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TypesDefaultEntitySchema } from '../schemas/TypesDefaultEntitySchema';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListDefaultSchemasQueryPathParams {
7
+ accountIdentifier: string;
8
+ }
9
+ export interface ListDefaultSchemasQueryQueryParams {
10
+ integration_type?: string;
11
+ kind?: string;
12
+ }
13
+ export type ListDefaultSchemasOkResponse = ResponseWithPagination<TypesDefaultEntitySchema>;
14
+ export type ListDefaultSchemasErrorResponse = ApierrorsErrorResponse;
15
+ export interface ListDefaultSchemasProps extends ListDefaultSchemasQueryPathParams, Omit<FetcherOptions<ListDefaultSchemasQueryQueryParams, unknown>, 'url'> {
16
+ queryParams: ListDefaultSchemasQueryQueryParams;
17
+ }
18
+ export declare function listDefaultSchemas(props: ListDefaultSchemasProps): Promise<ListDefaultSchemasOkResponse>;
19
+ /**
20
+ * Returns the default entity schema for the given integration type. Query 'integration_type' is required. Optional query 'kind' filters to a single kind.
21
+ */
22
+ export declare function useListDefaultSchemasQuery(props: ListDefaultSchemasProps, options?: Omit<UseQueryOptions<ListDefaultSchemasOkResponse, ListDefaultSchemasErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListDefaultSchemasOkResponse, 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 listDefaultSchemas(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration/default-schemas`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns the default entity schema for the given integration type. Query 'integration_type' is required. Optional query 'kind' filters to a single kind.
11
+ */
12
+ export function useListDefaultSchemasQuery(props, options) {
13
+ return useQuery(['listDefaultSchemas', props.accountIdentifier, props.queryParams], ({ signal }) => listDefaultSchemas(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -21,6 +21,10 @@ export type { GetIntegrationConfigErrorResponse, GetIntegrationConfigOkResponse,
21
21
  export { getIntegrationConfig, useGetIntegrationConfigQuery, } from './hooks/useGetIntegrationConfigQuery';
22
22
  export type { ListAgentsErrorResponse, ListAgentsOkResponse, ListAgentsProps, ListAgentsQueryPathParams, } from './hooks/useListAgentsQuery';
23
23
  export { listAgents, useListAgentsQuery } from './hooks/useListAgentsQuery';
24
+ export type { ListDefaultMappingFieldsErrorResponse, ListDefaultMappingFieldsOkResponse, ListDefaultMappingFieldsProps, ListDefaultMappingFieldsQueryPathParams, ListDefaultMappingFieldsQueryQueryParams, } from './hooks/useListDefaultMappingFieldsQuery';
25
+ export { listDefaultMappingFields, useListDefaultMappingFieldsQuery, } from './hooks/useListDefaultMappingFieldsQuery';
26
+ export type { ListDefaultSchemasErrorResponse, ListDefaultSchemasOkResponse, ListDefaultSchemasProps, ListDefaultSchemasQueryPathParams, ListDefaultSchemasQueryQueryParams, } from './hooks/useListDefaultSchemasQuery';
27
+ export { listDefaultSchemas, useListDefaultSchemasQuery } from './hooks/useListDefaultSchemasQuery';
24
28
  export type { ListIntegrationConfigsErrorResponse, ListIntegrationConfigsOkResponse, ListIntegrationConfigsProps, ListIntegrationConfigsQueryPathParams, } from './hooks/useListIntegrationConfigsQuery';
25
29
  export { listIntegrationConfigs, useListIntegrationConfigsQuery, } from './hooks/useListIntegrationConfigsQuery';
26
30
  export type { TriggerSyncErrorResponse, TriggerSyncMutationPathParams, TriggerSyncOkResponse, TriggerSyncProps, } from './hooks/useTriggerSyncMutation';
@@ -57,6 +61,9 @@ export type { TypesAirbyteCatalogDiscovered } from './schemas/TypesAirbyteCatalo
57
61
  export type { TypesAirbyteConnector } from './schemas/TypesAirbyteConnector';
58
62
  export type { TypesAirbyteStream } from './schemas/TypesAirbyteStream';
59
63
  export type { TypesAirbyteStreamConfigured } from './schemas/TypesAirbyteStreamConfigured';
64
+ export type { TypesDefaultEntitySchema } from './schemas/TypesDefaultEntitySchema';
65
+ export type { TypesDefaultKind } from './schemas/TypesDefaultKind';
66
+ export type { TypesDefaultMappingField } from './schemas/TypesDefaultMappingField';
60
67
  export type { TypesEntityMapping } from './schemas/TypesEntityMapping';
61
68
  export type { TypesEntityMappingSpec } from './schemas/TypesEntityMappingSpec';
62
69
  export type { TypesEntitySchema } from './schemas/TypesEntitySchema';
@@ -65,7 +72,9 @@ export type { TypesHarnessAirbyteConfig } from './schemas/TypesHarnessAirbyteCon
65
72
  export type { TypesIntegrationAgent } from './schemas/TypesIntegrationAgent';
66
73
  export type { TypesIntegrationConfig } from './schemas/TypesIntegrationConfig';
67
74
  export type { TypesJsonSchema } from './schemas/TypesJsonSchema';
75
+ export type { TypesKindMappingFields } from './schemas/TypesKindMappingFields';
68
76
  export type { TypesLastSyncInfo } from './schemas/TypesLastSyncInfo';
77
+ export type { TypesListDefaultMappingFieldsResponse } from './schemas/TypesListDefaultMappingFieldsResponse';
69
78
  export type { TypesMappingConfig } from './schemas/TypesMappingConfig';
70
79
  export type { TypesMappingSpec } from './schemas/TypesMappingSpec';
71
80
  export type { TypesSchemaMapping } from './schemas/TypesSchemaMapping';
@@ -9,6 +9,8 @@ export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogQuery, } from
9
9
  export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
10
10
  export { getIntegrationConfig, useGetIntegrationConfigQuery, } from './hooks/useGetIntegrationConfigQuery';
11
11
  export { listAgents, useListAgentsQuery } from './hooks/useListAgentsQuery';
12
+ export { listDefaultMappingFields, useListDefaultMappingFieldsQuery, } from './hooks/useListDefaultMappingFieldsQuery';
13
+ export { listDefaultSchemas, useListDefaultSchemasQuery } from './hooks/useListDefaultSchemasQuery';
12
14
  export { listIntegrationConfigs, useListIntegrationConfigsQuery, } from './hooks/useListIntegrationConfigsQuery';
13
15
  export { triggerSync, useTriggerSyncMutation } from './hooks/useTriggerSyncMutation';
14
16
  export { updateAgent, useUpdateAgentMutation } from './hooks/useUpdateAgentMutation';
@@ -5,5 +5,4 @@ export interface AirbyteFetchAirbyteConnectorCatalogResponse {
5
5
  catalog?: TypesAirbyteCatalogDiscovered;
6
6
  config?: TypesHarnessAirbyteConfig;
7
7
  integration_type?: EnumIntegrationType;
8
- k8s_harness_connector_ref?: string;
9
8
  }
@@ -0,0 +1,16 @@
1
+ import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
2
+ import type { TypesDefaultKind } from '../schemas/TypesDefaultKind';
3
+ import type { TypesScopeConfig } from '../schemas/TypesScopeConfig';
4
+ export interface TypesDefaultEntitySchema {
5
+ configuration?: {
6
+ [key: string]: any;
7
+ } | null;
8
+ created?: number;
9
+ integration_type?: EnumIntegrationType;
10
+ kinds?: {
11
+ [key: string]: TypesDefaultKind;
12
+ } | null;
13
+ last_updated?: number;
14
+ scope_config?: TypesScopeConfig;
15
+ version?: string;
16
+ }
@@ -0,0 +1,11 @@
1
+ import type { TypesSchemaMapping } from '../schemas/TypesSchemaMapping';
2
+ export interface TypesDefaultKind {
3
+ fields?: {
4
+ [key: string]: any;
5
+ } | null;
6
+ primary?: boolean;
7
+ primary_kind?: string;
8
+ schema_mappings?: {
9
+ [key: string]: TypesSchemaMapping;
10
+ } | null;
11
+ }
@@ -0,0 +1,5 @@
1
+ export interface TypesDefaultMappingField {
2
+ description?: string;
3
+ display_name?: string;
4
+ field_name?: string;
5
+ }
@@ -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 {};
@@ -13,6 +13,7 @@ export interface TypesEntitySchema {
13
13
  kind?: string;
14
14
  last_updated?: number;
15
15
  primary?: boolean;
16
+ primary_kind?: string;
16
17
  schema_mappings?: {
17
18
  [key: string]: TypesSchemaMapping;
18
19
  } | null;
@@ -1,5 +1,5 @@
1
1
  export interface TypesHarnessAirbyteConfig {
2
2
  service_now_harness_connector_ref?: string;
3
- service_now_table_filter?: string;
4
3
  start_date?: string;
4
+ table_filter?: string;
5
5
  }
@@ -0,0 +1,5 @@
1
+ import type { TypesDefaultMappingField } from '../schemas/TypesDefaultMappingField';
2
+ export interface TypesKindMappingFields {
3
+ fields?: TypesDefaultMappingField[] | null;
4
+ kind?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ import type { TypesKindMappingFields } from '../schemas/TypesKindMappingFields';
2
+ export interface TypesListDefaultMappingFieldsResponse {
3
+ mapping_fields?: TypesKindMappingFields[] | null;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-integration-manager-client",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "Harness React integration manager client - Integration Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",