@harnessio/react-integration-manager-client 0.3.12 → 0.3.13

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.
@@ -0,0 +1,20 @@
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 SyncNowProjectMutationPathParams {
7
+ accountIdentifier: string;
8
+ orgIdentifier: string;
9
+ projectIdentifier: string;
10
+ integrationconfig_identifier: string;
11
+ }
12
+ export type SyncNowProjectOkResponse = ResponseWithPagination<TypesAirbyteTriggerSyncResult>;
13
+ export type SyncNowProjectErrorResponse = ApierrorsErrorResponse;
14
+ export interface SyncNowProjectProps extends SyncNowProjectMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
15
+ }
16
+ export declare function syncNowProject(props: SyncNowProjectProps): Promise<SyncNowProjectOkResponse>;
17
+ /**
18
+ * Triggers an immediate sync for the integration at project level. Supported for Airbyte-mode integrations (e.g. ServiceNow). Returns the sync result including success status, logs, and any error details.
19
+ */
20
+ export declare function useSyncNowProjectMutation(options?: Omit<UseMutationOptions<SyncNowProjectOkResponse, SyncNowProjectErrorResponse, SyncNowProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SyncNowProjectOkResponse, ApierrorsErrorResponse, SyncNowProjectProps, 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 syncNowProject(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs/${props.integrationconfig_identifier}/airbyte-sync`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Triggers an immediate sync for the integration at project 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 useSyncNowProjectMutation(options) {
13
+ return useMutation((mutateProps) => syncNowProject(mutateProps), options);
14
+ }
@@ -49,6 +49,8 @@ export type { ListIntegrationConfigsErrorResponse, ListIntegrationConfigsOkRespo
49
49
  export { listIntegrationConfigs, useListIntegrationConfigsQuery, } from './hooks/useListIntegrationConfigsQuery';
50
50
  export type { SyncNowErrorResponse, SyncNowMutationPathParams, SyncNowOkResponse, SyncNowProps, } from './hooks/useSyncNowMutation';
51
51
  export { syncNow, useSyncNowMutation } from './hooks/useSyncNowMutation';
52
+ export type { SyncNowProjectErrorResponse, SyncNowProjectMutationPathParams, SyncNowProjectOkResponse, SyncNowProjectProps, } from './hooks/useSyncNowProjectMutation';
53
+ export { syncNowProject, useSyncNowProjectMutation } from './hooks/useSyncNowProjectMutation';
52
54
  export type { TriggerSyncErrorResponse, TriggerSyncMutationPathParams, TriggerSyncOkResponse, TriggerSyncProps, } from './hooks/useTriggerSyncMutation';
53
55
  export { triggerSync, useTriggerSyncMutation } from './hooks/useTriggerSyncMutation';
54
56
  export type { TriggerSyncOrgErrorResponse, TriggerSyncOrgMutationPathParams, TriggerSyncOrgOkResponse, TriggerSyncOrgProps, } from './hooks/useTriggerSyncOrgMutation';
@@ -23,6 +23,7 @@ export { listIntegrationConfigsOrg, useListIntegrationConfigsOrgQuery, } from '.
23
23
  export { listIntegrationConfigsProject, useListIntegrationConfigsProjectQuery, } from './hooks/useListIntegrationConfigsProjectQuery';
24
24
  export { listIntegrationConfigs, useListIntegrationConfigsQuery, } from './hooks/useListIntegrationConfigsQuery';
25
25
  export { syncNow, useSyncNowMutation } from './hooks/useSyncNowMutation';
26
+ export { syncNowProject, useSyncNowProjectMutation } from './hooks/useSyncNowProjectMutation';
26
27
  export { triggerSync, useTriggerSyncMutation } from './hooks/useTriggerSyncMutation';
27
28
  export { triggerSyncOrg, useTriggerSyncOrgMutation } from './hooks/useTriggerSyncOrgMutation';
28
29
  export { triggerSyncProject, useTriggerSyncProjectMutation, } from './hooks/useTriggerSyncProjectMutation';
@@ -3,6 +3,7 @@ import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
3
3
  import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
4
4
  import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
5
5
  export interface OpenapiCreateAirbyteIntegrationConfigOrgRequest {
6
+ auto_import?: boolean | null;
6
7
  discovered_catalog?: TypesAirbyteCatalogDiscovered;
7
8
  entity_mappings_per_kind?: {
8
9
  [key: string]: TypesFieldMapping[];
@@ -3,6 +3,7 @@ import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
3
3
  import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
4
4
  import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
5
5
  export interface OpenapiCreateAirbyteIntegrationConfigProjectRequest {
6
+ auto_import?: boolean | null;
6
7
  discovered_catalog?: TypesAirbyteCatalogDiscovered;
7
8
  entity_mappings_per_kind?: {
8
9
  [key: string]: TypesFieldMapping[];
@@ -3,6 +3,7 @@ import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
3
3
  import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
4
4
  import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
5
5
  export interface OpenapiCreateAirbyteIntegrationConfigRequest {
6
+ auto_import?: boolean | null;
6
7
  discovered_catalog?: TypesAirbyteCatalogDiscovered;
7
8
  entity_mappings_per_kind?: {
8
9
  [key: string]: TypesFieldMapping[];
@@ -1,6 +1,7 @@
1
1
  import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
2
2
  import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
3
3
  export interface OpenapiUpdateAirbyteIntegrationConfigOrgRequest {
4
+ auto_import?: boolean | null;
4
5
  entity_mappings_per_kind?: {
5
6
  [key: string]: TypesFieldMapping[];
6
7
  } | null;
@@ -1,6 +1,7 @@
1
1
  import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
2
2
  import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
3
3
  export interface OpenapiUpdateAirbyteIntegrationConfigProjectRequest {
4
+ auto_import?: boolean | null;
4
5
  entity_mappings_per_kind?: {
5
6
  [key: string]: TypesFieldMapping[];
6
7
  } | null;
@@ -1,6 +1,7 @@
1
1
  import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
2
2
  import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
3
3
  export interface OpenapiUpdateAirbyteIntegrationConfigRequest {
4
+ auto_import?: boolean | null;
4
5
  entity_mappings_per_kind?: {
5
6
  [key: string]: TypesFieldMapping[];
6
7
  } | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-integration-manager-client",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "description": "Harness React integration manager client - Integration Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",