@harnessio/react-integration-manager-client 0.3.13 → 0.3.14
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/useDeleteIntegrationConfigMutation.d.ts +17 -0
- package/dist/integration-manager/src/services/hooks/useDeleteIntegrationConfigMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useDeleteIntegrationConfigOrgMutation.d.ts +18 -0
- package/dist/integration-manager/src/services/hooks/useDeleteIntegrationConfigOrgMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useDeleteIntegrationConfigProjectMutation.d.ts +19 -0
- package/dist/integration-manager/src/services/hooks/useDeleteIntegrationConfigProjectMutation.js +14 -0
- package/dist/integration-manager/src/services/index.d.ts +6 -0
- package/dist/integration-manager/src/services/index.js +3 -0
- package/dist/integration-manager/src/services/schemas/TypesIntegrationConfig.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface DeleteIntegrationConfigMutationPathParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
integrationconfig_identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export type DeleteIntegrationConfigOkResponse = ResponseWithPagination<unknown>;
|
|
10
|
+
export type DeleteIntegrationConfigErrorResponse = ApierrorsErrorResponse;
|
|
11
|
+
export interface DeleteIntegrationConfigProps extends DeleteIntegrationConfigMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
12
|
+
}
|
|
13
|
+
export declare function deleteIntegrationConfig(props: DeleteIntegrationConfigProps): Promise<DeleteIntegrationConfigOkResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Soft-deletes the integration (sets is_deleted). Removes entity relations, mappings, schemas, airbyte connector/state. Notifies k8s-agent to stop sync and delete configs. Entity data is cleaned eventually by a cron job. Returns 204 No Content.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useDeleteIntegrationConfigMutation(options?: Omit<UseMutationOptions<DeleteIntegrationConfigOkResponse, DeleteIntegrationConfigErrorResponse, DeleteIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteIntegrationConfigOkResponse, ApierrorsErrorResponse, DeleteIntegrationConfigProps, 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 deleteIntegrationConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/${props.integrationconfig_identifier}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Soft-deletes the integration (sets is_deleted). Removes entity relations, mappings, schemas, airbyte connector/state. Notifies k8s-agent to stop sync and delete configs. Entity data is cleaned eventually by a cron job. Returns 204 No Content.
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteIntegrationConfigMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteIntegrationConfig(mutateProps), options);
|
|
14
|
+
}
|
package/dist/integration-manager/src/services/hooks/useDeleteIntegrationConfigOrgMutation.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface DeleteIntegrationConfigOrgMutationPathParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
orgIdentifier: string;
|
|
8
|
+
integrationconfig_identifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type DeleteIntegrationConfigOrgOkResponse = ResponseWithPagination<unknown>;
|
|
11
|
+
export type DeleteIntegrationConfigOrgErrorResponse = ApierrorsErrorResponse;
|
|
12
|
+
export interface DeleteIntegrationConfigOrgProps extends DeleteIntegrationConfigOrgMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
13
|
+
}
|
|
14
|
+
export declare function deleteIntegrationConfigOrg(props: DeleteIntegrationConfigOrgProps): Promise<DeleteIntegrationConfigOrgOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Delete integration configuration at organization level
|
|
17
|
+
*/
|
|
18
|
+
export declare function useDeleteIntegrationConfigOrgMutation(options?: Omit<UseMutationOptions<DeleteIntegrationConfigOrgOkResponse, DeleteIntegrationConfigOrgErrorResponse, DeleteIntegrationConfigOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteIntegrationConfigOrgOkResponse, ApierrorsErrorResponse, DeleteIntegrationConfigOrgProps, 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 deleteIntegrationConfigOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs/${props.integrationconfig_identifier}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete integration configuration at organization level
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteIntegrationConfigOrgMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteIntegrationConfigOrg(mutateProps), options);
|
|
14
|
+
}
|
package/dist/integration-manager/src/services/hooks/useDeleteIntegrationConfigProjectMutation.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface DeleteIntegrationConfigProjectMutationPathParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
orgIdentifier: string;
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
integrationconfig_identifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type DeleteIntegrationConfigProjectOkResponse = ResponseWithPagination<unknown>;
|
|
12
|
+
export type DeleteIntegrationConfigProjectErrorResponse = ApierrorsErrorResponse;
|
|
13
|
+
export interface DeleteIntegrationConfigProjectProps extends DeleteIntegrationConfigProjectMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
14
|
+
}
|
|
15
|
+
export declare function deleteIntegrationConfigProject(props: DeleteIntegrationConfigProjectProps): Promise<DeleteIntegrationConfigProjectOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Delete integration configuration at project level
|
|
18
|
+
*/
|
|
19
|
+
export declare function useDeleteIntegrationConfigProjectMutation(options?: Omit<UseMutationOptions<DeleteIntegrationConfigProjectOkResponse, DeleteIntegrationConfigProjectErrorResponse, DeleteIntegrationConfigProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteIntegrationConfigProjectOkResponse, ApierrorsErrorResponse, DeleteIntegrationConfigProjectProps, unknown>;
|
package/dist/integration-manager/src/services/hooks/useDeleteIntegrationConfigProjectMutation.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 deleteIntegrationConfigProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs/${props.integrationconfig_identifier}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete integration configuration at project level
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteIntegrationConfigProjectMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteIntegrationConfigProject(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -15,6 +15,12 @@ export type { CreateIntegrationConfigProjectErrorResponse, CreateIntegrationConf
|
|
|
15
15
|
export { createIntegrationConfigProject, useCreateIntegrationConfigProjectMutation, } from './hooks/useCreateIntegrationConfigProjectMutation';
|
|
16
16
|
export type { DeleteAgentErrorResponse, DeleteAgentMutationPathParams, DeleteAgentOkResponse, DeleteAgentProps, } from './hooks/useDeleteAgentMutation';
|
|
17
17
|
export { deleteAgent, useDeleteAgentMutation } from './hooks/useDeleteAgentMutation';
|
|
18
|
+
export type { DeleteIntegrationConfigErrorResponse, DeleteIntegrationConfigMutationPathParams, DeleteIntegrationConfigOkResponse, DeleteIntegrationConfigProps, } from './hooks/useDeleteIntegrationConfigMutation';
|
|
19
|
+
export { deleteIntegrationConfig, useDeleteIntegrationConfigMutation, } from './hooks/useDeleteIntegrationConfigMutation';
|
|
20
|
+
export type { DeleteIntegrationConfigOrgErrorResponse, DeleteIntegrationConfigOrgMutationPathParams, DeleteIntegrationConfigOrgOkResponse, DeleteIntegrationConfigOrgProps, } from './hooks/useDeleteIntegrationConfigOrgMutation';
|
|
21
|
+
export { deleteIntegrationConfigOrg, useDeleteIntegrationConfigOrgMutation, } from './hooks/useDeleteIntegrationConfigOrgMutation';
|
|
22
|
+
export type { DeleteIntegrationConfigProjectErrorResponse, DeleteIntegrationConfigProjectMutationPathParams, DeleteIntegrationConfigProjectOkResponse, DeleteIntegrationConfigProjectProps, } from './hooks/useDeleteIntegrationConfigProjectMutation';
|
|
23
|
+
export { deleteIntegrationConfigProject, useDeleteIntegrationConfigProjectMutation, } from './hooks/useDeleteIntegrationConfigProjectMutation';
|
|
18
24
|
export type { DownloadAgentYamlErrorResponse, DownloadAgentYamlOkResponse, DownloadAgentYamlProps, DownloadAgentYamlQueryPathParams, } from './hooks/useDownloadAgentYamlQuery';
|
|
19
25
|
export { downloadAgentYaml, useDownloadAgentYamlQuery } from './hooks/useDownloadAgentYamlQuery';
|
|
20
26
|
export type { FetchAirbyteConnectorCatalogErrorResponse, FetchAirbyteConnectorCatalogMutationPathParams, FetchAirbyteConnectorCatalogOkResponse, FetchAirbyteConnectorCatalogProps, FetchAirbyteConnectorCatalogRequestBody, } from './hooks/useFetchAirbyteConnectorCatalogMutation';
|
|
@@ -6,6 +6,9 @@ export { createIntegrationConfig, useCreateIntegrationConfigMutation, } from './
|
|
|
6
6
|
export { createIntegrationConfigOrg, useCreateIntegrationConfigOrgMutation, } from './hooks/useCreateIntegrationConfigOrgMutation';
|
|
7
7
|
export { createIntegrationConfigProject, useCreateIntegrationConfigProjectMutation, } from './hooks/useCreateIntegrationConfigProjectMutation';
|
|
8
8
|
export { deleteAgent, useDeleteAgentMutation } from './hooks/useDeleteAgentMutation';
|
|
9
|
+
export { deleteIntegrationConfig, useDeleteIntegrationConfigMutation, } from './hooks/useDeleteIntegrationConfigMutation';
|
|
10
|
+
export { deleteIntegrationConfigOrg, useDeleteIntegrationConfigOrgMutation, } from './hooks/useDeleteIntegrationConfigOrgMutation';
|
|
11
|
+
export { deleteIntegrationConfigProject, useDeleteIntegrationConfigProjectMutation, } from './hooks/useDeleteIntegrationConfigProjectMutation';
|
|
9
12
|
export { downloadAgentYaml, useDownloadAgentYamlQuery } from './hooks/useDownloadAgentYamlQuery';
|
|
10
13
|
export { fetchAirbyteConnectorCatalog, useFetchAirbyteConnectorCatalogMutation, } from './hooks/useFetchAirbyteConnectorCatalogMutation';
|
|
11
14
|
export { getAgent, useGetAgentQuery } from './hooks/useGetAgentQuery';
|
|
@@ -15,6 +15,7 @@ export interface TypesIntegrationConfig {
|
|
|
15
15
|
identifier?: string;
|
|
16
16
|
integration_mode?: EnumIntegrationMode;
|
|
17
17
|
integration_type?: EnumIntegrationType;
|
|
18
|
+
is_deleted?: boolean;
|
|
18
19
|
kinds?: string[] | null;
|
|
19
20
|
last_sync_info?: TypesLastSyncInfo;
|
|
20
21
|
last_updated?: number;
|
package/package.json
CHANGED