@harnessio/react-integration-manager-client 0.8.2 → 0.8.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.
@@ -23,6 +23,10 @@ export interface GetAirbyteConnectorCatalogQueryQueryParams {
23
23
  * Start date filter
24
24
  */
25
25
  start_date?: string;
26
+ /**
27
+ * When true returns only default streams
28
+ */
29
+ fetch_default?: boolean;
26
30
  }
27
31
  export type GetAirbyteConnectorCatalogOkResponse = ResponseWithPagination<AirbyteGetAirbyteConnectorCatalogResponse>;
28
32
  export type GetAirbyteConnectorCatalogErrorResponse = ApierrorsErrorResponse;
@@ -17,6 +17,6 @@ export interface ListDefaultMappingFieldsProps extends ListDefaultMappingFieldsQ
17
17
  }
18
18
  export declare function listDefaultMappingFields(props: ListDefaultMappingFieldsProps): Promise<ListDefaultMappingFieldsOkResponse>;
19
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, target_path, is_required }. Optional query 'kind' filters to a single kind; when omitted, all primary kinds are returned.
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 mapping_fields: an array of { kind, fields } where fields is a list of { field_name, display_name, description, target_path, is_required }. Response also includes default_mappings: integration-level fallback field mappings (source_field, target_field, required) applied when no kind-specific mapping is present. Optional query 'kind' filters to a single kind; when omitted, all primary kinds are returned.
21
21
  */
22
22
  export declare function useListDefaultMappingFieldsQuery(props: ListDefaultMappingFieldsProps, options?: Omit<UseQueryOptions<ListDefaultMappingFieldsOkResponse, ListDefaultMappingFieldsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListDefaultMappingFieldsOkResponse, ApierrorsErrorResponse>;
@@ -7,7 +7,7 @@ export function listDefaultMappingFields(props) {
7
7
  return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration/default-mapping-fields`, method: 'GET' }, props));
8
8
  }
9
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, target_path, is_required }. Optional query 'kind' filters to a single kind; when omitted, all primary kinds are returned.
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 mapping_fields: an array of { kind, fields } where fields is a list of { field_name, display_name, description, target_path, is_required }. Response also includes default_mappings: integration-level fallback field mappings (source_field, target_field, required) applied when no kind-specific mapping is present. Optional query 'kind' filters to a single kind; when omitted, all primary kinds are returned.
11
11
  */
12
12
  export function useListDefaultMappingFieldsQuery(props, options) {
13
13
  return useQuery(['listDefaultMappingFields', props.accountIdentifier, props.queryParams], ({ signal }) => listDefaultMappingFields(Object.assign(Object.assign({}, props), { signal })), options);
@@ -261,6 +261,7 @@ export type { TypesCorrelationMapping } from './schemas/TypesCorrelationMapping'
261
261
  export type { TypesDefaultAirbyteStreamSettings } from './schemas/TypesDefaultAirbyteStreamSettings';
262
262
  export type { TypesDefaultEntityRelation } from './schemas/TypesDefaultEntityRelation';
263
263
  export type { TypesDefaultEntitySchema } from './schemas/TypesDefaultEntitySchema';
264
+ export type { TypesDefaultFieldMapping } from './schemas/TypesDefaultFieldMapping';
264
265
  export type { TypesDefaultKind } from './schemas/TypesDefaultKind';
265
266
  export type { TypesDefaultMappingField } from './schemas/TypesDefaultMappingField';
266
267
  export type { TypesDefaultRelationEnd } from './schemas/TypesDefaultRelationEnd';
@@ -4,5 +4,6 @@ export interface TypesAirbyteCatalogDiscovered {
4
4
  default_stream_settings?: {
5
5
  [key: string]: TypesDefaultAirbyteStreamSettings;
6
6
  };
7
+ is_default?: boolean;
7
8
  streams?: TypesAirbyteStream[] | null;
8
9
  }
@@ -2,7 +2,7 @@ import type { EnumOperator } from '../schemas/EnumOperator';
2
2
  export interface TypesCorrelationMapping {
3
3
  operator?: EnumOperator;
4
4
  /**
5
- * Required. Immutable.
5
+ * Required. Mutable for HarnessCI after create; immutable for Custom.
6
6
  */
7
7
  source_path?: string;
8
8
  /**
@@ -1,3 +1,4 @@
1
+ import type { TypesDefaultFieldMapping } from '../schemas/TypesDefaultFieldMapping';
1
2
  import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
2
3
  import type { TypesDefaultKind } from '../schemas/TypesDefaultKind';
3
4
  import type { TypesDefaultEntityRelation } from '../schemas/TypesDefaultEntityRelation';
@@ -7,6 +8,7 @@ export interface TypesDefaultEntitySchema {
7
8
  [key: string]: any;
8
9
  } | null;
9
10
  created?: number;
11
+ default_field_mappings?: TypesDefaultFieldMapping[];
10
12
  integration_type?: EnumIntegrationType;
11
13
  kinds?: {
12
14
  [key: string]: TypesDefaultKind;
@@ -0,0 +1,5 @@
1
+ export interface TypesDefaultFieldMapping {
2
+ required?: boolean;
3
+ source_field?: string;
4
+ target_field?: 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 {};
@@ -1,4 +1,6 @@
1
+ import type { TypesDefaultFieldMapping } from '../schemas/TypesDefaultFieldMapping';
1
2
  import type { TypesKindMappingFields } from '../schemas/TypesKindMappingFields';
2
3
  export interface TypesListDefaultMappingFieldsResponse {
4
+ default_mappings?: TypesDefaultFieldMapping[];
3
5
  mapping_fields?: TypesKindMappingFields[] | null;
4
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-integration-manager-client",
3
- "version": "0.8.2",
3
+ "version": "0.8.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",