@harnessio/react-sei-panorama-service-client 0.26.6 → 0.26.8
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.
- package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerGetIngestionHistoryQuery.d.ts +36 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerGetIngestionHistoryQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerGetIngestionStatusQuery.d.ts +24 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerGetIngestionStatusQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerGetSchemaQuery.d.ts +44 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerGetSchemaQuery.js +22 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerIngestDataMutation.d.ts +29 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerIngestDataMutation.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerRegisterSchemaMutation.d.ts +29 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerRegisterSchemaMutation.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetCurrentSchemaQuery.d.ts +19 -0
- package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetCurrentSchemaQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetIngestionHistoryQuery.d.ts +32 -0
- package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetIngestionHistoryQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetIngestionStatusQuery.d.ts +23 -0
- package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetIngestionStatusQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetSchemaHistoryQuery.d.ts +31 -0
- package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetSchemaHistoryQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerIngestDataMutation.d.ts +25 -0
- package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerIngestDataMutation.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerRegisterSchemaMutation.d.ts +22 -0
- package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerRegisterSchemaMutation.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useProductivityInsightsExportControllerCreateExportMutation.d.ts +23 -2
- package/dist/sei-panorama-service/src/services/hooks/useProductivityInsightsExportControllerCreateExportMutation.js +23 -1
- package/dist/sei-panorama-service/src/services/hooks/useProductivityInsightsExportControllerDownloadExportQuery.d.ts +1 -5
- package/dist/sei-panorama-service/src/services/hooks/useProductivityInsightsExportControllerDownloadExportQuery.js +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useProductivityInsightsExportControllerGenerateExportDirectMutation.d.ts +59 -0
- package/dist/sei-panorama-service/src/services/hooks/useProductivityInsightsExportControllerGenerateExportDirectMutation.js +53 -0
- package/dist/sei-panorama-service/src/services/hooks/useProductivityInsightsExportControllerGenerateExportSyncMutation.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useProductivityInsightsExportControllerGenerateExportSyncMutation.js +1 -0
- package/dist/sei-panorama-service/src/services/hooks/useProductivityInsightsExportControllerGetExportStatusQuery.d.ts +1 -5
- package/dist/sei-panorama-service/src/services/hooks/useProductivityInsightsExportControllerGetExportStatusQuery.js +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useProductivityInsightsExportControllerListExportsQuery.d.ts +0 -1
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerCreateExportMutation.d.ts +11 -2
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerCreateExportMutation.js +11 -1
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerCreateExport_1Mutation.d.ts +11 -2
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerCreateExport_1Mutation.js +11 -1
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerDownloadExportQuery.d.ts +1 -5
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerDownloadExportQuery.js +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerDownloadExport_1Query.d.ts +1 -5
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerDownloadExport_1Query.js +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerGenerateExportSyncMutation.d.ts +8 -2
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerGenerateExportSyncMutation.js +8 -1
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerGenerateExportSync_1Mutation.d.ts +8 -2
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerGenerateExportSync_1Mutation.js +8 -1
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerGetExportStatusQuery.d.ts +1 -5
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerGetExportStatusQuery.js +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerGetExportStatus_1Query.d.ts +1 -5
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerGetExportStatus_1Query.js +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerListExportsQuery.d.ts +0 -1
- package/dist/sei-panorama-service/src/services/hooks/useSprintInsightsExportControllerListExports_1Query.d.ts +0 -1
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetHqlFilterMetadataQuery.d.ts +13 -0
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetHqlFilterMetadataQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamFiltersQuery.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamHqlFiltersQuery.d.ts +20 -0
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamHqlFiltersQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamIntegrationFiltersQuery.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/index.d.ts +53 -6
- package/dist/sei-panorama-service/src/services/index.js +14 -0
- package/dist/sei-panorama-service/src/services/schemas/DataRecord.d.ts +20 -0
- package/dist/sei-panorama-service/src/services/schemas/DataRecord.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/DoraLttcMttrMetric.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/DrillDownResponseDtoObject.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/EfficiencyProfileEvent.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/ExportMetadata.d.ts +5 -1
- package/dist/sei-panorama-service/src/services/schemas/FieldConstraint.d.ts +23 -0
- package/dist/sei-panorama-service/src/services/schemas/FieldConstraint.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/FieldDefinition.d.ts +28 -0
- package/dist/sei-panorama-service/src/services/schemas/FieldDefinition.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/HqlFilterKeyMetadataDto.d.ts +5 -0
- package/dist/sei-panorama-service/src/services/schemas/HqlFilterKeyMetadataDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/HqlFilterMetadataResponseDto.d.ts +6 -0
- package/dist/sei-panorama-service/src/services/schemas/HqlFilterMetadataResponseDto.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/IngestionRequest.d.ts +15 -0
- package/dist/sei-panorama-service/src/services/schemas/IngestionRequest.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/IngestionResponse.d.ts +39 -0
- package/dist/sei-panorama-service/src/services/schemas/IngestionResponse.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/IngestionStatusResponse.d.ts +88 -0
- package/dist/sei-panorama-service/src/services/schemas/IngestionStatusResponse.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/Integration.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/IntegrationResponseDto.d.ts +2 -2
- package/dist/sei-panorama-service/src/services/schemas/MetricsExportRequestDto.d.ts +7 -2
- package/dist/sei-panorama-service/src/services/schemas/MttrDrillDownResponseDto.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/MttrMetric.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/PageIngestionStatusResponse.d.ts +31 -0
- package/dist/sei-panorama-service/src/services/schemas/PageIngestionStatusResponse.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/PageSchemaResponse.d.ts +31 -0
- package/dist/sei-panorama-service/src/services/schemas/PageSchemaResponse.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/PageableObject.d.ts +18 -0
- package/dist/sei-panorama-service/src/services/schemas/PageableObject.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/RecordBatch.d.ts +15 -0
- package/dist/sei-panorama-service/src/services/schemas/RecordBatch.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/RecordTypeDefinition.d.ts +19 -0
- package/dist/sei-panorama-service/src/services/schemas/RecordTypeDefinition.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/SchemaDefinition.d.ts +15 -0
- package/dist/sei-panorama-service/src/services/schemas/SchemaDefinition.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/SchemaRegistrationRequest.d.ts +15 -0
- package/dist/sei-panorama-service/src/services/schemas/SchemaRegistrationRequest.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/SchemaResponse.d.ts +52 -0
- package/dist/sei-panorama-service/src/services/schemas/SchemaResponse.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/SortObject.d.ts +5 -0
- package/dist/sei-panorama-service/src/services/schemas/SortObject.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/SprintExportRequestDto.d.ts +15 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamFilterIntegrationSummary.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/TeamFiltersHqlDto.d.ts +11 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamFiltersHqlDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamFiltersResponseDto.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/TeamHqlFiltersResponseDto.d.ts +9 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamHqlFiltersResponseDto.js +1 -0
- 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
|
+
}
|
package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerGetSchemaQuery.d.ts
ADDED
|
@@ -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>;
|
package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerGetSchemaQuery.js
ADDED
|
@@ -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>;
|
package/dist/sei-panorama-service/src/services/hooks/useCustomMetricsControllerIngestDataMutation.js
ADDED
|
@@ -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 { PageIngestionStatusResponse } from '../schemas/PageIngestionStatusResponse';
|
|
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<PageIngestionStatusResponse>;
|
|
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 { PageSchemaResponse } from '../schemas/PageSchemaResponse';
|
|
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<PageSchemaResponse>;
|
|
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>;
|
package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerIngestDataMutation.js
ADDED
|
@@ -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
|
+
}
|
|
@@ -4,7 +4,6 @@ import type { MetricsExportRequestDto } from '../schemas/MetricsExportRequestDto
|
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface ProductivityInsightsExportControllerCreateExportMutationQueryParams {
|
|
7
|
-
routingId: string;
|
|
8
7
|
projectIdentifier?: string;
|
|
9
8
|
orgIdentifier?: string;
|
|
10
9
|
}
|
|
@@ -17,6 +16,28 @@ export interface ProductivityInsightsExportControllerCreateExportProps extends O
|
|
|
17
16
|
}
|
|
18
17
|
export declare function productivityInsightsExportControllerCreateExport(props: ProductivityInsightsExportControllerCreateExportProps): Promise<ProductivityInsightsExportControllerCreateExportOkResponse>;
|
|
19
18
|
/**
|
|
20
|
-
* Creates a new export job for developer productivity metrics.
|
|
19
|
+
* Creates a new export job for developer productivity metrics.
|
|
20
|
+
*
|
|
21
|
+
* **Metric Selection** (choose ONE):
|
|
22
|
+
* - `metricGroups`: High-level metric groups (e.g., ["pr", "work", "loc"])
|
|
23
|
+
* - `metricColumns`: Granular column selection (e.g., ["PR_Merged", "Work_Completed"])
|
|
24
|
+
* - `metrics`: DEPRECATED - Use `metricGroups` instead
|
|
25
|
+
*
|
|
26
|
+
* **Available Metric Groups:**
|
|
27
|
+
* - `pr`: PR metrics (merged, cycle time, size breakdown, missing tickets)
|
|
28
|
+
* - `work`: Work item metrics (completed, features, bugs, other)
|
|
29
|
+
* - `loc`: Lines of code metrics (added, removed, refactored)
|
|
30
|
+
* - `review`: Code review metrics (time to first comment, comments per PR)
|
|
31
|
+
* - `rework`: Code rework metrics (rework percent by age)
|
|
32
|
+
* - `codingDays`: Number of coding days
|
|
33
|
+
* - `commitsTotal`: Total commits
|
|
34
|
+
*
|
|
35
|
+
* **Metric Levels:**
|
|
36
|
+
* - `developer`: Individual developer metrics (one row per developer per time period)
|
|
37
|
+
* - `team`: Team-level aggregations (includes team-specific metrics like PR velocity)
|
|
38
|
+
*
|
|
39
|
+
* **Deduplication:** If an identical export was requested recently (within 30 minutes),
|
|
40
|
+
* the existing export will be reused and returned with 200 OK status.
|
|
41
|
+
*
|
|
21
42
|
*/
|
|
22
43
|
export declare function useProductivityInsightsExportControllerCreateExportMutation(options?: Omit<UseMutationOptions<ProductivityInsightsExportControllerCreateExportOkResponse, ProductivityInsightsExportControllerCreateExportErrorResponse, ProductivityInsightsExportControllerCreateExportProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ProductivityInsightsExportControllerCreateExportOkResponse, unknown, ProductivityInsightsExportControllerCreateExportProps, unknown>;
|
|
@@ -7,7 +7,29 @@ export function productivityInsightsExportControllerCreateExport(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v2/insights/productivity/exports`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Creates a new export job for developer productivity metrics.
|
|
10
|
+
* Creates a new export job for developer productivity metrics.
|
|
11
|
+
*
|
|
12
|
+
* **Metric Selection** (choose ONE):
|
|
13
|
+
* - `metricGroups`: High-level metric groups (e.g., ["pr", "work", "loc"])
|
|
14
|
+
* - `metricColumns`: Granular column selection (e.g., ["PR_Merged", "Work_Completed"])
|
|
15
|
+
* - `metrics`: DEPRECATED - Use `metricGroups` instead
|
|
16
|
+
*
|
|
17
|
+
* **Available Metric Groups:**
|
|
18
|
+
* - `pr`: PR metrics (merged, cycle time, size breakdown, missing tickets)
|
|
19
|
+
* - `work`: Work item metrics (completed, features, bugs, other)
|
|
20
|
+
* - `loc`: Lines of code metrics (added, removed, refactored)
|
|
21
|
+
* - `review`: Code review metrics (time to first comment, comments per PR)
|
|
22
|
+
* - `rework`: Code rework metrics (rework percent by age)
|
|
23
|
+
* - `codingDays`: Number of coding days
|
|
24
|
+
* - `commitsTotal`: Total commits
|
|
25
|
+
*
|
|
26
|
+
* **Metric Levels:**
|
|
27
|
+
* - `developer`: Individual developer metrics (one row per developer per time period)
|
|
28
|
+
* - `team`: Team-level aggregations (includes team-specific metrics like PR velocity)
|
|
29
|
+
*
|
|
30
|
+
* **Deduplication:** If an identical export was requested recently (within 30 minutes),
|
|
31
|
+
* the existing export will be reused and returned with 200 OK status.
|
|
32
|
+
*
|
|
11
33
|
*/
|
|
12
34
|
export function useProductivityInsightsExportControllerCreateExportMutation(options) {
|
|
13
35
|
return useMutation((mutateProps) => productivityInsightsExportControllerCreateExport(mutateProps), options);
|
|
@@ -4,13 +4,9 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
4
4
|
export interface ProductivityInsightsExportControllerDownloadExportQueryPathParams {
|
|
5
5
|
exportId: string;
|
|
6
6
|
}
|
|
7
|
-
export interface ProductivityInsightsExportControllerDownloadExportQueryQueryParams {
|
|
8
|
-
routingId: string;
|
|
9
|
-
}
|
|
10
7
|
export type ProductivityInsightsExportControllerDownloadExportOkResponse = ResponseWithPagination<unknown>;
|
|
11
8
|
export type ProductivityInsightsExportControllerDownloadExportErrorResponse = unknown;
|
|
12
|
-
export interface ProductivityInsightsExportControllerDownloadExportProps extends ProductivityInsightsExportControllerDownloadExportQueryPathParams, Omit<FetcherOptions<
|
|
13
|
-
queryParams: ProductivityInsightsExportControllerDownloadExportQueryQueryParams;
|
|
9
|
+
export interface ProductivityInsightsExportControllerDownloadExportProps extends ProductivityInsightsExportControllerDownloadExportQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
14
10
|
}
|
|
15
11
|
export declare function productivityInsightsExportControllerDownloadExport(props: ProductivityInsightsExportControllerDownloadExportProps): Promise<ProductivityInsightsExportControllerDownloadExportOkResponse>;
|
|
16
12
|
/**
|
|
@@ -10,5 +10,5 @@ export function productivityInsightsExportControllerDownloadExport(props) {
|
|
|
10
10
|
* Downloads the CSV file for a completed export. Returns 404 if export not found or not yet completed.
|
|
11
11
|
*/
|
|
12
12
|
export function useProductivityInsightsExportControllerDownloadExportQuery(props, options) {
|
|
13
|
-
return useQuery(['ProductivityInsightsExportControllerDownloadExport', props.exportId
|
|
13
|
+
return useQuery(['ProductivityInsightsExportControllerDownloadExport', props.exportId], ({ signal }) => productivityInsightsExportControllerDownloadExport(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|