@harnessio/react-integration-manager-client 0.3.19 → 0.4.0
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/useGetEntitiesMutation.d.ts +34 -0
- package/dist/integration-manager/src/services/hooks/useGetEntitiesMutation.js +28 -0
- package/dist/integration-manager/src/services/index.d.ts +11 -0
- package/dist/integration-manager/src/services/index.js +1 -0
- package/dist/integration-manager/src/services/schemas/EntityGetEntitiesResponse.d.ts +6 -0
- package/dist/integration-manager/src/services/schemas/EntityGetEntitiesResponse.js +1 -0
- package/dist/integration-manager/src/services/schemas/EntityPaginationInfo.d.ts +6 -0
- package/dist/integration-manager/src/services/schemas/EntityPaginationInfo.js +4 -0
- package/dist/integration-manager/src/services/schemas/EnumSyncStatus.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/EnumSyncStatus.js +4 -0
- package/dist/integration-manager/src/services/schemas/OpenapiFieldValFilterRequest.d.ts +4 -0
- package/dist/integration-manager/src/services/schemas/OpenapiFieldValFilterRequest.js +4 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetEntitiesRequest.d.ts +8 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetEntitiesRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiIntegrationRequestOpenApi.d.ts +6 -0
- package/dist/integration-manager/src/services/schemas/OpenapiIntegrationRequestOpenApi.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiSecondaryKindRequestOpenApi.d.ts +5 -0
- package/dist/integration-manager/src/services/schemas/OpenapiSecondaryKindRequestOpenApi.js +1 -0
- package/dist/integration-manager/src/services/schemas/TypesAirbyteTriggerSyncResult.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/TypesEntity.d.ts +21 -0
- package/dist/integration-manager/src/services/schemas/TypesEntity.js +1 -0
- package/dist/integration-manager/src/services/schemas/TypesHarnessAirbyteConfig.d.ts +2 -0
- package/dist/integration-manager/src/services/schemas/TypesHarnessAirbyteConfig.js +0 -3
- package/dist/integration-manager/src/services/schemas/TypesIdpSubscription.d.ts +5 -0
- package/dist/integration-manager/src/services/schemas/TypesIdpSubscription.js +4 -0
- package/dist/integration-manager/src/services/schemas/TypesIntegrationConfig.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/TypesSyncState.d.ts +2 -0
- package/dist/integration-manager/src/services/schemas/TypesSyncState.js +0 -3
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityGetEntitiesResponse } from '../schemas/EntityGetEntitiesResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiGetEntitiesRequest } from '../schemas/OpenapiGetEntitiesRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetEntitiesMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type GetEntitiesRequestBody = OpenapiGetEntitiesRequest;
|
|
11
|
+
export type GetEntitiesOkResponse = ResponseWithPagination<EntityGetEntitiesResponse>;
|
|
12
|
+
export type GetEntitiesErrorResponse = ApierrorsErrorResponse;
|
|
13
|
+
export interface GetEntitiesProps extends GetEntitiesMutationPathParams, Omit<FetcherOptions<unknown, GetEntitiesRequestBody>, 'url'> {
|
|
14
|
+
body: GetEntitiesRequestBody;
|
|
15
|
+
}
|
|
16
|
+
export declare function getEntities(props: GetEntitiesProps): Promise<GetEntitiesOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get entities from multiple integrations with linked secondary entities.
|
|
19
|
+
*
|
|
20
|
+
* Request Body (required):
|
|
21
|
+
* - integrations: Required array of integration queries. Each entry includes:
|
|
22
|
+
* - integration_id: Required - integration config identifier.
|
|
23
|
+
* - entity_uuid: Optional - UUID of the primary entity to fetch.
|
|
24
|
+
* - secondary_kinds: Optional - array of secondary entity kinds to fetch via EntityRelation linkage.
|
|
25
|
+
* Each secondary kind can include field_val_filters for filtering.
|
|
26
|
+
* - sort_by: Sort field - "created" (default), "last_updated", "name", or "identifier".
|
|
27
|
+
* - order: Sort order - "asc" or "desc" (default: "desc").
|
|
28
|
+
* - page: Pagination page number (default: 1, 1-based).
|
|
29
|
+
* - limit: Page size (default: 50, max: 2000).
|
|
30
|
+
*
|
|
31
|
+
* For each integration, the primary entity is fetched by UUID, then linked secondary entities
|
|
32
|
+
* are resolved via EntityRelation definitions. Results are returned as a flat list.
|
|
33
|
+
*/
|
|
34
|
+
export declare function useGetEntitiesMutation(options?: Omit<UseMutationOptions<GetEntitiesOkResponse, GetEntitiesErrorResponse, GetEntitiesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetEntitiesOkResponse, ApierrorsErrorResponse, GetEntitiesProps, unknown>;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 getEntities(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/entities`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get entities from multiple integrations with linked secondary entities.
|
|
11
|
+
*
|
|
12
|
+
* Request Body (required):
|
|
13
|
+
* - integrations: Required array of integration queries. Each entry includes:
|
|
14
|
+
* - integration_id: Required - integration config identifier.
|
|
15
|
+
* - entity_uuid: Optional - UUID of the primary entity to fetch.
|
|
16
|
+
* - secondary_kinds: Optional - array of secondary entity kinds to fetch via EntityRelation linkage.
|
|
17
|
+
* Each secondary kind can include field_val_filters for filtering.
|
|
18
|
+
* - sort_by: Sort field - "created" (default), "last_updated", "name", or "identifier".
|
|
19
|
+
* - order: Sort order - "asc" or "desc" (default: "desc").
|
|
20
|
+
* - page: Pagination page number (default: 1, 1-based).
|
|
21
|
+
* - limit: Page size (default: 50, max: 2000).
|
|
22
|
+
*
|
|
23
|
+
* For each integration, the primary entity is fetched by UUID, then linked secondary entities
|
|
24
|
+
* are resolved via EntityRelation definitions. Results are returned as a flat list.
|
|
25
|
+
*/
|
|
26
|
+
export function useGetEntitiesMutation(options) {
|
|
27
|
+
return useMutation((mutateProps) => getEntities(mutateProps), options);
|
|
28
|
+
}
|
|
@@ -41,6 +41,8 @@ export type { GetAirbyteIntegrationConfigProjectErrorResponse, GetAirbyteIntegra
|
|
|
41
41
|
export { getAirbyteIntegrationConfigProject, useGetAirbyteIntegrationConfigProjectQuery, } from './hooks/useGetAirbyteIntegrationConfigProjectQuery';
|
|
42
42
|
export type { GetAirbyteIntegrationConfigErrorResponse, GetAirbyteIntegrationConfigOkResponse, GetAirbyteIntegrationConfigProps, GetAirbyteIntegrationConfigQueryPathParams, } from './hooks/useGetAirbyteIntegrationConfigQuery';
|
|
43
43
|
export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
|
|
44
|
+
export type { GetEntitiesErrorResponse, GetEntitiesMutationPathParams, GetEntitiesOkResponse, GetEntitiesProps, GetEntitiesRequestBody, } from './hooks/useGetEntitiesMutation';
|
|
45
|
+
export { getEntities, useGetEntitiesMutation } from './hooks/useGetEntitiesMutation';
|
|
44
46
|
export type { GetIntegrationConfigOrgErrorResponse, GetIntegrationConfigOrgOkResponse, GetIntegrationConfigOrgProps, GetIntegrationConfigOrgQueryPathParams, } from './hooks/useGetIntegrationConfigOrgQuery';
|
|
45
47
|
export { getIntegrationConfigOrg, useGetIntegrationConfigOrgQuery, } from './hooks/useGetIntegrationConfigOrgQuery';
|
|
46
48
|
export type { GetIntegrationConfigProjectErrorResponse, GetIntegrationConfigProjectOkResponse, GetIntegrationConfigProjectProps, GetIntegrationConfigProjectQueryPathParams, } from './hooks/useGetIntegrationConfigProjectQuery';
|
|
@@ -107,12 +109,15 @@ export type { AirbyteFetchAirbyteConnectorCatalogResponse } from './schemas/Airb
|
|
|
107
109
|
export type { AirbyteGetAirbyteConnectorCatalogResponse } from './schemas/AirbyteGetAirbyteConnectorCatalogResponse';
|
|
108
110
|
export type { ApierrorsErrorDetail } from './schemas/ApierrorsErrorDetail';
|
|
109
111
|
export type { ApierrorsErrorResponse } from './schemas/ApierrorsErrorResponse';
|
|
112
|
+
export type { EntityGetEntitiesResponse } from './schemas/EntityGetEntitiesResponse';
|
|
113
|
+
export type { EntityPaginationInfo } from './schemas/EntityPaginationInfo';
|
|
110
114
|
export type { EnumAction } from './schemas/EnumAction';
|
|
111
115
|
export type { EnumAirbyteDestinationSyncMode } from './schemas/EnumAirbyteDestinationSyncMode';
|
|
112
116
|
export type { EnumAirbyteSyncMode } from './schemas/EnumAirbyteSyncMode';
|
|
113
117
|
export type { EnumIntegrationMode } from './schemas/EnumIntegrationMode';
|
|
114
118
|
export type { EnumIntegrationType } from './schemas/EnumIntegrationType';
|
|
115
119
|
export type { EnumOperator } from './schemas/EnumOperator';
|
|
120
|
+
export type { EnumSyncStatus } from './schemas/EnumSyncStatus';
|
|
116
121
|
export type { IntegrationconfigAirbyteIntegrationResponse } from './schemas/IntegrationconfigAirbyteIntegrationResponse';
|
|
117
122
|
export type { IntegrationconfigSyncStatus } from './schemas/IntegrationconfigSyncStatus';
|
|
118
123
|
export type { IntegrationconfigTriggerSyncResponse } from './schemas/IntegrationconfigTriggerSyncResponse';
|
|
@@ -123,7 +128,11 @@ export type { OpenapiCreateAirbyteIntegrationConfigRequest } from './schemas/Ope
|
|
|
123
128
|
export type { OpenapiCreateIntegrationConfigOrgRequest } from './schemas/OpenapiCreateIntegrationConfigOrgRequest';
|
|
124
129
|
export type { OpenapiCreateIntegrationConfigProjectRequest } from './schemas/OpenapiCreateIntegrationConfigProjectRequest';
|
|
125
130
|
export type { OpenapiCreateIntegrationConfigRequest } from './schemas/OpenapiCreateIntegrationConfigRequest';
|
|
131
|
+
export type { OpenapiFieldValFilterRequest } from './schemas/OpenapiFieldValFilterRequest';
|
|
126
132
|
export type { OpenapiGetAirbyteConnectorCatalogRequest } from './schemas/OpenapiGetAirbyteConnectorCatalogRequest';
|
|
133
|
+
export type { OpenapiGetEntitiesRequest } from './schemas/OpenapiGetEntitiesRequest';
|
|
134
|
+
export type { OpenapiIntegrationRequestOpenApi } from './schemas/OpenapiIntegrationRequestOpenApi';
|
|
135
|
+
export type { OpenapiSecondaryKindRequestOpenApi } from './schemas/OpenapiSecondaryKindRequestOpenApi';
|
|
127
136
|
export type { OpenapiSettingsUpsertAccountRequest } from './schemas/OpenapiSettingsUpsertAccountRequest';
|
|
128
137
|
export type { OpenapiSettingsUpsertOrgRequest } from './schemas/OpenapiSettingsUpsertOrgRequest';
|
|
129
138
|
export type { OpenapiSettingsUpsertProjectRequest } from './schemas/OpenapiSettingsUpsertProjectRequest';
|
|
@@ -149,11 +158,13 @@ export type { TypesDefaultEntitySchema } from './schemas/TypesDefaultEntitySchem
|
|
|
149
158
|
export type { TypesDefaultKind } from './schemas/TypesDefaultKind';
|
|
150
159
|
export type { TypesDefaultMappingField } from './schemas/TypesDefaultMappingField';
|
|
151
160
|
export type { TypesDefaultRelationEnd } from './schemas/TypesDefaultRelationEnd';
|
|
161
|
+
export type { TypesEntity } from './schemas/TypesEntity';
|
|
152
162
|
export type { TypesEntityMapping } from './schemas/TypesEntityMapping';
|
|
153
163
|
export type { TypesEntityMappingSpec } from './schemas/TypesEntityMappingSpec';
|
|
154
164
|
export type { TypesEntitySchema } from './schemas/TypesEntitySchema';
|
|
155
165
|
export type { TypesFieldMapping } from './schemas/TypesFieldMapping';
|
|
156
166
|
export type { TypesHarnessAirbyteConfig } from './schemas/TypesHarnessAirbyteConfig';
|
|
167
|
+
export type { TypesIdpSubscription } from './schemas/TypesIdpSubscription';
|
|
157
168
|
export type { TypesIntegrationAgent } from './schemas/TypesIntegrationAgent';
|
|
158
169
|
export type { TypesIntegrationConfig } from './schemas/TypesIntegrationConfig';
|
|
159
170
|
export type { TypesJsonSchema } from './schemas/TypesJsonSchema';
|
|
@@ -19,6 +19,7 @@ export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogQuery, } from
|
|
|
19
19
|
export { getAirbyteIntegrationConfigOrg, useGetAirbyteIntegrationConfigOrgQuery, } from './hooks/useGetAirbyteIntegrationConfigOrgQuery';
|
|
20
20
|
export { getAirbyteIntegrationConfigProject, useGetAirbyteIntegrationConfigProjectQuery, } from './hooks/useGetAirbyteIntegrationConfigProjectQuery';
|
|
21
21
|
export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
|
|
22
|
+
export { getEntities, useGetEntitiesMutation } from './hooks/useGetEntitiesMutation';
|
|
22
23
|
export { getIntegrationConfigOrg, useGetIntegrationConfigOrgQuery, } from './hooks/useGetIntegrationConfigOrgQuery';
|
|
23
24
|
export { getIntegrationConfigProject, useGetIntegrationConfigProjectQuery, } from './hooks/useGetIntegrationConfigProjectQuery';
|
|
24
25
|
export { getIntegrationConfig, useGetIntegrationConfigQuery, } from './hooks/useGetIntegrationConfigQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EnumSyncStatus = 'ENQUEUED' | 'STARTED';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { OpenapiIntegrationRequestOpenApi } from '../schemas/OpenapiIntegrationRequestOpenApi';
|
|
2
|
+
export interface OpenapiGetEntitiesRequest {
|
|
3
|
+
integrations?: OpenapiIntegrationRequestOpenApi[] | null;
|
|
4
|
+
limit?: number;
|
|
5
|
+
order?: string;
|
|
6
|
+
page?: number;
|
|
7
|
+
sort_by?: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { OpenapiSecondaryKindRequestOpenApi } from '../schemas/OpenapiSecondaryKindRequestOpenApi';
|
|
2
|
+
export interface OpenapiIntegrationRequestOpenApi {
|
|
3
|
+
entity_uuid?: string;
|
|
4
|
+
integration_id?: string;
|
|
5
|
+
secondary_kinds?: OpenapiSecondaryKindRequestOpenApi[];
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { TypesAirbyteTriggerSyncError } from '../schemas/TypesAirbyteTriggerSyncError';
|
|
2
2
|
export interface TypesAirbyteTriggerSyncResult {
|
|
3
3
|
error?: TypesAirbyteTriggerSyncError;
|
|
4
|
+
execution_id?: string;
|
|
4
5
|
integration_id?: string;
|
|
5
6
|
logs?: string;
|
|
6
7
|
success?: boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TypesIdpSubscription } from '../schemas/TypesIdpSubscription';
|
|
2
|
+
export interface TypesEntity {
|
|
3
|
+
created?: number;
|
|
4
|
+
identifier?: string;
|
|
5
|
+
idp_subscription?: TypesIdpSubscription;
|
|
6
|
+
integration_id?: string;
|
|
7
|
+
integration_space_path?: string;
|
|
8
|
+
integration_type?: string;
|
|
9
|
+
is_deleted?: boolean;
|
|
10
|
+
kind?: string;
|
|
11
|
+
last_updated?: number;
|
|
12
|
+
metadata?: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
} | null;
|
|
15
|
+
space_path?: string;
|
|
16
|
+
spec?: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
} | null;
|
|
19
|
+
sync_id?: string;
|
|
20
|
+
version?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
|
|
1
2
|
export interface TypesHarnessAirbyteConfig {
|
|
2
3
|
gcp_folder_id?: string;
|
|
3
4
|
gcp_harness_connector_ref?: string;
|
|
4
5
|
gcp_org_id?: string;
|
|
5
6
|
github_org?: string;
|
|
6
7
|
github_scm_connector_ref?: string;
|
|
8
|
+
integration_type?: EnumIntegrationType;
|
|
7
9
|
pager_duty_harness_connector_ref?: string;
|
|
8
10
|
service_now_harness_connector_ref?: string;
|
|
9
11
|
sonarqube_host_url?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { EnumSyncStatus } from '../schemas/EnumSyncStatus';
|
|
1
2
|
export interface TypesSyncState {
|
|
2
3
|
cursor?: {
|
|
3
4
|
[key: string]: any;
|
|
@@ -5,6 +6,7 @@ export interface TypesSyncState {
|
|
|
5
6
|
has_more?: boolean;
|
|
6
7
|
pending?: boolean;
|
|
7
8
|
started_at?: number;
|
|
9
|
+
status?: EnumSyncStatus;
|
|
8
10
|
sync_id?: string;
|
|
9
11
|
total_entities?: number;
|
|
10
12
|
}
|
package/package.json
CHANGED