@harnessio/react-integration-manager-client 0.4.16 → 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.
@@ -15,6 +15,6 @@ export interface ValidateCustomSchemaProps extends ValidateCustomSchemaMutationP
15
15
  }
16
16
  export declare function validateCustomSchema(props: ValidateCustomSchemaProps): Promise<ValidateCustomSchemaOkResponse>;
17
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).
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
19
  */
20
20
  export declare function useValidateCustomSchemaMutation(options?: Omit<UseMutationOptions<ValidateCustomSchemaOkResponse, ValidateCustomSchemaErrorResponse, ValidateCustomSchemaProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ValidateCustomSchemaOkResponse, ApierrorsErrorResponse, ValidateCustomSchemaProps, unknown>;
@@ -7,7 +7,7 @@ export function validateCustomSchema(props) {
7
7
  return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/validate-schema`, method: 'POST' }, props));
8
8
  }
9
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).
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
11
  */
12
12
  export function useValidateCustomSchemaMutation(options) {
13
13
  return useMutation((mutateProps) => validateCustomSchema(mutateProps), options);
@@ -2,5 +2,4 @@ import type { IntegrationconfigSchemaValidationError } from '../schemas/Integrat
2
2
  export interface IntegrationconfigValidateCustomSchemaResponse {
3
3
  errors?: IntegrationconfigSchemaValidationError[];
4
4
  message?: string;
5
- valid?: boolean;
6
5
  }
@@ -1,5 +1,4 @@
1
+ import type { TypesJsonSchema } from '../schemas/TypesJsonSchema';
1
2
  export interface OpenapiValidateCustomSchemaOrgRequest {
2
- schema?: {
3
- [key: string]: any;
4
- } | null;
3
+ schema?: TypesJsonSchema;
5
4
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -1,5 +1,4 @@
1
+ import type { TypesJsonSchema } from '../schemas/TypesJsonSchema';
1
2
  export interface OpenapiValidateCustomSchemaProjectRequest {
2
- schema?: {
3
- [key: string]: any;
4
- } | null;
3
+ schema?: TypesJsonSchema;
5
4
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -1,5 +1,4 @@
1
+ import type { TypesJsonSchema } from '../schemas/TypesJsonSchema';
1
2
  export interface OpenapiValidateCustomSchemaRequest {
2
- schema?: {
3
- [key: string]: any;
4
- } | null;
3
+ schema?: TypesJsonSchema;
5
4
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-integration-manager-client",
3
- "version": "0.4.16",
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",