@harnessio/react-sei-panorama-service-client 0.20.1 → 0.20.2

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 (26) hide show
  1. package/dist/sei-panorama-service/src/services/hooks/useBaControllerDeleteProfileMutation.d.ts +2 -2
  2. package/dist/sei-panorama-service/src/services/hooks/useBaControllerDeleteProfileMutation.js +1 -1
  3. package/dist/sei-panorama-service/src/services/hooks/useBaControllerGetAllTeamsWithFiltersQuery.d.ts +2 -2
  4. package/dist/sei-panorama-service/src/services/hooks/useBaControllerGetProfileByIdQuery.js +1 -1
  5. package/dist/sei-panorama-service/src/services/hooks/useBaControllerUpdateProfileMutation.d.ts +2 -2
  6. package/dist/sei-panorama-service/src/services/hooks/useBaControllerUpdateProfileMutation.js +1 -1
  7. package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerUpdateTeamMutation.d.ts +27 -0
  8. package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerUpdateTeamMutation.js +14 -0
  9. package/dist/sei-panorama-service/src/services/index.d.ts +3 -0
  10. package/dist/sei-panorama-service/src/services/index.js +1 -0
  11. package/dist/sei-panorama-service/src/services/schemas/BaCategoryTeamFilterDto.d.ts +1 -11
  12. package/dist/sei-panorama-service/src/services/schemas/BaDrilldownItemDto.d.ts +2 -0
  13. package/dist/sei-panorama-service/src/services/schemas/BaDrilldownRequestDto.d.ts +1 -1
  14. package/dist/sei-panorama-service/src/services/schemas/BaFilterDto.d.ts +1 -10
  15. package/dist/sei-panorama-service/src/services/schemas/BaFilterSetDto.d.ts +1 -10
  16. package/dist/sei-panorama-service/src/services/schemas/BaProfileRequestDto.d.ts +1 -1
  17. package/dist/sei-panorama-service/src/services/schemas/BaTeamCategoryDefinition.d.ts +0 -2
  18. package/dist/sei-panorama-service/src/services/schemas/EfficiencyProfileResponseDto.d.ts +2 -0
  19. package/dist/sei-panorama-service/src/services/schemas/GroupedTeamFiltersResponseDto.d.ts +2 -0
  20. package/dist/sei-panorama-service/src/services/schemas/MinimalOrgTree.d.ts +2 -0
  21. package/dist/sei-panorama-service/src/services/schemas/MinimalTeamHierarchyResponseDto.d.ts +14 -0
  22. package/dist/sei-panorama-service/src/services/schemas/MinimalTeamHierarchyResponseDto.js +0 -3
  23. package/dist/sei-panorama-service/src/services/schemas/ProductivityProfileResponseDto.d.ts +2 -0
  24. package/dist/sei-panorama-service/src/services/schemas/TeamInfoUpdateRequestDto.d.ts +10 -0
  25. package/dist/sei-panorama-service/src/services/schemas/TeamInfoUpdateRequestDto.js +4 -0
  26. package/package.json +1 -1
@@ -3,9 +3,9 @@ import type { ResponseWithPagination } from '../helpers';
3
3
  import { FetcherOptions } from '../../../../fetcher/index.js';
4
4
  export interface BaControllerDeleteProfileMutationPathParams {
5
5
  /**
6
- * @format uuid
6
+ * @format int32
7
7
  */
8
- profileId: string;
8
+ profileRefId: number;
9
9
  }
10
10
  export interface BaControllerDeleteProfileMutationQueryParams {
11
11
  account: string;
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function baControllerDeleteProfile(props) {
7
- return fetcher(Object.assign({ url: `/v2/insights/ba/profiles/${props.profileId}`, method: 'DELETE' }, props));
7
+ return fetcher(Object.assign({ url: `/v2/insights/ba/profiles/${props.profileRefId}`, method: 'DELETE' }, props));
8
8
  }
9
9
  /**
10
10
  * Deletes a BA profile and its categories.
@@ -7,9 +7,9 @@ export interface BaControllerGetAllTeamsWithFiltersQueryQueryParams {
7
7
  projectIdentifier: string;
8
8
  orgIdentifier: string;
9
9
  /**
10
- * @format uuid
10
+ * @format int32
11
11
  */
12
- profileId?: string;
12
+ profileRefId?: number;
13
13
  }
14
14
  export type BaControllerGetAllTeamsWithFiltersOkResponse = ResponseWithPagination<BaTeamWithFiltersDto[]>;
