@harnessio/react-integration-manager-client 0.4.6 → 0.4.8

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.
@@ -27,6 +27,7 @@ export declare function getEntities(props: GetEntitiesProps): Promise<GetEntitie
27
27
  * - order: Sort order - "asc" or "desc" (default: "desc").
28
28
  * - page: Pagination page number (default: 1, 1-based).
29
29
  * - limit: Page size (default: 50, max: 2000).
30
+ * - exclude_primary: When true, excludes primary entities from the response (default: false).
30
31
  *
31
32
  * For each integration, the primary entity is fetched by UUID, then linked secondary entities
32
33
  * are resolved via EntityRelation definitions. Results are returned as a flat list.
@@ -19,6 +19,7 @@ export function getEntities(props) {
19
19
  * - order: Sort order - "asc" or "desc" (default: "desc").
20
20
  * - page: Pagination page number (default: 1, 1-based).
21
21
  * - limit: Page size (default: 50, max: 2000).
22
+ * - exclude_primary: When true, excludes primary entities from the response (default: false).
22
23
  *
23
24
  * For each integration, the primary entity is fetched by UUID, then linked secondary entities
24
25
  * are resolved via EntityRelation definitions. Results are returned as a flat list.
@@ -0,0 +1,59 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { IntegrationeventIntegrationEventResponse } from '../schemas/IntegrationeventIntegrationEventResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface ListIntegrationEventsQueryPathParams {
6
+ accountIdentifier: string;
7
+ integrationconfig_identifier: string;
8
+ }
9
+ export interface ListIntegrationEventsQueryQueryParams {
10
+ /**
11
+ * Filter by event type (repeatable)
12
+ */
13
+ event_type?: string[];
14
+ /**
15
+ * Filter by UI status: SUCCESS, FAILED, RUNNING, PARTIAL_SUCCESS (repeatable)
16
+ */
17
+ status?: string[];
18
+ /**
19
+ * Sort field: created_at or updated_at (default: updated_at)
20
+ */
21
+ sort?: string;
22
+ /**
23
+ * Sort order: asc or desc (default: desc)
24
+ */
25
+ order?: string;
26
+ /**
27
+ * Page number (default: 1)
28
+ */
29
+ page?: number;
30
+ /**
31
+ * Page size (default: 30, max: 100)
32
+ */
33
+ limit?: number;
34
+ }
35
+ export type ListIntegrationEventsOkResponse = ResponseWithPagination<IntegrationeventIntegrationEventResponse[]>;
36
+ export type ListIntegrationEventsErrorResponse = unknown;
37
+ export interface ListIntegrationEventsProps extends ListIntegrationEventsQueryPathParams, Omit<FetcherOptions<ListIntegrationEventsQueryQueryParams, unknown>, 'url'> {
38
+ queryParams: ListIntegrationEventsQueryQueryParams;
39
+ }
40
+ export declare function listIntegrationEvents(props: ListIntegrationEventsProps): Promise<ListIntegrationEventsOkResponse>;
41
+ /**
42
+ * List lifecycle and sync events for an integration.
43
+ *
44
+ * Supports filtering by event_type and status (both repeatable query params).
45
+ * Status values are UI-simplified: SUCCESS, FAILED, RUNNING, PARTIAL_SUCCESS.
46
+ * Results are sorted by updated_at descending by default.
47
+ * Pagination metadata is included in response headers (x-page, x-per-page, x-total, x-total-pages).
48
+ *
49
+ * Event types:
50
+ * - sync_run: Sync execution lifecycle (SCHEDULED -> SUBMITTED -> RUNNING -> COMPLETED/FAILED)
51
+ * - integration_created: Integration was created
52
+ * - integration_updated: Integration configuration was modified
53
+ * - integration_enabled: Integration was enabled
54
+ * - integration_disabled: Integration was disabled
55
+ * - entity_manual_import: Entities were manually imported (subscribed)
56
+ * - entity_unlinked: Entities were unlinked (unsubscribed)
57
+ * - entity_auto_import: Entities were auto-imported during sync
58
+ */
59
+ export declare function useListIntegrationEventsQuery(props: ListIntegrationEventsProps, options?: Omit<UseQueryOptions<ListIntegrationEventsOkResponse, ListIntegrationEventsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListIntegrationEventsOkResponse, unknown>;
@@ -0,0 +1,34 @@
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 listIntegrationEvents(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/${props.integrationconfig_identifier}/events`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List lifecycle and sync events for an integration.
11
+ *
12
+ * Supports filtering by event_type and status (both repeatable query params).
13
+ * Status values are UI-simplified: SUCCESS, FAILED, RUNNING, PARTIAL_SUCCESS.
14
+ * Results are sorted by updated_at descending by default.
15
+ * Pagination metadata is included in response headers (x-page, x-per-page, x-total, x-total-pages).
16
+ *
17
+ * Event types:
18
+ * - sync_run: Sync execution lifecycle (SCHEDULED -> SUBMITTED -> RUNNING -> COMPLETED/FAILED)
19
+ * - integration_created: Integration was created
20
+ * - integration_updated: Integration configuration was modified
21
+ * - integration_enabled: Integration was enabled
22
+ * - integration_disabled: Integration was disabled
23
+ * - entity_manual_import: Entities were manually imported (subscribed)
24
+ * - entity_unlinked: Entities were unlinked (unsubscribed)
25
+ * - entity_auto_import: Entities were auto-imported during sync
26
+ */
27
+ export function useListIntegrationEventsQuery(props, options) {
28
+ return useQuery([
29
+ 'listIntegrationEvents',
30
+ props.accountIdentifier,
31
+ props.integrationconfig_identifier,
32
+ props.queryParams,
33
+ ], ({ signal }) => listIntegrationEvents(Object.assign(Object.assign({}, props), { signal })), options);
34
+ }
@@ -63,6 +63,8 @@ export type { ListIntegrationConfigsProjectErrorResponse, ListIntegrationConfigs
63
63
  export { listIntegrationConfigsProject, useListIntegrationConfigsProjectQuery, } from './hooks/useListIntegrationConfigsProjectQuery';
64
64
  export type { ListIntegrationConfigsErrorResponse, ListIntegrationConfigsOkResponse, ListIntegrationConfigsProps, ListIntegrationConfigsQueryPathParams, } from './hooks/useListIntegrationConfigsQuery';
65
65
  export { listIntegrationConfigs, useListIntegrationConfigsQuery, } from './hooks/useListIntegrationConfigsQuery';
66
+ export type { ListIntegrationEventsErrorResponse, ListIntegrationEventsOkResponse, ListIntegrationEventsProps, ListIntegrationEventsQueryPathParams, ListIntegrationEventsQueryQueryParams, } from './hooks/useListIntegrationEventsQuery';
67
+ export { listIntegrationEvents, useListIntegrationEventsQuery, } from './hooks/useListIntegrationEventsQuery';
66
68
  export type { ListSettingsOrgErrorResponse, ListSettingsOrgOkResponse, ListSettingsOrgProps, ListSettingsOrgQueryPathParams, } from './hooks/useListSettingsOrgQuery';
67
69
  export { listSettingsOrg, useListSettingsOrgQuery } from './hooks/useListSettingsOrgQuery';
68
70
  export type { ListSettingsProjectErrorResponse, ListSettingsProjectOkResponse, ListSettingsProjectProps, ListSettingsProjectQueryPathParams, } from './hooks/useListSettingsProjectQuery';
@@ -116,12 +118,15 @@ export type { EntityPaginationInfo } from './schemas/EntityPaginationInfo';
116
118
  export type { EnumAction } from './schemas/EnumAction';
117
119
  export type { EnumAirbyteDestinationSyncMode } from './schemas/EnumAirbyteDestinationSyncMode';
118
120
  export type { EnumAirbyteSyncMode } from './schemas/EnumAirbyteSyncMode';
121
+ export type { EnumIntegrationEventType } from './schemas/EnumIntegrationEventType';
119
122
  export type { EnumIntegrationMode } from './schemas/EnumIntegrationMode';
120
123
  export type { EnumIntegrationType } from './schemas/EnumIntegrationType';
121
124
  export type { EnumOperator } from './schemas/EnumOperator';
122
125
  export type { EnumSyncResponseStatus } from './schemas/EnumSyncResponseStatus';
123
126
  export type { EnumSyncStatus } from './schemas/EnumSyncStatus';
124
127
  export type { IntegrationconfigAirbyteIntegrationResponse } from './schemas/IntegrationconfigAirbyteIntegrationResponse';
128
+ export type { IntegrationeventIntegrationEventResponse } from './schemas/IntegrationeventIntegrationEventResponse';
129
+ export type { IntegrationeventUiStatus } from './schemas/IntegrationeventUiStatus';
125
130
  export type { OpenapiCreateAgentRequest } from './schemas/OpenapiCreateAgentRequest';
126
131
  export type { OpenapiCreateAirbyteIntegrationConfigOrgRequest } from './schemas/OpenapiCreateAirbyteIntegrationConfigOrgRequest';
127
132
  export type { OpenapiCreateAirbyteIntegrationConfigProjectRequest } from './schemas/OpenapiCreateAirbyteIntegrationConfigProjectRequest';
@@ -30,6 +30,7 @@ export { listDefaultSchemas, useListDefaultSchemasQuery } from './hooks/useListD
30
30
  export { listIntegrationConfigsOrg, useListIntegrationConfigsOrgQuery, } from './hooks/useListIntegrationConfigsOrgQuery';
31
31
  export { listIntegrationConfigsProject, useListIntegrationConfigsProjectQuery, } from './hooks/useListIntegrationConfigsProjectQuery';
32
32
  export { listIntegrationConfigs, useListIntegrationConfigsQuery, } from './hooks/useListIntegrationConfigsQuery';
33
+ export { listIntegrationEvents, useListIntegrationEventsQuery, } from './hooks/useListIntegrationEventsQuery';
33
34
  export { listSettingsOrg, useListSettingsOrgQuery } from './hooks/useListSettingsOrgQuery';
34
35
  export { listSettingsProject, useListSettingsProjectQuery, } from './hooks/useListSettingsProjectQuery';
35
36
  export { listSettings, useListSettingsQuery } from './hooks/useListSettingsQuery';
@@ -0,0 +1 @@
1
+ export type EnumIntegrationEventType = 'entity_auto_import' | 'entity_manual_import' | 'entity_unlinked' | 'integration_created' | 'integration_disabled' | 'integration_enabled' | 'integration_updated' | 'sync_run';
@@ -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 {};
@@ -0,0 +1,21 @@
1
+ import type { EnumIntegrationEventType } from '../schemas/EnumIntegrationEventType';
2
+ import type { IntegrationeventUiStatus } from '../schemas/IntegrationeventUiStatus';
3
+ export interface IntegrationeventIntegrationEventResponse {
4
+ /**
5
+ * @format date-time
6
+ */
7
+ created_at?: string;
8
+ event_type?: EnumIntegrationEventType;
9
+ id?: string;
10
+ integration_id?: string;
11
+ metadata?: {
12
+ [key: string]: any;
13
+ };
14
+ space_path?: string;
15
+ status?: IntegrationeventUiStatus;
16
+ /**
17
+ * @format date-time
18
+ */
19
+ updated_at?: string;
20
+ updated_by_uid?: string;
21
+ }
@@ -0,0 +1 @@
1
+ export type IntegrationeventUiStatus = string;
@@ -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,5 +1,6 @@
1
1
  import type { OpenapiIntegrationRequestOpenApi } from '../schemas/OpenapiIntegrationRequestOpenApi';
2
2
  export interface OpenapiGetEntitiesRequest {
3
+ exclude_primary?: boolean;
3
4
  integrations?: OpenapiIntegrationRequestOpenApi[] | null;
4
5
  limit?: number;
5
6
  order?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-integration-manager-client",
3
- "version": "0.4.6",
3
+ "version": "0.4.8",
4
4
  "description": "Harness React integration manager client - Integration Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",