@harnessio/react-sei-panorama-service-client 0.31.18 → 0.31.19

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,16 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ServiceNowSchemaValidationResult } from '../schemas/ServiceNowSchemaValidationResult';
3
+ import type { ServiceNowSchemaValidationRequest } from '../schemas/ServiceNowSchemaValidationRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export type ServiceNowHelperControllerValidateSchemaRequestBody = ServiceNowSchemaValidationRequest;
7
+ export type ServiceNowHelperControllerValidateSchemaOkResponse = ResponseWithPagination<ServiceNowSchemaValidationResult>;
8
+ export type ServiceNowHelperControllerValidateSchemaErrorResponse = ServiceNowSchemaValidationResult;
9
+ export interface ServiceNowHelperControllerValidateSchemaProps extends Omit<FetcherOptions<unknown, ServiceNowHelperControllerValidateSchemaRequestBody>, 'url'> {
10
+ body: ServiceNowHelperControllerValidateSchemaRequestBody;
11
+ }
12
+ export declare function serviceNowHelperControllerValidateSchema(props: ServiceNowHelperControllerValidateSchemaProps): Promise<ServiceNowHelperControllerValidateSchemaOkResponse>;
13
+ /**
14
+ * Provide either integration_id (saved integration) or credentials (pre-save flow), not both.
15
+ */
16
+ export declare function useServiceNowHelperControllerValidateSchemaMutation(options?: Omit<UseMutationOptions<ServiceNowHelperControllerValidateSchemaOkResponse, ServiceNowHelperControllerValidateSchemaErrorResponse, ServiceNowHelperControllerValidateSchemaProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ServiceNowHelperControllerValidateSchemaOkResponse, ServiceNowSchemaValidationResult, ServiceNowHelperControllerValidateSchemaProps, 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 serviceNowHelperControllerValidateSchema(props) {
7
+ return fetcher(Object.assign({ url: `/v2/integrations/servicenow/validate-schema`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Provide either integration_id (saved integration) or credentials (pre-save flow), not both.
11
+ */
12
+ export function useServiceNowHelperControllerValidateSchemaMutation(options) {
13
+ return useMutation((mutateProps) => serviceNowHelperControllerValidateSchema(mutateProps), options);
14
+ }
@@ -579,6 +579,8 @@ export type { ServiceNowHelperControllerSearchTablesErrorResponse, ServiceNowHel
579
579
  export { serviceNowHelperControllerSearchTables, useServiceNowHelperControllerSearchTablesQuery, } from './hooks/useServiceNowHelperControllerSearchTablesQuery';
580
580
  export type { ServiceNowHelperControllerSearchTablesWithCredentialsErrorResponse, ServiceNowHelperControllerSearchTablesWithCredentialsOkResponse, ServiceNowHelperControllerSearchTablesWithCredentialsProps, ServiceNowHelperControllerSearchTablesWithCredentialsRequestBody, } from './hooks/useServiceNowHelperControllerSearchTablesWithCredentialsMutation';
581
581
  export { serviceNowHelperControllerSearchTablesWithCredentials, useServiceNowHelperControllerSearchTablesWithCredentialsMutation, } from './hooks/useServiceNowHelperControllerSearchTablesWithCredentialsMutation';
582
+ export type { ServiceNowHelperControllerValidateSchemaErrorResponse, ServiceNowHelperControllerValidateSchemaOkResponse, ServiceNowHelperControllerValidateSchemaProps, ServiceNowHelperControllerValidateSchemaRequestBody, } from './hooks/useServiceNowHelperControllerValidateSchemaMutation';
583
+ export { serviceNowHelperControllerValidateSchema, useServiceNowHelperControllerValidateSchemaMutation, } from './hooks/useServiceNowHelperControllerValidateSchemaMutation';
582
584
  export type { SprintInsightsControllerGetSprintDeliveryErrorResponse, SprintInsightsControllerGetSprintDeliveryOkResponse, SprintInsightsControllerGetSprintDeliveryProps, SprintInsightsControllerGetSprintDeliveryRequestBody, } from './hooks/useSprintInsightsControllerGetSprintDeliveryQuery';
583
585
  export { sprintInsightsControllerGetSprintDelivery, useSprintInsightsControllerGetSprintDeliveryQuery, } from './hooks/useSprintInsightsControllerGetSprintDeliveryQuery';
584
586
  export type { SprintInsightsControllerGetSprintDrilldownErrorResponse, SprintInsightsControllerGetSprintDrilldownOkResponse, SprintInsightsControllerGetSprintDrilldownProps, SprintInsightsControllerGetSprintDrilldownRequestBody, } from './hooks/useSprintInsightsControllerGetSprintDrilldownQuery';
@@ -1121,8 +1123,11 @@ export type { SecurityStatsRequest } from './schemas/SecurityStatsRequest';
1121
1123
  export type { SecurityStatsTrendResponseDto } from './schemas/SecurityStatsTrendResponseDto';
1122
1124
  export type { SegmentSummary } from './schemas/SegmentSummary';
1123
1125
  export type { ServiceNowColumn } from './schemas/ServiceNowColumn';
1126
+ export type { ServiceNowColumnValidationResult } from './schemas/ServiceNowColumnValidationResult';
1124
1127
  export type { ServiceNowColumnsRequest } from './schemas/ServiceNowColumnsRequest';
1125
1128
  export type { ServiceNowCredentials } from './schemas/ServiceNowCredentials';
1129
+ export type { ServiceNowSchemaValidationRequest } from './schemas/ServiceNowSchemaValidationRequest';
1130
+ export type { ServiceNowSchemaValidationResult } from './schemas/ServiceNowSchemaValidationResult';
1126
1131
  export type { ServiceNowTable } from './schemas/ServiceNowTable';
1127
1132
  export type { ServiceNowTablesRequest } from './schemas/ServiceNowTablesRequest';
1128
1133
  export type { SessionFeedResponse } from './schemas/SessionFeedResponse';
@@ -288,6 +288,7 @@ export { serviceNowHelperControllerListColumns, useServiceNowHelperControllerLis
288
288
  export { serviceNowHelperControllerListColumnsWithCredentials, useServiceNowHelperControllerListColumnsWithCredentialsMutation, } from './hooks/useServiceNowHelperControllerListColumnsWithCredentialsMutation';
289
289
  export { serviceNowHelperControllerSearchTables, useServiceNowHelperControllerSearchTablesQuery, } from './hooks/useServiceNowHelperControllerSearchTablesQuery';
290
290
  export { serviceNowHelperControllerSearchTablesWithCredentials, useServiceNowHelperControllerSearchTablesWithCredentialsMutation, } from './hooks/useServiceNowHelperControllerSearchTablesWithCredentialsMutation';
291
+ export { serviceNowHelperControllerValidateSchema, useServiceNowHelperControllerValidateSchemaMutation, } from './hooks/useServiceNowHelperControllerValidateSchemaMutation';
291
292
  export { sprintInsightsControllerGetSprintDelivery, useSprintInsightsControllerGetSprintDeliveryQuery, } from './hooks/useSprintInsightsControllerGetSprintDeliveryQuery';
292
293
  export { sprintInsightsControllerGetSprintDrilldown, useSprintInsightsControllerGetSprintDrilldownQuery, } from './hooks/useSprintInsightsControllerGetSprintDrilldownQuery';
293
294
  export { sprintInsightsControllerGetSprintList, useSprintInsightsControllerGetSprintListQuery, } from './hooks/useSprintInsightsControllerGetSprintListQuery';
@@ -19,6 +19,10 @@ export interface ActivityDataDto {
19
19
  * @format int64
20
20
  */
21
21
  cursorUsers?: number;
22
+ /**
23
+ * @format int64
24
+ */
25
+ incidents?: number;
22
26
  /**
23
27
  * @format int64
24
28
  */
@@ -63,6 +67,14 @@ export interface ActivityDataDto {
63
67
  * @format int64
64
68
  */
65
69
  sonarQubePullRequests?: number;
70
+ /**
71
+ * @format int64
72
+ */
73
+ testMgmtExecutionLogs?: number;
74
+ /**
75
+ * @format int64
76
+ */
77
+ testMgmtTestRuns?: number;
66
78
  /**
67
79
  * @format int64
68
80
  */
@@ -6,6 +6,10 @@ export interface ColumnDefinition {
6
6
  * List of allowed values (enum constraint)
7
7
  */
8
8
  allowedValues?: string[];
9
+ /**
10
+ * Whether this column is used as a cursor for incremental data fetching
11
+ */
12
+ cursorColumn?: boolean;
9
13
  /**
10
14
  * Human-readable description of the column
11
15
  */
@@ -29,6 +33,10 @@ export interface ColumnDefinition {
29
33
  * Regex pattern for value validation
30
34
  */
31
35
  pattern?: string;
36
+ /**
37
+ * Whether this column is part of the primary key
38
+ */
39
+ primaryKey?: boolean;
32
40
  /**
33
41
  * Whether this column is required in every record
34
42
  */
@@ -0,0 +1,13 @@
1
+ export interface ServiceNowColumnValidationResult {
2
+ expected_type?: string;
3
+ /**
4
+ * @format int32
5
+ */
6
+ incompatible_count?: number;
7
+ name?: string;
8
+ reason?: string;
9
+ /**
10
+ * @format int32
11
+ */
12
+ rows_checked?: number;
13
+ }
@@ -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,8 @@
1
+ import type { ServiceNowColumn } from '../schemas/ServiceNowColumn';
2
+ import type { ServiceNowCredentials } from '../schemas/ServiceNowCredentials';
3
+ export interface ServiceNowSchemaValidationRequest {
4
+ columns: ServiceNowColumn[];
5
+ credentials?: ServiceNowCredentials;
6
+ integration_id?: string;
7
+ table: string;
8
+ }
@@ -0,0 +1,9 @@
1
+ import type { ServiceNowColumnValidationResult } from '../schemas/ServiceNowColumnValidationResult';
2
+ export interface ServiceNowSchemaValidationResult {
3
+ invalid_columns?: ServiceNowColumnValidationResult[];
4
+ /**
5
+ * @format int32
6
+ */
7
+ rows_sampled?: number;
8
+ valid?: boolean;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.31.18",
3
+ "version": "0.31.19",
4
4
  "description": "Harness React sei panorama service client - SEI Panorama APIs integrated with react hooks for Panorama project",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",