@harnessio/react-integration-manager-client 0.4.13 → 0.4.15
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/useListIntegrationEventsOrgQuery.d.ts +69 -0
- package/dist/integration-manager/src/services/hooks/useListIntegrationEventsOrgQuery.js +39 -0
- package/dist/integration-manager/src/services/hooks/useListIntegrationEventsProjectQuery.d.ts +70 -0
- package/dist/integration-manager/src/services/hooks/useListIntegrationEventsProjectQuery.js +40 -0
- package/dist/integration-manager/src/services/index.d.ts +4 -0
- package/dist/integration-manager/src/services/index.js +2 -0
- package/dist/integration-manager/src/services/schemas/EnumIntegrationType.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationeventIntegrationEventResponse } from '../schemas/IntegrationeventIntegrationEventResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListIntegrationEventsOrgQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
integrationconfig_identifier: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ListIntegrationEventsOrgQueryQueryParams {
|
|
12
|
+
/**
|
|
13
|
+
* Filter by one or more event types (repeatable)
|
|
14
|
+
*/
|
|
15
|
+
event_type?: Array<'entity_auto_import' | 'entity_manual_import' | 'entity_unlinked' | 'integration_created' | 'integration_disabled' | 'integration_enabled' | 'integration_updated' | 'sync_run'>;
|
|
16
|
+
/**
|
|
17
|
+
* Filter by one or more UI status values (repeatable)
|
|
18
|
+
*/
|
|
19
|
+
status?: Array<'FAILED' | 'PARTIAL_SUCCESS' | 'RUNNING' | 'SUCCESS'>;
|
|
20
|
+
/**
|
|
21
|
+
* Sort field (default: updated_at)
|
|
22
|
+
* @default "updated_at"
|
|
23
|
+
*/
|
|
24
|
+
sort?: 'created_at' | 'updated_at';
|
|
25
|
+
/**
|
|
26
|
+
* Sort order (default: desc)
|
|
27
|
+
* @default "desc"
|
|
28
|
+
*/
|
|
29
|
+
order?: 'asc' | 'desc';
|
|
30
|
+
/**
|
|
31
|
+
* Page number, 0-based (default: 0)
|
|
32
|
+
* @default 0
|
|
33
|
+
*/
|
|
34
|
+
page?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Number of items per page (default: 20, max: 100)
|
|
37
|
+
* @default 20
|
|
38
|
+
*/
|
|
39
|
+
limit?: number;
|
|
40
|
+
}
|
|
41
|
+
export type ListIntegrationEventsOrgOkResponse = ResponseWithPagination<IntegrationeventIntegrationEventResponse[]>;
|
|
42
|
+
export type ListIntegrationEventsOrgErrorResponse = ApierrorsErrorResponse;
|
|
43
|
+
export interface ListIntegrationEventsOrgProps extends ListIntegrationEventsOrgQueryPathParams, Omit<FetcherOptions<ListIntegrationEventsOrgQueryQueryParams, unknown>, 'url'> {
|
|
44
|
+
queryParams: ListIntegrationEventsOrgQueryQueryParams;
|
|
45
|
+
}
|
|
46
|
+
export declare function listIntegrationEventsOrg(props: ListIntegrationEventsOrgProps): Promise<ListIntegrationEventsOrgOkResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves a paginated list of integration lifecycle events for a specific integration at organization scope.
|
|
49
|
+
* Supports filtering by event_type and status (both repeatable query params), with
|
|
50
|
+
* customizable sorting and pagination. Pagination metadata is included in response
|
|
51
|
+
* headers (x-total-elements, x-page-number, x-page-size, x-total-pages).
|
|
52
|
+
*
|
|
53
|
+
* Event types:
|
|
54
|
+
* - integration_created: Integration was created
|
|
55
|
+
* - integration_updated: Integration configuration was modified
|
|
56
|
+
* - integration_enabled: Integration was enabled
|
|
57
|
+
* - integration_disabled: Integration was disabled
|
|
58
|
+
* - sync_run: Sync execution lifecycle (SCHEDULED -> SUBMITTED -> RUNNING -> COMPLETED/FAILED)
|
|
59
|
+
* - entity_auto_import: Entities were auto-imported during sync
|
|
60
|
+
* - entity_manual_import: Entities were manually imported (subscribed)
|
|
61
|
+
* - entity_unlinked: Entities were unlinked (unsubscribed)
|
|
62
|
+
*
|
|
63
|
+
* UI Status values:
|
|
64
|
+
* - SUCCESS: Operation completed successfully (maps to COMPLETED, SUCCESS)
|
|
65
|
+
* - FAILED: Operation failed (maps to FAILED, STALE, SUPERSEDED)
|
|
66
|
+
* - RUNNING: Operation in progress (maps to SCHEDULED, SUBMITTED, RUNNING)
|
|
67
|
+
* - PARTIAL_SUCCESS: Operation completed with partial success
|
|
68
|
+
*/
|
|
69
|
+
export declare function useListIntegrationEventsOrgQuery(props: ListIntegrationEventsOrgProps, options?: Omit<UseQueryOptions<ListIntegrationEventsOrgOkResponse, ListIntegrationEventsOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListIntegrationEventsOrgOkResponse, ApierrorsErrorResponse>;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 listIntegrationEventsOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs/${props.integrationconfig_identifier}/events`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a paginated list of integration lifecycle events for a specific integration at organization scope.
|
|
11
|
+
* Supports filtering by event_type and status (both repeatable query params), with
|
|
12
|
+
* customizable sorting and pagination. Pagination metadata is included in response
|
|
13
|
+
* headers (x-total-elements, x-page-number, x-page-size, x-total-pages).
|
|
14
|
+
*
|
|
15
|
+
* Event types:
|
|
16
|
+
* - integration_created: Integration was created
|
|
17
|
+
* - integration_updated: Integration configuration was modified
|
|
18
|
+
* - integration_enabled: Integration was enabled
|
|
19
|
+
* - integration_disabled: Integration was disabled
|
|
20
|
+
* - sync_run: Sync execution lifecycle (SCHEDULED -> SUBMITTED -> RUNNING -> COMPLETED/FAILED)
|
|
21
|
+
* - entity_auto_import: Entities were auto-imported during sync
|
|
22
|
+
* - entity_manual_import: Entities were manually imported (subscribed)
|
|
23
|
+
* - entity_unlinked: Entities were unlinked (unsubscribed)
|
|
24
|
+
*
|
|
25
|
+
* UI Status values:
|
|
26
|
+
* - SUCCESS: Operation completed successfully (maps to COMPLETED, SUCCESS)
|
|
27
|
+
* - FAILED: Operation failed (maps to FAILED, STALE, SUPERSEDED)
|
|
28
|
+
* - RUNNING: Operation in progress (maps to SCHEDULED, SUBMITTED, RUNNING)
|
|
29
|
+
* - PARTIAL_SUCCESS: Operation completed with partial success
|
|
30
|
+
*/
|
|
31
|
+
export function useListIntegrationEventsOrgQuery(props, options) {
|
|
32
|
+
return useQuery([
|
|
33
|
+
'listIntegrationEventsOrg',
|
|
34
|
+
props.accountIdentifier,
|
|
35
|
+
props.orgIdentifier,
|
|
36
|
+
props.integrationconfig_identifier,
|
|
37
|
+
props.queryParams,
|
|
38
|
+
], ({ signal }) => listIntegrationEventsOrg(Object.assign(Object.assign({}, props), { signal })), options);
|
|
39
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationeventIntegrationEventResponse } from '../schemas/IntegrationeventIntegrationEventResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListIntegrationEventsProjectQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
integrationconfig_identifier: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ListIntegrationEventsProjectQueryQueryParams {
|
|
13
|
+
/**
|
|
14
|
+
* Filter by one or more event types (repeatable)
|
|
15
|
+
*/
|
|
16
|
+
event_type?: Array<'entity_auto_import' | 'entity_manual_import' | 'entity_unlinked' | 'integration_created' | 'integration_disabled' | 'integration_enabled' | 'integration_updated' | 'sync_run'>;
|
|
17
|
+
/**
|
|
18
|
+
* Filter by one or more UI status values (repeatable)
|
|
19
|
+
*/
|
|
20
|
+
status?: Array<'FAILED' | 'PARTIAL_SUCCESS' | 'RUNNING' | 'SUCCESS'>;
|
|
21
|
+
/**
|
|
22
|
+
* Sort field (default: updated_at)
|
|
23
|
+
* @default "updated_at"
|
|
24
|
+
*/
|
|
25
|
+
sort?: 'created_at' | 'updated_at';
|
|
26
|
+
/**
|
|
27
|
+
* Sort order (default: desc)
|
|
28
|
+
* @default "desc"
|
|
29
|
+
*/
|
|
30
|
+
order?: 'asc' | 'desc';
|
|
31
|
+
/**
|
|
32
|
+
* Page number, 0-based (default: 0)
|
|
33
|
+
* @default 0
|
|
34
|
+
*/
|
|
35
|
+
page?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Number of items per page (default: 20, max: 100)
|
|
38
|
+
* @default 20
|
|
39
|
+
*/
|
|
40
|
+
limit?: number;
|
|
41
|
+
}
|
|
42
|
+
export type ListIntegrationEventsProjectOkResponse = ResponseWithPagination<IntegrationeventIntegrationEventResponse[]>;
|
|
43
|
+
export type ListIntegrationEventsProjectErrorResponse = ApierrorsErrorResponse;
|
|
44
|
+
export interface ListIntegrationEventsProjectProps extends ListIntegrationEventsProjectQueryPathParams, Omit<FetcherOptions<ListIntegrationEventsProjectQueryQueryParams, unknown>, 'url'> {
|
|
45
|
+
queryParams: ListIntegrationEventsProjectQueryQueryParams;
|
|
46
|
+
}
|
|
47
|
+
export declare function listIntegrationEventsProject(props: ListIntegrationEventsProjectProps): Promise<ListIntegrationEventsProjectOkResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Retrieves a paginated list of integration lifecycle events for a specific integration at project scope.
|
|
50
|
+
* Supports filtering by event_type and status (both repeatable query params), with
|
|
51
|
+
* customizable sorting and pagination. Pagination metadata is included in response
|
|
52
|
+
* headers (x-total-elements, x-page-number, x-page-size, x-total-pages).
|
|
53
|
+
*
|
|
54
|
+
* Event types:
|
|
55
|
+
* - integration_created: Integration was created
|
|
56
|
+
* - integration_updated: Integration configuration was modified
|
|
57
|
+
* - integration_enabled: Integration was enabled
|
|
58
|
+
* - integration_disabled: Integration was disabled
|
|
59
|
+
* - sync_run: Sync execution lifecycle (SCHEDULED -> SUBMITTED -> RUNNING -> COMPLETED/FAILED)
|
|
60
|
+
* - entity_auto_import: Entities were auto-imported during sync
|
|
61
|
+
* - entity_manual_import: Entities were manually imported (subscribed)
|
|
62
|
+
* - entity_unlinked: Entities were unlinked (unsubscribed)
|
|
63
|
+
*
|
|
64
|
+
* UI Status values:
|
|
65
|
+
* - SUCCESS: Operation completed successfully (maps to COMPLETED, SUCCESS)
|
|
66
|
+
* - FAILED: Operation failed (maps to FAILED, STALE, SUPERSEDED)
|
|
67
|
+
* - RUNNING: Operation in progress (maps to SCHEDULED, SUBMITTED, RUNNING)
|
|
68
|
+
* - PARTIAL_SUCCESS: Operation completed with partial success
|
|
69
|
+
*/
|
|
70
|
+
export declare function useListIntegrationEventsProjectQuery(props: ListIntegrationEventsProjectProps, options?: Omit<UseQueryOptions<ListIntegrationEventsProjectOkResponse, ListIntegrationEventsProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListIntegrationEventsProjectOkResponse, ApierrorsErrorResponse>;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 listIntegrationEventsProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs/${props.integrationconfig_identifier}/events`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a paginated list of integration lifecycle events for a specific integration at project scope.
|
|
11
|
+
* Supports filtering by event_type and status (both repeatable query params), with
|
|
12
|
+
* customizable sorting and pagination. Pagination metadata is included in response
|
|
13
|
+
* headers (x-total-elements, x-page-number, x-page-size, x-total-pages).
|
|
14
|
+
*
|
|
15
|
+
* Event types:
|
|
16
|
+
* - integration_created: Integration was created
|
|
17
|
+
* - integration_updated: Integration configuration was modified
|
|
18
|
+
* - integration_enabled: Integration was enabled
|
|
19
|
+
* - integration_disabled: Integration was disabled
|
|
20
|
+
* - sync_run: Sync execution lifecycle (SCHEDULED -> SUBMITTED -> RUNNING -> COMPLETED/FAILED)
|
|
21
|
+
* - entity_auto_import: Entities were auto-imported during sync
|
|
22
|
+
* - entity_manual_import: Entities were manually imported (subscribed)
|
|
23
|
+
* - entity_unlinked: Entities were unlinked (unsubscribed)
|
|
24
|
+
*
|
|
25
|
+
* UI Status values:
|
|
26
|
+
* - SUCCESS: Operation completed successfully (maps to COMPLETED, SUCCESS)
|
|
27
|
+
* - FAILED: Operation failed (maps to FAILED, STALE, SUPERSEDED)
|
|
28
|
+
* - RUNNING: Operation in progress (maps to SCHEDULED, SUBMITTED, RUNNING)
|
|
29
|
+
* - PARTIAL_SUCCESS: Operation completed with partial success
|
|
30
|
+
*/
|
|
31
|
+
export function useListIntegrationEventsProjectQuery(props, options) {
|
|
32
|
+
return useQuery([
|
|
33
|
+
'listIntegrationEventsProject',
|
|
34
|
+
props.accountIdentifier,
|
|
35
|
+
props.orgIdentifier,
|
|
36
|
+
props.projectIdentifier,
|
|
37
|
+
props.integrationconfig_identifier,
|
|
38
|
+
props.queryParams,
|
|
39
|
+
], ({ signal }) => listIntegrationEventsProject(Object.assign(Object.assign({}, props), { signal })), options);
|
|
40
|
+
}
|
|
@@ -63,6 +63,10 @@ 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 { ListIntegrationEventsOrgErrorResponse, ListIntegrationEventsOrgOkResponse, ListIntegrationEventsOrgProps, ListIntegrationEventsOrgQueryPathParams, ListIntegrationEventsOrgQueryQueryParams, } from './hooks/useListIntegrationEventsOrgQuery';
|
|
67
|
+
export { listIntegrationEventsOrg, useListIntegrationEventsOrgQuery, } from './hooks/useListIntegrationEventsOrgQuery';
|
|
68
|
+
export type { ListIntegrationEventsProjectErrorResponse, ListIntegrationEventsProjectOkResponse, ListIntegrationEventsProjectProps, ListIntegrationEventsProjectQueryPathParams, ListIntegrationEventsProjectQueryQueryParams, } from './hooks/useListIntegrationEventsProjectQuery';
|
|
69
|
+
export { listIntegrationEventsProject, useListIntegrationEventsProjectQuery, } from './hooks/useListIntegrationEventsProjectQuery';
|
|
66
70
|
export type { ListIntegrationEventsErrorResponse, ListIntegrationEventsOkResponse, ListIntegrationEventsProps, ListIntegrationEventsQueryPathParams, ListIntegrationEventsQueryQueryParams, } from './hooks/useListIntegrationEventsQuery';
|
|
67
71
|
export { listIntegrationEvents, useListIntegrationEventsQuery, } from './hooks/useListIntegrationEventsQuery';
|
|
68
72
|
export type { ListSettingsOrgErrorResponse, ListSettingsOrgOkResponse, ListSettingsOrgProps, ListSettingsOrgQueryPathParams, } from './hooks/useListSettingsOrgQuery';
|
|
@@ -30,6 +30,8 @@ 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 { listIntegrationEventsOrg, useListIntegrationEventsOrgQuery, } from './hooks/useListIntegrationEventsOrgQuery';
|
|
34
|
+
export { listIntegrationEventsProject, useListIntegrationEventsProjectQuery, } from './hooks/useListIntegrationEventsProjectQuery';
|
|
33
35
|
export { listIntegrationEvents, useListIntegrationEventsQuery, } from './hooks/useListIntegrationEventsQuery';
|
|
34
36
|
export { listSettingsOrg, useListSettingsOrgQuery } from './hooks/useListSettingsOrgQuery';
|
|
35
37
|
export { listSettingsProject, useListSettingsProjectQuery, } from './hooks/useListSettingsProjectQuery';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type EnumIntegrationType = '
|
|
1
|
+
export type EnumIntegrationType = 'BitbucketCloud' | 'DataDog' | 'DynaTrace' | 'GCP' | 'GitHub' | 'HarnessCD' | 'HarnessK8s' | 'HarnessScope' | 'PagerDuty' | 'ServiceNow' | 'SonarQube';
|
package/package.json
CHANGED