@harnessio/react-sei-panorama-service-client 0.18.2 → 0.18.3

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 (21) hide show
  1. package/dist/sei-panorama-service/src/services/hooks/useEfficiencyControllerChangeFailureRateQuery.d.ts +2 -2
  2. package/dist/sei-panorama-service/src/services/hooks/useEfficiencyControllerDeploymentFrequencyQuery.d.ts +2 -2
  3. package/dist/sei-panorama-service/src/services/hooks/useEfficiencyControllerLeadTimeQuery.d.ts +2 -2
  4. package/dist/sei-panorama-service/src/services/hooks/useIntegrationControllerGetFilterValuesMutation.d.ts +19 -0
  5. package/dist/sei-panorama-service/src/services/hooks/useIntegrationControllerGetFilterValuesMutation.js +14 -0
  6. package/dist/sei-panorama-service/src/services/index.d.ts +7 -0
  7. package/dist/sei-panorama-service/src/services/index.js +1 -0
  8. package/dist/sei-panorama-service/src/services/schemas/Developer.d.ts +32 -0
  9. package/dist/sei-panorama-service/src/services/schemas/Developer.js +4 -0
  10. package/dist/sei-panorama-service/src/services/schemas/DeveloperInfo.d.ts +9 -0
  11. package/dist/sei-panorama-service/src/services/schemas/DeveloperInfo.js +1 -0
  12. package/dist/sei-panorama-service/src/services/schemas/EfficiencyRequest.d.ts +12 -0
  13. package/dist/sei-panorama-service/src/services/schemas/EfficiencyRequest.js +4 -0
  14. package/dist/sei-panorama-service/src/services/schemas/FilterValuesRequestDto.d.ts +14 -0
  15. package/dist/sei-panorama-service/src/services/schemas/FilterValuesRequestDto.js +4 -0
  16. package/dist/sei-panorama-service/src/services/schemas/IntegrationUserInfo.d.ts +17 -0
  17. package/dist/sei-panorama-service/src/services/schemas/IntegrationUserInfo.js +4 -0
  18. package/dist/sei-panorama-service/src/services/schemas/OrgTreeCreateRequestDto.d.ts +0 -3
  19. package/dist/sei-panorama-service/src/services/schemas/OrgTreeResponseDto.d.ts +0 -9
  20. package/dist/sei-panorama-service/src/services/schemas/TeamDevelopersDto.d.ts +5 -1
  21. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { DoraChangeFailureRateMetric } from '../schemas/DoraChangeFailureRateMetric';
