@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.
Files changed (27) hide show
  1. package/dist/integration-manager/src/services/hooks/useSyncNowMutation.d.ts +18 -0
  2. package/dist/integration-manager/src/services/hooks/useSyncNowMutation.js +14 -0
  3. package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigProjectMutation.d.ts +23 -0
  4. package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigProjectMutation.js +14 -0
  5. package/dist/integration-manager/src/services/index.d.ts +8 -0
  6. package/dist/integration-manager/src/services/index.js +2 -0
  7. package/dist/integration-manager/src/services/schemas/EnumIntegrationType.d.ts +1 -1
  8. package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigOrgRequest.d.ts +1 -0
  9. package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigProjectRequest.d.ts +1 -0
  10. package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigRequest.d.ts +1 -0
  11. package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigOrgRequest.d.ts +1 -0
  12. package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigProjectRequest.d.ts +6 -0
  13. package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigProjectRequest.js +4 -0
  14. package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigRequest.d.ts +1 -0
  15. package/dist/integration-manager/src/services/schemas/TypesAirbyteConnector.d.ts +0 -8
  16. package/dist/integration-manager/src/services/schemas/TypesAirbyteTriggerSyncError.d.ts +4 -0
  17. package/dist/integration-manager/src/services/schemas/TypesAirbyteTriggerSyncError.js +4 -0
  18. package/dist/integration-manager/src/services/schemas/TypesAirbyteTriggerSyncResult.d.ts +7 -0
  19. package/dist/integration-manager/src/services/schemas/TypesAirbyteTriggerSyncResult.js +1 -0
  20. package/dist/integration-manager/src/services/schemas/TypesDefaultMappingField.d.ts +1 -0
  21. package/dist/integration-manager/src/services/schemas/TypesHarnessAirbyteConfig.d.ts +2 -0
  22. package/dist/integration-manager/src/services/schemas/TypesIntegrationConfig.d.ts +1 -0
  23. package/dist/integration-manager/src/services/schemas/TypesJsonSchema.d.ts +2 -1
  24. package/dist/integration-manager/src/services/schemas/TypesJsonSchema.js +0 -3
  25. package/dist/integration-manager/src/services/schemas/TypesJsonSchemaType.d.ts +1 -0
  26. package/dist/integration-manager/src/services/schemas/TypesJsonSchemaType.js +4 -0
  27. 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
+ }
@@ -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>;
@@ -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,5 +1,6 @@
1
1
  import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
2
2
  export interface OpenapiCreateIntegrationConfigOrgRequest {
3
+ auto_import?: boolean | null;
3
4
  configuration?: {
4
5
  [key: string]: any;
5
6
  } | null;
@@ -1,5 +1,6 @@
1
1
  import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
2
2
  export interface OpenapiCreateIntegrationConfigProjectRequest {
3
+ auto_import?: boolean | null;
3
4
  configuration?: {
4
5
  [key: string]: any;
5
6
  } | null;
@@ -1,5 +1,6 @@
1
1
  import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
2
2
  export interface OpenapiCreateIntegrationConfigRequest {
3
+ auto_import?: boolean | null;
3
4
  configuration?: {
4
5
  [key: string]: any;
5
6
  } | null;
@@ -1,4 +1,5 @@
1
1
  export interface OpenapiUpdateIntegrationConfigOrgRequest {
2
+ auto_import?: boolean | null;
2
3
  configuration?: {
3
4
  [key: string]: any;
4
5
  } | null;
@@ -0,0 +1,6 @@
1
+ export interface OpenapiUpdateIntegrationConfigProjectRequest {
2
+ auto_import?: boolean | null;
3
+ configuration?: {
4
+ [key: string]: any;
5
+ } | null;
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,4 +1,5 @@
1
1
  export interface OpenapiUpdateIntegrationConfigRequest {
2
+ auto_import?: boolean | null;
2
3
  configuration?: {
3
4
  [key: string]: any;
4
5
  } | null;
@@ -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,4 @@
1
+ export interface TypesAirbyteTriggerSyncError {
2
+ code?: number;
3
+ message?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { TypesAirbyteTriggerSyncError } from '../schemas/TypesAirbyteTriggerSyncError';
2
+ export interface TypesAirbyteTriggerSyncResult {
3
+ error?: TypesAirbyteTriggerSyncError;
4
+ integration_id?: string;
5
+ logs?: string;
6
+ success?: boolean;
7
+ }
@@ -2,4 +2,5 @@ export interface TypesDefaultMappingField {
2
2
  description?: string;
3
3
  display_name?: string;
4
4
  field_name?: string;
5
+ target_path?: string;
5
6
  }
@@ -1,5 +1,7 @@
1
1
  export interface TypesHarnessAirbyteConfig {
2
+ pager_duty_harness_connector_ref?: string;
2
3
  service_now_harness_connector_ref?: string;
4
+ since?: string;
3
5
  start_date?: string;
4
6
  table_filter?: string;
5
7
  }
@@ -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?: string;
8
+ type?: TypesJsonSchemaType;
8
9
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -0,0 +1 @@
1
+ export type TypesJsonSchemaType = string[] | null;
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-integration-manager-client",
3
- "version": "0.3.10",
3
+ "version": "0.3.12",
4
4
  "description": "Harness React integration manager client - Integration Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",