@harnessio/react-sei-panorama-service-client 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. package/dist/sei-panorama-service/src/services/hooks/useExportControllerExportDataMutation.d.ts +27 -0
  2. package/dist/sei-panorama-service/src/services/hooks/useExportControllerExportDataMutation.js +14 -0
  3. package/dist/sei-panorama-service/src/services/hooks/useInsightSettingsControllerCreateSettingsMutation.d.ts +8 -6
  4. package/dist/sei-panorama-service/src/services/hooks/useInsightSettingsControllerCreateSettingsMutation.js +3 -0
  5. package/dist/sei-panorama-service/src/services/hooks/useInsightSettingsControllerGetSettingsQuery.d.ts +8 -6
  6. package/dist/sei-panorama-service/src/services/hooks/useInsightSettingsControllerGetSettingsQuery.js +3 -0
  7. package/dist/sei-panorama-service/src/services/hooks/useInsightSettingsControllerUpdateSettingsMutation.d.ts +8 -6
  8. package/dist/sei-panorama-service/src/services/hooks/useInsightSettingsControllerUpdateSettingsMutation.js +3 -0
  9. package/dist/sei-panorama-service/src/services/index.d.ts +6 -0
  10. package/dist/sei-panorama-service/src/services/index.js +1 -0
  11. package/dist/sei-panorama-service/src/services/schemas/EfficiencyRequestDto.d.ts +4 -0
  12. package/dist/sei-panorama-service/src/services/schemas/EfficiencyRequestDto.js +4 -0
  13. package/dist/sei-panorama-service/src/services/schemas/ErrorResponse.d.ts +8 -0
  14. package/dist/sei-panorama-service/src/services/schemas/ErrorResponse.js +4 -0
  15. package/dist/sei-panorama-service/src/services/schemas/Event.d.ts +1 -1
  16. package/dist/sei-panorama-service/src/services/schemas/ExportRequestDto.d.ts +17 -0
  17. package/dist/sei-panorama-service/src/services/schemas/ExportRequestDto.js +1 -0
  18. package/dist/sei-panorama-service/src/services/schemas/ProductivityRequestDto.d.ts +3 -0
  19. package/dist/sei-panorama-service/src/services/schemas/ProductivityRequestDto.js +4 -0
  20. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ExportRequestDto } from '../schemas/ExportRequestDto';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface ExportControllerExportDataMutationQueryParams {
6
+ accountId: string;
7
+ projectIdentifier?: string;
8
+ orgIdentifier?: string;
9
+ /**
10
+ * @default "csv"
11
+ */
12
+ format?: string;
13
+ }
14
+ export type ExportControllerExportDataRequestBody = ExportRequestDto;
15
+ export type ExportControllerExportDataOkResponse = ResponseWithPagination<{
16
+ [key: string]: any;
17
+ }>;
18
+ export type ExportControllerExportDataErrorResponse = string;
19
+ export interface ExportControllerExportDataProps extends Omit<FetcherOptions<ExportControllerExportDataMutationQueryParams, ExportControllerExportDataRequestBody>, 'url'> {
20
+ queryParams: ExportControllerExportDataMutationQueryParams;
21
+ body: ExportControllerExportDataRequestBody;
22
+ }
23
+ export declare function exportControllerExportData(props: ExportControllerExportDataProps): Promise<ExportControllerExportDataOkResponse>;
24
+ /**
25
+ * Retrieves data reports based on provided query parameters and request body, returning the report as a file.
26
+ */
27
+ export declare function useExportControllerExportDataMutation(options?: Omit<UseMutationOptions<ExportControllerExportDataOkResponse, ExportControllerExportDataErrorResponse, ExportControllerExportDataProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ExportControllerExportDataOkResponse, string, ExportControllerExportDataProps, 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 exportControllerExportData(props) {
7
+ return fetcher(Object.assign({ url: `/v2/insights/reports`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Retrieves data reports based on provided query parameters and request body, returning the report as a file.
11
+ */
12
+ export function useExportControllerExportDataMutation(options) {
13
+ return useMutation((mutateProps) => exportControllerExportData(mutateProps), options);
14
+ }
@@ -1,21 +1,23 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { InsightSettingsResponseDto } from '../schemas/InsightSettingsResponseDto';
3
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
3
4
  import type { InsightSettingsCreateRequestDto } from '../schemas/InsightSettingsCreateRequestDto';
4
5
  import type { ResponseWithPagination } from '../helpers';
5
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
7
  export interface InsightSettingsControllerCreateSettingsMutationQueryParams {
7
- /**
8
- * @format int32
9
- */
10
- workspaceId: number;
8
+ orgIdentifier: string;
9
+ projectIdentifier: string;
11
10
  accountIdentifier: string;
12
11
  }
13
12
  export type InsightSettingsControllerCreateSettingsRequestBody = InsightSettingsCreateRequestDto;
14
13
  export type InsightSettingsControllerCreateSettingsOkResponse = ResponseWithPagination<InsightSettingsResponseDto>;
15
- export type InsightSettingsControllerCreateSettingsErrorResponse = unknown;
14
+ export type InsightSettingsControllerCreateSettingsErrorResponse = ErrorResponse;
16
15
  export interface InsightSettingsControllerCreateSettingsProps extends Omit<FetcherOptions<InsightSettingsControllerCreateSettingsMutationQueryParams, InsightSettingsControllerCreateSettingsRequestBody>, 'url'> {
17
16
  queryParams: InsightSettingsControllerCreateSettingsMutationQueryParams;
18
17
  body: InsightSettingsControllerCreateSettingsRequestBody;
19
18
  }
20
19
  export declare function insightSettingsControllerCreateSettings(props: InsightSettingsControllerCreateSettingsProps): Promise<InsightSettingsControllerCreateSettingsOkResponse>;
21
- export declare function useInsightSettingsControllerCreateSettingsMutation(options?: Omit<UseMutationOptions<InsightSettingsControllerCreateSettingsOkResponse, InsightSettingsControllerCreateSettingsErrorResponse, InsightSettingsControllerCreateSettingsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<InsightSettingsControllerCreateSettingsOkResponse, unknown, InsightSettingsControllerCreateSettingsProps, unknown>;
20
+ /**
21
+ * Creates new insight settings for a workspace. Each workspace can only have one insight settings configuration.
22
+ */
23
+ export declare function useInsightSettingsControllerCreateSettingsMutation(options?: Omit<UseMutationOptions<InsightSettingsControllerCreateSettingsOkResponse, InsightSettingsControllerCreateSettingsErrorResponse, InsightSettingsControllerCreateSettingsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<InsightSettingsControllerCreateSettingsOkResponse, ErrorResponse, InsightSettingsControllerCreateSettingsProps, unknown>;
@@ -6,6 +6,9 @@ import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function insightSettingsControllerCreateSettings(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/insight-settings`, method: 'POST' }, props));
8
8
  }
9
+ /**
10
+ * Creates new insight settings for a workspace. Each workspace can only have one insight settings configuration.
11
+ */
9
12
  export function useInsightSettingsControllerCreateSettingsMutation(options) {
10
13
  return useMutation((mutateProps) => insightSettingsControllerCreateSettings(mutateProps), options);
11
14
  }
@@ -1,18 +1,20 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { InsightSettingsResponseDto } from '../schemas/InsightSettingsResponseDto';
3
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
3
4
  import type { ResponseWithPagination } from '../helpers';
4
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
6
  export interface InsightSettingsControllerGetSettingsQueryQueryParams {
6
- /**
7
- * @format int32
8
- */
9
- workspaceId: number;
7
+ orgIdentifier: string;
8
+ projectIdentifier: string;
10
9
  accountIdentifier: string;
11
10
  }
12
11
  export type InsightSettingsControllerGetSettingsOkResponse = ResponseWithPagination<InsightSettingsResponseDto>;
13
- export type InsightSettingsControllerGetSettingsErrorResponse = unknown;
12
+ export type InsightSettingsControllerGetSettingsErrorResponse = ErrorResponse;
14
13
  export interface InsightSettingsControllerGetSettingsProps extends Omit<FetcherOptions<InsightSettingsControllerGetSettingsQueryQueryParams, unknown>, 'url'> {
15
14
  queryParams: InsightSettingsControllerGetSettingsQueryQueryParams;
16
15
  }
17
16
  export declare function insightSettingsControllerGetSettings(props: InsightSettingsControllerGetSettingsProps): Promise<InsightSettingsControllerGetSettingsOkResponse>;
18
- export declare function useInsightSettingsControllerGetSettingsQuery(props: InsightSettingsControllerGetSettingsProps, options?: Omit<UseQueryOptions<InsightSettingsControllerGetSettingsOkResponse, InsightSettingsControllerGetSettingsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<InsightSettingsControllerGetSettingsOkResponse, unknown>;
17
+ /**
18
+ * Get insight settings for a workspace
19
+ */
20
+ export declare function useInsightSettingsControllerGetSettingsQuery(props: InsightSettingsControllerGetSettingsProps, options?: Omit<UseQueryOptions<InsightSettingsControllerGetSettingsOkResponse, InsightSettingsControllerGetSettingsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<InsightSettingsControllerGetSettingsOkResponse, ErrorResponse>;
@@ -6,6 +6,9 @@ import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function insightSettingsControllerGetSettings(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/insight-settings`, method: 'GET' }, props));
8
8
  }
9
+ /**
10
+ * Get insight settings for a workspace
11
+ */
9
12
  export function useInsightSettingsControllerGetSettingsQuery(props, options) {
10
13
  return useQuery(['InsightSettingsControllerGetSettings', props.queryParams], ({ signal }) => insightSettingsControllerGetSettings(Object.assign(Object.assign({}, props), { signal })), options);
11
14
  }
@@ -1,21 +1,23 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { InsightSettingsResponseDto } from '../schemas/InsightSettingsResponseDto';
3
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
3
4
  import type { InsightSettingsCreateRequestDto } from '../schemas/InsightSettingsCreateRequestDto';
4
5
  import type { ResponseWithPagination } from '../helpers';
5
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
7
  export interface InsightSettingsControllerUpdateSettingsMutationQueryParams {
7
- /**
8
- * @format int32
9
- */
10
- workspaceId: number;
8
+ orgIdentifier: string;
9
+ projectIdentifier: string;
11
10
  accountIdentifier: string;
12
11
  }
13
12
  export type InsightSettingsControllerUpdateSettingsRequestBody = InsightSettingsCreateRequestDto;
14
13
  export type InsightSettingsControllerUpdateSettingsOkResponse = ResponseWithPagination<InsightSettingsResponseDto>;
15
- export type InsightSettingsControllerUpdateSettingsErrorResponse = unknown;
14
+ export type InsightSettingsControllerUpdateSettingsErrorResponse = ErrorResponse;
16
15
  export interface InsightSettingsControllerUpdateSettingsProps extends Omit<FetcherOptions<InsightSettingsControllerUpdateSettingsMutationQueryParams, InsightSettingsControllerUpdateSettingsRequestBody>, 'url'> {
17
16
  queryParams: InsightSettingsControllerUpdateSettingsMutationQueryParams;
18
17
  body: InsightSettingsControllerUpdateSettingsRequestBody;
19
18
  }
20
19
  export declare function insightSettingsControllerUpdateSettings(props: InsightSettingsControllerUpdateSettingsProps): Promise<InsightSettingsControllerUpdateSettingsOkResponse>;
21
- export declare function useInsightSettingsControllerUpdateSettingsMutation(options?: Omit<UseMutationOptions<InsightSettingsControllerUpdateSettingsOkResponse, InsightSettingsControllerUpdateSettingsErrorResponse, InsightSettingsControllerUpdateSettingsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<InsightSettingsControllerUpdateSettingsOkResponse, unknown, InsightSettingsControllerUpdateSettingsProps, unknown>;
20
+ /**
21
+ * Update existing insight settings
22
+ */
23
+ export declare function useInsightSettingsControllerUpdateSettingsMutation(options?: Omit<UseMutationOptions<InsightSettingsControllerUpdateSettingsOkResponse, InsightSettingsControllerUpdateSettingsErrorResponse, InsightSettingsControllerUpdateSettingsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<InsightSettingsControllerUpdateSettingsOkResponse, ErrorResponse, InsightSettingsControllerUpdateSettingsProps, unknown>;
@@ -6,6 +6,9 @@ import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function insightSettingsControllerUpdateSettings(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/insight-settings`, method: 'PUT' }, props));
8
8
  }
9
+ /**
10
+ * Update existing insight settings
11
+ */
9
12
  export function useInsightSettingsControllerUpdateSettingsMutation(options) {
10
13
  return useMutation((mutateProps) => insightSettingsControllerUpdateSettings(mutateProps), options);
11
14
  }
@@ -51,6 +51,8 @@ export type { EfficiencyProfileControllerListProfilesErrorResponse, EfficiencyPr
51
51
  export { efficiencyProfileControllerListProfiles, useEfficiencyProfileControllerListProfilesQuery, } from './hooks/useEfficiencyProfileControllerListProfilesQuery';
52
52
  export type { EfficiencyProfileControllerUpdateProfileErrorResponse, EfficiencyProfileControllerUpdateProfileMutationPathParams, EfficiencyProfileControllerUpdateProfileMutationQueryParams, EfficiencyProfileControllerUpdateProfileOkResponse, EfficiencyProfileControllerUpdateProfileProps, EfficiencyProfileControllerUpdateProfileRequestBody, } from './hooks/useEfficiencyProfileControllerUpdateProfileMutation';
53
53
  export { efficiencyProfileControllerUpdateProfile, useEfficiencyProfileControllerUpdateProfileMutation, } from './hooks/useEfficiencyProfileControllerUpdateProfileMutation';
54
+ export type { ExportControllerExportDataErrorResponse, ExportControllerExportDataMutationQueryParams, ExportControllerExportDataOkResponse, ExportControllerExportDataProps, ExportControllerExportDataRequestBody, } from './hooks/useExportControllerExportDataMutation';
55
+ export { exportControllerExportData, useExportControllerExportDataMutation, } from './hooks/useExportControllerExportDataMutation';
54
56
  export type { InsightSettingsControllerCreateSettingsErrorResponse, InsightSettingsControllerCreateSettingsMutationQueryParams, InsightSettingsControllerCreateSettingsOkResponse, InsightSettingsControllerCreateSettingsProps, InsightSettingsControllerCreateSettingsRequestBody, } from './hooks/useInsightSettingsControllerCreateSettingsMutation';
55
57
  export { insightSettingsControllerCreateSettings, useInsightSettingsControllerCreateSettingsMutation, } from './hooks/useInsightSettingsControllerCreateSettingsMutation';
56
58
  export type { InsightSettingsControllerGetSettingsErrorResponse, InsightSettingsControllerGetSettingsOkResponse, InsightSettingsControllerGetSettingsProps, InsightSettingsControllerGetSettingsQueryQueryParams, } from './hooks/useInsightSettingsControllerGetSettingsQuery';
@@ -115,7 +117,10 @@ export type { DrilldownData } from './schemas/DrilldownData';
115
117
  export type { DrilldownDataPoint } from './schemas/DrilldownDataPoint';
116
118
  export type { EfficiencyProfileCreateRequestDto } from './schemas/EfficiencyProfileCreateRequestDto';
117
119
  export type { EfficiencyProfileResponseDto } from './schemas/EfficiencyProfileResponseDto';
120
+ export type { EfficiencyRequestDto } from './schemas/EfficiencyRequestDto';
121
+ export type { ErrorResponse } from './schemas/ErrorResponse';
118
122
  export type { Event } from './schemas/Event';
123
+ export type { ExportRequestDto } from './schemas/ExportRequestDto';
119
124
  export type { FilterCriteria } from './schemas/FilterCriteria';
120
125
  export type { FilterGroup } from './schemas/FilterGroup';
121
126
  export type { Filters } from './schemas/Filters';
@@ -143,6 +148,7 @@ export type { ProductivityFeatureRequestDto } from './schemas/ProductivityFeatur
143
148
  export type { ProductivityFeatureResponseDto } from './schemas/ProductivityFeatureResponseDto';
144
149
  export type { ProductivityProfileCreateRequestDto } from './schemas/ProductivityProfileCreateRequestDto';
145
150
  export type { ProductivityProfileResponseDto } from './schemas/ProductivityProfileResponseDto';
151
+ export type { ProductivityRequestDto } from './schemas/ProductivityRequestDto';
146
152
  export type { ProductivitySection } from './schemas/ProductivitySection';
147
153
  export type { Resolution } from './schemas/Resolution';
148
154
  export type { ScmCommitData } from './schemas/ScmCommitData';
@@ -24,6 +24,7 @@ export { efficiencyProfileControllerCreateProfile, useEfficiencyProfileControlle
24
24
  export { efficiencyProfileControllerGetProfile, useEfficiencyProfileControllerGetProfileQuery, } from './hooks/useEfficiencyProfileControllerGetProfileQuery';
25
25
  export { efficiencyProfileControllerListProfiles, useEfficiencyProfileControllerListProfilesQuery, } from './hooks/useEfficiencyProfileControllerListProfilesQuery';
26
26
  export { efficiencyProfileControllerUpdateProfile, useEfficiencyProfileControllerUpdateProfileMutation, } from './hooks/useEfficiencyProfileControllerUpdateProfileMutation';
27
+ export { exportControllerExportData, useExportControllerExportDataMutation, } from './hooks/useExportControllerExportDataMutation';
27
28
  export { insightSettingsControllerCreateSettings, useInsightSettingsControllerCreateSettingsMutation, } from './hooks/useInsightSettingsControllerCreateSettingsMutation';
28
29
  export { insightSettingsControllerGetSettings, useInsightSettingsControllerGetSettingsQuery, } from './hooks/useInsightSettingsControllerGetSettingsQuery';
29
30
  export { insightSettingsControllerUpdateSettings, useInsightSettingsControllerUpdateSettingsMutation, } from './hooks/useInsightSettingsControllerUpdateSettingsMutation';
@@ -0,0 +1,4 @@
1
+ export interface EfficiencyRequestDto {
2
+ calculationType?: string;
3
+ metricsName: string[];
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface ErrorResponse {
2
+ error?: string;
3
+ message?: string;
4
+ /**
5
+ * @format int32
6
+ */
7
+ status?: number;
8
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -2,6 +2,6 @@ import type { Condition } from '../schemas/Condition';
2
2
  export interface Event {
3
3
  calculation_field?: string;
4
4
  conditions?: Condition[];
5
- type?: 'CICD_JOB_RUN' | 'ISSUE_RESOLUTION' | 'JIRA_STATUS' | 'JIRA_VERSION_RELEASE' | 'SCM_COMMIT_CREATED' | 'SCM_PR_CREATED' | 'SCM_PR_MERGED';
5
+ type?: 'CICD_JOB_RUN' | 'ISSUE_RESOLUTION' | 'JIRA_ISSUE_CREATED' | 'JIRA_STATUS' | 'JIRA_VERSION_RELEASE' | 'SCM_COMMIT_CREATED' | 'SCM_PR_CREATED' | 'SCM_PR_MERGED';
6
6
  values?: string[];
7
7
  }
@@ -0,0 +1,17 @@
1
+ import type { EfficiencyRequestDto } from '../schemas/EfficiencyRequestDto';
2
+ import type { ProductivityRequestDto } from '../schemas/ProductivityRequestDto';
3
+ export interface ExportRequestDto {
4
+ collectionId?: string;
5
+ /**
6
+ * @format date-time
7
+ */
8
+ dateEnd: string;
9
+ /**
10
+ * @format date-time
11
+ */
12
+ dateStart: string;
13
+ efficiency?: EfficiencyRequestDto;
14
+ granularity?: string;
15
+ includeChildrens?: boolean;
16
+ productivity?: ProductivityRequestDto;
17
+ }
@@ -0,0 +1,3 @@
1
+ export interface ProductivityRequestDto {
2
+ metricsName: string[];
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "Harness React sei panorama service client - SEI Panorama APIs integrated with react hooks for Panorama project",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",