@harnessio/react-sei-panorama-service-client 0.26.7 → 0.26.9

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 (74) hide show
  1. package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerGetIngestionHistoryQuery.d.ts +36 -0
  2. package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerGetIngestionHistoryQuery.js +14 -0
  3. package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerGetIngestionStatusQuery.d.ts +24 -0
  4. package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerGetIngestionStatusQuery.js +14 -0
  5. package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerGetSchemaQuery.d.ts +44 -0
  6. package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerGetSchemaQuery.js +22 -0
  7. package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerIngestDataMutation.d.ts +29 -0
  8. package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerIngestDataMutation.js +14 -0
  9. package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerRegisterSchemaMutation.d.ts +29 -0
  10. package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerRegisterSchemaMutation.js +14 -0
  11. package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetCurrentSchemaQuery.d.ts +19 -0
  12. package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetCurrentSchemaQuery.js +14 -0
  13. package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetIngestionHistoryQuery.d.ts +32 -0
  14. package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetIngestionHistoryQuery.js +14 -0
  15. package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetIngestionStatusQuery.d.ts +23 -0
  16. package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetIngestionStatusQuery.js +14 -0
  17. package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetSchemaHistoryQuery.d.ts +31 -0
  18. package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetSchemaHistoryQuery.js +14 -0
  19. package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerIngestDataMutation.d.ts +25 -0
  20. package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerIngestDataMutation.js +14 -0
  21. package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerRegisterSchemaMutation.d.ts +22 -0
  22. package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerRegisterSchemaMutation.js +14 -0
  23. package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamFiltersQuery.d.ts +1 -1
  24. package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamIntegrationFiltersQuery.d.ts +1 -1
  25. package/dist/sei-panorama-service/src/services/index.d.ts +37 -0
  26. package/dist/sei-panorama-service/src/services/index.js +11 -0
  27. package/dist/sei-panorama-service/src/services/schemas/DataRecord.d.ts +20 -0
  28. package/dist/sei-panorama-service/src/services/schemas/DataRecord.js +4 -0
  29. package/dist/sei-panorama-service/src/services/schemas/DoraLttcMttrMetric.d.ts +1 -1
  30. package/dist/sei-panorama-service/src/services/schemas/DrillDownResponseDtoObject.d.ts +1 -1
  31. package/dist/sei-panorama-service/src/services/schemas/EfficiencyProfileEvent.d.ts +1 -1
  32. package/dist/sei-panorama-service/src/services/schemas/FieldConstraint.d.ts +23 -0
  33. package/dist/sei-panorama-service/src/services/schemas/FieldConstraint.js +4 -0
  34. package/dist/sei-panorama-service/src/services/schemas/FieldDefinition.d.ts +28 -0
  35. package/dist/sei-panorama-service/src/services/schemas/FieldDefinition.js +1 -0
  36. package/dist/sei-panorama-service/src/services/schemas/IngestionRequest.d.ts +15 -0
  37. package/dist/sei-panorama-service/src/services/schemas/IngestionRequest.js +1 -0
  38. package/dist/sei-panorama-service/src/services/schemas/IngestionResponse.d.ts +39 -0
  39. package/dist/sei-panorama-service/src/services/schemas/IngestionResponse.js +4 -0
  40. package/dist/sei-panorama-service/src/services/schemas/IngestionStatusResponse.d.ts +88 -0
  41. package/dist/sei-panorama-service/src/services/schemas/IngestionStatusResponse.js +1 -0
  42. package/dist/sei-panorama-service/src/services/schemas/Integration.d.ts +1 -1
  43. package/dist/sei-panorama-service/src/services/schemas/IntegrationResponseDto.d.ts +2 -2
  44. package/dist/sei-panorama-service/src/services/schemas/ItsmDrilldownItem.d.ts +18 -43
  45. package/dist/sei-panorama-service/src/services/schemas/ItsmDrilldownSummary.d.ts +40 -0
  46. package/dist/sei-panorama-service/src/services/schemas/ItsmDrilldownSummary.js +4 -0
  47. package/dist/sei-panorama-service/src/services/schemas/MinimalTeamHierarchyResponseDto.d.ts +1 -0
  48. package/dist/sei-panorama-service/src/services/schemas/MttrDrillDownResponseDto.d.ts +6 -1
  49. package/dist/sei-panorama-service/src/services/schemas/MttrMetric.d.ts +1 -1
  50. package/dist/sei-panorama-service/src/services/schemas/PageMetadata.d.ts +45 -0
  51. package/dist/sei-panorama-service/src/services/schemas/PageMetadata.js +4 -0
  52. package/dist/sei-panorama-service/src/services/schemas/PagedResponseIngestionStatusResponse.d.ts +15 -0
  53. package/dist/sei-panorama-service/src/services/schemas/PagedResponseIngestionStatusResponse.js +1 -0
  54. package/dist/sei-panorama-service/src/services/schemas/PagedResponseSchemaResponse.d.ts +15 -0
  55. package/dist/sei-panorama-service/src/services/schemas/PagedResponseSchemaResponse.js +1 -0
  56. package/dist/sei-panorama-service/src/services/schemas/PreviewTeamHierarchyResponseDto.d.ts +1 -0
  57. package/dist/sei-panorama-service/src/services/schemas/RecordBatch.d.ts +15 -0
  58. package/dist/sei-panorama-service/src/services/schemas/RecordBatch.js +1 -0
  59. package/dist/sei-panorama-service/src/services/schemas/RecordTypeDefinition.d.ts +19 -0
  60. package/dist/sei-panorama-service/src/services/schemas/RecordTypeDefinition.js +4 -0
  61. package/dist/sei-panorama-service/src/services/schemas/SchemaDefinition.d.ts +15 -0
  62. package/dist/sei-panorama-service/src/services/schemas/SchemaDefinition.js +1 -0
  63. package/dist/sei-panorama-service/src/services/schemas/SchemaRegistrationRequest.d.ts +15 -0
  64. package/dist/sei-panorama-service/src/services/schemas/SchemaRegistrationRequest.js +1 -0
  65. package/dist/sei-panorama-service/src/services/schemas/SchemaResponse.d.ts +52 -0
  66. package/dist/sei-panorama-service/src/services/schemas/SchemaResponse.js +1 -0
  67. package/dist/sei-panorama-service/src/services/schemas/TeamAccessDto.d.ts +1 -0
  68. package/dist/sei-panorama-service/src/services/schemas/TeamFilterIntegrationSummary.d.ts +1 -1
  69. package/dist/sei-panorama-service/src/services/schemas/TeamFiltersHqlDto.d.ts +3 -0
  70. package/dist/sei-panorama-service/src/services/schemas/TeamFiltersResponseDto.d.ts +1 -1
  71. package/dist/sei-panorama-service/src/services/schemas/TeamHierarchyDto.d.ts +1 -0
  72. package/dist/sei-panorama-service/src/services/schemas/TeamResponse.d.ts +1 -0
  73. package/dist/sei-panorama-service/src/services/schemas/TeamSummary.d.ts +1 -0
  74. package/package.json +1 -1
