@harnessio/react-sei-panorama-service-client 0.26.5 → 0.26.7
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/useDeveloperControllerUpsertDeveloperIdentitiesMutation.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useIntegrationControllerGetItsmCustomFieldsQuery.d.ts +20 -0
- package/dist/sei-panorama-service/src/services/hooks/useIntegrationControllerGetItsmCustomFieldsQuery.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/useTeamsControllerGetTeamHqlFiltersQuery.d.ts +20 -0
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamHqlFiltersQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/index.d.ts +20 -6
- package/dist/sei-panorama-service/src/services/index.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/CfrConfigurationDto.d.ts +15 -0
- package/dist/sei-panorama-service/src/services/schemas/DfConfigurationDto.d.ts +12 -0
- package/dist/sei-panorama-service/src/services/schemas/ExportMetadata.d.ts +5 -1
- package/dist/sei-panorama-service/src/services/schemas/FilterValuesRequestDto.d.ts +1 -1
- 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/ItsmCustomFieldDto.d.ts +21 -0
- package/dist/sei-panorama-service/src/services/schemas/ItsmCustomFieldDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/ItsmDrilldownItem.d.ts +94 -0
- package/dist/sei-panorama-service/src/services/schemas/ItsmDrilldownItem.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/MetricsExportRequestDto.d.ts +7 -2
- package/dist/sei-panorama-service/src/services/schemas/MttrConfigurationDto.d.ts +16 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrDrillDownResponseDto.d.ts +18 -0
- package/dist/sei-panorama-service/src/services/schemas/SimpleFilter.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/SprintExportRequestDto.d.ts +15 -0
- package/dist/sei-panorama-service/src/services/schemas/SummaryValue.d.ts +12 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamFilter.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/TeamFiltersHqlDto.d.ts +8 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamFiltersHqlDto.js +4 -0
- 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
|
@@ -7,7 +7,7 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
7
7
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
8
|
export type DeveloperControllerUpsertDeveloperIdentitiesRequestBody = DeveloperIdentity[];
|
|
9
9
|
export type DeveloperControllerUpsertDeveloperIdentitiesOkResponse = ResponseWithPagination<DeveloperIdentityUpsertResponse>;
|
|
10
|
-
export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse = DeveloperIdentityUpsertFailureResponse | ErrorResponse;
|
|
10
|
+
export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse = (DeveloperIdentityUpsertFailureResponse & ErrorResponse) | ErrorResponse;
|
|
11
11
|
export interface DeveloperControllerUpsertDeveloperIdentitiesProps extends Omit<FetcherOptions<unknown, DeveloperControllerUpsertDeveloperIdentitiesRequestBody>, 'url'> {
|
|
12
12
|
body: DeveloperControllerUpsertDeveloperIdentitiesRequestBody;
|
|
13
13
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ItsmCustomFieldDto } from '../schemas/ItsmCustomFieldDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface IntegrationControllerGetItsmCustomFieldsQueryQueryParams {
|
|
6
|
+
/**
|
|
7
|
+
* @format int32
|
|
8
|
+
*/
|
|
9
|
+
integrationId: number;
|
|
10
|
+
}
|
|
11
|
+
export type IntegrationControllerGetItsmCustomFieldsOkResponse = ResponseWithPagination<ItsmCustomFieldDto[]>;
|
|
12
|
+
export type IntegrationControllerGetItsmCustomFieldsErrorResponse = ItsmCustomFieldDto[];
|
|
13
|
+
export interface IntegrationControllerGetItsmCustomFieldsProps extends Omit<FetcherOptions<IntegrationControllerGetItsmCustomFieldsQueryQueryParams, unknown>, 'url'> {
|
|
14
|
+
queryParams: IntegrationControllerGetItsmCustomFieldsQueryQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export declare function integrationControllerGetItsmCustomFields(props: IntegrationControllerGetItsmCustomFieldsProps): Promise<IntegrationControllerGetItsmCustomFieldsOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns a list of custom fields for a specific ITSM integration, including both incident and change request fields.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useIntegrationControllerGetItsmCustomFieldsQuery(props: IntegrationControllerGetItsmCustomFieldsProps, options?: Omit<UseQueryOptions<IntegrationControllerGetItsmCustomFieldsOkResponse, IntegrationControllerGetItsmCustomFieldsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<IntegrationControllerGetItsmCustomFieldsOkResponse, IntegrationControllerGetItsmCustomFieldsErrorResponse>;
|
|
@@ -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 integrationControllerGetItsmCustomFields(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/integrations/itsm/custom_fields`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns a list of custom fields for a specific ITSM integration, including both incident and change request fields.
|
|
11
|
+
*/
|
|
12
|
+
export function useIntegrationControllerGetItsmCustomFieldsQuery(props, options) {
|
|
13
|
+
return useQuery(['IntegrationControllerGetItsmCustomFields', props.queryParams], ({ signal }) => integrationControllerGetItsmCustomFields(Object.assign(Object.assign({}, props), { signal })), 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
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { MetricsExportRequestDto } from '../schemas/MetricsExportRequestDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface ProductivityInsightsExportControllerGenerateExportDirectMutationQueryParams {
|
|
6
|
+
projectIdentifier?: string;
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
}
|
|
9
|
+
export type ProductivityInsightsExportControllerGenerateExportDirectRequestBody = MetricsExportRequestDto;
|
|
10
|
+
export type ProductivityInsightsExportControllerGenerateExportDirectOkResponse = ResponseWithPagination<unknown>;
|
|
11
|
+
export type ProductivityInsightsExportControllerGenerateExportDirectErrorResponse = unknown;
|
|
12
|
+
export interface ProductivityInsightsExportControllerGenerateExportDirectProps extends Omit<FetcherOptions<ProductivityInsightsExportControllerGenerateExportDirectMutationQueryParams, ProductivityInsightsExportControllerGenerateExportDirectRequestBody>, 'url'> {
|
|
13
|
+
queryParams: ProductivityInsightsExportControllerGenerateExportDirectMutationQueryParams;
|
|
14
|
+
body: ProductivityInsightsExportControllerGenerateExportDirectRequestBody;
|
|
15
|
+
}
|
|
16
|
+
export declare function productivityInsightsExportControllerGenerateExportDirect(props: ProductivityInsightsExportControllerGenerateExportDirectProps): Promise<ProductivityInsightsExportControllerGenerateExportDirectOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Generates and returns a productivity metrics CSV file immediately without database storage.
|
|
19
|
+
*
|
|
20
|
+
* **Key Differences from Async Export:**
|
|
21
|
+
* - No database storage (no export job record)
|
|
22
|
+
* - No async processing queue
|
|
23
|
+
* - Returns CSV directly in response
|
|
24
|
+
* - No deduplication check
|
|
25
|
+
* - Generates random export ID for traceability
|
|
26
|
+
*
|
|
27
|
+
* **Metric Selection** (choose ONE):
|
|
28
|
+
* - `metricGroups`: Business-oriented groups (e.g., ["volume", "quality", "collaboration"])
|
|
29
|
+
* - `metrics`: Granular column selection (e.g., ["PR_Merged", "Work_Completed"])
|
|
30
|
+
*
|
|
31
|
+
* **New Metric Groups** (business-aligned):
|
|
32
|
+
* - `activity`: Developer engagement and coding activity
|
|
33
|
+
* - `velocity`: Speed and efficiency of delivery
|
|
34
|
+
* - `volume`: Quantity of work output (PRs, work items, LOC, commits)
|
|
35
|
+
* - `quality`: Code quality and technical debt indicators
|
|
36
|
+
* - `collaboration`: Team collaboration and code review
|
|
37
|
+
*
|
|
38
|
+
* **Legacy Labels** (backward compatible):
|
|
39
|
+
* - `pr` → maps to `volume`
|
|
40
|
+
* - `work` → maps to `volume`
|
|
41
|
+
* - `loc` → maps to `volume`
|
|
42
|
+
* - `review` → maps to `collaboration`
|
|
43
|
+
* - `rework` → maps to `quality`
|
|
44
|
+
* - `codingDays` → maps to `activity`
|
|
45
|
+
* - `commitsTotal` → maps to `volume`
|
|
46
|
+
*
|
|
47
|
+
* **Metric Levels:**
|
|
48
|
+
* - `developer`: Individual developer metrics (one row per developer per time period)
|
|
49
|
+
* - `team`: Team-level aggregations (includes team-specific metrics)
|
|
50
|
+
*
|
|
51
|
+
* **Use Cases:**
|
|
52
|
+
* - Quick data exports without tracking
|
|
53
|
+
* - Development and testing
|
|
54
|
+
* - API exploratory calls
|
|
55
|
+
* - One-time data analysis
|
|
56
|
+
*
|
|
57
|
+
* @deprecated
|
|
58
|
+
*/
|
|
59
|
+
export declare function useProductivityInsightsExportControllerGenerateExportDirectMutation(options?: Omit<UseMutationOptions<ProductivityInsightsExportControllerGenerateExportDirectOkResponse, ProductivityInsightsExportControllerGenerateExportDirectErrorResponse, ProductivityInsightsExportControllerGenerateExportDirectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ProductivityInsightsExportControllerGenerateExportDirectOkResponse, unknown, ProductivityInsightsExportControllerGenerateExportDirectProps, unknown>;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 productivityInsightsExportControllerGenerateExportDirect(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/productivity/exports/direct`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Generates and returns a productivity metrics CSV file immediately without database storage.
|
|
11
|
+
*
|
|
12
|
+
* **Key Differences from Async Export:**
|
|
13
|
+
* - No database storage (no export job record)
|
|
14
|
+
* - No async processing queue
|
|
15
|
+
* - Returns CSV directly in response
|
|
16
|
+
* - No deduplication check
|
|
17
|
+
* - Generates random export ID for traceability
|
|
18
|
+
*
|
|
19
|
+
* **Metric Selection** (choose ONE):
|
|
20
|
+
* - `metricGroups`: Business-oriented groups (e.g., ["volume", "quality", "collaboration"])
|
|
21
|
+
* - `metrics`: Granular column selection (e.g., ["PR_Merged", "Work_Completed"])
|
|
22
|
+
*
|
|
23
|
+
* **New Metric Groups** (business-aligned):
|
|
24
|
+
* - `activity`: Developer engagement and coding activity
|
|
25
|
+
* - `velocity`: Speed and efficiency of delivery
|
|
26
|
+
* - `volume`: Quantity of work output (PRs, work items, LOC, commits)
|
|
27
|
+
* - `quality`: Code quality and technical debt indicators
|
|
28
|
+
* - `collaboration`: Team collaboration and code review
|
|
29
|
+
*
|
|
30
|
+
* **Legacy Labels** (backward compatible):
|
|
31
|
+
* - `pr` → maps to `volume`
|
|
32
|
+
* - `work` → maps to `volume`
|
|
33
|
+
* - `loc` → maps to `volume`
|
|
34
|
+
* - `review` → maps to `collaboration`
|
|
35
|
+
* - `rework` → maps to `quality`
|
|
36
|
+
* - `codingDays` → maps to `activity`
|
|
37
|
+
* - `commitsTotal` → maps to `volume`
|
|
38
|
+
*
|
|
39
|
+
* **Metric Levels:**
|
|
40
|
+
* - `developer`: Individual developer metrics (one row per developer per time period)
|
|
41
|
+
* - `team`: Team-level aggregations (includes team-specific metrics)
|
|
42
|
+
*
|
|
43
|
+
* **Use Cases:**
|
|
44
|
+
* - Quick data exports without tracking
|
|
45
|
+
* - Development and testing
|
|
46
|
+
* - API exploratory calls
|
|
47
|
+
* - One-time data analysis
|
|
48
|
+
*
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
51
|
+
export function useProductivityInsightsExportControllerGenerateExportDirectMutation(options) {
|
|
52
|
+
return useMutation((mutateProps) => productivityInsightsExportControllerGenerateExportDirect(mutateProps), options);
|
|
53
|
+
}
|
|
@@ -3,7 +3,6 @@ import type { MetricsExportRequestDto } from '../schemas/MetricsExportRequestDto
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface ProductivityInsightsExportControllerGenerateExportSyncMutationQueryParams {
|
|
6
|
-
routingId: string;
|
|
7
6
|
projectIdentifier?: string;
|
|
8
7
|
orgIdentifier?: string;
|
|
9
8
|
}
|
|
@@ -17,5 +16,6 @@ export interface ProductivityInsightsExportControllerGenerateExportSyncProps ext
|
|
|
17
16
|
export declare function productivityInsightsExportControllerGenerateExportSync(props: ProductivityInsightsExportControllerGenerateExportSyncProps): Promise<ProductivityInsightsExportControllerGenerateExportSyncOkResponse>;
|
|
18
17
|
/**
|
|
19
18
|
* Directly generates and returns a productivity metrics CSV file without async processing. Intended for testing purposes only. For production use, use the async POST /exports endpoint.
|
|
19
|
+
* @deprecated
|
|
20
20
|
*/
|
|
21
21
|
export declare function useProductivityInsightsExportControllerGenerateExportSyncMutation(options?: Omit<UseMutationOptions<ProductivityInsightsExportControllerGenerateExportSyncOkResponse, ProductivityInsightsExportControllerGenerateExportSyncErrorResponse, ProductivityInsightsExportControllerGenerateExportSyncProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ProductivityInsightsExportControllerGenerateExportSyncOkResponse, unknown, ProductivityInsightsExportControllerGenerateExportSyncProps, unknown>;
|
|
@@ -8,6 +8,7 @@ export function productivityInsightsExportControllerGenerateExportSync(props) {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Directly generates and returns a productivity metrics CSV file without async processing. Intended for testing purposes only. For production use, use the async POST /exports endpoint.
|
|
11
|
+
* @deprecated
|
|
11
12
|
*/
|
|
12
13
|
export function useProductivityInsightsExportControllerGenerateExportSyncMutation(options) {
|
|
13
14
|
return useMutation((mutateProps) => productivityInsightsExportControllerGenerateExportSync(mutateProps), options);
|
|
@@ -5,13 +5,9 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
5
5
|
export interface ProductivityInsightsExportControllerGetExportStatusQueryPathParams {
|
|
6
6
|
exportId: string;
|
|
7
7
|
}
|
|
8
|
-
export interface ProductivityInsightsExportControllerGetExportStatusQueryQueryParams {
|
|
9
|
-
routingId: string;
|
|
10
|
-
}
|
|
11
8
|
export type ProductivityInsightsExportControllerGetExportStatusOkResponse = ResponseWithPagination<MetricsExportResponseDto>;
|
|
12
9
|
export type ProductivityInsightsExportControllerGetExportStatusErrorResponse = unknown;
|
|
13
|
-
export interface ProductivityInsightsExportControllerGetExportStatusProps extends ProductivityInsightsExportControllerGetExportStatusQueryPathParams, Omit<FetcherOptions<
|
|
14
|
-
queryParams: ProductivityInsightsExportControllerGetExportStatusQueryQueryParams;
|
|
10
|
+
export interface ProductivityInsightsExportControllerGetExportStatusProps extends ProductivityInsightsExportControllerGetExportStatusQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
15
11
|
}
|
|
16
12
|
export declare function productivityInsightsExportControllerGetExportStatus(props: ProductivityInsightsExportControllerGetExportStatusProps): Promise<ProductivityInsightsExportControllerGetExportStatusOkResponse>;
|
|
17
13
|
/**
|
|
@@ -10,5 +10,5 @@ export function productivityInsightsExportControllerGetExportStatus(props) {
|
|
|
10
10
|
* Retrieves the current status of an export job. If the export is completed, includes download information.
|
|
11
11
|
*/
|
|
12
12
|
export function useProductivityInsightsExportControllerGetExportStatusQuery(props, options) {
|
|
13
|
-
return useQuery(['ProductivityInsightsExportControllerGetExportStatus', props.exportId
|
|
13
|
+
return useQuery(['ProductivityInsightsExportControllerGetExportStatus', props.exportId], ({ signal }) => productivityInsightsExportControllerGetExportStatus(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -3,7 +3,6 @@ import type { MetricsExportListResponseDto } from '../schemas/MetricsExportListR
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface ProductivityInsightsExportControllerListExportsQueryQueryParams {
|
|
6
|
-
routingId: string;
|
|
7
6
|
status?: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PROCESSING' | 'QUEUED';
|
|
8
7
|
/**
|
|
9
8
|
* @default "all"
|
|
@@ -4,7 +4,6 @@ import type { SprintExportRequestDto } from '../schemas/SprintExportRequestDto';
|
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface SprintInsightsExportControllerCreateExportMutationQueryParams {
|
|
7
|
-
routingId: string;
|
|
8
7
|
projectIdentifier?: string;
|
|
9
8
|
orgIdentifier?: string;
|
|
10
9
|
}
|
|
@@ -17,6 +16,16 @@ export interface SprintInsightsExportControllerCreateExportProps extends Omit<Fe
|
|
|
17
16
|
}
|
|
18
17
|
export declare function sprintInsightsExportControllerCreateExport(props: SprintInsightsExportControllerCreateExportProps): Promise<SprintInsightsExportControllerCreateExportOkResponse>;
|
|
19
18
|
/**
|
|
20
|
-
* Creates a new export job for sprint insights metrics.
|
|
19
|
+
* Creates a new export job for sprint insights metrics.
|
|
20
|
+
* If an identical export was requested recently (within 30 minutes),
|
|
21
|
+
* the existing export will be reused and returned with 200 OK status.
|
|
22
|
+
*
|
|
23
|
+
* Metric Selection (choose ONE):
|
|
24
|
+
* - metricGroups: ["work", "delivery"] (high-level groups)
|
|
25
|
+
* - metricColumns: ["Sprint_Commit", "Total_Work_Delivered"] (granular)
|
|
26
|
+
* - metrics: DEPRECATED, use metricGroups
|
|
27
|
+
*
|
|
28
|
+
* Note: sprintIds are used for filtering but not persisted.
|
|
29
|
+
*
|
|
21
30
|
*/
|
|
22
31
|
export declare function useSprintInsightsExportControllerCreateExportMutation(options?: Omit<UseMutationOptions<SprintInsightsExportControllerCreateExportOkResponse, SprintInsightsExportControllerCreateExportErrorResponse, SprintInsightsExportControllerCreateExportProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SprintInsightsExportControllerCreateExportOkResponse, unknown, SprintInsightsExportControllerCreateExportProps, unknown>;
|
|
@@ -7,7 +7,17 @@ export function sprintInsightsExportControllerCreateExport(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v2/insights/efficiency/sprints/export`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Creates a new export job for sprint insights metrics.
|
|
10
|
+
* Creates a new export job for sprint insights metrics.
|
|
11
|
+
* If an identical export was requested recently (within 30 minutes),
|
|
12
|
+
* the existing export will be reused and returned with 200 OK status.
|
|
13
|
+
*
|
|
14
|
+
* Metric Selection (choose ONE):
|
|
15
|
+
* - metricGroups: ["work", "delivery"] (high-level groups)
|
|
16
|
+
* - metricColumns: ["Sprint_Commit", "Total_Work_Delivered"] (granular)
|
|
17
|
+
* - metrics: DEPRECATED, use metricGroups
|
|
18
|
+
*
|
|
19
|
+
* Note: sprintIds are used for filtering but not persisted.
|
|
20
|
+
*
|
|
11
21
|
*/
|
|
12
22
|
export function useSprintInsightsExportControllerCreateExportMutation(options) {
|
|
13
23
|
return useMutation((mutateProps) => sprintInsightsExportControllerCreateExport(mutateProps), options);
|
|
@@ -4,7 +4,6 @@ import type { SprintExportRequestDto } from '../schemas/SprintExportRequestDto';
|
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface SprintInsightsExportControllerCreateExport_1MutationQueryParams {
|
|
7
|
-
routingId: string;
|
|
8
7
|
projectIdentifier?: string;
|
|
9
8
|
orgIdentifier?: string;
|
|
10
9
|
}
|
|
@@ -17,6 +16,16 @@ export interface SprintInsightsExportControllerCreateExport_1Props extends Omit<
|
|
|
17
16
|
}
|
|
18
17
|
export declare function sprintInsightsExportControllerCreateExport_1(props: SprintInsightsExportControllerCreateExport_1Props): Promise<SprintInsightsExportControllerCreateExport_1OkResponse>;
|
|
19
18
|
/**
|
|
20
|
-
* Creates a new export job for sprint insights metrics.
|
|
19
|
+
* Creates a new export job for sprint insights metrics.
|
|
20
|
+
* If an identical export was requested recently (within 30 minutes),
|
|
21
|
+
* the existing export will be reused and returned with 200 OK status.
|
|
22
|
+
*
|
|
23
|
+
* Metric Selection (choose ONE):
|
|
24
|
+
* - metricGroups: ["work", "delivery"] (high-level groups)
|
|
25
|
+
* - metricColumns: ["Sprint_Commit", "Total_Work_Delivered"] (granular)
|
|
26
|
+
* - metrics: DEPRECATED, use metricGroups
|
|
27
|
+
*
|
|
28
|
+
* Note: sprintIds are used for filtering but not persisted.
|
|
29
|
+
*
|
|
21
30
|
*/
|
|
22
31
|
export declare function useSprintInsightsExportControllerCreateExport_1Mutation(options?: Omit<UseMutationOptions<SprintInsightsExportControllerCreateExport_1OkResponse, SprintInsightsExportControllerCreateExport_1ErrorResponse, SprintInsightsExportControllerCreateExport_1Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SprintInsightsExportControllerCreateExport_1OkResponse, unknown, SprintInsightsExportControllerCreateExport_1Props, unknown>;
|
|
@@ -7,7 +7,17 @@ export function sprintInsightsExportControllerCreateExport_1(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v2/insights/sprints/exports`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Creates a new export job for sprint insights metrics.
|
|
10
|
+
* Creates a new export job for sprint insights metrics.
|
|
11
|
+
* If an identical export was requested recently (within 30 minutes),
|
|
12
|
+
* the existing export will be reused and returned with 200 OK status.
|
|
13
|
+
*
|
|
14
|
+
* Metric Selection (choose ONE):
|
|
15
|
+
* - metricGroups: ["work", "delivery"] (high-level groups)
|
|
16
|
+
* - metricColumns: ["Sprint_Commit", "Total_Work_Delivered"] (granular)
|
|
17
|
+
* - metrics: DEPRECATED, use metricGroups
|
|
18
|
+
*
|
|
19
|
+
* Note: sprintIds are used for filtering but not persisted.
|
|
20
|
+
*
|
|
11
21
|
*/
|
|
12
22
|
export function useSprintInsightsExportControllerCreateExport_1Mutation(options) {
|
|
13
23
|
return useMutation((mutateProps) => sprintInsightsExportControllerCreateExport_1(mutateProps), options);
|
|
@@ -4,13 +4,9 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
4
4
|
export interface SprintInsightsExportControllerDownloadExportQueryPathParams {
|
|
5
5
|
exportId: string;
|
|
6
6
|
}
|
|
7
|
-
export interface SprintInsightsExportControllerDownloadExportQueryQueryParams {
|
|
8
|
-
routingId: string;
|
|
9
|
-
}
|
|
10
7
|
export type SprintInsightsExportControllerDownloadExportOkResponse = ResponseWithPagination<unknown>;
|
|
11
8
|
export type SprintInsightsExportControllerDownloadExportErrorResponse = unknown;
|
|
12
|
-
export interface SprintInsightsExportControllerDownloadExportProps extends SprintInsightsExportControllerDownloadExportQueryPathParams, Omit<FetcherOptions<
|
|
13
|
-
queryParams: SprintInsightsExportControllerDownloadExportQueryQueryParams;
|
|
9
|
+
export interface SprintInsightsExportControllerDownloadExportProps extends SprintInsightsExportControllerDownloadExportQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
14
10
|
}
|
|
15
11
|
export declare function sprintInsightsExportControllerDownloadExport(props: SprintInsightsExportControllerDownloadExportProps): Promise<SprintInsightsExportControllerDownloadExportOkResponse>;
|
|
16
12
|
/**
|
|
@@ -10,5 +10,5 @@ export function sprintInsightsExportControllerDownloadExport(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 useSprintInsightsExportControllerDownloadExportQuery(props, options) {
|
|
13
|
-
return useQuery(['SprintInsightsExportControllerDownloadExport', props.exportId
|
|
13
|
+
return useQuery(['SprintInsightsExportControllerDownloadExport', props.exportId], ({ signal }) => sprintInsightsExportControllerDownloadExport(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -4,13 +4,9 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
4
4
|
export interface SprintInsightsExportControllerDownloadExport_1QueryPathParams {
|
|
5
5
|
exportId: string;
|
|
6
6
|
}
|
|
7
|
-
export interface SprintInsightsExportControllerDownloadExport_1QueryQueryParams {
|
|
8
|
-
routingId: string;
|
|
9
|
-
}
|
|
10
7
|
export type SprintInsightsExportControllerDownloadExport_1OkResponse = ResponseWithPagination<unknown>;
|
|
11
8
|
export type SprintInsightsExportControllerDownloadExport_1ErrorResponse = unknown;
|
|
12
|
-
export interface SprintInsightsExportControllerDownloadExport_1Props extends SprintInsightsExportControllerDownloadExport_1QueryPathParams, Omit<FetcherOptions<
|
|
13
|
-
queryParams: SprintInsightsExportControllerDownloadExport_1QueryQueryParams;
|
|
9
|
+
export interface SprintInsightsExportControllerDownloadExport_1Props extends SprintInsightsExportControllerDownloadExport_1QueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
14
10
|
}
|
|
15
11
|
export declare function sprintInsightsExportControllerDownloadExport_1(props: SprintInsightsExportControllerDownloadExport_1Props): Promise<SprintInsightsExportControllerDownloadExport_1OkResponse>;
|
|
16
12
|
/**
|
|
@@ -10,5 +10,5 @@ export function sprintInsightsExportControllerDownloadExport_1(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 useSprintInsightsExportControllerDownloadExport_1Query(props, options) {
|
|
13
|
-
return useQuery(['SprintInsightsExportControllerDownloadExport_1', props.exportId
|
|
13
|
+
return useQuery(['SprintInsightsExportControllerDownloadExport_1', props.exportId], ({ signal }) => sprintInsightsExportControllerDownloadExport_1(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -3,7 +3,6 @@ import type { SprintExportRequestDto } from '../schemas/SprintExportRequestDto';
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface SprintInsightsExportControllerGenerateExportSyncMutationQueryParams {
|
|
6
|
-
routingId: string;
|
|
7
6
|
projectIdentifier?: string;
|
|
8
7
|
orgIdentifier?: string;
|
|
9
8
|
}
|
|
@@ -16,6 +15,13 @@ export interface SprintInsightsExportControllerGenerateExportSyncProps extends O
|
|
|
16
15
|
}
|
|
17
16
|
export declare function sprintInsightsExportControllerGenerateExportSync(props: SprintInsightsExportControllerGenerateExportSyncProps): Promise<SprintInsightsExportControllerGenerateExportSyncOkResponse>;
|
|
18
17
|
/**
|
|
19
|
-
* Directly generates and returns a sprint metrics CSV file without async processing.
|
|
18
|
+
* Directly generates and returns a sprint metrics CSV file without async processing.
|
|
19
|
+
* Intended for testing purposes only. For production use, use the async POST /exports endpoint.
|
|
20
|
+
*
|
|
21
|
+
* Metric Selection (choose ONE):
|
|
22
|
+
* - metricGroups: ["work", "delivery"] (high-level groups)
|
|
23
|
+
* - metricColumns: ["Sprint_Commit", "Total_Work_Delivered"] (granular)
|
|
24
|
+
* - metrics: DEPRECATED, use metricGroups
|
|
25
|
+
*
|
|
20
26
|
*/
|
|
21
27
|
export declare function useSprintInsightsExportControllerGenerateExportSyncMutation(options?: Omit<UseMutationOptions<SprintInsightsExportControllerGenerateExportSyncOkResponse, SprintInsightsExportControllerGenerateExportSyncErrorResponse, SprintInsightsExportControllerGenerateExportSyncProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SprintInsightsExportControllerGenerateExportSyncOkResponse, unknown, SprintInsightsExportControllerGenerateExportSyncProps, unknown>;
|
|
@@ -7,7 +7,14 @@ export function sprintInsightsExportControllerGenerateExportSync(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v2/insights/sprints/exports/sync`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Directly generates and returns a sprint metrics CSV file without async processing.
|
|
10
|
+
* Directly generates and returns a sprint metrics CSV file without async processing.
|
|
11
|
+
* Intended for testing purposes only. For production use, use the async POST /exports endpoint.
|
|
12
|
+
*
|
|
13
|
+
* Metric Selection (choose ONE):
|
|
14
|
+
* - metricGroups: ["work", "delivery"] (high-level groups)
|
|
15
|
+
* - metricColumns: ["Sprint_Commit", "Total_Work_Delivered"] (granular)
|
|
16
|
+
* - metrics: DEPRECATED, use metricGroups
|
|
17
|
+
*
|
|
11
18
|
*/
|
|
12
19
|
export function useSprintInsightsExportControllerGenerateExportSyncMutation(options) {
|
|
13
20
|
return useMutation((mutateProps) => sprintInsightsExportControllerGenerateExportSync(mutateProps), options);
|
|
@@ -3,7 +3,6 @@ import type { SprintExportRequestDto } from '../schemas/SprintExportRequestDto';
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface SprintInsightsExportControllerGenerateExportSync_1MutationQueryParams {
|
|
6
|
-
routingId: string;
|
|
7
6
|
projectIdentifier?: string;
|
|
8
7
|
orgIdentifier?: string;
|
|
9
8
|
}
|
|
@@ -16,6 +15,13 @@ export interface SprintInsightsExportControllerGenerateExportSync_1Props extends
|
|
|
16
15
|
}
|
|
17
16
|
export declare function sprintInsightsExportControllerGenerateExportSync_1(props: SprintInsightsExportControllerGenerateExportSync_1Props): Promise<SprintInsightsExportControllerGenerateExportSync_1OkResponse>;
|
|
18
17
|
/**
|
|
19
|
-
* Directly generates and returns a sprint metrics CSV file without async processing.
|
|
18
|
+
* Directly generates and returns a sprint metrics CSV file without async processing.
|
|
19
|
+
* Intended for testing purposes only. For production use, use the async POST /exports endpoint.
|
|
20
|
+
*
|
|
21
|
+
* Metric Selection (choose ONE):
|
|
22
|
+
* - metricGroups: ["work", "delivery"] (high-level groups)
|
|
23
|
+
* - metricColumns: ["Sprint_Commit", "Total_Work_Delivered"] (granular)
|
|
24
|
+
* - metrics: DEPRECATED, use metricGroups
|
|
25
|
+
*
|
|
20
26
|
*/
|
|
21
27
|
export declare function useSprintInsightsExportControllerGenerateExportSync_1Mutation(options?: Omit<UseMutationOptions<SprintInsightsExportControllerGenerateExportSync_1OkResponse, SprintInsightsExportControllerGenerateExportSync_1ErrorResponse, SprintInsightsExportControllerGenerateExportSync_1Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SprintInsightsExportControllerGenerateExportSync_1OkResponse, unknown, SprintInsightsExportControllerGenerateExportSync_1Props, unknown>;
|
|
@@ -7,7 +7,14 @@ export function sprintInsightsExportControllerGenerateExportSync_1(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v2/insights/efficiency/sprints/export/sync`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Directly generates and returns a sprint metrics CSV file without async processing.
|
|
10
|
+
* Directly generates and returns a sprint metrics CSV file without async processing.
|
|
11
|
+
* Intended for testing purposes only. For production use, use the async POST /exports endpoint.
|
|
12
|
+
*
|
|
13
|
+
* Metric Selection (choose ONE):
|
|
14
|
+
* - metricGroups: ["work", "delivery"] (high-level groups)
|
|
15
|
+
* - metricColumns: ["Sprint_Commit", "Total_Work_Delivered"] (granular)
|
|
16
|
+
* - metrics: DEPRECATED, use metricGroups
|
|
17
|
+
*
|
|
11
18
|
*/
|
|
12
19
|
export function useSprintInsightsExportControllerGenerateExportSync_1Mutation(options) {
|
|
13
20
|
return useMutation((mutateProps) => sprintInsightsExportControllerGenerateExportSync_1(mutateProps), options);
|
|
@@ -5,13 +5,9 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
5
5
|
export interface SprintInsightsExportControllerGetExportStatusQueryPathParams {
|
|
6
6
|
exportId: string;
|
|
7
7
|
}
|
|
8
|
-
export interface SprintInsightsExportControllerGetExportStatusQueryQueryParams {
|
|
9
|
-
routingId: string;
|
|
10
|
-
}
|
|
11
8
|
export type SprintInsightsExportControllerGetExportStatusOkResponse = ResponseWithPagination<SprintExportStatusResponseDto>;
|
|
12
9
|
export type SprintInsightsExportControllerGetExportStatusErrorResponse = unknown;
|
|
13
|
-
export interface SprintInsightsExportControllerGetExportStatusProps extends SprintInsightsExportControllerGetExportStatusQueryPathParams, Omit<FetcherOptions<
|
|
14
|
-
queryParams: SprintInsightsExportControllerGetExportStatusQueryQueryParams;
|
|
10
|
+
export interface SprintInsightsExportControllerGetExportStatusProps extends SprintInsightsExportControllerGetExportStatusQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
15
11
|
}
|
|
16
12
|
export declare function sprintInsightsExportControllerGetExportStatus(props: SprintInsightsExportControllerGetExportStatusProps): Promise<SprintInsightsExportControllerGetExportStatusOkResponse>;
|
|
17
13
|
/**
|
|
@@ -10,5 +10,5 @@ export function sprintInsightsExportControllerGetExportStatus(props) {
|
|
|
10
10
|
* Retrieves the current status of an export job. If the export is completed, includes download information.
|
|
11
11
|
*/
|
|
12
12
|
export function useSprintInsightsExportControllerGetExportStatusQuery(props, options) {
|
|
13
|
-
return useQuery(['SprintInsightsExportControllerGetExportStatus', props.exportId
|
|
13
|
+
return useQuery(['SprintInsightsExportControllerGetExportStatus', props.exportId], ({ signal }) => sprintInsightsExportControllerGetExportStatus(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -5,13 +5,9 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
5
5
|
export interface SprintInsightsExportControllerGetExportStatus_1QueryPathParams {
|
|
6
6
|
exportId: string;
|
|
7
7
|
}
|
|
8
|
-
export interface SprintInsightsExportControllerGetExportStatus_1QueryQueryParams {
|
|
9
|
-
routingId: string;
|
|
10
|
-
}
|
|
11
8
|
export type SprintInsightsExportControllerGetExportStatus_1OkResponse = ResponseWithPagination<SprintExportStatusResponseDto>;
|
|
12
9
|
export type SprintInsightsExportControllerGetExportStatus_1ErrorResponse = unknown;
|
|
13
|
-
export interface SprintInsightsExportControllerGetExportStatus_1Props extends SprintInsightsExportControllerGetExportStatus_1QueryPathParams, Omit<FetcherOptions<
|
|
14
|
-
queryParams: SprintInsightsExportControllerGetExportStatus_1QueryQueryParams;
|
|
10
|
+
export interface SprintInsightsExportControllerGetExportStatus_1Props extends SprintInsightsExportControllerGetExportStatus_1QueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
15
11
|
}
|
|
16
12
|
export declare function sprintInsightsExportControllerGetExportStatus_1(props: SprintInsightsExportControllerGetExportStatus_1Props): Promise<SprintInsightsExportControllerGetExportStatus_1OkResponse>;
|
|
17
13
|
/**
|
|
@@ -10,5 +10,5 @@ export function sprintInsightsExportControllerGetExportStatus_1(props) {
|
|
|
10
10
|
* Retrieves the current status of an export job. If the export is completed, includes download information.
|
|
11
11
|
*/
|
|
12
12
|
export function useSprintInsightsExportControllerGetExportStatus_1Query(props, options) {
|
|
13
|
-
return useQuery(['SprintInsightsExportControllerGetExportStatus_1', props.exportId
|
|
13
|
+
return useQuery(['SprintInsightsExportControllerGetExportStatus_1', props.exportId], ({ signal }) => sprintInsightsExportControllerGetExportStatus_1(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -3,7 +3,6 @@ import type { SprintExportListResponseDto } from '../schemas/SprintExportListRes
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface SprintInsightsExportControllerListExportsQueryQueryParams {
|
|
6
|
-
routingId: string;
|
|
7
6
|
status?: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PROCESSING' | 'QUEUED';
|
|
8
7
|
/**
|
|
9
8
|
* @default "all"
|
|
@@ -3,7 +3,6 @@ import type { SprintExportListResponseDto } from '../schemas/SprintExportListRes
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface SprintInsightsExportControllerListExports_1QueryQueryParams {
|
|
6
|
-
routingId: string;
|
|
7
6
|
status?: 'CANCELLED' | 'COMPLETED' | 'FAILED' | 'PROCESSING' | 'QUEUED';
|
|
8
7
|
/**
|
|
9
8
|
* @default "all"
|