@harnessio/react-integration-manager-client 0.3.8 → 0.3.10
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/useCreateAirbyteIntegrationConfigOrgMutation.d.ts +21 -0
- package/dist/integration-manager/src/services/hooks/useCreateAirbyteIntegrationConfigOrgMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useCreateAirbyteIntegrationConfigProjectMutation.d.ts +22 -0
- package/dist/integration-manager/src/services/hooks/useCreateAirbyteIntegrationConfigProjectMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigOrgMutation.d.ts +21 -0
- package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigOrgMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigProjectMutation.d.ts +22 -0
- package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigProjectMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useGetAirbyteIntegrationConfigOrgQuery.d.ts +19 -0
- package/dist/integration-manager/src/services/hooks/useGetAirbyteIntegrationConfigOrgQuery.js +19 -0
- package/dist/integration-manager/src/services/hooks/useGetAirbyteIntegrationConfigProjectQuery.d.ts +20 -0
- package/dist/integration-manager/src/services/hooks/useGetAirbyteIntegrationConfigProjectQuery.js +20 -0
- package/dist/integration-manager/src/services/hooks/useGetIntegrationConfigOrgQuery.d.ts +19 -0
- package/dist/integration-manager/src/services/hooks/useGetIntegrationConfigOrgQuery.js +19 -0
- package/dist/integration-manager/src/services/hooks/useGetIntegrationConfigProjectQuery.d.ts +20 -0
- package/dist/integration-manager/src/services/hooks/useGetIntegrationConfigProjectQuery.js +20 -0
- package/dist/integration-manager/src/services/hooks/useListDefaultMappingFieldsQuery.d.ts +22 -0
- package/dist/integration-manager/src/services/hooks/useListDefaultMappingFieldsQuery.js +14 -0
- package/dist/integration-manager/src/services/hooks/useListDefaultSchemasQuery.d.ts +22 -0
- package/dist/integration-manager/src/services/hooks/useListDefaultSchemasQuery.js +14 -0
- package/dist/integration-manager/src/services/hooks/useListIntegrationConfigsOrgQuery.d.ts +17 -0
- package/dist/integration-manager/src/services/hooks/useListIntegrationConfigsOrgQuery.js +14 -0
- package/dist/integration-manager/src/services/hooks/useListIntegrationConfigsProjectQuery.d.ts +18 -0
- package/dist/integration-manager/src/services/hooks/useListIntegrationConfigsProjectQuery.js +19 -0
- package/dist/integration-manager/src/services/hooks/useTriggerSyncOrgMutation.d.ts +19 -0
- package/dist/integration-manager/src/services/hooks/useTriggerSyncOrgMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useTriggerSyncProjectMutation.d.ts +20 -0
- package/dist/integration-manager/src/services/hooks/useTriggerSyncProjectMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useUpdateAirbyteIntegrationConfigOrgMutation.d.ts +22 -0
- package/dist/integration-manager/src/services/hooks/useUpdateAirbyteIntegrationConfigOrgMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useUpdateAirbyteIntegrationConfigProjectMutation.d.ts +23 -0
- package/dist/integration-manager/src/services/hooks/useUpdateAirbyteIntegrationConfigProjectMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigOrgMutation.d.ts +22 -0
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigOrgMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationStatusOrgMutation.d.ts +26 -0
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationStatusOrgMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationStatusProjectMutation.d.ts +27 -0
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationStatusProjectMutation.js +14 -0
- package/dist/integration-manager/src/services/index.d.ts +52 -0
- package/dist/integration-manager/src/services/index.js +19 -0
- package/dist/integration-manager/src/services/schemas/EnumIntegrationMode.d.ts +1 -1
- package/dist/integration-manager/src/services/schemas/EnumIntegrationType.d.ts +1 -1
- package/dist/integration-manager/src/services/schemas/OpenapiCreateAirbyteIntegrationConfigOrgRequest.d.ts +20 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateAirbyteIntegrationConfigOrgRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateAirbyteIntegrationConfigProjectRequest.d.ts +20 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateAirbyteIntegrationConfigProjectRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigOrgRequest.d.ts +10 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigOrgRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigProjectRequest.d.ts +10 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigProjectRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateAirbyteIntegrationConfigOrgRequest.d.ts +14 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateAirbyteIntegrationConfigOrgRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateAirbyteIntegrationConfigProjectRequest.d.ts +14 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateAirbyteIntegrationConfigProjectRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigOrgRequest.d.ts +5 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigOrgRequest.js +4 -0
- package/dist/integration-manager/src/services/schemas/TypesDefaultEntityRelation.d.ts +7 -0
- package/dist/integration-manager/src/services/schemas/TypesDefaultEntityRelation.js +1 -0
- package/dist/integration-manager/src/services/schemas/TypesDefaultEntitySchema.d.ts +18 -0
- package/dist/integration-manager/src/services/schemas/TypesDefaultEntitySchema.js +1 -0
- package/dist/integration-manager/src/services/schemas/TypesDefaultKind.d.ts +11 -0
- package/dist/integration-manager/src/services/schemas/TypesDefaultKind.js +1 -0
- package/dist/integration-manager/src/services/schemas/TypesDefaultMappingField.d.ts +5 -0
- package/dist/integration-manager/src/services/schemas/TypesDefaultMappingField.js +4 -0
- package/dist/integration-manager/src/services/schemas/TypesDefaultRelationEnd.d.ts +4 -0
- package/dist/integration-manager/src/services/schemas/TypesDefaultRelationEnd.js +4 -0
- package/dist/integration-manager/src/services/schemas/TypesEntityMapping.d.ts +0 -1
- package/dist/integration-manager/src/services/schemas/TypesEntitySchema.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/TypesKindMappingFields.d.ts +5 -0
- package/dist/integration-manager/src/services/schemas/TypesKindMappingFields.js +1 -0
- package/dist/integration-manager/src/services/schemas/TypesListDefaultMappingFieldsResponse.d.ts +4 -0
- package/dist/integration-manager/src/services/schemas/TypesListDefaultMappingFieldsResponse.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationconfigAirbyteIntegrationResponse } from '../schemas/IntegrationconfigAirbyteIntegrationResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiCreateAirbyteIntegrationConfigOrgRequest } from '../schemas/OpenapiCreateAirbyteIntegrationConfigOrgRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface CreateAirbyteIntegrationConfigOrgMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type CreateAirbyteIntegrationConfigOrgRequestBody = OpenapiCreateAirbyteIntegrationConfigOrgRequest;
|
|
12
|
+
export type CreateAirbyteIntegrationConfigOrgOkResponse = ResponseWithPagination<IntegrationconfigAirbyteIntegrationResponse>;
|
|
13
|
+
export type CreateAirbyteIntegrationConfigOrgErrorResponse = ApierrorsErrorResponse;
|
|
14
|
+
export interface CreateAirbyteIntegrationConfigOrgProps extends CreateAirbyteIntegrationConfigOrgMutationPathParams, Omit<FetcherOptions<unknown, CreateAirbyteIntegrationConfigOrgRequestBody>, 'url'> {
|
|
15
|
+
body: CreateAirbyteIntegrationConfigOrgRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export declare function createAirbyteIntegrationConfigOrg(props: CreateAirbyteIntegrationConfigOrgProps): Promise<CreateAirbyteIntegrationConfigOrgOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Create Airbyte integration configuration at organization level
|
|
20
|
+
*/
|
|
21
|
+
export declare function useCreateAirbyteIntegrationConfigOrgMutation(options?: Omit<UseMutationOptions<CreateAirbyteIntegrationConfigOrgOkResponse, CreateAirbyteIntegrationConfigOrgErrorResponse, CreateAirbyteIntegrationConfigOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateAirbyteIntegrationConfigOrgOkResponse, ApierrorsErrorResponse, CreateAirbyteIntegrationConfigOrgProps, unknown>;
|
package/dist/integration-manager/src/services/hooks/useCreateAirbyteIntegrationConfigOrgMutation.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 createAirbyteIntegrationConfigOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs/airbyte`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create Airbyte integration configuration at organization level
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateAirbyteIntegrationConfigOrgMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createAirbyteIntegrationConfigOrg(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationconfigAirbyteIntegrationResponse } from '../schemas/IntegrationconfigAirbyteIntegrationResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiCreateAirbyteIntegrationConfigProjectRequest } from '../schemas/OpenapiCreateAirbyteIntegrationConfigProjectRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface CreateAirbyteIntegrationConfigProjectMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type CreateAirbyteIntegrationConfigProjectRequestBody = OpenapiCreateAirbyteIntegrationConfigProjectRequest;
|
|
13
|
+
export type CreateAirbyteIntegrationConfigProjectOkResponse = ResponseWithPagination<IntegrationconfigAirbyteIntegrationResponse>;
|
|
14
|
+
export type CreateAirbyteIntegrationConfigProjectErrorResponse = ApierrorsErrorResponse;
|
|
15
|
+
export interface CreateAirbyteIntegrationConfigProjectProps extends CreateAirbyteIntegrationConfigProjectMutationPathParams, Omit<FetcherOptions<unknown, CreateAirbyteIntegrationConfigProjectRequestBody>, 'url'> {
|
|
16
|
+
body: CreateAirbyteIntegrationConfigProjectRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function createAirbyteIntegrationConfigProject(props: CreateAirbyteIntegrationConfigProjectProps): Promise<CreateAirbyteIntegrationConfigProjectOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Create Airbyte integration configuration at project level
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateAirbyteIntegrationConfigProjectMutation(options?: Omit<UseMutationOptions<CreateAirbyteIntegrationConfigProjectOkResponse, CreateAirbyteIntegrationConfigProjectErrorResponse, CreateAirbyteIntegrationConfigProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateAirbyteIntegrationConfigProjectOkResponse, ApierrorsErrorResponse, CreateAirbyteIntegrationConfigProjectProps, 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 createAirbyteIntegrationConfigProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs/airbyte`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create Airbyte integration configuration at project level
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateAirbyteIntegrationConfigProjectMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createAirbyteIntegrationConfigProject(mutateProps), options);
|
|
14
|
+
}
|
package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigOrgMutation.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiCreateIntegrationConfigOrgRequest } from '../schemas/OpenapiCreateIntegrationConfigOrgRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface CreateIntegrationConfigOrgMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type CreateIntegrationConfigOrgRequestBody = OpenapiCreateIntegrationConfigOrgRequest;
|
|
12
|
+
export type CreateIntegrationConfigOrgOkResponse = ResponseWithPagination<TypesIntegrationConfig>;
|
|
13
|
+
export type CreateIntegrationConfigOrgErrorResponse = ApierrorsErrorResponse;
|
|
14
|
+
export interface CreateIntegrationConfigOrgProps extends CreateIntegrationConfigOrgMutationPathParams, Omit<FetcherOptions<unknown, CreateIntegrationConfigOrgRequestBody>, 'url'> {
|
|
15
|
+
body: CreateIntegrationConfigOrgRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export declare function createIntegrationConfigOrg(props: CreateIntegrationConfigOrgProps): Promise<CreateIntegrationConfigOrgOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Create integration configuration at organization level
|
|
20
|
+
*/
|
|
21
|
+
export declare function useCreateIntegrationConfigOrgMutation(options?: Omit<UseMutationOptions<CreateIntegrationConfigOrgOkResponse, CreateIntegrationConfigOrgErrorResponse, CreateIntegrationConfigOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationConfigOrgOkResponse, ApierrorsErrorResponse, CreateIntegrationConfigOrgProps, 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 createIntegrationConfigOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create integration configuration at organization level
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateIntegrationConfigOrgMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createIntegrationConfigOrg(mutateProps), options);
|
|
14
|
+
}
|
package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigProjectMutation.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiCreateIntegrationConfigProjectRequest } from '../schemas/OpenapiCreateIntegrationConfigProjectRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface CreateIntegrationConfigProjectMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type CreateIntegrationConfigProjectRequestBody = OpenapiCreateIntegrationConfigProjectRequest;
|
|
13
|
+
export type CreateIntegrationConfigProjectOkResponse = ResponseWithPagination<TypesIntegrationConfig>;
|
|
14
|
+
export type CreateIntegrationConfigProjectErrorResponse = ApierrorsErrorResponse;
|
|
15
|
+
export interface CreateIntegrationConfigProjectProps extends CreateIntegrationConfigProjectMutationPathParams, Omit<FetcherOptions<unknown, CreateIntegrationConfigProjectRequestBody>, 'url'> {
|
|
16
|
+
body: CreateIntegrationConfigProjectRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function createIntegrationConfigProject(props: CreateIntegrationConfigProjectProps): Promise<CreateIntegrationConfigProjectOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Create integration configuration at project level
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateIntegrationConfigProjectMutation(options?: Omit<UseMutationOptions<CreateIntegrationConfigProjectOkResponse, CreateIntegrationConfigProjectErrorResponse, CreateIntegrationConfigProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationConfigProjectOkResponse, ApierrorsErrorResponse, CreateIntegrationConfigProjectProps, unknown>;
|
package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigProjectMutation.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 createIntegrationConfigProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create integration configuration at project level
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateIntegrationConfigProjectMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createIntegrationConfigProject(mutateProps), options);
|
|
14
|
+
}
|
package/dist/integration-manager/src/services/hooks/useGetAirbyteIntegrationConfigOrgQuery.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationconfigAirbyteIntegrationResponse } from '../schemas/IntegrationconfigAirbyteIntegrationResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetAirbyteIntegrationConfigOrgQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
integrationconfig_identifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetAirbyteIntegrationConfigOrgOkResponse = ResponseWithPagination<IntegrationconfigAirbyteIntegrationResponse>;
|
|
12
|
+
export type GetAirbyteIntegrationConfigOrgErrorResponse = ApierrorsErrorResponse;
|
|
13
|
+
export interface GetAirbyteIntegrationConfigOrgProps extends GetAirbyteIntegrationConfigOrgQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
14
|
+
}
|
|
15
|
+
export declare function getAirbyteIntegrationConfigOrg(props: GetAirbyteIntegrationConfigOrgProps): Promise<GetAirbyteIntegrationConfigOrgOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get Airbyte integration configuration at organization level
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGetAirbyteIntegrationConfigOrgQuery(props: GetAirbyteIntegrationConfigOrgProps, options?: Omit<UseQueryOptions<GetAirbyteIntegrationConfigOrgOkResponse, GetAirbyteIntegrationConfigOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAirbyteIntegrationConfigOrgOkResponse, ApierrorsErrorResponse>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getAirbyteIntegrationConfigOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs/airbyte/${props.integrationconfig_identifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Airbyte integration configuration at organization level
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAirbyteIntegrationConfigOrgQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getAirbyteIntegrationConfigOrg',
|
|
15
|
+
props.accountIdentifier,
|
|
16
|
+
props.orgIdentifier,
|
|
17
|
+
props.integrationconfig_identifier,
|
|
18
|
+
], ({ signal }) => getAirbyteIntegrationConfigOrg(Object.assign(Object.assign({}, props), { signal })), options);
|
|
19
|
+
}
|
package/dist/integration-manager/src/services/hooks/useGetAirbyteIntegrationConfigProjectQuery.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationconfigAirbyteIntegrationResponse } from '../schemas/IntegrationconfigAirbyteIntegrationResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetAirbyteIntegrationConfigProjectQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
integrationconfig_identifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetAirbyteIntegrationConfigProjectOkResponse = ResponseWithPagination<IntegrationconfigAirbyteIntegrationResponse>;
|
|
13
|
+
export type GetAirbyteIntegrationConfigProjectErrorResponse = ApierrorsErrorResponse;
|
|
14
|
+
export interface GetAirbyteIntegrationConfigProjectProps extends GetAirbyteIntegrationConfigProjectQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
15
|
+
}
|
|
16
|
+
export declare function getAirbyteIntegrationConfigProject(props: GetAirbyteIntegrationConfigProjectProps): Promise<GetAirbyteIntegrationConfigProjectOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get Airbyte integration configuration at project level
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetAirbyteIntegrationConfigProjectQuery(props: GetAirbyteIntegrationConfigProjectProps, options?: Omit<UseQueryOptions<GetAirbyteIntegrationConfigProjectOkResponse, GetAirbyteIntegrationConfigProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAirbyteIntegrationConfigProjectOkResponse, ApierrorsErrorResponse>;
|
package/dist/integration-manager/src/services/hooks/useGetAirbyteIntegrationConfigProjectQuery.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getAirbyteIntegrationConfigProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs/airbyte/${props.integrationconfig_identifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Airbyte integration configuration at project level
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAirbyteIntegrationConfigProjectQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getAirbyteIntegrationConfigProject',
|
|
15
|
+
props.accountIdentifier,
|
|
16
|
+
props.orgIdentifier,
|
|
17
|
+
props.projectIdentifier,
|
|
18
|
+
props.integrationconfig_identifier,
|
|
19
|
+
], ({ signal }) => getAirbyteIntegrationConfigProject(Object.assign(Object.assign({}, props), { signal })), options);
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetIntegrationConfigOrgQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
integrationconfig_identifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetIntegrationConfigOrgOkResponse = ResponseWithPagination<TypesIntegrationConfig>;
|
|
12
|
+
export type GetIntegrationConfigOrgErrorResponse = ApierrorsErrorResponse;
|
|
13
|
+
export interface GetIntegrationConfigOrgProps extends GetIntegrationConfigOrgQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
14
|
+
}
|
|
15
|
+
export declare function getIntegrationConfigOrg(props: GetIntegrationConfigOrgProps): Promise<GetIntegrationConfigOrgOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get integration configuration at organization level
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGetIntegrationConfigOrgQuery(props: GetIntegrationConfigOrgProps, options?: Omit<UseQueryOptions<GetIntegrationConfigOrgOkResponse, GetIntegrationConfigOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetIntegrationConfigOrgOkResponse, ApierrorsErrorResponse>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getIntegrationConfigOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs/${props.integrationconfig_identifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get integration configuration at organization level
|
|
11
|
+
*/
|
|
12
|
+
export function useGetIntegrationConfigOrgQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getIntegrationConfigOrg',
|
|
15
|
+
props.accountIdentifier,
|
|
16
|
+
props.orgIdentifier,
|
|
17
|
+
props.integrationconfig_identifier,
|
|
18
|
+
], ({ signal }) => getIntegrationConfigOrg(Object.assign(Object.assign({}, props), { signal })), options);
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetIntegrationConfigProjectQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
integrationconfig_identifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetIntegrationConfigProjectOkResponse = ResponseWithPagination<TypesIntegrationConfig>;
|
|
13
|
+
export type GetIntegrationConfigProjectErrorResponse = ApierrorsErrorResponse;
|
|
14
|
+
export interface GetIntegrationConfigProjectProps extends GetIntegrationConfigProjectQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
15
|
+
}
|
|
16
|
+
export declare function getIntegrationConfigProject(props: GetIntegrationConfigProjectProps): Promise<GetIntegrationConfigProjectOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get integration configuration at project level
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetIntegrationConfigProjectQuery(props: GetIntegrationConfigProjectProps, options?: Omit<UseQueryOptions<GetIntegrationConfigProjectOkResponse, GetIntegrationConfigProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetIntegrationConfigProjectOkResponse, ApierrorsErrorResponse>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getIntegrationConfigProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs/${props.integrationconfig_identifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get integration configuration at project level
|
|
11
|
+
*/
|
|
12
|
+
export function useGetIntegrationConfigProjectQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getIntegrationConfigProject',
|
|
15
|
+
props.accountIdentifier,
|
|
16
|
+
props.orgIdentifier,
|
|
17
|
+
props.projectIdentifier,
|
|
18
|
+
props.integrationconfig_identifier,
|
|
19
|
+
], ({ signal }) => getIntegrationConfigProject(Object.assign(Object.assign({}, props), { signal })), options);
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesListDefaultMappingFieldsResponse } from '../schemas/TypesListDefaultMappingFieldsResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListDefaultMappingFieldsQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ListDefaultMappingFieldsQueryQueryParams {
|
|
10
|
+
integration_type?: string;
|
|
11
|
+
kind?: string;
|
|
12
|
+
}
|
|
13
|
+
export type ListDefaultMappingFieldsOkResponse = ResponseWithPagination<TypesListDefaultMappingFieldsResponse>;
|
|
14
|
+
export type ListDefaultMappingFieldsErrorResponse = ApierrorsErrorResponse;
|
|
15
|
+
export interface ListDefaultMappingFieldsProps extends ListDefaultMappingFieldsQueryPathParams, Omit<FetcherOptions<ListDefaultMappingFieldsQueryQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: ListDefaultMappingFieldsQueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export declare function listDefaultMappingFields(props: ListDefaultMappingFieldsProps): Promise<ListDefaultMappingFieldsOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Returns fields from the default mapping for the given integration type. Query 'integration_type' is required. Only primary kinds are included. Only fields inside the mapping's metadata (properties.metadata) are returned. Response is mappings: an array of { kind, fields } where fields is a list of { field_name, display_name, description }. Optional query 'kind' filters to a single kind; when omitted, all primary kinds are returned.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useListDefaultMappingFieldsQuery(props: ListDefaultMappingFieldsProps, options?: Omit<UseQueryOptions<ListDefaultMappingFieldsOkResponse, ListDefaultMappingFieldsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListDefaultMappingFieldsOkResponse, ApierrorsErrorResponse>;
|
|
@@ -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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function listDefaultMappingFields(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration/default-mapping-fields`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns fields from the default mapping for the given integration type. Query 'integration_type' is required. Only primary kinds are included. Only fields inside the mapping's metadata (properties.metadata) are returned. Response is mappings: an array of { kind, fields } where fields is a list of { field_name, display_name, description }. Optional query 'kind' filters to a single kind; when omitted, all primary kinds are returned.
|
|
11
|
+
*/
|
|
12
|
+
export function useListDefaultMappingFieldsQuery(props, options) {
|
|
13
|
+
return useQuery(['listDefaultMappingFields', props.accountIdentifier, props.queryParams], ({ signal }) => listDefaultMappingFields(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesDefaultEntitySchema } from '../schemas/TypesDefaultEntitySchema';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListDefaultSchemasQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ListDefaultSchemasQueryQueryParams {
|
|
10
|
+
integration_type?: string;
|
|
11
|
+
kind?: string;
|
|
12
|
+
}
|
|
13
|
+
export type ListDefaultSchemasOkResponse = ResponseWithPagination<TypesDefaultEntitySchema>;
|
|
14
|
+
export type ListDefaultSchemasErrorResponse = ApierrorsErrorResponse;
|
|
15
|
+
export interface ListDefaultSchemasProps extends ListDefaultSchemasQueryPathParams, Omit<FetcherOptions<ListDefaultSchemasQueryQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: ListDefaultSchemasQueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export declare function listDefaultSchemas(props: ListDefaultSchemasProps): Promise<ListDefaultSchemasOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the default entity schema for the given integration type. Query 'integration_type' is required. Optional query 'kind' filters to a single kind.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useListDefaultSchemasQuery(props: ListDefaultSchemasProps, options?: Omit<UseQueryOptions<ListDefaultSchemasOkResponse, ListDefaultSchemasErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListDefaultSchemasOkResponse, ApierrorsErrorResponse>;
|
|
@@ -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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function listDefaultSchemas(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration/default-schemas`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the default entity schema for the given integration type. Query 'integration_type' is required. Optional query 'kind' filters to a single kind.
|
|
11
|
+
*/
|
|
12
|
+
export function useListDefaultSchemasQuery(props, options) {
|
|
13
|
+
return useQuery(['listDefaultSchemas', props.accountIdentifier, props.queryParams], ({ signal }) => listDefaultSchemas(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface ListIntegrationConfigsOrgQueryPathParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
orgIdentifier: string;
|
|
8
|
+
}
|
|
9
|
+
export type ListIntegrationConfigsOrgOkResponse = ResponseWithPagination<TypesIntegrationConfig[]>;
|
|
10
|
+
export type ListIntegrationConfigsOrgErrorResponse = unknown;
|
|
11
|
+
export interface ListIntegrationConfigsOrgProps extends ListIntegrationConfigsOrgQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
12
|
+
}
|
|
13
|
+
export declare function listIntegrationConfigsOrg(props: ListIntegrationConfigsOrgProps): Promise<ListIntegrationConfigsOrgOkResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* List integration configurations at organization level
|
|
16
|
+
*/
|
|
17
|
+
export declare function useListIntegrationConfigsOrgQuery(props: ListIntegrationConfigsOrgProps, options?: Omit<UseQueryOptions<ListIntegrationConfigsOrgOkResponse, ListIntegrationConfigsOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListIntegrationConfigsOrgOkResponse, 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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function listIntegrationConfigsOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List integration configurations at organization level
|
|
11
|
+
*/
|
|
12
|
+
export function useListIntegrationConfigsOrgQuery(props, options) {
|
|
13
|
+
return useQuery(['listIntegrationConfigsOrg', props.accountIdentifier, props.orgIdentifier], ({ signal }) => listIntegrationConfigsOrg(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/integration-manager/src/services/hooks/useListIntegrationConfigsProjectQuery.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface ListIntegrationConfigsProjectQueryPathParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
orgIdentifier: string;
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type ListIntegrationConfigsProjectOkResponse = ResponseWithPagination<TypesIntegrationConfig[]>;
|
|
11
|
+
export type ListIntegrationConfigsProjectErrorResponse = unknown;
|
|
12
|
+
export interface ListIntegrationConfigsProjectProps extends ListIntegrationConfigsProjectQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
13
|
+
}
|
|
14
|
+
export declare function listIntegrationConfigsProject(props: ListIntegrationConfigsProjectProps): Promise<ListIntegrationConfigsProjectOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* List integration configurations at project level
|
|
17
|
+
*/
|
|
18
|
+
export declare function useListIntegrationConfigsProjectQuery(props: ListIntegrationConfigsProjectProps, options?: Omit<UseQueryOptions<ListIntegrationConfigsProjectOkResponse, ListIntegrationConfigsProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListIntegrationConfigsProjectOkResponse, unknown>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function listIntegrationConfigsProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List integration configurations at project level
|
|
11
|
+
*/
|
|
12
|
+
export function useListIntegrationConfigsProjectQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'listIntegrationConfigsProject',
|
|
15
|
+
props.accountIdentifier,
|
|
16
|
+
props.orgIdentifier,
|
|
17
|
+
props.projectIdentifier,
|
|
18
|
+
], ({ signal }) => listIntegrationConfigsProject(Object.assign(Object.assign({}, props), { signal })), options);
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationconfigTriggerSyncResponse } from '../schemas/IntegrationconfigTriggerSyncResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface TriggerSyncOrgMutationPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
integrationconfig_identifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type TriggerSyncOrgOkResponse = ResponseWithPagination<IntegrationconfigTriggerSyncResponse>;
|
|
12
|
+
export type TriggerSyncOrgErrorResponse = ApierrorsErrorResponse;
|
|
13
|
+
export interface TriggerSyncOrgProps extends TriggerSyncOrgMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
14
|
+
}
|
|
15
|
+
export declare function triggerSyncOrg(props: TriggerSyncOrgProps): Promise<TriggerSyncOrgOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Trigger full sync for integration at organization level
|
|
18
|
+
*/
|
|
19
|
+
export declare function useTriggerSyncOrgMutation(options?: Omit<UseMutationOptions<TriggerSyncOrgOkResponse, TriggerSyncOrgErrorResponse, TriggerSyncOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TriggerSyncOrgOkResponse, ApierrorsErrorResponse, TriggerSyncOrgProps, 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 triggerSyncOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs/${props.integrationconfig_identifier}/sync`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Trigger full sync for integration at organization level
|
|
11
|
+
*/
|
|
12
|
+
export function useTriggerSyncOrgMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => triggerSyncOrg(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationconfigTriggerSyncResponse } from '../schemas/IntegrationconfigTriggerSyncResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface TriggerSyncProjectMutationPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
integrationconfig_identifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type TriggerSyncProjectOkResponse = ResponseWithPagination<IntegrationconfigTriggerSyncResponse>;
|
|
13
|
+
export type TriggerSyncProjectErrorResponse = ApierrorsErrorResponse;
|
|
14
|
+
export interface TriggerSyncProjectProps extends TriggerSyncProjectMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
15
|
+
}
|
|
16
|
+
export declare function triggerSyncProject(props: TriggerSyncProjectProps): Promise<TriggerSyncProjectOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Trigger full sync for integration at project level
|
|
19
|
+
*/
|
|
20
|
+
export declare function useTriggerSyncProjectMutation(options?: Omit<UseMutationOptions<TriggerSyncProjectOkResponse, TriggerSyncProjectErrorResponse, TriggerSyncProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TriggerSyncProjectOkResponse, ApierrorsErrorResponse, TriggerSyncProjectProps, 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 triggerSyncProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs/${props.integrationconfig_identifier}/sync`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Trigger full sync for integration at project level
|
|
11
|
+
*/
|
|
12
|
+
export function useTriggerSyncProjectMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => triggerSyncProject(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationconfigAirbyteIntegrationResponse } from '../schemas/IntegrationconfigAirbyteIntegrationResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiUpdateAirbyteIntegrationConfigOrgRequest } from '../schemas/OpenapiUpdateAirbyteIntegrationConfigOrgRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpdateAirbyteIntegrationConfigOrgMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
integrationconfig_identifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type UpdateAirbyteIntegrationConfigOrgRequestBody = OpenapiUpdateAirbyteIntegrationConfigOrgRequest;
|
|
13
|
+
export type UpdateAirbyteIntegrationConfigOrgOkResponse = ResponseWithPagination<IntegrationconfigAirbyteIntegrationResponse>;
|
|
14
|
+
export type UpdateAirbyteIntegrationConfigOrgErrorResponse = ApierrorsErrorResponse;
|
|
15
|
+
export interface UpdateAirbyteIntegrationConfigOrgProps extends UpdateAirbyteIntegrationConfigOrgMutationPathParams, Omit<FetcherOptions<unknown, UpdateAirbyteIntegrationConfigOrgRequestBody>, 'url'> {
|
|
16
|
+
body: UpdateAirbyteIntegrationConfigOrgRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function updateAirbyteIntegrationConfigOrg(props: UpdateAirbyteIntegrationConfigOrgProps): Promise<UpdateAirbyteIntegrationConfigOrgOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Update Airbyte integration configuration at organization level
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateAirbyteIntegrationConfigOrgMutation(options?: Omit<UseMutationOptions<UpdateAirbyteIntegrationConfigOrgOkResponse, UpdateAirbyteIntegrationConfigOrgErrorResponse, UpdateAirbyteIntegrationConfigOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateAirbyteIntegrationConfigOrgOkResponse, ApierrorsErrorResponse, UpdateAirbyteIntegrationConfigOrgProps, unknown>;
|
package/dist/integration-manager/src/services/hooks/useUpdateAirbyteIntegrationConfigOrgMutation.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 updateAirbyteIntegrationConfigOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs/airbyte/${props.integrationconfig_identifier}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update Airbyte integration configuration at organization level
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateAirbyteIntegrationConfigOrgMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateAirbyteIntegrationConfigOrg(mutateProps), options);
|
|
14
|
+
}
|