@harnessio/react-integration-manager-client 0.4.14 → 0.4.16

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 (23) hide show
  1. package/dist/integration-manager/src/services/hooks/useListIntegrationEventsOrgQuery.d.ts +69 -0
  2. package/dist/integration-manager/src/services/hooks/useListIntegrationEventsOrgQuery.js +39 -0
  3. package/dist/integration-manager/src/services/hooks/useListIntegrationEventsProjectQuery.d.ts +70 -0
  4. package/dist/integration-manager/src/services/hooks/useListIntegrationEventsProjectQuery.js +40 -0
  5. package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaMutation.d.ts +20 -0
  6. package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaMutation.js +14 -0
  7. package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaOrgMutation.d.ts +21 -0
  8. package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaOrgMutation.js +14 -0
  9. package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaProjectMutation.d.ts +22 -0
  10. package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaProjectMutation.js +14 -0
  11. package/dist/integration-manager/src/services/index.d.ts +15 -0
  12. package/dist/integration-manager/src/services/index.js +5 -0
  13. package/dist/integration-manager/src/services/schemas/IntegrationconfigSchemaValidationError.d.ts +4 -0
  14. package/dist/integration-manager/src/services/schemas/IntegrationconfigSchemaValidationError.js +4 -0
  15. package/dist/integration-manager/src/services/schemas/IntegrationconfigValidateCustomSchemaResponse.d.ts +6 -0
  16. package/dist/integration-manager/src/services/schemas/IntegrationconfigValidateCustomSchemaResponse.js +1 -0
  17. package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaOrgRequest.d.ts +5 -0
  18. package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaOrgRequest.js +4 -0
  19. package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaProjectRequest.d.ts +5 -0
  20. package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaProjectRequest.js +4 -0
  21. package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaRequest.d.ts +5 -0
  22. package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaRequest.js +4 -0
  23. package/package.json +1 -1
