@harnessio/react-integration-manager-client 0.6.5 → 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.
Files changed (22) hide show
  1. package/dist/integration-manager/src/services/hooks/useCountIntegrationConfigsOrgQuery.d.ts +35 -0
  2. package/dist/integration-manager/src/services/hooks/useCountIntegrationConfigsOrgQuery.js +14 -0
  3. package/dist/integration-manager/src/services/hooks/useCountIntegrationConfigsProjectQuery.d.ts +36 -0
  4. package/dist/integration-manager/src/services/hooks/useCountIntegrationConfigsProjectQuery.js +20 -0
  5. package/dist/integration-manager/src/services/hooks/useCountIntegrationConfigsQuery.d.ts +34 -0
  6. package/dist/integration-manager/src/services/hooks/useCountIntegrationConfigsQuery.js +14 -0
  7. package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigMutation.d.ts +1 -1
  8. package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigMutation.js +1 -1
  9. package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigOrgMutation.d.ts +1 -1
  10. package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigOrgMutation.js +1 -1
  11. package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigProjectMutation.d.ts +1 -1
  12. package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigProjectMutation.js +1 -1
  13. package/dist/integration-manager/src/services/index.d.ts +9 -0
  14. package/dist/integration-manager/src/services/index.js +3 -0
  15. package/dist/integration-manager/src/services/schemas/TypesDefaultKind.d.ts +2 -0
  16. package/dist/integration-manager/src/services/schemas/TypesIntegrationConfigCountResponse.d.ts +7 -0
  17. package/dist/integration-manager/src/services/schemas/TypesIntegrationConfigCountResponse.js +4 -0
  18. package/dist/integration-manager/src/services/schemas/TypesLayout.d.ts +4 -0
  19. package/dist/integration-manager/src/services/schemas/TypesLayout.js +1 -0
  20. package/dist/integration-manager/src/services/schemas/TypesLayoutColumn.d.ts +5 -0
  21. package/dist/integration-manager/src/services/schemas/TypesLayoutColumn.js +4 -0
  22. package/package.json +1 -1
@@ -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
+ }
@@ -15,6 +15,6 @@ export interface CreateIntegrationConfigProps extends CreateIntegrationConfigMut
15
15
  }
16
16
  export declare function createIntegrationConfig(props: CreateIntegrationConfigProps): Promise<CreateIntegrationConfigOkResponse>;
17
17
  /**
18
- * Creates a new integration configuration. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'no_auth' or 'hmac_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; no_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhook/{16-char-hex}', which external systems POST payloads to.
18
+ * Creates a new integration configuration. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'hmac_auth' or 'jwt_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; jwt_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhooks/{16-char-hex}', which external systems POST payloads to.
19
19
  */
