@harnessio/react-integration-manager-client 0.6.6 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,35 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TypesIntegrationConfigCountResponse } from '../schemas/TypesIntegrationConfigCountResponse';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface CountIntegrationConfigsOrgQueryPathParams {
8
+ accountIdentifier: string;
9
+ orgIdentifier: string;
10
+ }
11
+ export interface CountIntegrationConfigsOrgQueryQueryParams {
12
+ integration_type: EnumIntegrationType;
13
+ /**
14
+ * Optional entity kind(s) to count individually (repeatable). When provided, the response includes count_per_kind with a count for each requested kind alongside the total count.
15
+ */
16
+ kind?: string;
17
+ /**
18
+ * When true, only counts enabled (active) integration configs. Defaults to false — counts all non-deleted configs regardless of enabled state.
19
+ */
20
+ include_enabled?: boolean;
21
+ /**
22
+ * When true, includes integrations defined at any ancestor scope of the caller's spacePath (e.g. for 'acc/org/proj' also counts integrations at 'acc/org' and 'acc'). Defaults to false — only counts integrations at the current space are returned.
23
+ */
24
+ allow_parent_scope?: boolean;
25
+ }
26
+ export type CountIntegrationConfigsOrgOkResponse = ResponseWithPagination<TypesIntegrationConfigCountResponse>;
27
+ export type CountIntegrationConfigsOrgErrorResponse = ApierrorsErrorResponse;
28
+ export interface CountIntegrationConfigsOrgProps extends CountIntegrationConfigsOrgQueryPathParams, Omit<FetcherOptions<CountIntegrationConfigsOrgQueryQueryParams, unknown>, 'url'> {
29
+ queryParams: CountIntegrationConfigsOrgQueryQueryParams;
30
+ }
31
+ export declare function countIntegrationConfigsOrg(props: CountIntegrationConfigsOrgProps): Promise<CountIntegrationConfigsOrgOkResponse>;
32
+ /**
33
+ * Count integration configurations at organization level
34
+ */
35
+ export declare function useCountIntegrationConfigsOrgQuery(props: CountIntegrationConfigsOrgProps, options?: Omit<UseQueryOptions<CountIntegrationConfigsOrgOkResponse, CountIntegrationConfigsOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CountIntegrationConfigsOrgOkResponse, 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 countIntegrationConfigsOrg(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs/count`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Count integration configurations at organization level
11
+ */
12
+ export function useCountIntegrationConfigsOrgQuery(props, options) {
13
+ return useQuery(['countIntegrationConfigsOrg', props.accountIdentifier, props.orgIdentifier, props.queryParams], ({ signal }) => countIntegrationConfigsOrg(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,36 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TypesIntegrationConfigCountResponse } from '../schemas/TypesIntegrationConfigCountResponse';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface CountIntegrationConfigsProjectQueryPathParams {
8
+ accountIdentifier: string;
9
+ orgIdentifier: string;
10
+ projectIdentifier: string;
11
+ }
12
+ export interface CountIntegrationConfigsProjectQueryQueryParams {
13
+ integration_type: EnumIntegrationType;
14
+ /**
15
+ * Optional entity kind(s) to count individually (repeatable). When provided, the response includes count_per_kind with a count for each requested kind alongside the total count.
16
+ */
17
+ kind?: string;
18
+ /**
19
+ * When true, only counts enabled (active) integration configs. Defaults to false — counts all non-deleted configs regardless of enabled state.
20
+ */
21
+ include_enabled?: boolean;
22
+ /**
23
+ * When true, includes integrations defined at any ancestor scope of the caller's spacePath (e.g. for 'acc/org/proj' also counts integrations at 'acc/org' and 'acc'). Defaults to false — only counts integrations at the current space are returned.
24
+ */
25
+ allow_parent_scope?: boolean;
26
+ }
27
+ export type CountIntegrationConfigsProjectOkResponse = ResponseWithPagination<TypesIntegrationConfigCountResponse>;
28
+ export type CountIntegrationConfigsProjectErrorResponse = ApierrorsErrorResponse;
29
+ export interface CountIntegrationConfigsProjectProps extends CountIntegrationConfigsProjectQueryPathParams, Omit<FetcherOptions<CountIntegrationConfigsProjectQueryQueryParams, unknown>, 'url'> {
30
+ queryParams: CountIntegrationConfigsProjectQueryQueryParams;
31
+ }
32
+ export declare function countIntegrationConfigsProject(props: CountIntegrationConfigsProjectProps): Promise<CountIntegrationConfigsProjectOkResponse>;
33
+ /**
34
+ * Count integration configurations at project level
35
+ */
36
+ export declare function useCountIntegrationConfigsProjectQuery(props: CountIntegrationConfigsProjectProps, options?: Omit<UseQueryOptions<CountIntegrationConfigsProjectOkResponse, CountIntegrationConfigsProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CountIntegrationConfigsProjectOkResponse, 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 countIntegrationConfigsProject(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs/count`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Count integration configurations at project level
11
+ */
12
+ export function useCountIntegrationConfigsProjectQuery(props, options) {
13
+ return useQuery([
14
+ 'countIntegrationConfigsProject',
15
+ props.accountIdentifier,
16
+ props.orgIdentifier,
17
+ props.projectIdentifier,
18
+ props.queryParams,
19
+ ], ({ signal }) => countIntegrationConfigsProject(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }
@@ -0,0 +1,34 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TypesIntegrationConfigCountResponse } from '../schemas/TypesIntegrationConfigCountResponse';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface CountIntegrationConfigsQueryPathParams {
8
+ accountIdentifier: string;
9
+ }
10
+ export interface CountIntegrationConfigsQueryQueryParams {
11
+ integration_type: EnumIntegrationType;
12
+ /**
13
+ * Optional entity kind(s) to count individually (repeatable). When provided, the response includes count_per_kind with a count for each requested kind alongside the total count.
14
+ */
15
+ kind?: string;
16
+ /**
17
+ * When true, only counts enabled (active) integration configs. Defaults to false — counts all non-deleted configs regardless of enabled state.
18
+ */
19
+ include_enabled?: boolean;
20
+ /**
21
+ * When true, includes integrations defined at any ancestor scope of the caller's spacePath (e.g. for 'acc/org/proj' also counts integrations at 'acc/org' and 'acc'). Defaults to false — only counts integrations at the current space are returned.
22
+ */
23
+ allow_parent_scope?: boolean;
24
+ }
25
+ export type CountIntegrationConfigsOkResponse = ResponseWithPagination<TypesIntegrationConfigCountResponse>;
26
+ export type CountIntegrationConfigsErrorResponse = ApierrorsErrorResponse;
27
+ export interface CountIntegrationConfigsProps extends CountIntegrationConfigsQueryPathParams, Omit<FetcherOptions<CountIntegrationConfigsQueryQueryParams, unknown>, 'url'> {
28
+ queryParams: CountIntegrationConfigsQueryQueryParams;
29
+ }
30
+ export declare function countIntegrationConfigs(props: CountIntegrationConfigsProps): Promise<CountIntegrationConfigsOkResponse>;
31
+ /**
32
+ * Count integration configurations
33
+ */
34
+ export declare function useCountIntegrationConfigsQuery(props: CountIntegrationConfigsProps, options?: Omit<UseQueryOptions<CountIntegrationConfigsOkResponse, CountIntegrationConfigsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CountIntegrationConfigsOkResponse, 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 countIntegrationConfigs(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/count`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Count integration configurations
11
+ */
12
+ export function useCountIntegrationConfigsQuery(props, options) {
13
+ return useQuery(['countIntegrationConfigs', props.accountIdentifier, props.queryParams], ({ signal }) => countIntegrationConfigs(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -1,4 +1,10 @@
1
1
  export type { GetPathParamsType, ResponseWithPagination } from './helpers';
2
+ export type { CountIntegrationConfigsOrgErrorResponse, CountIntegrationConfigsOrgOkResponse, CountIntegrationConfigsOrgProps, CountIntegrationConfigsOrgQueryPathParams, CountIntegrationConfigsOrgQueryQueryParams, } from './hooks/useCountIntegrationConfigsOrgQuery';
3
+ export { countIntegrationConfigsOrg, useCountIntegrationConfigsOrgQuery, } from './hooks/useCountIntegrationConfigsOrgQuery';
4
+ export type { CountIntegrationConfigsProjectErrorResponse, CountIntegrationConfigsProjectOkResponse, CountIntegrationConfigsProjectProps, CountIntegrationConfigsProjectQueryPathParams, CountIntegrationConfigsProjectQueryQueryParams, } from './hooks/useCountIntegrationConfigsProjectQuery';
5
+ export { countIntegrationConfigsProject, useCountIntegrationConfigsProjectQuery, } from './hooks/useCountIntegrationConfigsProjectQuery';
6
+ export type { CountIntegrationConfigsErrorResponse, CountIntegrationConfigsOkResponse, CountIntegrationConfigsProps, CountIntegrationConfigsQueryPathParams, CountIntegrationConfigsQueryQueryParams, } from './hooks/useCountIntegrationConfigsQuery';
7
+ export { countIntegrationConfigs, useCountIntegrationConfigsQuery, } from './hooks/useCountIntegrationConfigsQuery';
2
8
  export type { CreateAgentErrorResponse, CreateAgentMutationPathParams, CreateAgentOkResponse, CreateAgentProps, CreateAgentRequestBody, } from './hooks/useCreateAgentMutation';
3
9
  export { createAgent, useCreateAgentMutation } from './hooks/useCreateAgentMutation';
4
10
  export type { CreateAirbyteIntegrationConfigErrorResponse, CreateAirbyteIntegrationConfigMutationPathParams, CreateAirbyteIntegrationConfigOkResponse, CreateAirbyteIntegrationConfigProps, CreateAirbyteIntegrationConfigRequestBody, } from './hooks/useCreateAirbyteIntegrationConfigMutation';
@@ -270,6 +276,7 @@ export type { TypesHarnessComponentSettings } from './schemas/TypesHarnessCompon
270
276
  export type { TypesIdpSubscription } from './schemas/TypesIdpSubscription';
271
277
  export type { TypesIntegrationAgent } from './schemas/TypesIntegrationAgent';
272
278
  export type { TypesIntegrationConfig } from './schemas/TypesIntegrationConfig';
279
+ export type { TypesIntegrationConfigCountResponse } from './schemas/TypesIntegrationConfigCountResponse';
273
280
  export type { TypesJsonSchema } from './schemas/TypesJsonSchema';
274
281
  export type { TypesJsonSchemaType } from './schemas/TypesJsonSchemaType';
275
282
  export type { TypesK8sConnectorSettings } from './schemas/TypesK8sConnectorSettings';
@@ -1,3 +1,6 @@
1
+ export { countIntegrationConfigsOrg, useCountIntegrationConfigsOrgQuery, } from './hooks/useCountIntegrationConfigsOrgQuery';
2
+ export { countIntegrationConfigsProject, useCountIntegrationConfigsProjectQuery, } from './hooks/useCountIntegrationConfigsProjectQuery';
3
+ export { countIntegrationConfigs, useCountIntegrationConfigsQuery, } from './hooks/useCountIntegrationConfigsQuery';
1
4
  export { createAgent, useCreateAgentMutation } from './hooks/useCreateAgentMutation';
2
5
  export { createAirbyteIntegrationConfig, useCreateAirbyteIntegrationConfigMutation, } from './hooks/useCreateAirbyteIntegrationConfigMutation';
3
6
  export { createAirbyteIntegrationConfigOrg, useCreateAirbyteIntegrationConfigOrgMutation, } from './hooks/useCreateAirbyteIntegrationConfigOrgMutation';
@@ -0,0 +1,7 @@
1
+ export interface TypesIntegrationConfigCountResponse {
2
+ count?: number;
3
+ count_per_kind?: {
4
+ [key: string]: number;
5
+ };
6
+ integration_type?: string;
7
+ }
@@ -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.6.6",
3
+ "version": "0.7.0",
4
4
  "description": "Harness React integration manager client - Integration Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",