@@ -0,0 +1,69 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { IntegrationeventIntegrationEventResponse } from '../schemas/IntegrationeventIntegrationEventResponse';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListIntegrationEventsOrgQueryPathParams {
7
+ accountIdentifier: string;
8
+ orgIdentifier: string;
9
+ integrationconfig_identifier: string;
10
+ }
11
+ export interface ListIntegrationEventsOrgQueryQueryParams {
12
+ /**
13
+ * Filter by one or more event types (repeatable)
14
+ */
15
+ event_type?: Array<'entity_auto_import' | 'entity_manual_import' | 'entity_unlinked' | 'integration_created' | 'integration_disabled' | 'integration_enabled' | 'integration_updated' | 'sync_run'>;
16
+ /**
17
+ * Filter by one or more UI status values (repeatable)
18
+ */
19
+ status?: Array<'FAILED' | 'PARTIAL_SUCCESS' | 'RUNNING' | 'SUCCESS'>;
20
+ /**
21
+ * Sort field (default: updated_at)
22
+ * @default "updated_at"
23
+ */
24
+ sort?: 'created_at' | 'updated_at';
25
+ /**
26
+ * Sort order (default: desc)
27
+ * @default "desc"
28
+ */
29
+ order?: 'asc' | 'desc';
30
+ /**
31
+ * Page number, 0-based (default: 0)
32
+ * @default 0
33
+ */
34
+ page?: number;
35
+ /**
36
+ * Number of items per page (default: 20, max: 100)
37
+ * @default 20
38
+ */
39
+ limit?: number;
40
+ }
41
+ export type ListIntegrationEventsOrgOkResponse = ResponseWithPagination<IntegrationeventIntegrationEventResponse[]>;
42
+ export type ListIntegrationEventsOrgErrorResponse = ApierrorsErrorResponse;
43
+ export interface ListIntegrationEventsOrgProps extends ListIntegrationEventsOrgQueryPathParams, Omit<FetcherOptions<ListIntegrationEventsOrgQueryQueryParams, unknown>, 'url'> {
44
+ queryParams: ListIntegrationEventsOrgQueryQueryParams;
45
+ }
46
+ export declare function listIntegrationEventsOrg(props: ListIntegrationEventsOrgProps): Promise<ListIntegrationEventsOrgOkResponse>;
47
+ /**
48
+ * Retrieves a paginated list of integration lifecycle events for a specific integration at organization scope.
49
+ * Supports filtering by event_type and status (both repeatable query params), with
50
+ * customizable sorting and pagination. Pagination metadata is included in response
51
+ * headers (x-total-elements, x-page-number, x-page-size, x-total-pages).
52
+ *
53
+ * Event types:
54
+ * - integration_created: Integration was created
55
+ * - integration_updated: Integration configuration was modified
56
+ * - integration_enabled: Integration was enabled
57
+ * - integration_disabled: Integration was disabled
58
+ * - sync_run: Sync execution lifecycle (SCHEDULED -> SUBMITTED -> RUNNING -> COMPLETED/FAILED)
59
+ * - entity_auto_import: Entities were auto-imported during sync
60
+ * - entity_manual_import: Entities were manually imported (subscribed)
61
+ * - entity_unlinked: Entities were unlinked (unsubscribed)
62
+ *
63
+ * UI Status values:
64
+ * - SUCCESS: Operation completed successfully (maps to COMPLETED, SUCCESS)
65
+ * - FAILED: Operation failed (maps to FAILED, STALE, SUPERSEDED)
66
+ * - RUNNING: Operation in progress (maps to SCHEDULED, SUBMITTED, RUNNING)
67
+ * - PARTIAL_SUCCESS: Operation completed with partial success
68
+ */
69
+ export declare function useListIntegrationEventsOrgQuery(props: ListIntegrationEventsOrgProps, options?: Omit<UseQueryOptions<ListIntegrationEventsOrgOkResponse, ListIntegrationEventsOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListIntegrationEventsOrgOkResponse, ApierrorsErrorResponse>;
@@ -0,0 +1,39 @@
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 listIntegrationEventsOrg(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs/${props.integrationconfig_identifier}/events`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieves a paginated list of integration lifecycle events for a specific integration at organization scope.
11
+ * Supports filtering by event_type and status (both repeatable query params), with
12
+ * customizable sorting and pagination. Pagination metadata is included in response
13
+ * headers (x-total-elements, x-page-number, x-page-size, x-total-pages).
14
+ *
15
+ * Event types:
16
+ * - integration_created: Integration was created
17
+ * - integration_updated: Integration configuration was modified
18
+ * - integration_enabled: Integration was enabled
19
+ * - integration_disabled: Integration was disabled
20
+ * - sync_run: Sync execution lifecycle (SCHEDULED -> SUBMITTED -> RUNNING -> COMPLETED/FAILED)
21
+ * - entity_auto_import: Entities were auto-imported during sync
22
+ * - entity_manual_import: Entities were manually imported (subscribed)
23
+ * - entity_unlinked: Entities were unlinked (unsubscribed)
24
+ *
25
+ * UI Status values:
26
+ * - SUCCESS: Operation completed successfully (maps to COMPLETED, SUCCESS)
27
+ * - FAILED: Operation failed (maps to FAILED, STALE, SUPERSEDED)
28
+ * - RUNNING: Operation in progress (maps to SCHEDULED, SUBMITTED, RUNNING)
29
+ * - PARTIAL_SUCCESS: Operation completed with partial success
30
+ */
31
+ export function useListIntegrationEventsOrgQuery(props, options) {
32
+ return useQuery([
33
+ 'listIntegrationEventsOrg',
34
+ props.accountIdentifier,
35
+ props.orgIdentifier,
36
+ props.integrationconfig_identifier,
37
+ props.queryParams,
38
+ ], ({ signal }) => listIntegrationEventsOrg(Object.assign(Object.assign({}, props), { signal })), options);
39
+ }
@@ -0,0 +1,70 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { IntegrationeventIntegrationEventResponse } from '../schemas/IntegrationeventIntegrationEventResponse';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListIntegrationEventsProjectQueryPathParams {
7
+ accountIdentifier: string;
8
+ orgIdentifier: string;
9
+ projectIdentifier: string;
10
+ integrationconfig_identifier: string;
11
+ }
12
+ export interface ListIntegrationEventsProjectQueryQueryParams {
13
+ /**
14
+ * Filter by one or more event types (repeatable)
15
+ */
16
+ event_type?: Array<'entity_auto_import' | 'entity_manual_import' | 'entity_unlinked' | 'integration_created' | 'integration_disabled' | 'integration_enabled' | 'integration_updated' | 'sync_run'>;
17
+ /**
18
+ * Filter by one or more UI status values (repeatable)
19
+ */
20
+ status?: Array<'FAILED' | 'PARTIAL_SUCCESS' | 'RUNNING' | 'SUCCESS'>;
21
+ /**
22
+ * Sort field (default: updated_at)
23
+ * @default "updated_at"
24
+ */
25
+ sort?: 'created_at' | 'updated_at';
26
+ /**
27
+ * Sort order (default: desc)
28
+ * @default "desc"
29
+ */
30
+ order?: 'asc' | 'desc';
31
+ /**
32
+ * Page number, 0-based (default: 0)
33
+ * @default 0
34
+ */
35
+ page?: number;
36
+ /**
37
+ * Number of items per page (default: 20, max: 100)
38
+ * @default 20
39
+ */
40
+ limit?: number;
41
+ }
42
+ export type ListIntegrationEventsProjectOkResponse = ResponseWithPagination<IntegrationeventIntegrationEventResponse[]>;
43
+ export type ListIntegrationEventsProjectErrorResponse = ApierrorsErrorResponse;
44
+ export interface ListIntegrationEventsProjectProps extends ListIntegrationEventsProjectQueryPathParams, Omit<FetcherOptions<ListIntegrationEventsProjectQueryQueryParams, unknown>, 'url'> {
45
+ queryParams: ListIntegrationEventsProjectQueryQueryParams;
46
+ }
47
+ export declare function listIntegrationEventsProject(props: ListIntegrationEventsProjectProps): Promise<ListIntegrationEventsProjectOkResponse>;
48
+ /**
49
+ * Retrieves a paginated list of integration lifecycle events for a specific integration at project scope.
50
+ * Supports filtering by event_type and status (both repeatable query params), with
51
+ * customizable sorting and pagination. Pagination metadata is included in response
52
+ * headers (x-total-elements, x-page-number, x-page-size, x-total-pages).
53
+ *
54
+ * Event types:
55
+ * - integration_created: Integration was created
56
+ * - integration_updated: Integration configuration was modified
57
+ * - integration_enabled: Integration was enabled
58
+ * - integration_disabled: Integration was disabled
59
+ * - sync_run: Sync execution lifecycle (SCHEDULED -> SUBMITTED -> RUNNING -> COMPLETED/FAILED)
60
+ * - entity_auto_import: Entities were auto-imported during sync
61
+ * - entity_manual_import: Entities were manually imported (subscribed)
62
+ * - entity_unlinked: Entities were unlinked (unsubscribed)
63
+ *
64
+ * UI Status values:
65
+ * - SUCCESS: Operation completed successfully (maps to COMPLETED, SUCCESS)
66
+ * - FAILED: Operation failed (maps to FAILED, STALE, SUPERSEDED)
67
+ * - RUNNING: Operation in progress (maps to SCHEDULED, SUBMITTED, RUNNING)
68
+ * - PARTIAL_SUCCESS: Operation completed with partial success
69
+ */
70
+ export declare function useListIntegrationEventsProjectQuery(props: ListIntegrationEventsProjectProps, options?: Omit<UseQueryOptions<ListIntegrationEventsProjectOkResponse, ListIntegrationEventsProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListIntegrationEventsProjectOkResponse, ApierrorsErrorResponse>;
@@ -0,0 +1,40 @@
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 listIntegrationEventsProject(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs/${props.integrationconfig_identifier}/events`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieves a paginated list of integration lifecycle events for a specific integration at project scope.
11
+ * Supports filtering by event_type and status (both repeatable query params), with
12
+ * customizable sorting and pagination. Pagination metadata is included in response
13
+ * headers (x-total-elements, x-page-number, x-page-size, x-total-pages).
14
+ *
15
+ * Event types:
16
+ * - integration_created: Integration was created
17
+ * - integration_updated: Integration configuration was modified
18
+ * - integration_enabled: Integration was enabled
19
+ * - integration_disabled: Integration was disabled
20
+ * - sync_run: Sync execution lifecycle (SCHEDULED -> SUBMITTED -> RUNNING -> COMPLETED/FAILED)
21
+ * - entity_auto_import: Entities were auto-imported during sync
22
+ * - entity_manual_import: Entities were manually imported (subscribed)
23
+ * - entity_unlinked: Entities were unlinked (unsubscribed)
24
+ *
25
+ * UI Status values:
26
+ * - SUCCESS: Operation completed successfully (maps to COMPLETED, SUCCESS)
27
+ * - FAILED: Operation failed (maps to FAILED, STALE, SUPERSEDED)
28
+ * - RUNNING: Operation in progress (maps to SCHEDULED, SUBMITTED, RUNNING)
29
+ * - PARTIAL_SUCCESS: Operation completed with partial success
30
+ */
31
+ export function useListIntegrationEventsProjectQuery(props, options) {
32
+ return useQuery([
33
+ 'listIntegrationEventsProject',
34
+ props.accountIdentifier,
35
+ props.orgIdentifier,
36
+ props.projectIdentifier,
37
+ props.integrationconfig_identifier,
38
+ props.queryParams,
39
+ ], ({ signal }) => listIntegrationEventsProject(Object.assign(Object.assign({}, props), { signal })), options);
40
+ }
@@ -0,0 +1,20 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { IntegrationconfigValidateCustomSchemaResponse } from '../schemas/IntegrationconfigValidateCustomSchemaResponse';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { OpenapiValidateCustomSchemaRequest } from '../schemas/OpenapiValidateCustomSchemaRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface ValidateCustomSchemaMutationPathParams {
8
+ accountIdentifier: string;
9
+ }
10
+ export type ValidateCustomSchemaRequestBody = OpenapiValidateCustomSchemaRequest;
11
+ export type ValidateCustomSchemaOkResponse = ResponseWithPagination<IntegrationconfigValidateCustomSchemaResponse>;
12
+ export type ValidateCustomSchemaErrorResponse = ApierrorsErrorResponse;
13
+ export interface ValidateCustomSchemaProps extends ValidateCustomSchemaMutationPathParams, Omit<FetcherOptions<unknown, ValidateCustomSchemaRequestBody>, 'url'> {
14
+ body: ValidateCustomSchemaRequestBody;
15
+ }
16
+ export declare function validateCustomSchema(props: ValidateCustomSchemaProps): Promise<ValidateCustomSchemaOkResponse>;
17
+ /**
18
+ * Validates a custom JSON schema for correctness before saving. Checks structure, required fields (identifier, name), property types, nesting depth, and JSON Schema composition keywords (allOf, anyOf, oneOf, not).
19
+ */
20
+ export declare function useValidateCustomSchemaMutation(options?: Omit<UseMutationOptions<ValidateCustomSchemaOkResponse, ValidateCustomSchemaErrorResponse, ValidateCustomSchemaProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ValidateCustomSchemaOkResponse, ApierrorsErrorResponse, ValidateCustomSchemaProps, 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 validateCustomSchema(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/validate-schema`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Validates a custom JSON schema for correctness before saving. Checks structure, required fields (identifier, name), property types, nesting depth, and JSON Schema composition keywords (allOf, anyOf, oneOf, not).
11
+ */
12
+ export function useValidateCustomSchemaMutation(options) {
13
+ return useMutation((mutateProps) => validateCustomSchema(mutateProps), options);
14
+ }
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { IntegrationconfigValidateCustomSchemaResponse } from '../schemas/IntegrationconfigValidateCustomSchemaResponse';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { OpenapiValidateCustomSchemaOrgRequest } from '../schemas/OpenapiValidateCustomSchemaOrgRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface ValidateCustomSchemaOrgMutationPathParams {
8
+ accountIdentifier: string;
9
+ orgIdentifier: string;
10
+ }
11
+ export type ValidateCustomSchemaOrgRequestBody = OpenapiValidateCustomSchemaOrgRequest;
12
+ export type ValidateCustomSchemaOrgOkResponse = ResponseWithPagination<IntegrationconfigValidateCustomSchemaResponse>;
13
+ export type ValidateCustomSchemaOrgErrorResponse = ApierrorsErrorResponse;
14
+ export interface ValidateCustomSchemaOrgProps extends ValidateCustomSchemaOrgMutationPathParams, Omit<FetcherOptions<unknown, ValidateCustomSchemaOrgRequestBody>, 'url'> {
15
+ body: ValidateCustomSchemaOrgRequestBody;
16
+ }
17
+ export declare function validateCustomSchemaOrg(props: ValidateCustomSchemaOrgProps): Promise<ValidateCustomSchemaOrgOkResponse>;
18
+ /**
19
+ * Validates a custom JSON schema at organization level.
20
+ */
21
+ export declare function useValidateCustomSchemaOrgMutation(options?: Omit<UseMutationOptions<ValidateCustomSchemaOrgOkResponse, ValidateCustomSchemaOrgErrorResponse, ValidateCustomSchemaOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ValidateCustomSchemaOrgOkResponse, ApierrorsErrorResponse, ValidateCustomSchemaOrgProps, 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 validateCustomSchemaOrg(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs/validate-schema`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Validates a custom JSON schema at organization level.
11
+ */
12
+ export function useValidateCustomSchemaOrgMutation(options) {
13
+ return useMutation((mutateProps) => validateCustomSchemaOrg(mutateProps), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { IntegrationconfigValidateCustomSchemaResponse } from '../schemas/IntegrationconfigValidateCustomSchemaResponse';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { OpenapiValidateCustomSchemaProjectRequest } from '../schemas/OpenapiValidateCustomSchemaProjectRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface ValidateCustomSchemaProjectMutationPathParams {
8
+ accountIdentifier: string;
9
+ orgIdentifier: string;
10
+ projectIdentifier: string;
11
+ }
12
+ export type ValidateCustomSchemaProjectRequestBody = OpenapiValidateCustomSchemaProjectRequest;
13
+ export type ValidateCustomSchemaProjectOkResponse = ResponseWithPagination<IntegrationconfigValidateCustomSchemaResponse>;
14
+ export type ValidateCustomSchemaProjectErrorResponse = ApierrorsErrorResponse;
15
+ export interface ValidateCustomSchemaProjectProps extends ValidateCustomSchemaProjectMutationPathParams, Omit<FetcherOptions<unknown, ValidateCustomSchemaProjectRequestBody>, 'url'> {
16
+ body: ValidateCustomSchemaProjectRequestBody;
17
+ }
18
+ export declare function validateCustomSchemaProject(props: ValidateCustomSchemaProjectProps): Promise<ValidateCustomSchemaProjectOkResponse>;
19
+ /**
20
+ * Validates a custom JSON schema at project level.
21
+ */
22
+ export declare function useValidateCustomSchemaProjectMutation(options?: Omit<UseMutationOptions<ValidateCustomSchemaProjectOkResponse, ValidateCustomSchemaProjectErrorResponse, ValidateCustomSchemaProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ValidateCustomSchemaProjectOkResponse, ApierrorsErrorResponse, ValidateCustomSchemaProjectProps, 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 validateCustomSchemaProject(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs/validate-schema`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Validates a custom JSON schema at project level.
11
+ */
12
+ export function useValidateCustomSchemaProjectMutation(options) {
13
+ return useMutation((mutateProps) => validateCustomSchemaProject(mutateProps), options);
14
+ }
@@ -63,6 +63,10 @@ export type { ListIntegrationConfigsProjectErrorResponse, ListIntegrationConfigs
63
63
  export { listIntegrationConfigsProject, useListIntegrationConfigsProjectQuery, } from './hooks/useListIntegrationConfigsProjectQuery';
64
64
  export type { ListIntegrationConfigsErrorResponse, ListIntegrationConfigsOkResponse, ListIntegrationConfigsProps, ListIntegrationConfigsQueryPathParams, } from './hooks/useListIntegrationConfigsQuery';
65
65
  export { listIntegrationConfigs, useListIntegrationConfigsQuery, } from './hooks/useListIntegrationConfigsQuery';
66
+ export type { ListIntegrationEventsOrgErrorResponse, ListIntegrationEventsOrgOkResponse, ListIntegrationEventsOrgProps, ListIntegrationEventsOrgQueryPathParams, ListIntegrationEventsOrgQueryQueryParams, } from './hooks/useListIntegrationEventsOrgQuery';
67
+ export { listIntegrationEventsOrg, useListIntegrationEventsOrgQuery, } from './hooks/useListIntegrationEventsOrgQuery';
68
+ export type { ListIntegrationEventsProjectErrorResponse, ListIntegrationEventsProjectOkResponse, ListIntegrationEventsProjectProps, ListIntegrationEventsProjectQueryPathParams, ListIntegrationEventsProjectQueryQueryParams, } from './hooks/useListIntegrationEventsProjectQuery';
69
+ export { listIntegrationEventsProject, useListIntegrationEventsProjectQuery, } from './hooks/useListIntegrationEventsProjectQuery';
66
70
  export type { ListIntegrationEventsErrorResponse, ListIntegrationEventsOkResponse, ListIntegrationEventsProps, ListIntegrationEventsQueryPathParams, ListIntegrationEventsQueryQueryParams, } from './hooks/useListIntegrationEventsQuery';
67
71
  export { listIntegrationEvents, useListIntegrationEventsQuery, } from './hooks/useListIntegrationEventsQuery';
68
72
  export type { ListSettingsOrgErrorResponse, ListSettingsOrgOkResponse, ListSettingsOrgProps, ListSettingsOrgQueryPathParams, } from './hooks/useListSettingsOrgQuery';
@@ -109,6 +113,12 @@ export type { UpsertSettingsOrgErrorResponse, UpsertSettingsOrgMutationPathParam
109
113
  export { upsertSettingsOrg, useUpsertSettingsOrgMutation, } from './hooks/useUpsertSettingsOrgMutation';
110
114
  export type { UpsertSettingsProjectErrorResponse, UpsertSettingsProjectMutationPathParams, UpsertSettingsProjectOkResponse, UpsertSettingsProjectProps, UpsertSettingsProjectRequestBody, } from './hooks/useUpsertSettingsProjectMutation';
111
115
  export { upsertSettingsProject, useUpsertSettingsProjectMutation, } from './hooks/useUpsertSettingsProjectMutation';
116
+ export type { ValidateCustomSchemaErrorResponse, ValidateCustomSchemaMutationPathParams, ValidateCustomSchemaOkResponse, ValidateCustomSchemaProps, ValidateCustomSchemaRequestBody, } from './hooks/useValidateCustomSchemaMutation';
117
+ export { useValidateCustomSchemaMutation, validateCustomSchema, } from './hooks/useValidateCustomSchemaMutation';
118
+ export type { ValidateCustomSchemaOrgErrorResponse, ValidateCustomSchemaOrgMutationPathParams, ValidateCustomSchemaOrgOkResponse, ValidateCustomSchemaOrgProps, ValidateCustomSchemaOrgRequestBody, } from './hooks/useValidateCustomSchemaOrgMutation';
119
+ export { useValidateCustomSchemaOrgMutation, validateCustomSchemaOrg, } from './hooks/useValidateCustomSchemaOrgMutation';
120
+ export type { ValidateCustomSchemaProjectErrorResponse, ValidateCustomSchemaProjectMutationPathParams, ValidateCustomSchemaProjectOkResponse, ValidateCustomSchemaProjectProps, ValidateCustomSchemaProjectRequestBody, } from './hooks/useValidateCustomSchemaProjectMutation';
121
+ export { useValidateCustomSchemaProjectMutation, validateCustomSchemaProject, } from './hooks/useValidateCustomSchemaProjectMutation';
112
122
  export type { AirbyteFetchAirbyteConnectorCatalogResponse } from './schemas/AirbyteFetchAirbyteConnectorCatalogResponse';
113
123
  export type { AirbyteGetAirbyteConnectorCatalogResponse } from './schemas/AirbyteGetAirbyteConnectorCatalogResponse';
114
124
  export type { ApierrorsErrorDetail } from './schemas/ApierrorsErrorDetail';
@@ -125,6 +135,8 @@ export type { EnumOperator } from './schemas/EnumOperator';
125
135
  export type { EnumSyncResponseStatus } from './schemas/EnumSyncResponseStatus';
126
136
  export type { EnumSyncStatus } from './schemas/EnumSyncStatus';
127
137
  export type { IntegrationconfigAirbyteIntegrationResponse } from './schemas/IntegrationconfigAirbyteIntegrationResponse';
138
+ export type { IntegrationconfigSchemaValidationError } from './schemas/IntegrationconfigSchemaValidationError';
139
+ export type { IntegrationconfigValidateCustomSchemaResponse } from './schemas/IntegrationconfigValidateCustomSchemaResponse';
128
140
  export type { IntegrationeventIntegrationEventResponse } from './schemas/IntegrationeventIntegrationEventResponse';
129
141
  export type { IntegrationeventPrincipalInfo } from './schemas/IntegrationeventPrincipalInfo';
130
142
  export type { IntegrationeventUiStatus } from './schemas/IntegrationeventUiStatus';
@@ -150,6 +162,9 @@ export type { OpenapiUpdateAirbyteIntegrationConfigRequest } from './schemas/Ope
150
162
  export type { OpenapiUpdateIntegrationConfigOrgRequest } from './schemas/OpenapiUpdateIntegrationConfigOrgRequest';
151
163
  export type { OpenapiUpdateIntegrationConfigProjectRequest } from './schemas/OpenapiUpdateIntegrationConfigProjectRequest';
152
164
  export type { OpenapiUpdateIntegrationConfigRequest } from './schemas/OpenapiUpdateIntegrationConfigRequest';
165
+ export type { OpenapiValidateCustomSchemaOrgRequest } from './schemas/OpenapiValidateCustomSchemaOrgRequest';
166
+ export type { OpenapiValidateCustomSchemaProjectRequest } from './schemas/OpenapiValidateCustomSchemaProjectRequest';
167
+ export type { OpenapiValidateCustomSchemaRequest } from './schemas/OpenapiValidateCustomSchemaRequest';
153
168
  export type { TypesAgentStatus } from './schemas/TypesAgentStatus';
154
169
  export type { TypesAirbyteCatalogConfigured } from './schemas/TypesAirbyteCatalogConfigured';
155
170
  export type { TypesAirbyteCatalogDiscovered } from './schemas/TypesAirbyteCatalogDiscovered';
@@ -30,6 +30,8 @@ export { listDefaultSchemas, useListDefaultSchemasQuery } from './hooks/useListD
30
30
  export { listIntegrationConfigsOrg, useListIntegrationConfigsOrgQuery, } from './hooks/useListIntegrationConfigsOrgQuery';
31
31
  export { listIntegrationConfigsProject, useListIntegrationConfigsProjectQuery, } from './hooks/useListIntegrationConfigsProjectQuery';
32
32
  export { listIntegrationConfigs, useListIntegrationConfigsQuery, } from './hooks/useListIntegrationConfigsQuery';
33
+ export { listIntegrationEventsOrg, useListIntegrationEventsOrgQuery, } from './hooks/useListIntegrationEventsOrgQuery';
34
+ export { listIntegrationEventsProject, useListIntegrationEventsProjectQuery, } from './hooks/useListIntegrationEventsProjectQuery';
33
35
  export { listIntegrationEvents, useListIntegrationEventsQuery, } from './hooks/useListIntegrationEventsQuery';
34
36
  export { listSettingsOrg, useListSettingsOrgQuery } from './hooks/useListSettingsOrgQuery';
35
37
  export { listSettingsProject, useListSettingsProjectQuery, } from './hooks/useListSettingsProjectQuery';
@@ -53,3 +55,6 @@ export { updateIntegrationStatusProject, useUpdateIntegrationStatusProjectMutati
53
55
  export { upsertSettings, useUpsertSettingsMutation } from './hooks/useUpsertSettingsMutation';
54
56
  export { upsertSettingsOrg, useUpsertSettingsOrgMutation, } from './hooks/useUpsertSettingsOrgMutation';
55
57
  export { upsertSettingsProject, useUpsertSettingsProjectMutation, } from './hooks/useUpsertSettingsProjectMutation';
58
+ export { useValidateCustomSchemaMutation, validateCustomSchema, } from './hooks/useValidateCustomSchemaMutation';
59
+ export { useValidateCustomSchemaOrgMutation, validateCustomSchemaOrg, } from './hooks/useValidateCustomSchemaOrgMutation';
60
+ export { useValidateCustomSchemaProjectMutation, validateCustomSchemaProject, } from './hooks/useValidateCustomSchemaProjectMutation';
@@ -0,0 +1,4 @@
1
+ export interface IntegrationconfigSchemaValidationError {
2
+ field?: string;
3
+ message?: string;
4
+ }
@@ -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,6 @@
1
+ import type { IntegrationconfigSchemaValidationError } from '../schemas/IntegrationconfigSchemaValidationError';
2
+ export interface IntegrationconfigValidateCustomSchemaResponse {
3
+ errors?: IntegrationconfigSchemaValidationError[];
4
+ message?: string;
5
+ valid?: boolean;
6
+ }
@@ -0,0 +1,5 @@
1
+ export interface OpenapiValidateCustomSchemaOrgRequest {
2
+ schema?: {
3
+ [key: string]: any;
4
+ } | null;
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 {};
@@ -0,0 +1,5 @@
1
+ export interface OpenapiValidateCustomSchemaProjectRequest {
2
+ schema?: {
3
+ [key: string]: any;
4
+ } | null;
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 {};
@@ -0,0 +1,5 @@
1
+ export interface OpenapiValidateCustomSchemaRequest {
2
+ schema?: {
3
+ [key: string]: any;
4
+ } | null;
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.4.14",
3
+ "version": "0.4.16",
4
4
  "description": "Harness React integration manager client - Integration Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",