20
20
  export declare function useCreateIntegrationConfigMutation(options?: Omit<UseMutationOptions<CreateIntegrationConfigOkResponse, CreateIntegrationConfigErrorResponse, CreateIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationConfigOkResponse, ApierrorsErrorResponse, CreateIntegrationConfigProps, unknown>;
@@ -7,7 +7,7 @@ export function createIntegrationConfig(props) {
7
7
  return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Creates a new integration configuration. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'no_auth' or 'hmac_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; no_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhook/{16-char-hex}', which external systems POST payloads to.
10
+ * Creates a new integration configuration. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'hmac_auth' or 'jwt_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; jwt_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhooks/{16-char-hex}', which external systems POST payloads to.
11
11
  */
12
12
  export function useCreateIntegrationConfigMutation(options) {
13
13
  return useMutation((mutateProps) => createIntegrationConfig(mutateProps), options);
@@ -16,6 +16,6 @@ export interface CreateIntegrationConfigOrgProps extends CreateIntegrationConfig
16
16
  }
17
17
  export declare function createIntegrationConfigOrg(props: CreateIntegrationConfigOrgProps): Promise<CreateIntegrationConfigOrgOkResponse>;
18
18
  /**
19
- * Creates a new integration configuration at organization level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'no_auth' or 'hmac_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; no_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhook/{16-char-hex}', which external systems POST payloads to.
19
+ * Creates a new integration configuration at organization level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'hmac_auth' or 'jwt_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; jwt_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhooks/{16-char-hex}', which external systems POST payloads to.
20
20
  */
21
21
  export declare function useCreateIntegrationConfigOrgMutation(options?: Omit<UseMutationOptions<CreateIntegrationConfigOrgOkResponse, CreateIntegrationConfigOrgErrorResponse, CreateIntegrationConfigOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationConfigOrgOkResponse, ApierrorsErrorResponse, CreateIntegrationConfigOrgProps, unknown>;
@@ -7,7 +7,7 @@ export function createIntegrationConfigOrg(props) {
7
7
  return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Creates a new integration configuration at organization level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'no_auth' or 'hmac_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; no_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhook/{16-char-hex}', which external systems POST payloads to.
10
+ * Creates a new integration configuration at organization level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'hmac_auth' or 'jwt_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; jwt_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhooks/{16-char-hex}', which external systems POST payloads to.
11
11
  */
12
12
  export function useCreateIntegrationConfigOrgMutation(options) {
13
13
  return useMutation((mutateProps) => createIntegrationConfigOrg(mutateProps), options);
@@ -17,6 +17,6 @@ export interface CreateIntegrationConfigProjectProps extends CreateIntegrationCo
17
17
  }
18
18
  export declare function createIntegrationConfigProject(props: CreateIntegrationConfigProjectProps): Promise<CreateIntegrationConfigProjectOkResponse>;
19
19
  /**
20
- * Creates a new integration configuration at project level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'no_auth' or 'hmac_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; no_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhook/{16-char-hex}', which external systems POST payloads to.
20
+ * Creates a new integration configuration at project level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'hmac_auth' or 'jwt_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; jwt_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhooks/{16-char-hex}', which external systems POST payloads to.
21
21
  */
22
22
  export declare function useCreateIntegrationConfigProjectMutation(options?: Omit<UseMutationOptions<CreateIntegrationConfigProjectOkResponse, CreateIntegrationConfigProjectErrorResponse, CreateIntegrationConfigProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationConfigProjectOkResponse, ApierrorsErrorResponse, CreateIntegrationConfigProjectProps, unknown>;
@@ -7,7 +7,7 @@ export function createIntegrationConfigProject(props) {
7
7
  return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Creates a new integration configuration at project level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'no_auth' or 'hmac_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; no_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhook/{16-char-hex}', which external systems POST payloads to.
10
+ * Creates a new integration configuration at project level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'hmac_auth' or 'jwt_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; jwt_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhooks/{16-char-hex}', which external systems POST payloads to.
11
11
  */
12
12
  export function useCreateIntegrationConfigProjectMutation(options) {
13
13
  return useMutation((mutateProps) => createIntegrationConfigProject(mutateProps), options);
@@ -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,11 +276,14 @@ 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';
276
283
  export type { TypesKindMappingFields } from './schemas/TypesKindMappingFields';
277
284
  export type { TypesLastSyncInfo } from './schemas/TypesLastSyncInfo';
285
+ export type { TypesLayout } from './schemas/TypesLayout';
286
+ export type { TypesLayoutColumn } from './schemas/TypesLayoutColumn';
278
287
  export type { TypesListDefaultMappingFieldsResponse } from './schemas/TypesListDefaultMappingFieldsResponse';
279
288
  export type { TypesMappingConfig } from './schemas/TypesMappingConfig';
280
289
  export type { TypesMappingSpec } from './schemas/TypesMappingSpec';
@@ -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';
@@ -1,6 +1,7 @@
1
1
  import type { TypesAirbyteStream } from '../schemas/TypesAirbyteStream';
2
2
  import type { TypesDefaultAirbyteStreamSettings } from '../schemas/TypesDefaultAirbyteStreamSettings';
3
3
  import type { TimeDuration } from '../schemas/TimeDuration';
4
+ import type { TypesLayout } from '../schemas/TypesLayout';
4
5
  import type { TypesSchemaMapping } from '../schemas/TypesSchemaMapping';
5
6
  export interface TypesDefaultKind {
6
7
  airbyte_stream?: TypesAirbyteStream;
@@ -10,6 +11,7 @@ export interface TypesDefaultKind {
10
11
  fields?: {
11
12
  [key: string]: any;
12
13
  } | null;
14
+ layout?: TypesLayout;
13
15
  optional_secondary?: boolean;
14
16
  primary?: boolean;
15
17
  primary_kind?: string;
@@ -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 {};
@@ -0,0 +1,4 @@
1
+ import type { TypesLayoutColumn } from '../schemas/TypesLayoutColumn';
2
+ export interface TypesLayout {
3
+ columns?: TypesLayoutColumn[];
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface TypesLayoutColumn {
2
+ field?: string;
3
+ name?: string;
4
+ required?: boolean;
5
+ }
@@ -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.5",
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",