@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.
- package/dist/integration-manager/src/services/hooks/useGetAirbyteConnectorCatalogQuery.d.ts +4 -0
- package/dist/integration-manager/src/services/hooks/useListDefaultMappingFieldsQuery.d.ts +1 -1
- package/dist/integration-manager/src/services/hooks/useListDefaultMappingFieldsQuery.js +1 -1
- package/dist/integration-manager/src/services/index.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/TypesAirbyteCatalogDiscovered.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/TypesCorrelationMapping.d.ts +1 -1
- package/dist/integration-manager/src/services/schemas/TypesDefaultEntitySchema.d.ts +2 -0
- package/dist/integration-manager/src/services/schemas/TypesDefaultFieldMapping.d.ts +5 -0
- package/dist/integration-manager/src/services/schemas/TypesDefaultFieldMapping.js +4 -0
- package/dist/integration-manager/src/services/schemas/TypesListDefaultMappingFieldsResponse.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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';
|
|
@@ -2,7 +2,7 @@ import type { EnumOperator } from '../schemas/EnumOperator';
|
|
|
2
2
|
export interface TypesCorrelationMapping {
|
|
3
3
|
operator?: EnumOperator;
|
|
4
4
|
/**
|
|
5
|
-
* Required.
|
|
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;
|
package/dist/integration-manager/src/services/schemas/TypesListDefaultMappingFieldsResponse.d.ts
CHANGED
|
@@ -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