@harnessio/react-integration-manager-client 0.3.15 → 0.3.17
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/useSyncNowOrgMutation.d.ts +19 -0
- package/dist/integration-manager/src/services/hooks/useSyncNowOrgMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigMutation.d.ts +1 -1
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigMutation.js +1 -1
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigOrgMutation.d.ts +1 -1
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigOrgMutation.js +1 -1
- package/dist/integration-manager/src/services/index.d.ts +2 -0
- package/dist/integration-manager/src/services/index.js +1 -0
- package/dist/integration-manager/src/services/schemas/EnumAction.d.ts +1 -1
- package/dist/integration-manager/src/services/schemas/EnumIntegrationType.d.ts +1 -1
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateAirbyteIntegrationConfigOrgRequest.d.ts +2 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateAirbyteIntegrationConfigProjectRequest.d.ts +2 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateAirbyteIntegrationConfigRequest.d.ts +2 -0
- package/dist/integration-manager/src/services/schemas/TypesHarnessAirbyteConfig.d.ts +3 -0
- package/dist/integration-manager/src/services/schemas/TypesIntegrationAgent.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
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 SyncNowOrgMutationPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
integrationconfig_identifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type SyncNowOrgOkResponse = ResponseWithPagination<TypesAirbyteTriggerSyncResult>;
|
|
12
|
+
export type SyncNowOrgErrorResponse = ApierrorsErrorResponse;
|
|
13
|
+
export interface SyncNowOrgProps extends SyncNowOrgMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
14
|
+
}
|
|
15
|
+
export declare function syncNowOrg(props: SyncNowOrgProps): Promise<SyncNowOrgOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Triggers an immediate sync for the integration at organization level. Supported for Airbyte-mode integrations (e.g. ServiceNow). Returns the sync result including success status, logs, and any error details.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useSyncNowOrgMutation(options?: Omit<UseMutationOptions<SyncNowOrgOkResponse, SyncNowOrgErrorResponse, SyncNowOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SyncNowOrgOkResponse, ApierrorsErrorResponse, SyncNowOrgProps, 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 syncNowOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs/${props.integrationconfig_identifier}/airbyte-sync`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Triggers an immediate sync for the integration at organization level. Supported for Airbyte-mode integrations (e.g. ServiceNow). Returns the sync result including success status, logs, and any error details.
|
|
11
|
+
*/
|
|
12
|
+
export function useSyncNowOrgMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => syncNowOrg(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -16,6 +16,6 @@ export interface UpdateIntegrationConfigProps extends UpdateIntegrationConfigMut
|
|
|
16
16
|
}
|
|
17
17
|
export declare function updateIntegrationConfig(props: UpdateIntegrationConfigProps): Promise<UpdateIntegrationConfigOkResponse>;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Updates an integration configuration. Supports auto_import, auto_import_per_kind, action_per_kind, and configuration. When auto_import_per_kind is not provided, it is populated from the global auto_import value for all kinds. When action_per_kind is not provided, all kinds default to Merge_Register.
|
|
20
20
|
*/
|
|
21
21
|
export declare function useUpdateIntegrationConfigMutation(options?: Omit<UseMutationOptions<UpdateIntegrationConfigOkResponse, UpdateIntegrationConfigErrorResponse, UpdateIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateIntegrationConfigOkResponse, ApierrorsErrorResponse, UpdateIntegrationConfigProps, unknown>;
|
|
@@ -7,7 +7,7 @@ export function updateIntegrationConfig(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/${props.integrationconfig_identifier}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Updates an integration configuration. Supports auto_import, auto_import_per_kind, action_per_kind, and configuration. When auto_import_per_kind is not provided, it is populated from the global auto_import value for all kinds. When action_per_kind is not provided, all kinds default to Merge_Register.
|
|
11
11
|
*/
|
|
12
12
|
export function useUpdateIntegrationConfigMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => updateIntegrationConfig(mutateProps), options);
|
package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigOrgMutation.d.ts
CHANGED
|
@@ -17,6 +17,6 @@ export interface UpdateIntegrationConfigOrgProps extends UpdateIntegrationConfig
|
|
|
17
17
|
}
|
|
18
18
|
export declare function updateIntegrationConfigOrg(props: UpdateIntegrationConfigOrgProps): Promise<UpdateIntegrationConfigOrgOkResponse>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Updates an integration configuration at organization level. Supports auto_import, auto_import_per_kind, action_per_kind, and configuration. When auto_import_per_kind is not provided, it is populated from the global auto_import value for all kinds. When action_per_kind is not provided, all kinds default to Merge_Register.
|
|
21
21
|
*/
|
|
22
22
|
export declare function useUpdateIntegrationConfigOrgMutation(options?: Omit<UseMutationOptions<UpdateIntegrationConfigOrgOkResponse, UpdateIntegrationConfigOrgErrorResponse, UpdateIntegrationConfigOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateIntegrationConfigOrgOkResponse, ApierrorsErrorResponse, UpdateIntegrationConfigOrgProps, unknown>;
|
package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigOrgMutation.js
CHANGED
|
@@ -7,7 +7,7 @@ export function updateIntegrationConfigOrg(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs/${props.integrationconfig_identifier}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Updates an integration configuration at organization level. Supports auto_import, auto_import_per_kind, action_per_kind, and configuration. When auto_import_per_kind is not provided, it is populated from the global auto_import value for all kinds. When action_per_kind is not provided, all kinds default to Merge_Register.
|
|
11
11
|
*/
|
|
12
12
|
export function useUpdateIntegrationConfigOrgMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => updateIntegrationConfigOrg(mutateProps), options);
|
|
@@ -55,6 +55,8 @@ export type { ListIntegrationConfigsErrorResponse, ListIntegrationConfigsOkRespo
|
|
|
55
55
|
export { listIntegrationConfigs, useListIntegrationConfigsQuery, } from './hooks/useListIntegrationConfigsQuery';
|
|
56
56
|
export type { SyncNowErrorResponse, SyncNowMutationPathParams, SyncNowOkResponse, SyncNowProps, } from './hooks/useSyncNowMutation';
|
|
57
57
|
export { syncNow, useSyncNowMutation } from './hooks/useSyncNowMutation';
|
|
58
|
+
export type { SyncNowOrgErrorResponse, SyncNowOrgMutationPathParams, SyncNowOrgOkResponse, SyncNowOrgProps, } from './hooks/useSyncNowOrgMutation';
|
|
59
|
+
export { syncNowOrg, useSyncNowOrgMutation } from './hooks/useSyncNowOrgMutation';
|
|
58
60
|
export type { SyncNowProjectErrorResponse, SyncNowProjectMutationPathParams, SyncNowProjectOkResponse, SyncNowProjectProps, } from './hooks/useSyncNowProjectMutation';
|
|
59
61
|
export { syncNowProject, useSyncNowProjectMutation } from './hooks/useSyncNowProjectMutation';
|
|
60
62
|
export type { TriggerSyncErrorResponse, TriggerSyncMutationPathParams, TriggerSyncOkResponse, TriggerSyncProps, } from './hooks/useTriggerSyncMutation';
|
|
@@ -26,6 +26,7 @@ export { listIntegrationConfigsOrg, useListIntegrationConfigsOrgQuery, } from '.
|
|
|
26
26
|
export { listIntegrationConfigsProject, useListIntegrationConfigsProjectQuery, } from './hooks/useListIntegrationConfigsProjectQuery';
|
|
27
27
|
export { listIntegrationConfigs, useListIntegrationConfigsQuery, } from './hooks/useListIntegrationConfigsQuery';
|
|
28
28
|
export { syncNow, useSyncNowMutation } from './hooks/useSyncNowMutation';
|
|
29
|
+
export { syncNowOrg, useSyncNowOrgMutation } from './hooks/useSyncNowOrgMutation';
|
|
29
30
|
export { syncNowProject, useSyncNowProjectMutation } from './hooks/useSyncNowProjectMutation';
|
|
30
31
|
export { triggerSync, useTriggerSyncMutation } from './hooks/useTriggerSyncMutation';
|
|
31
32
|
export { triggerSyncOrg, useTriggerSyncOrgMutation } from './hooks/useTriggerSyncOrgMutation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type EnumAction =
|
|
1
|
+
export type EnumAction = 'Merge' | 'Merge_Register' | 'Register';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type EnumIntegrationType = 'HarnessCD' | 'HarnessK8s' | 'HarnessScope' | 'PagerDuty' | 'ServiceNow';
|
|
1
|
+
export type EnumIntegrationType = 'GCP' | 'HarnessCD' | 'HarnessK8s' | 'HarnessScope' | 'PagerDuty' | 'ServiceNow';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { EnumAction } from '../schemas/EnumAction';
|
|
2
|
+
import type { TypesAirbyteCatalogDiscovered } from '../schemas/TypesAirbyteCatalogDiscovered';
|
|
2
3
|
import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
|
|
3
4
|
import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
|
|
4
5
|
export interface OpenapiUpdateAirbyteIntegrationConfigOrgRequest {
|
|
@@ -9,6 +10,7 @@ export interface OpenapiUpdateAirbyteIntegrationConfigOrgRequest {
|
|
|
9
10
|
auto_import_per_kind?: {
|
|
10
11
|
[key: string]: boolean;
|
|
11
12
|
};
|
|
13
|
+
discovered_catalog?: TypesAirbyteCatalogDiscovered;
|
|
12
14
|
entity_mappings_per_kind?: {
|
|
13
15
|
[key: string]: TypesFieldMapping[];
|
|
14
16
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { EnumAction } from '../schemas/EnumAction';
|
|
2
|
+
import type { TypesAirbyteCatalogDiscovered } from '../schemas/TypesAirbyteCatalogDiscovered';
|
|
2
3
|
import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
|
|
3
4
|
import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
|
|
4
5
|
export interface OpenapiUpdateAirbyteIntegrationConfigProjectRequest {
|
|
@@ -9,6 +10,7 @@ export interface OpenapiUpdateAirbyteIntegrationConfigProjectRequest {
|
|
|
9
10
|
auto_import_per_kind?: {
|
|
10
11
|
[key: string]: boolean;
|
|
11
12
|
};
|
|
13
|
+
discovered_catalog?: TypesAirbyteCatalogDiscovered;
|
|
12
14
|
entity_mappings_per_kind?: {
|
|
13
15
|
[key: string]: TypesFieldMapping[];
|
|
14
16
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { EnumAction } from '../schemas/EnumAction';
|
|
2
|
+
import type { TypesAirbyteCatalogDiscovered } from '../schemas/TypesAirbyteCatalogDiscovered';
|
|
2
3
|
import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
|
|
3
4
|
import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
|
|
4
5
|
export interface OpenapiUpdateAirbyteIntegrationConfigRequest {
|
|
@@ -9,6 +10,7 @@ export interface OpenapiUpdateAirbyteIntegrationConfigRequest {
|
|
|
9
10
|
auto_import_per_kind?: {
|
|
10
11
|
[key: string]: boolean;
|
|
11
12
|
};
|
|
13
|
+
discovered_catalog?: TypesAirbyteCatalogDiscovered;
|
|
12
14
|
entity_mappings_per_kind?: {
|
|
13
15
|
[key: string]: TypesFieldMapping[];
|
|
14
16
|
};
|
package/package.json
CHANGED