3
- import type { DoraRequest } from '../schemas/DoraRequest';
3
+ import type { EfficiencyRequest } from '../schemas/EfficiencyRequest';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface EfficiencyControllerChangeFailureRateQueryQueryParams {
@@ -8,7 +8,7 @@ export interface EfficiencyControllerChangeFailureRateQueryQueryParams {
8
8
  projectIdentifier: string;
9
9
  orgIdentifier: string;
10
10
  }
11
- export type EfficiencyControllerChangeFailureRateRequestBody = DoraRequest;
11
+ export type EfficiencyControllerChangeFailureRateRequestBody = EfficiencyRequest;
12
12
  export type EfficiencyControllerChangeFailureRateOkResponse = ResponseWithPagination<DoraChangeFailureRateMetric>;
13
13
  export type EfficiencyControllerChangeFailureRateErrorResponse = string;
14
14
  export interface EfficiencyControllerChangeFailureRateProps extends Omit<FetcherOptions<EfficiencyControllerChangeFailureRateQueryQueryParams, EfficiencyControllerChangeFailureRateRequestBody>, 'url'> {
@@ -1,6 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { DoraDeploymentFrequencyMetric } from '../schemas/DoraDeploymentFrequencyMetric';
3
- import type { DoraRequest } from '../schemas/DoraRequest';
3
+ import type { EfficiencyRequest } from '../schemas/EfficiencyRequest';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface EfficiencyControllerDeploymentFrequencyQueryQueryParams {
@@ -8,7 +8,7 @@ export interface EfficiencyControllerDeploymentFrequencyQueryQueryParams {
8
8
  projectIdentifier: string;
9
9
  orgIdentifier: string;
10
10
  }
11
- export type EfficiencyControllerDeploymentFrequencyRequestBody = DoraRequest;
11
+ export type EfficiencyControllerDeploymentFrequencyRequestBody = EfficiencyRequest;
12
12
  export type EfficiencyControllerDeploymentFrequencyOkResponse = ResponseWithPagination<DoraDeploymentFrequencyMetric>;
13
13
  export type EfficiencyControllerDeploymentFrequencyErrorResponse = string;
14
14
  export interface EfficiencyControllerDeploymentFrequencyProps extends Omit<FetcherOptions<EfficiencyControllerDeploymentFrequencyQueryQueryParams, EfficiencyControllerDeploymentFrequencyRequestBody>, 'url'> {
@@ -1,6 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { DoraLttcMttrMetric } from '../schemas/DoraLttcMttrMetric';
3
- import type { DoraRequest } from '../schemas/DoraRequest';
3
+ import type { EfficiencyRequest } from '../schemas/EfficiencyRequest';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface EfficiencyControllerLeadTimeQueryQueryParams {
@@ -8,7 +8,7 @@ export interface EfficiencyControllerLeadTimeQueryQueryParams {
8
8
  projectIdentifier: string;
9
9
  orgIdentifier: string;
10
10
  }
11
- export type EfficiencyControllerLeadTimeRequestBody = DoraRequest;
11
+ export type EfficiencyControllerLeadTimeRequestBody = EfficiencyRequest;
12
12
  export type EfficiencyControllerLeadTimeOkResponse = ResponseWithPagination<DoraLttcMttrMetric>;
13
13
  export type EfficiencyControllerLeadTimeErrorResponse = string;
14
14
  export interface EfficiencyControllerLeadTimeProps extends Omit<FetcherOptions<EfficiencyControllerLeadTimeQueryQueryParams, EfficiencyControllerLeadTimeRequestBody>, 'url'> {
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { FilterValuesRequestDto } from '../schemas/FilterValuesRequestDto';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface IntegrationControllerGetFilterValuesMutationQueryParams {
6
+ account: string;
7
+ }
8
+ export type IntegrationControllerGetFilterValuesRequestBody = FilterValuesRequestDto;
9
+ export type IntegrationControllerGetFilterValuesOkResponse = ResponseWithPagination<string[]>;
10
+ export type IntegrationControllerGetFilterValuesErrorResponse = string[];
11
+ export interface IntegrationControllerGetFilterValuesProps extends Omit<FetcherOptions<IntegrationControllerGetFilterValuesMutationQueryParams, IntegrationControllerGetFilterValuesRequestBody>, 'url'> {
12
+ queryParams: IntegrationControllerGetFilterValuesMutationQueryParams;
13
+ body: IntegrationControllerGetFilterValuesRequestBody;
14
+ }
15
+ export declare function integrationControllerGetFilterValues(props: IntegrationControllerGetFilterValuesProps): Promise<IntegrationControllerGetFilterValuesOkResponse>;
16
+ /**
17
+ * Returns a list of distinct values for a specific filter key in an integration.
18
+ */
19
+ export declare function useIntegrationControllerGetFilterValuesMutation(options?: Omit<UseMutationOptions<IntegrationControllerGetFilterValuesOkResponse, IntegrationControllerGetFilterValuesErrorResponse, IntegrationControllerGetFilterValuesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<IntegrationControllerGetFilterValuesOkResponse, IntegrationControllerGetFilterValuesErrorResponse, IntegrationControllerGetFilterValuesProps, 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 integrationControllerGetFilterValues(props) {
7
+ return fetcher(Object.assign({ url: `/v2/integrations/filter_values`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Returns a list of distinct values for a specific filter key in an integration.
11
+ */
12
+ export function useIntegrationControllerGetFilterValuesMutation(options) {
13
+ return useMutation((mutateProps) => integrationControllerGetFilterValues(mutateProps), options);
14
+ }
@@ -75,6 +75,8 @@ export type { InsightSettingsControllerGetSettingsErrorResponse, InsightSettings
75
75
  export { insightSettingsControllerGetSettings, useInsightSettingsControllerGetSettingsQuery, } from './hooks/useInsightSettingsControllerGetSettingsQuery';
76
76
  export type { InsightSettingsControllerUpdateSettingsErrorResponse, InsightSettingsControllerUpdateSettingsMutationQueryParams, InsightSettingsControllerUpdateSettingsOkResponse, InsightSettingsControllerUpdateSettingsProps, InsightSettingsControllerUpdateSettingsRequestBody, } from './hooks/useInsightSettingsControllerUpdateSettingsMutation';
77
77
  export { insightSettingsControllerUpdateSettings, useInsightSettingsControllerUpdateSettingsMutation, } from './hooks/useInsightSettingsControllerUpdateSettingsMutation';
78
+ export type { IntegrationControllerGetFilterValuesErrorResponse, IntegrationControllerGetFilterValuesMutationQueryParams, IntegrationControllerGetFilterValuesOkResponse, IntegrationControllerGetFilterValuesProps, IntegrationControllerGetFilterValuesRequestBody, } from './hooks/useIntegrationControllerGetFilterValuesMutation';
79
+ export { integrationControllerGetFilterValues, useIntegrationControllerGetFilterValuesMutation, } from './hooks/useIntegrationControllerGetFilterValuesMutation';
78
80
  export type { IntegrationControllerListIntegrationsErrorResponse, IntegrationControllerListIntegrationsOkResponse, IntegrationControllerListIntegrationsProps, IntegrationControllerListIntegrationsQueryQueryParams, } from './hooks/useIntegrationControllerListIntegrationsQuery';
79
81
  export { integrationControllerListIntegrations, useIntegrationControllerListIntegrationsQuery, } from './hooks/useIntegrationControllerListIntegrationsQuery';
80
82
  export type { JiraIssuesControllerGetJiraIssueCountErrorResponse, JiraIssuesControllerGetJiraIssueCountOkResponse, JiraIssuesControllerGetJiraIssueCountProps, } from './hooks/useJiraIssuesControllerGetJiraIssueCountQuery';
@@ -158,6 +160,8 @@ export type { DataPointChangeFailureRate } from './schemas/DataPointChangeFailur
158
160
  export type { DataPointDeploymentFrequency } from './schemas/DataPointDeploymentFrequency';
159
161
  export type { DbListResponseCategory } from './schemas/DbListResponseCategory';
160
162
  export type { DbListResponseCollectionTree } from './schemas/DbListResponseCollectionTree';
163
+ export type { Developer } from './schemas/Developer';
164
+ export type { DeveloperInfo } from './schemas/DeveloperInfo';
161
165
  export type { DfConfigurationDto } from './schemas/DfConfigurationDto';
162
166
  export type { DoraChangeFailureRateMetric } from './schemas/DoraChangeFailureRateMetric';
163
167
  export type { DoraChangeFailureRateMetricBreakdown } from './schemas/DoraChangeFailureRateMetricBreakdown';
@@ -180,10 +184,12 @@ export type { DrilldownDataPoint } from './schemas/DrilldownDataPoint';
180
184
  export type { EfficiencyProfileCreateRequestDto } from './schemas/EfficiencyProfileCreateRequestDto';
181
185
  export type { EfficiencyProfileEvent } from './schemas/EfficiencyProfileEvent';
182
186
  export type { EfficiencyProfileResponseDto } from './schemas/EfficiencyProfileResponseDto';
187
+ export type { EfficiencyRequest } from './schemas/EfficiencyRequest';
183
188
  export type { EfficiencyRequestDto } from './schemas/EfficiencyRequestDto';
184
189
  export type { ErrorResponse } from './schemas/ErrorResponse';
185
190
  export type { ExportRequestDto } from './schemas/ExportRequestDto';
186
191
  export type { FeatureDto } from './schemas/FeatureDto';
192
+ export type { FilterValuesRequestDto } from './schemas/FilterValuesRequestDto';
187
193
  export type { GroupByField } from './schemas/GroupByField';
188
194
  export type { GroupedTeamFiltersResponseDto } from './schemas/GroupedTeamFiltersResponseDto';
189
195
  export type { IndividualDrilldownData } from './schemas/IndividualDrilldownData';
@@ -197,6 +203,7 @@ export type { IntegrationIdsDto } from './schemas/IntegrationIdsDto';
197
203
  export type { IntegrationObject } from './schemas/IntegrationObject';
198
204
  export type { IntegrationResponseDto } from './schemas/IntegrationResponseDto';
199
205
  export type { IntegrationSummary } from './schemas/IntegrationSummary';
206
+ export type { IntegrationUserInfo } from './schemas/IntegrationUserInfo';
200
207
  export type { ListResponseDtoEfficiencyProfileResponseDto } from './schemas/ListResponseDtoEfficiencyProfileResponseDto';
201
208
  export type { ListResponseDtoIntegrationResponseDto } from './schemas/ListResponseDtoIntegrationResponseDto';
202
209
  export type { ListResponseDtoOrgTreeResponseDto } from './schemas/ListResponseDtoOrgTreeResponseDto';
@@ -36,6 +36,7 @@ export { exportControllerExportData, useExportControllerExportDataMutation, } fr
36
36
  export { insightSettingsControllerCreateSettings, useInsightSettingsControllerCreateSettingsMutation, } from './hooks/useInsightSettingsControllerCreateSettingsMutation';
37
37
  export { insightSettingsControllerGetSettings, useInsightSettingsControllerGetSettingsQuery, } from './hooks/useInsightSettingsControllerGetSettingsQuery';
38
38
  export { insightSettingsControllerUpdateSettings, useInsightSettingsControllerUpdateSettingsMutation, } from './hooks/useInsightSettingsControllerUpdateSettingsMutation';
39
+ export { integrationControllerGetFilterValues, useIntegrationControllerGetFilterValuesMutation, } from './hooks/useIntegrationControllerGetFilterValuesMutation';
39
40
  export { integrationControllerListIntegrations, useIntegrationControllerListIntegrationsQuery, } from './hooks/useIntegrationControllerListIntegrationsQuery';
40
41
  export { jiraIssuesControllerGetJiraIssueCount, useJiraIssuesControllerGetJiraIssueCountQuery, } from './hooks/useJiraIssuesControllerGetJiraIssueCountQuery';
41
42
  export { legacyHealthControllerCheck, useLegacyHealthControllerCheckQuery, } from './hooks/useLegacyHealthControllerCheckQuery';
@@ -0,0 +1,32 @@
1
+ export interface Developer {
2
+ active?: boolean;
3
+ /**
4
+ * @format date-time
5
+ */
6
+ createdAt?: string;
7
+ createdByEmail?: string;
8
+ email?: string;
9
+ /**
10
+ * @format int32
11
+ */
12
+ id?: number;
13
+ latest?: boolean;
14
+ /**
15
+ * @format int32
16
+ */
17
+ managerRefId?: number;
18
+ name?: string;
19
+ /**
20
+ * @format int32
21
+ */
22
+ refId?: number;
23
+ /**
24
+ * @format date-time
25
+ */
26
+ updatedAt?: string;
27
+ updatedByEmail?: string;
28
+ /**
29
+ * @format int32
30
+ */
31
+ versionId?: number;
32
+ }
@@ -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,9 @@
1
+ import type { Developer } from '../schemas/Developer';
2
+ import type { IntegrationUserInfo } from '../schemas/IntegrationUserInfo';
3
+ export interface DeveloperInfo {
4
+ attributes?: {
5
+ [key: string]: string;
6
+ };
7
+ basicInfo?: Developer;
8
+ integrationUsers?: IntegrationUserInfo[];
9
+ }
@@ -0,0 +1,12 @@
1
+ export interface EfficiencyRequest {
2
+ /**
3
+ * @format date-time
4
+ */
5
+ dateEnd: string;
6
+ /**
7
+ * @format date-time
8
+ */
9
+ dateStart: string;
10
+ granularity: string;
11
+ teamRefId: string;
12
+ }
@@ -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,14 @@
1
+ export interface FilterValuesRequestDto {
2
+ /**
3
+ * Filter key to get values for
4
+ */
5
+ filterKey: 'CODE_AREA' | 'DEPLOYMENT_TYPE' | 'ENV_ID' | 'INFRA_ID' | 'ISSUE_TYPE' | 'LABEL' | 'PIPELINE_NAME' | 'PIPELINE_STATUS' | 'PROJECT' | 'REPO' | 'ROLLBACK' | 'SCM_LABEL' | 'SCM_PROJECT' | 'SERVICE_NAME' | 'SOURCE_BRANCH' | 'SPRINT_NAME' | 'STAGE_NAME' | 'STATUS' | 'TAGS' | 'TARGET_BRANCH' | 'TEAM';
6
+ /**
7
+ * Integration ID
8
+ */
9
+ integrationId?: string;
10
+ /**
11
+ * Team Integration ID
12
+ */
13
+ teamIntegrationId?: string;
14
+ }
@@ -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,17 @@
1
+ export interface IntegrationUserInfo {
2
+ cloudEmail?: string;
3
+ cloudId?: string;
4
+ cloudName?: string;
5
+ /**
6
+ * @format date-time
7
+ */
8
+ createdAt?: string;
9
+ /**
10
+ * @format int32
11
+ */
12
+ integrationId?: number;
13
+ /**
14
+ * @format date-time
15
+ */
16
+ updatedAt?: string;
17
+ }
@@ -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 {};
@@ -1,7 +1,5 @@
1
- import type { OrgTreeProfileDto } from '../schemas/OrgTreeProfileDto';
2
1
  import type { GroupByField } from '../schemas/GroupByField';
3
2
  export interface OrgTreeCreateRequestDto {
4
- efficiencyProfile?: OrgTreeProfileDto;
5
3
  /**
6
4
  * @format int32
7
5
  */
@@ -15,7 +13,6 @@ export interface OrgTreeCreateRequestDto {
15
13
  */
16
14
  integrationIds?: number[];
17
15
  name: string;
18
- productivityProfile?: OrgTreeProfileDto;
19
16
  /**
20
17
  * @format int32
21
18
  */
@@ -8,10 +8,6 @@ export interface OrgTreeResponseDto {
8
8
  createdAtEpochSec?: number;
9
9
  createdByEmail?: string;
10
10
  efficiencyProfile?: OrgTreeProfileDto;
11
- /**
12
- * @format int32
13
- */
14
- efficiencyProfileRefId?: number;
15
11
  /**
16
12
  * List of fields to group by when creating the organization tree
17
13
  */
@@ -20,17 +16,12 @@ export interface OrgTreeResponseDto {
20
16
  * @format int32
21
17
  */
22
18
  id: number;
23
- integrationIds?: number[];
24
19
  /**
25
20
  * List of integrations associated with this org tree
26
21
  */
27
22
  integrations?: IntegrationResponseDto[];
28
23
  name: string;
29
24
  productivityProfile?: OrgTreeProfileDto;
30
- /**
31
- * @format int32
32
- */
33
- productivityProfileRefId?: number;
34
25
  /**
35
26
  * @format int32
36
27
  */
@@ -1,6 +1,10 @@
1
+ import type { DeveloperInfo } from '../schemas/DeveloperInfo';
1
2
  import type { PaginationMetadata } from '../schemas/PaginationMetadata';
2
3
  export interface TeamDevelopersDto {
3
- developerIds?: number[];
4
+ developerInfoMap?: {
5
+ [key: string]: DeveloperInfo;
6
+ };
7
+ developerRefIds?: number[];
4
8
  pagination?: PaginationMetadata;
5
9
  /**
6
10
  * @format int32
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.18.2",
3
+ "version": "0.18.3",
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",