@harnessio/react-integration-manager-client 0.3.15 → 0.3.16

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,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
+ }
@@ -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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-integration-manager-client",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "Harness React integration manager client - Integration Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",