@harnessio/react-integration-manager-client 0.3.11 → 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 +2 -2
- package/dist/integration-manager/src/services/hooks/useSyncNowMutation.js +1 -1
- 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 +6 -2
- package/dist/integration-manager/src/services/index.js +1 -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/OpenapiUpdateIntegrationConfigRequest.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/TypesAirbyteConnector.d.ts +0 -3
- 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/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
- package/dist/integration-manager/src/services/schemas/TypesSyncNowError.d.ts +0 -4
- package/dist/integration-manager/src/services/schemas/TypesSyncNowResult.d.ts +0 -7
- /package/dist/integration-manager/src/services/schemas/{TypesSyncNowError.js → OpenapiUpdateIntegrationConfigProjectRequest.js} +0 -0
- /package/dist/integration-manager/src/services/schemas/{TypesSyncNowResult.js → TypesAirbyteTriggerSyncResult.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TypesAirbyteTriggerSyncResult } from '../schemas/TypesAirbyteTriggerSyncResult';
|
|
3
3
|
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -7,7 +7,7 @@ export interface SyncNowMutationPathParams {
|
|
|
7
7
|
accountIdentifier: string;
|
|
8
8
|
integrationconfig_identifier: string;
|
|
9
9
|
}
|
|
10
|
-
export type SyncNowOkResponse = ResponseWithPagination<
|
|
10
|
+
export type SyncNowOkResponse = ResponseWithPagination<TypesAirbyteTriggerSyncResult>;
|
|
11
11
|
export type SyncNowErrorResponse = ApierrorsErrorResponse;
|
|
12
12
|
export interface SyncNowProps extends SyncNowMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
13
13
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function syncNow(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/${props.integrationconfig_identifier}/sync
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/${props.integrationconfig_identifier}/airbyte-sync`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
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.
|
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
|
+
}
|
|
@@ -67,6 +67,8 @@ export type { UpdateIntegrationConfigErrorResponse, UpdateIntegrationConfigMutat
|
|
|
67
67
|
export { updateIntegrationConfig, useUpdateIntegrationConfigMutation, } from './hooks/useUpdateIntegrationConfigMutation';
|
|
68
68
|
export type { UpdateIntegrationConfigOrgErrorResponse, UpdateIntegrationConfigOrgMutationPathParams, UpdateIntegrationConfigOrgOkResponse, UpdateIntegrationConfigOrgProps, UpdateIntegrationConfigOrgRequestBody, } from './hooks/useUpdateIntegrationConfigOrgMutation';
|
|
69
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';
|
|
70
72
|
export type { UpdateIntegrationStatusErrorResponse, UpdateIntegrationStatusMutationPathParams, UpdateIntegrationStatusMutationQueryParams, UpdateIntegrationStatusOkResponse, UpdateIntegrationStatusProps, } from './hooks/useUpdateIntegrationStatusMutation';
|
|
71
73
|
export { updateIntegrationStatus, useUpdateIntegrationStatusMutation, } from './hooks/useUpdateIntegrationStatusMutation';
|
|
72
74
|
export type { UpdateIntegrationStatusOrgErrorResponse, UpdateIntegrationStatusOrgMutationPathParams, UpdateIntegrationStatusOrgMutationQueryParams, UpdateIntegrationStatusOrgOkResponse, UpdateIntegrationStatusOrgProps, } from './hooks/useUpdateIntegrationStatusOrgMutation';
|
|
@@ -97,6 +99,7 @@ export type { OpenapiUpdateAirbyteIntegrationConfigOrgRequest } from './schemas/
|
|
|
97
99
|
export type { OpenapiUpdateAirbyteIntegrationConfigProjectRequest } from './schemas/OpenapiUpdateAirbyteIntegrationConfigProjectRequest';
|
|
98
100
|
export type { OpenapiUpdateAirbyteIntegrationConfigRequest } from './schemas/OpenapiUpdateAirbyteIntegrationConfigRequest';
|
|
99
101
|
export type { OpenapiUpdateIntegrationConfigOrgRequest } from './schemas/OpenapiUpdateIntegrationConfigOrgRequest';
|
|
102
|
+
export type { OpenapiUpdateIntegrationConfigProjectRequest } from './schemas/OpenapiUpdateIntegrationConfigProjectRequest';
|
|
100
103
|
export type { OpenapiUpdateIntegrationConfigRequest } from './schemas/OpenapiUpdateIntegrationConfigRequest';
|
|
101
104
|
export type { TypesAgentStatus } from './schemas/TypesAgentStatus';
|
|
102
105
|
export type { TypesAirbyteCatalogConfigured } from './schemas/TypesAirbyteCatalogConfigured';
|
|
@@ -104,6 +107,8 @@ export type { TypesAirbyteCatalogDiscovered } from './schemas/TypesAirbyteCatalo
|
|
|
104
107
|
export type { TypesAirbyteConnector } from './schemas/TypesAirbyteConnector';
|
|
105
108
|
export type { TypesAirbyteStream } from './schemas/TypesAirbyteStream';
|
|
106
109
|
export type { TypesAirbyteStreamConfigured } from './schemas/TypesAirbyteStreamConfigured';
|
|
110
|
+
export type { TypesAirbyteTriggerSyncError } from './schemas/TypesAirbyteTriggerSyncError';
|
|
111
|
+
export type { TypesAirbyteTriggerSyncResult } from './schemas/TypesAirbyteTriggerSyncResult';
|
|
107
112
|
export type { TypesDefaultEntityRelation } from './schemas/TypesDefaultEntityRelation';
|
|
108
113
|
export type { TypesDefaultEntitySchema } from './schemas/TypesDefaultEntitySchema';
|
|
109
114
|
export type { TypesDefaultKind } from './schemas/TypesDefaultKind';
|
|
@@ -117,6 +122,7 @@ export type { TypesHarnessAirbyteConfig } from './schemas/TypesHarnessAirbyteCon
|
|
|
117
122
|
export type { TypesIntegrationAgent } from './schemas/TypesIntegrationAgent';
|
|
118
123
|
export type { TypesIntegrationConfig } from './schemas/TypesIntegrationConfig';
|
|
119
124
|
export type { TypesJsonSchema } from './schemas/TypesJsonSchema';
|
|
125
|
+
export type { TypesJsonSchemaType } from './schemas/TypesJsonSchemaType';
|
|
120
126
|
export type { TypesKindMappingFields } from './schemas/TypesKindMappingFields';
|
|
121
127
|
export type { TypesLastSyncInfo } from './schemas/TypesLastSyncInfo';
|
|
122
128
|
export type { TypesListDefaultMappingFieldsResponse } from './schemas/TypesListDefaultMappingFieldsResponse';
|
|
@@ -125,6 +131,4 @@ export type { TypesMappingSpec } from './schemas/TypesMappingSpec';
|
|
|
125
131
|
export type { TypesSchemaMapping } from './schemas/TypesSchemaMapping';
|
|
126
132
|
export type { TypesScope } from './schemas/TypesScope';
|
|
127
133
|
export type { TypesScopeConfig } from './schemas/TypesScopeConfig';
|
|
128
|
-
export type { TypesSyncNowError } from './schemas/TypesSyncNowError';
|
|
129
|
-
export type { TypesSyncNowResult } from './schemas/TypesSyncNowResult';
|
|
130
134
|
export type { TypesSyncState } from './schemas/TypesSyncState';
|
|
@@ -32,6 +32,7 @@ export { updateAirbyteIntegrationConfigOrg, useUpdateAirbyteIntegrationConfigOrg
|
|
|
32
32
|
export { updateAirbyteIntegrationConfigProject, useUpdateAirbyteIntegrationConfigProjectMutation, } from './hooks/useUpdateAirbyteIntegrationConfigProjectMutation';
|
|
33
33
|
export { updateIntegrationConfig, useUpdateIntegrationConfigMutation, } from './hooks/useUpdateIntegrationConfigMutation';
|
|
34
34
|
export { updateIntegrationConfigOrg, useUpdateIntegrationConfigOrgMutation, } from './hooks/useUpdateIntegrationConfigOrgMutation';
|
|
35
|
+
export { updateIntegrationConfigProject, useUpdateIntegrationConfigProjectMutation, } from './hooks/useUpdateIntegrationConfigProjectMutation';
|
|
35
36
|
export { updateIntegrationStatus, useUpdateIntegrationStatusMutation, } from './hooks/useUpdateIntegrationStatusMutation';
|
|
36
37
|
export { updateIntegrationStatusOrg, useUpdateIntegrationStatusOrgMutation, } from './hooks/useUpdateIntegrationStatusOrgMutation';
|
|
37
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';
|
|
@@ -7,15 +7,12 @@ export type TypesAirbyteConnector = {
|
|
|
7
7
|
* @format date-time
|
|
8
8
|
*/
|
|
9
9
|
created?: string;
|
|
10
|
-
delegate_selectors?: string[];
|
|
11
10
|
id?: string;
|
|
12
11
|
integration_id?: string;
|
|
13
|
-
k8s_connector_ref?: string;
|
|
14
12
|
/**
|
|
15
13
|
* @format date-time
|
|
16
14
|
*/
|
|
17
15
|
last_updated?: string;
|
|
18
|
-
namespace?: string;
|
|
19
16
|
space_path?: string;
|
|
20
17
|
version?: string;
|
|
21
18
|
} | null;
|
|
@@ -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
|
File without changes
|
|
File without changes
|