15
15
  export type BaControllerGetAllTeamsWithFiltersErrorResponse = string;
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function baControllerGetProfileById(props) {
7
- return fetcher(Object.assign({ url: `/v2/insights/ba/profiles/${props.profileId}`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v2/insights/ba/profiles/id/${props.profileId}`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Retrieves a BA profile with its categories by ID.
@@ -5,9 +5,9 @@ import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface BaControllerUpdateProfileMutationPathParams {
7
7
  /**
8
- * @format uuid
8
+ * @format int32
9
9
  */
10
- profileId: string;
10
+ profileRefId: number;
11
11
  }
12
12
  export interface BaControllerUpdateProfileMutationQueryParams {
13
13
  account: string;
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function baControllerUpdateProfile(props) {
7
- return fetcher(Object.assign({ url: `/v2/insights/ba/profiles/${props.profileId}`, method: 'PUT' }, props));
7
+ return fetcher(Object.assign({ url: `/v2/insights/ba/profiles/${props.profileRefId}`, method: 'PUT' }, props));
8
8
  }
9
9
  /**
10
10
  * Updates an existing BA profile with its categories.
@@ -0,0 +1,27 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { TeamResponse } from '../schemas/TeamResponse';
3
+ import type { TeamInfoUpdateRequestDto } from '../schemas/TeamInfoUpdateRequestDto';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface TeamsControllerUpdateTeamMutationPathParams {
7
+ /**
8
+ * @format int32
9
+ */
10
+ teamRefId: number;
11
+ }
12
+ export interface TeamsControllerUpdateTeamMutationQueryParams {
13
+ account: string;
14
+ email: string;
15
+ }
16
+ export type TeamsControllerUpdateTeamRequestBody = TeamInfoUpdateRequestDto;
17
+ export type TeamsControllerUpdateTeamOkResponse = ResponseWithPagination<TeamResponse>;
18
+ export type TeamsControllerUpdateTeamErrorResponse = TeamResponse;
19
+ export interface TeamsControllerUpdateTeamProps extends TeamsControllerUpdateTeamMutationPathParams, Omit<FetcherOptions<TeamsControllerUpdateTeamMutationQueryParams, TeamsControllerUpdateTeamRequestBody>, 'url'> {
20
+ queryParams: TeamsControllerUpdateTeamMutationQueryParams;
21
+ body: TeamsControllerUpdateTeamRequestBody;
22
+ }
23
+ export declare function teamsControllerUpdateTeam(props: TeamsControllerUpdateTeamProps): Promise<TeamsControllerUpdateTeamOkResponse>;
24
+ /**
25
+ * Updates the team with the specified reference ID
26
+ */
27
+ export declare function useTeamsControllerUpdateTeamMutation(options?: Omit<UseMutationOptions<TeamsControllerUpdateTeamOkResponse, TeamsControllerUpdateTeamErrorResponse, TeamsControllerUpdateTeamProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TeamsControllerUpdateTeamOkResponse, TeamResponse, TeamsControllerUpdateTeamProps, 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 teamsControllerUpdateTeam(props) {
7
+ return fetcher(Object.assign({ url: `/v2/teams/${props.teamRefId}/team_info`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Updates the team with the specified reference ID
11
+ */
12
+ export function useTeamsControllerUpdateTeamMutation(options) {
13
+ return useMutation((mutateProps) => teamsControllerUpdateTeam(mutateProps), options);
14
+ }
@@ -217,6 +217,8 @@ export type { TeamsControllerUpdateTeamIntegrationFiltersErrorResponse, TeamsCon
217
217
  export { teamsControllerUpdateTeamIntegrationFilters, useTeamsControllerUpdateTeamIntegrationFiltersMutation, } from './hooks/useTeamsControllerUpdateTeamIntegrationFiltersMutation';
218
218
  export type { TeamsControllerUpdateTeamIntegrationsErrorResponse, TeamsControllerUpdateTeamIntegrationsMutationPathParams, TeamsControllerUpdateTeamIntegrationsMutationQueryParams, TeamsControllerUpdateTeamIntegrationsOkResponse, TeamsControllerUpdateTeamIntegrationsProps, TeamsControllerUpdateTeamIntegrationsRequestBody, } from './hooks/useTeamsControllerUpdateTeamIntegrationsMutation';
219
219
  export { teamsControllerUpdateTeamIntegrations, useTeamsControllerUpdateTeamIntegrationsMutation, } from './hooks/useTeamsControllerUpdateTeamIntegrationsMutation';
220
+ export type { TeamsControllerUpdateTeamErrorResponse, TeamsControllerUpdateTeamMutationPathParams, TeamsControllerUpdateTeamMutationQueryParams, TeamsControllerUpdateTeamOkResponse, TeamsControllerUpdateTeamProps, TeamsControllerUpdateTeamRequestBody, } from './hooks/useTeamsControllerUpdateTeamMutation';
221
+ export { teamsControllerUpdateTeam, useTeamsControllerUpdateTeamMutation, } from './hooks/useTeamsControllerUpdateTeamMutation';
220
222
  export type { BaBreakdownDto } from './schemas/BaBreakdownDto';
221
223
  export type { BaCategoryDto } from './schemas/BaCategoryDto';
222
224
  export type { BaCategoryMetric } from './schemas/BaCategoryMetric';
@@ -377,6 +379,7 @@ export type { SummaryValue } from './schemas/SummaryValue';
377
379
  export type { SummaryValueChange } from './schemas/SummaryValueChange';
378
380
  export type { TeamDevelopersDto } from './schemas/TeamDevelopersDto';
379
381
  export type { TeamFilter } from './schemas/TeamFilter';
382
+ export type { TeamInfoUpdateRequestDto } from './schemas/TeamInfoUpdateRequestDto';
380
383
  export type { TeamIntegrationDto } from './schemas/TeamIntegrationDto';
381
384
  export type { TeamResponse } from './schemas/TeamResponse';
382
385
  export type { TeamSummary } from './schemas/TeamSummary';
@@ -107,3 +107,4 @@ export { teamsControllerGetTeam, useTeamsControllerGetTeamQuery, } from './hooks
107
107
  export { teamsControllerListTeams, useTeamsControllerListTeamsQuery, } from './hooks/useTeamsControllerListTeamsQuery';
108
108
  export { teamsControllerUpdateTeamIntegrationFilters, useTeamsControllerUpdateTeamIntegrationFiltersMutation, } from './hooks/useTeamsControllerUpdateTeamIntegrationFiltersMutation';
109
109
  export { teamsControllerUpdateTeamIntegrations, useTeamsControllerUpdateTeamIntegrationsMutation, } from './hooks/useTeamsControllerUpdateTeamIntegrationsMutation';
110
+ export { teamsControllerUpdateTeam, useTeamsControllerUpdateTeamMutation, } from './hooks/useTeamsControllerUpdateTeamMutation';
@@ -3,24 +3,14 @@ export interface BaCategoryTeamFilterDto {
3
3
  /**
4
4
  * @format uuid
5
5
  */
6
- baCategoryId: string;
7
- /**
8
- * @format date-time
9
- */
10
- createdAt?: string;
6
+ baCategoryId?: string;
11
7
  filterSet: BaFilterSetDto;
12
8
  /**
13
9
  * @format uuid
14
10
  */
15
11
  id?: string;
16
- isActive?: boolean;
17
- name?: string;
18
12
  /**
19
13
  * @format int32
20
14
  */
21
15
  teamRefId?: number;
22
- /**
23
- * @format date-time
24
- */
25
- updatedAt?: string;
26
16
  }
@@ -1,5 +1,6 @@
1
1
  export interface BaDrilldownItemDto {
2
2
  assignee?: string;
3
+ categoryName?: string;
3
4
  /**
4
5
  * @format int32
5
6
  */
@@ -15,6 +16,7 @@ export interface BaDrilldownItemDto {
15
16
  */
16
17
  integrationId?: number;
17
18
  issueKey?: string;
19
+ issueTitle?: string;
18
20
  issueType?: string;
19
21
  project?: string;
20
22
  status?: string;
@@ -5,7 +5,7 @@ export interface BaDrilldownRequestDto {
5
5
  */
6
6
  endDate: string;
7
7
  pagination?: PaginationRequest;
8
- sortBy?: 'ASSIGNEE' | 'CATEGORY_ORDER' | 'EPIC' | 'HIERARCHY_LEVEL' | 'ISSUE_KEY' | 'ISSUE_TYPE' | 'PROJECT' | 'STATUS' | 'STORY_POINTS' | 'TOTAL_EFFORT' | 'TOTAL_TIME_TO_RESOLVE';
8
+ sortBy?: 'ASSIGNEE' | 'CATEGORY_NAME' | 'CATEGORY_ORDER' | 'EPIC' | 'HIERARCHY_LEVEL' | 'ISSUE_KEY' | 'ISSUE_TYPE' | 'PROJECT' | 'STATUS' | 'STORY_POINTS' | 'TOTAL_EFFORT' | 'TOTAL_TIME_TO_RESOLVE';
9
9
  sortByCriteria?: 'ASC' | 'DESC';
10
10
  /**
11
11
  * @format date-time
@@ -1,10 +1,5 @@
1
1
  import type { BaExpressionLeafDto } from '../schemas/BaExpressionLeafDto';
2
2
  export interface BaFilterDto {
3
- conjunctionType?: 'AND' | 'OR';
4
- /**
5
- * @format date-time
6
- */
7
- createdAt?: string;
8
3
  expressions?: BaExpressionLeafDto[];
9
4
  /**
10
5
  * @format uuid
@@ -14,9 +9,5 @@ export interface BaFilterDto {
14
9
  * @format uuid
15
10
  */
16
11
  id?: string;
17
- name?: string;
18
- /**
19
- * @format date-time
20
- */
21
- updatedAt?: string;
12
+ logicalOperator?: 'AND' | 'OR';
22
13
  }
@@ -1,18 +1,9 @@
1
1
  import type { BaFilterDto } from '../schemas/BaFilterDto';
2
2
  export interface BaFilterSetDto {
3
- conjunctionType?: 'AND' | 'OR';
4
- /**
5
- * @format date-time
6
- */
7
- createdAt?: string;
8
3
  filters?: BaFilterDto[];
9
4
  /**
10
5
  * @format uuid
11
6
  */
12
7
  id?: string;
13
- name?: string;
14
- /**
15
- * @format date-time
16
- */
17
- updatedAt?: string;
8
+ logicalOperator?: 'AND' | 'OR';
18
9
  }
@@ -1,6 +1,6 @@
1
1
  import type { BaCategoryDto } from '../schemas/BaCategoryDto';
2
2
  export interface BaProfileRequestDto {
3
3
  categories?: BaCategoryDto[];
4
- description: string;
4
+ description?: string;
5
5
  name: string;
6
6
  }
@@ -5,6 +5,4 @@ export interface BaTeamCategoryDefinition {
5
5
  */
6
6
  categoryId: string;
7
7
  filterSet: BaFilterSetDto;
8
- isActive?: boolean;
9
- name?: string;
10
8
  }
@@ -2,6 +2,7 @@ import type { CfrConfigurationDto } from '../schemas/CfrConfigurationDto';
2
2
  import type { DfConfigurationDto } from '../schemas/DfConfigurationDto';
3
3
  import type { LtcConfigurationDto } from '../schemas/LtcConfigurationDto';
4
4
  import type { MttrConfigurationDto } from '../schemas/MttrConfigurationDto';
5
+ import type { MinimalOrgTree } from '../schemas/MinimalOrgTree';
5
6
  export interface EfficiencyProfileResponseDto {
6
7
  changeFailureRate?: CfrConfigurationDto;
7
8
  /**
@@ -18,6 +19,7 @@ export interface EfficiencyProfileResponseDto {
18
19
  leadTimeForChanges?: LtcConfigurationDto;
19
20
  meanTimeToRestore?: MttrConfigurationDto;
20
21
  name?: string;
22
+ orgTrees?: MinimalOrgTree[];
21
23
  /**
22
24
  * @format int32
23
25
  */
@@ -1,5 +1,7 @@
1
+ import type { BaTeamCategoryDefinition } from '../schemas/BaTeamCategoryDefinition';
1
2
  import type { TeamFilter } from '../schemas/TeamFilter';
2
3
  export interface GroupedTeamFiltersResponseDto {
4
+ categories?: BaTeamCategoryDefinition[];
3
5
  groupedFilters?: {
4
6
  [key: string]: TeamFilter[];
5
7
  };
@@ -4,4 +4,6 @@ export interface MinimalOrgTree {
4
4
  */
5
5
  id?: number;
6
6
  name?: string;
7
+ orgIdentifier?: string;
8
+ projectIdentifier?: string;
7
9
  }
@@ -1,3 +1,5 @@
1
+ import type { TeamFilter } from '../schemas/TeamFilter';
2
+ import type { IntegrationResponseDto } from '../schemas/IntegrationResponseDto';
1
3
  /**
2
4
  * Team hierarchy response with minimal information
3
5
  */
@@ -13,6 +15,18 @@ export interface MinimalTeamHierarchyResponseDto {
13
15
  * @example 10
14
16
  */
15
17
  developerCount?: number;
18
+ /**
19
+ * Map of integration Filters associated with the team
20
+ * @example []
21
+ */
22
+ groupedFilters?: {
23
+ [key: string]: TeamFilter[];
24
+ };
25
+ /**
26
+ * List of integrations associated with the team
27
+ * @example []
28
+ */
29
+ integrations?: IntegrationResponseDto[];
16
30
  /**
17
31
  * Whether this team is a leaf node (has no children)
18
32
  */
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -1,3 +1,4 @@
1
+ import type { MinimalOrgTree } from '../schemas/MinimalOrgTree';
1
2
  import type { SectionDto } from '../schemas/SectionDto';
2
3
  export interface ProductivityProfileResponseDto {
3
4
  active?: boolean;
@@ -12,6 +13,7 @@ export interface ProductivityProfileResponseDto {
12
13
  */
13
14
  id?: number;
14
15
  name: string;
16
+ orgTrees?: MinimalOrgTree[];
15
17
  /**
16
18
  * @format int32
17
19
  */
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Request object for updating team information
3
+ */
4
+ export interface TeamInfoUpdateRequestDto {
5
+ /**
6
+ * New name for the team
7
+ * @example "Engineering Team"
8
+ */
9
+ name?: string;
10
+ }
@@ -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.20.1",
3
+ "version": "0.20.2",
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",