@harnessio/react-integration-manager-client 0.4.15 → 0.4.17

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 (19) hide show
  1. package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaMutation.d.ts +20 -0
  2. package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaMutation.js +14 -0
  3. package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaOrgMutation.d.ts +21 -0
  4. package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaOrgMutation.js +14 -0
  5. package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaProjectMutation.d.ts +22 -0
  6. package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaProjectMutation.js +14 -0
  7. package/dist/integration-manager/src/services/index.d.ts +11 -0
  8. package/dist/integration-manager/src/services/index.js +3 -0
  9. package/dist/integration-manager/src/services/schemas/IntegrationconfigSchemaValidationError.d.ts +4 -0
  10. package/dist/integration-manager/src/services/schemas/IntegrationconfigSchemaValidationError.js +4 -0
  11. package/dist/integration-manager/src/services/schemas/IntegrationconfigValidateCustomSchemaResponse.d.ts +5 -0
  12. package/dist/integration-manager/src/services/schemas/IntegrationconfigValidateCustomSchemaResponse.js +1 -0
  13. package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaOrgRequest.d.ts +4 -0
  14. package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaOrgRequest.js +1 -0
  15. package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaProjectRequest.d.ts +4 -0
  16. package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaProjectRequest.js +1 -0
  17. package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaRequest.d.ts +4 -0
  18. package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaRequest.js +1 -0
  19. package/package.json +1 -1
@@ -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, optional fields (identifier, name, timestamp) shape, property types, nesting depth (max 2), property count (max 200 per object), and JSON Schema composition keywords (allOf, anyOf, oneOf, not). Returns HTTP 200 if valid, HTTP 400 with all collected errors if invalid.
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, optional fields (identifier, name, timestamp) shape, property types, nesting depth (max 2), property count (max 200 per object), and JSON Schema composition keywords (allOf, anyOf, oneOf, not). Returns HTTP 200 if valid, HTTP 400 with all collected errors if invalid.
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
+ }
@@ -113,6 +113,12 @@ export type { UpsertSettingsOrgErrorResponse, UpsertSettingsOrgMutationPathParam
113
113
  export { upsertSettingsOrg, useUpsertSettingsOrgMutation, } from './hooks/useUpsertSettingsOrgMutation';
114
114
  export type { UpsertSettingsProjectErrorResponse, UpsertSettingsProjectMutationPathParams, UpsertSettingsProjectOkResponse, UpsertSettingsProjectProps, UpsertSettingsProjectRequestBody, } from './hooks/useUpsertSettingsProjectMutation';
115
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';
116
122
  export type { AirbyteFetchAirbyteConnectorCatalogResponse } from './schemas/AirbyteFetchAirbyteConnectorCatalogResponse';
117
123
  export type { AirbyteGetAirbyteConnectorCatalogResponse } from './schemas/AirbyteGetAirbyteConnectorCatalogResponse';
118
124
  export type { ApierrorsErrorDetail } from './schemas/ApierrorsErrorDetail';
@@ -129,6 +135,8 @@ export type { EnumOperator } from './schemas/EnumOperator';
129
135
  export type { EnumSyncResponseStatus } from './schemas/EnumSyncResponseStatus';
130
136
  export type { EnumSyncStatus } from './schemas/EnumSyncStatus';
131
137
  export type { IntegrationconfigAirbyteIntegrationResponse } from './schemas/IntegrationconfigAirbyteIntegrationResponse';
138
+ export type { IntegrationconfigSchemaValidationError } from './schemas/IntegrationconfigSchemaValidationError';
139
+ export type { IntegrationconfigValidateCustomSchemaResponse } from './schemas/IntegrationconfigValidateCustomSchemaResponse';
132
140
  export type { IntegrationeventIntegrationEventResponse } from './schemas/IntegrationeventIntegrationEventResponse';
133
141
  export type { IntegrationeventPrincipalInfo } from './schemas/IntegrationeventPrincipalInfo';
134
142
  export type { IntegrationeventUiStatus } from './schemas/IntegrationeventUiStatus';
@@ -154,6 +162,9 @@ export type { OpenapiUpdateAirbyteIntegrationConfigRequest } from './schemas/Ope
154
162
  export type { OpenapiUpdateIntegrationConfigOrgRequest } from './schemas/OpenapiUpdateIntegrationConfigOrgRequest';
155
163
  export type { OpenapiUpdateIntegrationConfigProjectRequest } from './schemas/OpenapiUpdateIntegrationConfigProjectRequest';
156
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';
157
168
  export type { TypesAgentStatus } from './schemas/TypesAgentStatus';
158
169
  export type { TypesAirbyteCatalogConfigured } from './schemas/TypesAirbyteCatalogConfigured';
159
170
  export type { TypesAirbyteCatalogDiscovered } from './schemas/TypesAirbyteCatalogDiscovered';
@@ -55,3 +55,6 @@ export { updateIntegrationStatusProject, useUpdateIntegrationStatusProjectMutati
55
55
  export { upsertSettings, useUpsertSettingsMutation } from './hooks/useUpsertSettingsMutation';
56
56
  export { upsertSettingsOrg, useUpsertSettingsOrgMutation, } from './hooks/useUpsertSettingsOrgMutation';
57
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,5 @@
1
+ import type { IntegrationconfigSchemaValidationError } from '../schemas/IntegrationconfigSchemaValidationError';
2
+ export interface IntegrationconfigValidateCustomSchemaResponse {
3
+ errors?: IntegrationconfigSchemaValidationError[];
4
+ message?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ import type { TypesJsonSchema } from '../schemas/TypesJsonSchema';
2
+ export interface OpenapiValidateCustomSchemaOrgRequest {
3
+ schema?: TypesJsonSchema;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { TypesJsonSchema } from '../schemas/TypesJsonSchema';
2
+ export interface OpenapiValidateCustomSchemaProjectRequest {
3
+ schema?: TypesJsonSchema;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { TypesJsonSchema } from '../schemas/TypesJsonSchema';
2
+ export interface OpenapiValidateCustomSchemaRequest {
3
+ schema?: TypesJsonSchema;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-integration-manager-client",
3
- "version": "0.4.15",
3
+ "version": "0.4.17",
4
4
  "description": "Harness React integration manager client - Integration Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",