@@ -0,0 +1,36 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface CustomMetricsControllerGetIngestionHistoryQueryPathParams {
5
+ /**
6
+ * @format int32
7
+ */
8
+ integrationId: number;
9
+ }
10
+ export interface CustomMetricsControllerGetIngestionHistoryQueryQueryParams {
11
+ status?: string;
12
+ /**
13
+ * @format int32
14
+ * @default 0
15
+ */
16
+ page?: number;
17
+ /**
18
+ * @format int32
19
+ * @default 20
20
+ */
21
+ size?: number;
22
+ }
23
+ export type CustomMetricsControllerGetIngestionHistoryOkResponse = ResponseWithPagination<{
24
+ [key: string]: {
25
+ [key: string]: any;
26
+ };
27
+ }>;
28
+ export type CustomMetricsControllerGetIngestionHistoryErrorResponse = unknown;
29
+ export interface CustomMetricsControllerGetIngestionHistoryProps extends CustomMetricsControllerGetIngestionHistoryQueryPathParams, Omit<FetcherOptions<CustomMetricsControllerGetIngestionHistoryQueryQueryParams, unknown>, 'url'> {
30
+ queryParams: CustomMetricsControllerGetIngestionHistoryQueryQueryParams;
31
+ }
32
+ export declare function customMetricsControllerGetIngestionHistory(props: CustomMetricsControllerGetIngestionHistoryProps): Promise<CustomMetricsControllerGetIngestionHistoryOkResponse>;
33
+ /**
34
+ * Retrieve ingestion history with optional status filtering
35
+ */
36
+ export declare function useCustomMetricsControllerGetIngestionHistoryQuery(props: CustomMetricsControllerGetIngestionHistoryProps, options?: Omit<UseQueryOptions<CustomMetricsControllerGetIngestionHistoryOkResponse, CustomMetricsControllerGetIngestionHistoryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CustomMetricsControllerGetIngestionHistoryOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function customMetricsControllerGetIngestionHistory(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-metrics/${props.integrationId}/ingestions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve ingestion history with optional status filtering
11
+ */
12
+ export function useCustomMetricsControllerGetIngestionHistoryQuery(props, options) {
13
+ return useQuery(['CustomMetricsControllerGetIngestionHistory', props.integrationId, props.queryParams], ({ signal }) => customMetricsControllerGetIngestionHistory(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface CustomMetricsControllerGetIngestionStatusQueryPathParams {
6
+ /**
7
+ * @format int32
8
+ */
9
+ integrationId: number;
10
+ ingestionId: string;
11
+ }
12
+ export type CustomMetricsControllerGetIngestionStatusOkResponse = ResponseWithPagination<{
13
+ [key: string]: {
14
+ [key: string]: any;
15
+ };
16
+ }>;
17
+ export type CustomMetricsControllerGetIngestionStatusErrorResponse = ErrorResponse;
18
+ export interface CustomMetricsControllerGetIngestionStatusProps extends CustomMetricsControllerGetIngestionStatusQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
19
+ }
20
+ export declare function customMetricsControllerGetIngestionStatus(props: CustomMetricsControllerGetIngestionStatusProps): Promise<CustomMetricsControllerGetIngestionStatusOkResponse>;
21
+ /**
22
+ * Get detailed status and validation results for a specific ingestion
23
+ */
24
+ export declare function useCustomMetricsControllerGetIngestionStatusQuery(props: CustomMetricsControllerGetIngestionStatusProps, options?: Omit<UseQueryOptions<CustomMetricsControllerGetIngestionStatusOkResponse, CustomMetricsControllerGetIngestionStatusErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CustomMetricsControllerGetIngestionStatusOkResponse, ErrorResponse>;
@@ -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 customMetricsControllerGetIngestionStatus(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-metrics/${props.integrationId}/ingestions/${props.ingestionId}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get detailed status and validation results for a specific ingestion
11
+ */
12
+ export function useCustomMetricsControllerGetIngestionStatusQuery(props, options) {
13
+ return useQuery(['CustomMetricsControllerGetIngestionStatus', props.integrationId, props.ingestionId], ({ signal }) => customMetricsControllerGetIngestionStatus(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,44 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface CustomMetricsControllerGetSchemaQueryPathParams {
6
+ /**
7
+ * @format int32
8
+ */
9
+ integrationId: number;
10
+ }
11
+ export interface CustomMetricsControllerGetSchemaQueryQueryParams {
12
+ version?: string;
13
+ active?: boolean;
14
+ /**
15
+ * @format int32
16
+ * @default 0
17
+ */
18
+ page?: number;
19
+ /**
20
+ * @format int32
21
+ * @default 20
22
+ */
23
+ size?: number;
24
+ }
25
+ export type CustomMetricsControllerGetSchemaOkResponse = ResponseWithPagination<{
26
+ [key: string]: any;
27
+ }>;
28
+ export type CustomMetricsControllerGetSchemaErrorResponse = ErrorResponse;
29
+ export interface CustomMetricsControllerGetSchemaProps extends CustomMetricsControllerGetSchemaQueryPathParams, Omit<FetcherOptions<CustomMetricsControllerGetSchemaQueryQueryParams, unknown>, 'url'> {
30
+ queryParams: CustomMetricsControllerGetSchemaQueryQueryParams;
31
+ }
32
+ export declare function customMetricsControllerGetSchema(props: CustomMetricsControllerGetSchemaProps): Promise<CustomMetricsControllerGetSchemaOkResponse>;
33
+ /**
34
+ * Retrieve schema(s) for an integration. Supports filtering by version and active status.
35
+ *
36
+ * Examples:
37
+ * - GET /schema → Returns current active schema
38
+ * - GET /schema?version=all → Returns all schema versions (history)
39
+ * - GET /schema?version=2 → Returns specific version 2
40
+ * - GET /schema?active=false → Returns all inactive schemas
41
+ * - GET /schema?version=all&page=0&size=10 → Paginated history
42
+ *
43
+ */
44
+ export declare function useCustomMetricsControllerGetSchemaQuery(props: CustomMetricsControllerGetSchemaProps, options?: Omit<UseQueryOptions<CustomMetricsControllerGetSchemaOkResponse, CustomMetricsControllerGetSchemaErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CustomMetricsControllerGetSchemaOkResponse, ErrorResponse>;
@@ -0,0 +1,22 @@
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 customMetricsControllerGetSchema(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-metrics/${props.integrationId}/schema`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve schema(s) for an integration. Supports filtering by version and active status.
11
+ *
12
+ * Examples:
13
+ * - GET /schema → Returns current active schema
14
+ * - GET /schema?version=all → Returns all schema versions (history)
15
+ * - GET /schema?version=2 → Returns specific version 2
16
+ * - GET /schema?active=false → Returns all inactive schemas
17
+ * - GET /schema?version=all&page=0&size=10 → Paginated history
18
+ *
19
+ */
20
+ export function useCustomMetricsControllerGetSchemaQuery(props, options) {
21
+ return useQuery(['CustomMetricsControllerGetSchema', props.integrationId, props.queryParams], ({ signal }) => customMetricsControllerGetSchema(Object.assign(Object.assign({}, props), { signal })), options);
22
+ }
@@ -0,0 +1,29 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface CustomMetricsControllerIngestDataMutationPathParams {
6
+ /**
7
+ * @format int32
8
+ */
9
+ integrationId: number;
10
+ }
11
+ export type CustomMetricsControllerIngestDataRequestBody = {
12
+ [key: string]: {
13
+ [key: string]: any;
14
+ };
15
+ };
16
+ export type CustomMetricsControllerIngestDataOkResponse = ResponseWithPagination<{
17
+ [key: string]: {
18
+ [key: string]: any;
19
+ };
20
+ }>;
21
+ export type CustomMetricsControllerIngestDataErrorResponse = ErrorResponse;
22
+ export interface CustomMetricsControllerIngestDataProps extends CustomMetricsControllerIngestDataMutationPathParams, Omit<FetcherOptions<unknown, CustomMetricsControllerIngestDataRequestBody>, 'url'> {
23
+ body: CustomMetricsControllerIngestDataRequestBody;
24
+ }
25
+ export declare function customMetricsControllerIngestData(props: CustomMetricsControllerIngestDataProps): Promise<CustomMetricsControllerIngestDataOkResponse>;
26
+ /**
27
+ * Submit custom metrics data for processing
28
+ */
29
+ export declare function useCustomMetricsControllerIngestDataMutation(options?: Omit<UseMutationOptions<CustomMetricsControllerIngestDataOkResponse, CustomMetricsControllerIngestDataErrorResponse, CustomMetricsControllerIngestDataProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CustomMetricsControllerIngestDataOkResponse, ErrorResponse, CustomMetricsControllerIngestDataProps, 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 customMetricsControllerIngestData(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-metrics/${props.integrationId}`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Submit custom metrics data for processing
11
+ */
12
+ export function useCustomMetricsControllerIngestDataMutation(options) {
13
+ return useMutation((mutateProps) => customMetricsControllerIngestData(mutateProps), options);
14
+ }
@@ -0,0 +1,29 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface CustomMetricsControllerRegisterSchemaMutationPathParams {
6
+ /**
7
+ * @format int32
8
+ */
9
+ integrationId: number;
10
+ }
11
+ export type CustomMetricsControllerRegisterSchemaRequestBody = {
12
+ [key: string]: {
13
+ [key: string]: any;
14
+ };
15
+ };
16
+ export type CustomMetricsControllerRegisterSchemaOkResponse = ResponseWithPagination<{
17
+ [key: string]: {
18
+ [key: string]: any;
19
+ };
20
+ }>;
21
+ export type CustomMetricsControllerRegisterSchemaErrorResponse = ErrorResponse;
22
+ export interface CustomMetricsControllerRegisterSchemaProps extends CustomMetricsControllerRegisterSchemaMutationPathParams, Omit<FetcherOptions<unknown, CustomMetricsControllerRegisterSchemaRequestBody>, 'url'> {
23
+ body: CustomMetricsControllerRegisterSchemaRequestBody;
24
+ }
25
+ export declare function customMetricsControllerRegisterSchema(props: CustomMetricsControllerRegisterSchemaProps): Promise<CustomMetricsControllerRegisterSchemaOkResponse>;
26
+ /**
27
+ * Register or update a custom metrics schema for an integration
28
+ */
29
+ export declare function useCustomMetricsControllerRegisterSchemaMutation(options?: Omit<UseMutationOptions<CustomMetricsControllerRegisterSchemaOkResponse, CustomMetricsControllerRegisterSchemaErrorResponse, CustomMetricsControllerRegisterSchemaProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CustomMetricsControllerRegisterSchemaOkResponse, ErrorResponse, CustomMetricsControllerRegisterSchemaProps, 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 customMetricsControllerRegisterSchema(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-metrics/${props.integrationId}/schema`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Register or update a custom metrics schema for an integration
11
+ */
12
+ export function useCustomMetricsControllerRegisterSchemaMutation(options) {
13
+ return useMutation((mutateProps) => customMetricsControllerRegisterSchema(mutateProps), options);
14
+ }
@@ -0,0 +1,19 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { SchemaResponse } from '../schemas/SchemaResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface ExternalDataControllerGetCurrentSchemaQueryPathParams {
6
+ /**
7
+ * @format int32
8
+ */
9
+ integrationId: number;
10
+ }
11
+ export type ExternalDataControllerGetCurrentSchemaOkResponse = ResponseWithPagination<SchemaResponse>;
12
+ export type ExternalDataControllerGetCurrentSchemaErrorResponse = unknown;
13
+ export interface ExternalDataControllerGetCurrentSchemaProps extends ExternalDataControllerGetCurrentSchemaQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
14
+ }
15
+ export declare function externalDataControllerGetCurrentSchema(props: ExternalDataControllerGetCurrentSchemaProps): Promise<ExternalDataControllerGetCurrentSchemaOkResponse>;
16
+ /**
17
+ * Retrieve the currently active schema for an integration
18
+ */
19
+ export declare function useExternalDataControllerGetCurrentSchemaQuery(props: ExternalDataControllerGetCurrentSchemaProps, options?: Omit<UseQueryOptions<ExternalDataControllerGetCurrentSchemaOkResponse, ExternalDataControllerGetCurrentSchemaErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ExternalDataControllerGetCurrentSchemaOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function externalDataControllerGetCurrentSchema(props) {
7
+ return fetcher(Object.assign({ url: `/v2/external-data/${props.integrationId}/schemas/current`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve the currently active schema for an integration
11
+ */
12
+ export function useExternalDataControllerGetCurrentSchemaQuery(props, options) {
13
+ return useQuery(['ExternalDataControllerGetCurrentSchema', props.integrationId], ({ signal }) => externalDataControllerGetCurrentSchema(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,32 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { PagedResponseIngestionStatusResponse } from '../schemas/PagedResponseIngestionStatusResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface ExternalDataControllerGetIngestionHistoryQueryPathParams {
6
+ /**
7
+ * @format int32
8
+ */
9
+ integrationId: number;
10
+ }
11
+ export interface ExternalDataControllerGetIngestionHistoryQueryQueryParams {
12
+ status?: string;
13
+ /**
14
+ * @default 0
15
+ */
16
+ page?: number;
17
+ /**
18
+ * @default 20
19
+ */
20
+ size?: number;
21
+ sort?: string[];
22
+ }
23
+ export type ExternalDataControllerGetIngestionHistoryOkResponse = ResponseWithPagination<PagedResponseIngestionStatusResponse>;
24
+ export type ExternalDataControllerGetIngestionHistoryErrorResponse = unknown;
25
+ export interface ExternalDataControllerGetIngestionHistoryProps extends ExternalDataControllerGetIngestionHistoryQueryPathParams, Omit<FetcherOptions<ExternalDataControllerGetIngestionHistoryQueryQueryParams, unknown>, 'url'> {
26
+ queryParams: ExternalDataControllerGetIngestionHistoryQueryQueryParams;
27
+ }
28
+ export declare function externalDataControllerGetIngestionHistory(props: ExternalDataControllerGetIngestionHistoryProps): Promise<ExternalDataControllerGetIngestionHistoryOkResponse>;
29
+ /**
30
+ * Retrieve ingestion history with pagination and optional status filter
31
+ */
32
+ export declare function useExternalDataControllerGetIngestionHistoryQuery(props: ExternalDataControllerGetIngestionHistoryProps, options?: Omit<UseQueryOptions<ExternalDataControllerGetIngestionHistoryOkResponse, ExternalDataControllerGetIngestionHistoryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ExternalDataControllerGetIngestionHistoryOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function externalDataControllerGetIngestionHistory(props) {
7
+ return fetcher(Object.assign({ url: `/v2/external-data/${props.integrationId}/ingestions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve ingestion history with pagination and optional status filter
11
+ */
12
+ export function useExternalDataControllerGetIngestionHistoryQuery(props, options) {
13
+ return useQuery(['ExternalDataControllerGetIngestionHistory', props.integrationId, props.queryParams], ({ signal }) => externalDataControllerGetIngestionHistory(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { IngestionStatusResponse } from '../schemas/IngestionStatusResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface ExternalDataControllerGetIngestionStatusQueryPathParams {
6
+ /**
7
+ * @format int32
8
+ */
9
+ integrationId: number;
10
+ /**
11
+ * @format uuid
12
+ */
13
+ ingestionId: string;
14
+ }
15
+ export type ExternalDataControllerGetIngestionStatusOkResponse = ResponseWithPagination<IngestionStatusResponse>;
16
+ export type ExternalDataControllerGetIngestionStatusErrorResponse = unknown;
17
+ export interface ExternalDataControllerGetIngestionStatusProps extends ExternalDataControllerGetIngestionStatusQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
18
+ }
19
+ export declare function externalDataControllerGetIngestionStatus(props: ExternalDataControllerGetIngestionStatusProps): Promise<ExternalDataControllerGetIngestionStatusOkResponse>;
20
+ /**
21
+ * Retrieve status of a specific ingestion
22
+ */
23
+ export declare function useExternalDataControllerGetIngestionStatusQuery(props: ExternalDataControllerGetIngestionStatusProps, options?: Omit<UseQueryOptions<ExternalDataControllerGetIngestionStatusOkResponse, ExternalDataControllerGetIngestionStatusErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ExternalDataControllerGetIngestionStatusOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function externalDataControllerGetIngestionStatus(props) {
7
+ return fetcher(Object.assign({ url: `/v2/external-data/${props.integrationId}/ingestions/${props.ingestionId}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve status of a specific ingestion
11
+ */
12
+ export function useExternalDataControllerGetIngestionStatusQuery(props, options) {
13
+ return useQuery(['ExternalDataControllerGetIngestionStatus', props.integrationId, props.ingestionId], ({ signal }) => externalDataControllerGetIngestionStatus(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,31 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { PagedResponseSchemaResponse } from '../schemas/PagedResponseSchemaResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface ExternalDataControllerGetSchemaHistoryQueryPathParams {
6
+ /**
7
+ * @format int32
8
+ */
9
+ integrationId: number;
10
+ }
11
+ export interface ExternalDataControllerGetSchemaHistoryQueryQueryParams {
12
+ /**
13
+ * @default 0
14
+ */
15
+ page?: number;
16
+ /**
17
+ * @default 20
18
+ */
19
+ size?: number;
20
+ sort?: string[];
21
+ }
22
+ export type ExternalDataControllerGetSchemaHistoryOkResponse = ResponseWithPagination<PagedResponseSchemaResponse>;
23
+ export type ExternalDataControllerGetSchemaHistoryErrorResponse = unknown;
24
+ export interface ExternalDataControllerGetSchemaHistoryProps extends ExternalDataControllerGetSchemaHistoryQueryPathParams, Omit<FetcherOptions<ExternalDataControllerGetSchemaHistoryQueryQueryParams, unknown>, 'url'> {
25
+ queryParams: ExternalDataControllerGetSchemaHistoryQueryQueryParams;
26
+ }
27
+ export declare function externalDataControllerGetSchemaHistory(props: ExternalDataControllerGetSchemaHistoryProps): Promise<ExternalDataControllerGetSchemaHistoryOkResponse>;
28
+ /**
29
+ * Retrieve schema version history with pagination
30
+ */
31
+ export declare function useExternalDataControllerGetSchemaHistoryQuery(props: ExternalDataControllerGetSchemaHistoryProps, options?: Omit<UseQueryOptions<ExternalDataControllerGetSchemaHistoryOkResponse, ExternalDataControllerGetSchemaHistoryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ExternalDataControllerGetSchemaHistoryOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function externalDataControllerGetSchemaHistory(props) {
7
+ return fetcher(Object.assign({ url: `/v2/external-data/${props.integrationId}/schemas/history`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve schema version history with pagination
11
+ */
12
+ export function useExternalDataControllerGetSchemaHistoryQuery(props, options) {
13
+ return useQuery(['ExternalDataControllerGetSchemaHistory', props.integrationId, props.queryParams], ({ signal }) => externalDataControllerGetSchemaHistory(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,25 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { IngestionResponse } from '../schemas/IngestionResponse';
3
+ import type { IngestionRequest } from '../schemas/IngestionRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ExternalDataControllerIngestDataMutationPathParams {
7
+ /**
8
+ * @format int32
9
+ */
10
+ integrationId: number;
11
+ }
12
+ export interface ExternalDataControllerIngestDataMutationHeaderParams {
13
+ 'Idempotency-Key'?: string;
14
+ }
15
+ export type ExternalDataControllerIngestDataRequestBody = IngestionRequest;
16
+ export type ExternalDataControllerIngestDataOkResponse = ResponseWithPagination<IngestionResponse>;
17
+ export type ExternalDataControllerIngestDataErrorResponse = IngestionResponse;
18
+ export interface ExternalDataControllerIngestDataProps extends ExternalDataControllerIngestDataMutationPathParams, Omit<FetcherOptions<unknown, ExternalDataControllerIngestDataRequestBody, ExternalDataControllerIngestDataMutationHeaderParams>, 'url'> {
19
+ body: ExternalDataControllerIngestDataRequestBody;
20
+ }
21
+ export declare function externalDataControllerIngestData(props: ExternalDataControllerIngestDataProps): Promise<ExternalDataControllerIngestDataOkResponse>;
22
+ /**
23
+ * Ingest external data records
24
+ */
25
+ export declare function useExternalDataControllerIngestDataMutation(options?: Omit<UseMutationOptions<ExternalDataControllerIngestDataOkResponse, ExternalDataControllerIngestDataErrorResponse, ExternalDataControllerIngestDataProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ExternalDataControllerIngestDataOkResponse, IngestionResponse, ExternalDataControllerIngestDataProps, 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 externalDataControllerIngestData(props) {
7
+ return fetcher(Object.assign({ url: `/v2/external-data/${props.integrationId}/ingestions`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Ingest external data records
11
+ */
12
+ export function useExternalDataControllerIngestDataMutation(options) {
13
+ return useMutation((mutateProps) => externalDataControllerIngestData(mutateProps), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { SchemaResponse } from '../schemas/SchemaResponse';
3
+ import type { SchemaRegistrationRequest } from '../schemas/SchemaRegistrationRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ExternalDataControllerRegisterSchemaMutationPathParams {
7
+ /**
8
+ * @format int32
9
+ */
10
+ integrationId: number;
11
+ }
12
+ export type ExternalDataControllerRegisterSchemaRequestBody = SchemaRegistrationRequest;
13
+ export type ExternalDataControllerRegisterSchemaOkResponse = ResponseWithPagination<SchemaResponse>;
14
+ export type ExternalDataControllerRegisterSchemaErrorResponse = SchemaResponse;
15
+ export interface ExternalDataControllerRegisterSchemaProps extends ExternalDataControllerRegisterSchemaMutationPathParams, Omit<FetcherOptions<unknown, ExternalDataControllerRegisterSchemaRequestBody>, 'url'> {
16
+ body: ExternalDataControllerRegisterSchemaRequestBody;
17
+ }
18
+ export declare function externalDataControllerRegisterSchema(props: ExternalDataControllerRegisterSchemaProps): Promise<ExternalDataControllerRegisterSchemaOkResponse>;
19
+ /**
20
+ * Register a new schema for external data ingestion
21
+ */
22
+ export declare function useExternalDataControllerRegisterSchemaMutation(options?: Omit<UseMutationOptions<ExternalDataControllerRegisterSchemaOkResponse, ExternalDataControllerRegisterSchemaErrorResponse, ExternalDataControllerRegisterSchemaProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ExternalDataControllerRegisterSchemaOkResponse, SchemaResponse, ExternalDataControllerRegisterSchemaProps, 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 externalDataControllerRegisterSchema(props) {
7
+ return fetcher(Object.assign({ url: `/v2/external-data/${props.integrationId}/schemas`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Register a new schema for external data ingestion
11
+ */
12
+ export function useExternalDataControllerRegisterSchemaMutation(options) {
13
+ return useMutation((mutateProps) => externalDataControllerRegisterSchema(mutateProps), options);
14
+ }
@@ -10,7 +10,7 @@ export interface TeamsControllerGetTeamFiltersQueryPathParams {
10
10
  teamRefId: number;
11
11
  }
12
12
  export interface TeamsControllerGetTeamFiltersQueryQueryParams {
13
- integration_type?: 'AI' | 'CD' | 'CI' | 'IM' | 'ITSM' | 'SCM' | 'SECURITY';
13
+ integration_type?: 'AI' | 'CD' | 'CI' | 'CUSTOM_METRICS' | 'IM' | 'ITSM' | 'SCM' | 'SECURITY';
14
14
  }
15
15
  export type TeamsControllerGetTeamFiltersOkResponse = ResponseWithPagination<TeamFiltersResponseDto>;
16
16
  export type TeamsControllerGetTeamFiltersErrorResponse = ErrorResponse;
@@ -9,7 +9,7 @@ export interface TeamsControllerGetTeamIntegrationFiltersQueryPathParams {
9
9
  teamRefId: number;
10
10
  }
11
11
  export interface TeamsControllerGetTeamIntegrationFiltersQueryQueryParams {
12
- integrationType?: 'AI' | 'CD' | 'CI' | 'IM' | 'ITSM' | 'SCM' | 'SECURITY';
12
+ integrationType?: 'AI' | 'CD' | 'CI' | 'CUSTOM_METRICS' | 'IM' | 'ITSM' | 'SCM' | 'SECURITY';
13
13
  }
14
14
  export type TeamsControllerGetTeamIntegrationFiltersOkResponse = ResponseWithPagination<GroupedTeamFiltersResponseDto>;
15
15
  export type TeamsControllerGetTeamIntegrationFiltersErrorResponse = GroupedTeamFiltersResponseDto;