@harnessio/react-integration-manager-client 0.3.10 → 0.3.12
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/useSyncNowMutation.d.ts +18 -0
- package/dist/integration-manager/src/services/hooks/useSyncNowMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigProjectMutation.d.ts +23 -0
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigProjectMutation.js +14 -0
- package/dist/integration-manager/src/services/index.d.ts +8 -0
- package/dist/integration-manager/src/services/index.js +2 -0
- package/dist/integration-manager/src/services/schemas/EnumIntegrationType.d.ts +1 -1
- package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigOrgRequest.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigProjectRequest.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigRequest.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigOrgRequest.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigProjectRequest.d.ts +6 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigProjectRequest.js +4 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigRequest.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/TypesAirbyteConnector.d.ts +0 -8
- package/dist/integration-manager/src/services/schemas/TypesAirbyteTriggerSyncError.d.ts +4 -0
- package/dist/integration-manager/src/services/schemas/TypesAirbyteTriggerSyncError.js +4 -0
- package/dist/integration-manager/src/services/schemas/TypesAirbyteTriggerSyncResult.d.ts +7 -0
- package/dist/integration-manager/src/services/schemas/TypesAirbyteTriggerSyncResult.js +1 -0
- package/dist/integration-manager/src/services/schemas/TypesDefaultMappingField.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/TypesHarnessAirbyteConfig.d.ts +2 -0
- package/dist/integration-manager/src/services/schemas/TypesIntegrationConfig.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/TypesJsonSchema.d.ts +2 -1
- package/dist/integration-manager/src/services/schemas/TypesJsonSchema.js +0 -3
- package/dist/integration-manager/src/services/schemas/TypesJsonSchemaType.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/TypesJsonSchemaType.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesAirbyteTriggerSyncResult } from '../schemas/TypesAirbyteTriggerSyncResult';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface SyncNowMutationPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
integrationconfig_identifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type SyncNowOkResponse = ResponseWithPagination<TypesAirbyteTriggerSyncResult>;
|
|
11
|
+
export type SyncNowErrorResponse = ApierrorsErrorResponse;
|
|
12
|
+
export interface SyncNowProps extends SyncNowMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
13
|
+
}
|
|
14
|
+
export declare function syncNow(props: SyncNowProps): Promise<SyncNowOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Triggers an immediate sync for the integration. Supported for Airbyte-mode integrations (e.g. ServiceNow); calls the k8s-agent sync-now API via the delegate flow. Returns the sync result including success status, logs, and any error details.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useSyncNowMutation(options?: Omit<UseMutationOptions<SyncNowOkResponse, SyncNowErrorResponse, SyncNowProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SyncNowOkResponse, ApierrorsErrorResponse, SyncNowProps, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 syncNow(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/${props.integrationconfig_identifier}/airbyte-sync`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Triggers an immediate sync for the integration. Supported for Airbyte-mode integrations (e.g. ServiceNow); calls the k8s-agent sync-now API via the delegate flow. Returns the sync result including success status, logs, and any error details.
|
|
11
|
+
*/
|
|
12
|
+
export function useSyncNowMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => syncNow(mutateProps), options);
|
|
14
|
+
}
|
package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigProjectMutation.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiUpdateIntegrationConfigProjectRequest } from '../schemas/OpenapiUpdateIntegrationConfigProjectRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpdateIntegrationConfigProjectMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
integrationconfig_identifier: string;
|
|
12
|
+
}
|
|
13
|
+
export type UpdateIntegrationConfigProjectRequestBody = OpenapiUpdateIntegrationConfigProjectRequest;
|
|
14
|
+
export type UpdateIntegrationConfigProjectOkResponse = ResponseWithPagination<TypesIntegrationConfig>;
|
|
15
|
+
export type UpdateIntegrationConfigProjectErrorResponse = ApierrorsErrorResponse;
|
|
16
|
+
export interface UpdateIntegrationConfigProjectProps extends UpdateIntegrationConfigProjectMutationPathParams, Omit<FetcherOptions<unknown, UpdateIntegrationConfigProjectRequestBody>, 'url'> {
|
|
17
|
+
body: UpdateIntegrationConfigProjectRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function updateIntegrationConfigProject(props: UpdateIntegrationConfigProjectProps): Promise<UpdateIntegrationConfigProjectOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Update integration configuration at project level
|
|
22
|
+
*/
|
|
23
|
+
export declare function useUpdateIntegrationConfigProjectMutation(options?: Omit<UseMutationOptions<UpdateIntegrationConfigProjectOkResponse, UpdateIntegrationConfigProjectErrorResponse, UpdateIntegrationConfigProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateIntegrationConfigProjectOkResponse, ApierrorsErrorResponse, UpdateIntegrationConfigProjectProps, unknown>;
|
package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigProjectMutation.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
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 updateIntegrationConfigProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs/${props.integrationconfig_identifier}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update integration configuration at project level
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateIntegrationConfigProjectMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateIntegrationConfigProject(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -47,6 +47,8 @@ export type { ListIntegrationConfigsProjectErrorResponse, ListIntegrationConfigs
|
|
|
47
47
|
export { listIntegrationConfigsProject, useListIntegrationConfigsProjectQuery, } from './hooks/useListIntegrationConfigsProjectQuery';
|
|
48
48
|
export type { ListIntegrationConfigsErrorResponse, ListIntegrationConfigsOkResponse, ListIntegrationConfigsProps, ListIntegrationConfigsQueryPathParams, } from './hooks/useListIntegrationConfigsQuery';
|
|
49
49
|
export { listIntegrationConfigs, useListIntegrationConfigsQuery, } from './hooks/useListIntegrationConfigsQuery';
|
|
50
|
+
export type { SyncNowErrorResponse, SyncNowMutationPathParams, SyncNowOkResponse, SyncNowProps, } from './hooks/useSyncNowMutation';
|
|
51
|
+
export { syncNow, useSyncNowMutation } from './hooks/useSyncNowMutation';
|
|
50
52
|
export type { TriggerSyncErrorResponse, TriggerSyncMutationPathParams, TriggerSyncOkResponse, TriggerSyncProps, } from './hooks/useTriggerSyncMutation';
|
|
51
53
|
export { triggerSync, useTriggerSyncMutation } from './hooks/useTriggerSyncMutation';
|
|
52
54
|
export type { TriggerSyncOrgErrorResponse, TriggerSyncOrgMutationPathParams, TriggerSyncOrgOkResponse, TriggerSyncOrgProps, } from './hooks/useTriggerSyncOrgMutation';
|
|
@@ -65,6 +67,8 @@ export type { UpdateIntegrationConfigErrorResponse, UpdateIntegrationConfigMutat
|
|
|
65
67
|
export { updateIntegrationConfig, useUpdateIntegrationConfigMutation, } from './hooks/useUpdateIntegrationConfigMutation';
|
|
66
68
|
export type { UpdateIntegrationConfigOrgErrorResponse, UpdateIntegrationConfigOrgMutationPathParams, UpdateIntegrationConfigOrgOkResponse, UpdateIntegrationConfigOrgProps, UpdateIntegrationConfigOrgRequestBody, } from './hooks/useUpdateIntegrationConfigOrgMutation';
|
|
67
69
|
export { updateIntegrationConfigOrg, useUpdateIntegrationConfigOrgMutation, } from './hooks/useUpdateIntegrationConfigOrgMutation';
|
|
70
|
+
export type { UpdateIntegrationConfigProjectErrorResponse, UpdateIntegrationConfigProjectMutationPathParams, UpdateIntegrationConfigProjectOkResponse, UpdateIntegrationConfigProjectProps, UpdateIntegrationConfigProjectRequestBody, } from './hooks/useUpdateIntegrationConfigProjectMutation';
|
|
71
|
+
export { updateIntegrationConfigProject, useUpdateIntegrationConfigProjectMutation, } from './hooks/useUpdateIntegrationConfigProjectMutation';
|
|
68
72
|
export type { UpdateIntegrationStatusErrorResponse, UpdateIntegrationStatusMutationPathParams, UpdateIntegrationStatusMutationQueryParams, UpdateIntegrationStatusOkResponse, UpdateIntegrationStatusProps, } from './hooks/useUpdateIntegrationStatusMutation';
|
|
69
73
|
export { updateIntegrationStatus, useUpdateIntegrationStatusMutation, } from './hooks/useUpdateIntegrationStatusMutation';
|
|
70
74
|
export type { UpdateIntegrationStatusOrgErrorResponse, UpdateIntegrationStatusOrgMutationPathParams, UpdateIntegrationStatusOrgMutationQueryParams, UpdateIntegrationStatusOrgOkResponse, UpdateIntegrationStatusOrgProps, } from './hooks/useUpdateIntegrationStatusOrgMutation';
|
|
@@ -95,6 +99,7 @@ export type { OpenapiUpdateAirbyteIntegrationConfigOrgRequest } from './schemas/
|
|
|
95
99
|
export type { OpenapiUpdateAirbyteIntegrationConfigProjectRequest } from './schemas/OpenapiUpdateAirbyteIntegrationConfigProjectRequest';
|
|
96
100
|
export type { OpenapiUpdateAirbyteIntegrationConfigRequest } from './schemas/OpenapiUpdateAirbyteIntegrationConfigRequest';
|
|
97
101
|
export type { OpenapiUpdateIntegrationConfigOrgRequest } from './schemas/OpenapiUpdateIntegrationConfigOrgRequest';
|
|
102
|
+
export type { OpenapiUpdateIntegrationConfigProjectRequest } from './schemas/OpenapiUpdateIntegrationConfigProjectRequest';
|
|
98
103
|
export type { OpenapiUpdateIntegrationConfigRequest } from './schemas/OpenapiUpdateIntegrationConfigRequest';
|
|
99
104
|
export type { TypesAgentStatus } from './schemas/TypesAgentStatus';
|
|
100
105
|
export type { TypesAirbyteCatalogConfigured } from './schemas/TypesAirbyteCatalogConfigured';
|
|
@@ -102,6 +107,8 @@ export type { TypesAirbyteCatalogDiscovered } from './schemas/TypesAirbyteCatalo
|
|
|
102
107
|
export type { TypesAirbyteConnector } from './schemas/TypesAirbyteConnector';
|
|
103
108
|
export type { TypesAirbyteStream } from './schemas/TypesAirbyteStream';
|
|
104
109
|
export type { TypesAirbyteStreamConfigured } from './schemas/TypesAirbyteStreamConfigured';
|
|
110
|
+
export type { TypesAirbyteTriggerSyncError } from './schemas/TypesAirbyteTriggerSyncError';
|
|
111
|
+
export type { TypesAirbyteTriggerSyncResult } from './schemas/TypesAirbyteTriggerSyncResult';
|
|
105
112
|
export type { TypesDefaultEntityRelation } from './schemas/TypesDefaultEntityRelation';
|
|
106
113
|
export type { TypesDefaultEntitySchema } from './schemas/TypesDefaultEntitySchema';
|
|
107
114
|
export type { TypesDefaultKind } from './schemas/TypesDefaultKind';
|
|
@@ -115,6 +122,7 @@ export type { TypesHarnessAirbyteConfig } from './schemas/TypesHarnessAirbyteCon
|
|
|
115
122
|
export type { TypesIntegrationAgent } from './schemas/TypesIntegrationAgent';
|
|
116
123
|
export type { TypesIntegrationConfig } from './schemas/TypesIntegrationConfig';
|
|
117
124
|
export type { TypesJsonSchema } from './schemas/TypesJsonSchema';
|
|
125
|
+
export type { TypesJsonSchemaType } from './schemas/TypesJsonSchemaType';
|
|
118
126
|
export type { TypesKindMappingFields } from './schemas/TypesKindMappingFields';
|
|
119
127
|
export type { TypesLastSyncInfo } from './schemas/TypesLastSyncInfo';
|
|
120
128
|
export type { TypesListDefaultMappingFieldsResponse } from './schemas/TypesListDefaultMappingFieldsResponse';
|
|
@@ -22,6 +22,7 @@ export { listDefaultSchemas, useListDefaultSchemasQuery } from './hooks/useListD
|
|
|
22
22
|
export { listIntegrationConfigsOrg, useListIntegrationConfigsOrgQuery, } from './hooks/useListIntegrationConfigsOrgQuery';
|
|
23
23
|
export { listIntegrationConfigsProject, useListIntegrationConfigsProjectQuery, } from './hooks/useListIntegrationConfigsProjectQuery';
|
|
24
24
|
export { listIntegrationConfigs, useListIntegrationConfigsQuery, } from './hooks/useListIntegrationConfigsQuery';
|
|
25
|
+
export { syncNow, useSyncNowMutation } from './hooks/useSyncNowMutation';
|
|
25
26
|
export { triggerSync, useTriggerSyncMutation } from './hooks/useTriggerSyncMutation';
|
|
26
27
|
export { triggerSyncOrg, useTriggerSyncOrgMutation } from './hooks/useTriggerSyncOrgMutation';
|
|
27
28
|
export { triggerSyncProject, useTriggerSyncProjectMutation, } from './hooks/useTriggerSyncProjectMutation';
|
|
@@ -31,6 +32,7 @@ export { updateAirbyteIntegrationConfigOrg, useUpdateAirbyteIntegrationConfigOrg
|
|
|
31
32
|
export { updateAirbyteIntegrationConfigProject, useUpdateAirbyteIntegrationConfigProjectMutation, } from './hooks/useUpdateAirbyteIntegrationConfigProjectMutation';
|
|
32
33
|
export { updateIntegrationConfig, useUpdateIntegrationConfigMutation, } from './hooks/useUpdateIntegrationConfigMutation';
|
|
33
34
|
export { updateIntegrationConfigOrg, useUpdateIntegrationConfigOrgMutation, } from './hooks/useUpdateIntegrationConfigOrgMutation';
|
|
35
|
+
export { updateIntegrationConfigProject, useUpdateIntegrationConfigProjectMutation, } from './hooks/useUpdateIntegrationConfigProjectMutation';
|
|
34
36
|
export { updateIntegrationStatus, useUpdateIntegrationStatusMutation, } from './hooks/useUpdateIntegrationStatusMutation';
|
|
35
37
|
export { updateIntegrationStatusOrg, useUpdateIntegrationStatusOrgMutation, } from './hooks/useUpdateIntegrationStatusOrgMutation';
|
|
36
38
|
export { updateIntegrationStatusProject, useUpdateIntegrationStatusProjectMutation, } from './hooks/useUpdateIntegrationStatusProjectMutation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type EnumIntegrationType = 'HarnessCD' | 'HarnessK8s' | 'HarnessScope' | 'ServiceNow';
|
|
1
|
+
export type EnumIntegrationType = 'HarnessCD' | 'HarnessK8s' | 'HarnessScope' | 'PagerDuty' | 'ServiceNow';
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { TypesAirbyteCatalogConfigured } from '../schemas/TypesAirbyteCatalogConfigured';
|
|
2
|
-
import type { TypesAirbyteCatalogDiscovered } from '../schemas/TypesAirbyteCatalogDiscovered';
|
|
3
2
|
export type TypesAirbyteConnector = {
|
|
4
|
-
config_schema?: {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
};
|
|
7
3
|
configured_catalog?: TypesAirbyteCatalogConfigured;
|
|
8
4
|
connector_image?: string;
|
|
9
5
|
connector_tag?: string;
|
|
@@ -11,16 +7,12 @@ export type TypesAirbyteConnector = {
|
|
|
11
7
|
* @format date-time
|
|
12
8
|
*/
|
|
13
9
|
created?: string;
|
|
14
|
-
delegate_selectors?: string[];
|
|
15
|
-
discovered_catalog?: TypesAirbyteCatalogDiscovered;
|
|
16
10
|
id?: string;
|
|
17
11
|
integration_id?: string;
|
|
18
|
-
k8s_connector_ref?: string;
|
|
19
12
|
/**
|
|
20
13
|
* @format date-time
|
|
21
14
|
*/
|
|
22
15
|
last_updated?: string;
|
|
23
|
-
namespace?: string;
|
|
24
16
|
space_path?: string;
|
|
25
17
|
version?: string;
|
|
26
18
|
} | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,6 +3,7 @@ import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
|
|
|
3
3
|
import type { TypesLastSyncInfo } from '../schemas/TypesLastSyncInfo';
|
|
4
4
|
import type { TypesSyncState } from '../schemas/TypesSyncState';
|
|
5
5
|
export interface TypesIntegrationConfig {
|
|
6
|
+
auto_import?: boolean;
|
|
6
7
|
configuration?: {
|
|
7
8
|
[key: string]: any;
|
|
8
9
|
} | null;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { TypesJsonSchemaType } from '../schemas/TypesJsonSchemaType';
|
|
1
2
|
export interface TypesJsonSchema {
|
|
2
3
|
$schema?: string;
|
|
3
4
|
properties?: {
|
|
4
5
|
[key: string]: any;
|
|
5
6
|
} | null;
|
|
6
7
|
required?: string[] | null;
|
|
7
|
-
type?:
|
|
8
|
+
type?: TypesJsonSchemaType;
|
|
8
9
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TypesJsonSchemaType = string[] | null;
|
package/package.json
CHANGED