@harnessio/react-sei-panorama-service-client 0.18.3 → 0.18.4
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/useTeamsControllerGetTeamDevelopersQuery.d.ts +4 -1
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamDevelopersQuery.js +2 -2
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamIntegrationFiltersQuery.d.ts +4 -1
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamIntegrationFiltersQuery.js +2 -2
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamIntegrationsQuery.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamIntegrationsQuery.js +2 -2
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamQuery.d.ts +2 -2
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamQuery.js +3 -3
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerUpdateTeamIntegrationFiltersMutation.d.ts +4 -1
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerUpdateTeamIntegrationFiltersMutation.js +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerUpdateTeamIntegrationsMutation.d.ts +4 -1
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerUpdateTeamIntegrationsMutation.js +1 -1
- package/dist/sei-panorama-service/src/services/index.d.ts +0 -3
- package/dist/sei-panorama-service/src/services/index.js +0 -1
- package/dist/sei-panorama-service/src/services/schemas/GroupedTeamFiltersResponseDto.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/MinimalTeamHierarchyResponseDto.d.ts +2 -1
- package/dist/sei-panorama-service/src/services/schemas/OrgTreeUpdateRequestDto.d.ts +0 -3
- package/dist/sei-panorama-service/src/services/schemas/OrgTreeUpdateRequestDto.js +3 -0
- package/dist/sei-panorama-service/src/services/schemas/PaginatedResponseTeamSummary.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/TeamDevelopersDto.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/TeamFilter.d.ts +5 -4
- package/dist/sei-panorama-service/src/services/schemas/TeamIntegrationDto.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/TeamResponse.d.ts +0 -10
- package/package.json +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerUpdateTeamMutation.d.ts +0 -26
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerUpdateTeamMutation.js +0 -14
- package/dist/sei-panorama-service/src/services/schemas/TeamRequestDto.d.ts +0 -28
- package/dist/sei-panorama-service/src/services/schemas/TeamRequestDto.js +0 -4
package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamDevelopersQuery.d.ts
CHANGED
@@ -3,7 +3,10 @@ import type { TeamDevelopersDto } from '../schemas/TeamDevelopersDto';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
5
5
|
export interface TeamsControllerGetTeamDevelopersQueryPathParams {
|
6
|
-
|
6
|
+
/**
|
7
|
+
* @format int32
|
8
|
+
*/
|
9
|
+
teamRefId: number;
|
7
10
|
}
|
8
11
|
export interface TeamsControllerGetTeamDevelopersQueryQueryParams {
|
9
12
|
account: string;
|
package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamDevelopersQuery.js
CHANGED
@@ -4,11 +4,11 @@
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
6
6
|
export function teamsControllerGetTeamDevelopers(props) {
|
7
|
-
return fetcher(Object.assign({ url: `/v2/teams/${props.
|
7
|
+
return fetcher(Object.assign({ url: `/v2/teams/${props.teamRefId}/developers`, method: 'GET' }, props));
|
8
8
|
}
|
9
9
|
/**
|
10
10
|
* Returns developers for the specified team with optional pagination support
|
11
11
|
*/
|
12
12
|
export function useTeamsControllerGetTeamDevelopersQuery(props, options) {
|
13
|
-
return useQuery(['TeamsControllerGetTeamDevelopers', props.
|
13
|
+
return useQuery(['TeamsControllerGetTeamDevelopers', props.teamRefId, props.queryParams], ({ signal }) => teamsControllerGetTeamDevelopers(Object.assign(Object.assign({}, props), { signal })), options);
|
14
14
|
}
|
@@ -3,7 +3,10 @@ import type { GroupedTeamFiltersResponseDto } from '../schemas/GroupedTeamFilter
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
5
5
|
export interface TeamsControllerGetTeamIntegrationFiltersQueryPathParams {
|
6
|
-
|
6
|
+
/**
|
7
|
+
* @format int32
|
8
|
+
*/
|
9
|
+
teamRefId: number;
|
7
10
|
}
|
8
11
|
export interface TeamsControllerGetTeamIntegrationFiltersQueryQueryParams {
|
9
12
|
integrationType?: 'CD' | 'CI' | 'IM' | 'ITSM' | 'SCM';
|
@@ -4,11 +4,11 @@
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
6
6
|
export function teamsControllerGetTeamIntegrationFilters(props) {
|
7
|
-
return fetcher(Object.assign({ url: `/v2/teams/${props.
|
7
|
+
return fetcher(Object.assign({ url: `/v2/teams/${props.teamRefId}/integration_filters`, method: 'GET' }, props));
|
8
8
|
}
|
9
9
|
/**
|
10
10
|
* Returns filters for the specified team, grouped by integration type. If a specific integrationType is provided in the request, the response will include filters for that type. If no integrationType is provided, it will include filters for all integration types.
|
11
11
|
*/
|
12
12
|
export function useTeamsControllerGetTeamIntegrationFiltersQuery(props, options) {
|
13
|
-
return useQuery(['TeamsControllerGetTeamIntegrationFilters', props.
|
13
|
+
return useQuery(['TeamsControllerGetTeamIntegrationFilters', props.teamRefId, props.queryParams], ({ signal }) => teamsControllerGetTeamIntegrationFilters(Object.assign(Object.assign({}, props), { signal })), options);
|
14
14
|
}
|
package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamIntegrationsQuery.d.ts
CHANGED
@@ -3,7 +3,7 @@ import type { TeamIntegrationDto } from '../schemas/TeamIntegrationDto';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
5
5
|
export interface TeamsControllerGetTeamIntegrationsQueryPathParams {
|
6
|
-
|
6
|
+
teamRefId: string;
|
7
7
|
}
|
8
8
|
export interface TeamsControllerGetTeamIntegrationsQueryQueryParams {
|
9
9
|
account: string;
|
package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamIntegrationsQuery.js
CHANGED
@@ -4,11 +4,11 @@
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
6
6
|
export function teamsControllerGetTeamIntegrations(props) {
|
7
|
-
return fetcher(Object.assign({ url: `/v2/teams/${props.
|
7
|
+
return fetcher(Object.assign({ url: `/v2/teams/${props.teamRefId}/integrations`, method: 'GET' }, props));
|
8
8
|
}
|
9
9
|
/**
|
10
10
|
* Returns all integrations for the specified team
|
11
11
|
*/
|
12
12
|
export function useTeamsControllerGetTeamIntegrationsQuery(props, options) {
|
13
|
-
return useQuery(['TeamsControllerGetTeamIntegrations', props.
|
13
|
+
return useQuery(['TeamsControllerGetTeamIntegrations', props.teamRefId, props.queryParams], ({ signal }) => teamsControllerGetTeamIntegrations(Object.assign(Object.assign({}, props), { signal })), options);
|
14
14
|
}
|
@@ -6,7 +6,7 @@ export interface TeamsControllerGetTeamQueryPathParams {
|
|
6
6
|
/**
|
7
7
|
* @format int32
|
8
8
|
*/
|
9
|
-
|
9
|
+
teamRefId: number;
|
10
10
|
}
|
11
11
|
export interface TeamsControllerGetTeamQueryQueryParams {
|
12
12
|
account: string;
|
@@ -18,6 +18,6 @@ export interface TeamsControllerGetTeamProps extends TeamsControllerGetTeamQuery
|
|
18
18
|
}
|
19
19
|
export declare function teamsControllerGetTeam(props: TeamsControllerGetTeamProps): Promise<TeamsControllerGetTeamOkResponse>;
|
20
20
|
/**
|
21
|
-
* Returns the team with the specified ID
|
21
|
+
* Returns the team with the specified reference ID
|
22
22
|
*/
|
23
23
|
export declare function useTeamsControllerGetTeamQuery(props: TeamsControllerGetTeamProps, options?: Omit<UseQueryOptions<TeamsControllerGetTeamOkResponse, TeamsControllerGetTeamErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<TeamsControllerGetTeamOkResponse, TeamResponse>;
|
@@ -4,11 +4,11 @@
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
6
6
|
export function teamsControllerGetTeam(props) {
|
7
|
-
return fetcher(Object.assign({ url: `/v2/teams/${props.
|
7
|
+
return fetcher(Object.assign({ url: `/v2/teams/${props.teamRefId}/team_info`, method: 'GET' }, props));
|
8
8
|
}
|
9
9
|
/**
|
10
|
-
* Returns the team with the specified ID
|
10
|
+
* Returns the team with the specified reference ID
|
11
11
|
*/
|
12
12
|
export function useTeamsControllerGetTeamQuery(props, options) {
|
13
|
-
return useQuery(['TeamsControllerGetTeam', props.
|
13
|
+
return useQuery(['TeamsControllerGetTeam', props.teamRefId, props.queryParams], ({ signal }) => teamsControllerGetTeam(Object.assign(Object.assign({}, props), { signal })), options);
|
14
14
|
}
|
@@ -3,7 +3,10 @@ import type { GroupedTeamFiltersResponseDto } from '../schemas/GroupedTeamFilter
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
5
5
|
export interface TeamsControllerUpdateTeamIntegrationFiltersMutationPathParams {
|
6
|
-
|
6
|
+
/**
|
7
|
+
* @format int32
|
8
|
+
*/
|
9
|
+
teamRefId: number;
|
7
10
|
}
|
8
11
|
export interface TeamsControllerUpdateTeamIntegrationFiltersMutationQueryParams {
|
9
12
|
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 teamsControllerUpdateTeamIntegrationFilters(props) {
|
7
|
-
return fetcher(Object.assign({ url: `/v2/teams/${props.
|
7
|
+
return fetcher(Object.assign({ url: `/v2/teams/${props.teamRefId}/integration_filters`, method: 'PUT' }, props));
|
8
8
|
}
|
9
9
|
/**
|
10
10
|
* Updates filters for the specified team using a map of integration types to filters. Each integration type can have multiple filters.
|
@@ -3,7 +3,10 @@ import type { TeamIntegrationDto } from '../schemas/TeamIntegrationDto';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
5
5
|
export interface TeamsControllerUpdateTeamIntegrationsMutationPathParams {
|
6
|
-
|
6
|
+
/**
|
7
|
+
* @format int32
|
8
|
+
*/
|
9
|
+
teamRefId: number;
|
7
10
|
}
|
8
11
|
export interface TeamsControllerUpdateTeamIntegrationsMutationQueryParams {
|
9
12
|
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 teamsControllerUpdateTeamIntegrations(props) {
|
7
|
-
return fetcher(Object.assign({ url: `/v2/teams/${props.
|
7
|
+
return fetcher(Object.assign({ url: `/v2/teams/${props.teamRefId}/integrations`, method: 'PUT' }, props));
|
8
8
|
}
|
9
9
|
/**
|
10
10
|
* Updates integrations for the specified team
|
@@ -137,8 +137,6 @@ export type { TeamsControllerUpdateTeamIntegrationFiltersErrorResponse, TeamsCon
|
|
137
137
|
export { teamsControllerUpdateTeamIntegrationFilters, useTeamsControllerUpdateTeamIntegrationFiltersMutation, } from './hooks/useTeamsControllerUpdateTeamIntegrationFiltersMutation';
|
138
138
|
export type { TeamsControllerUpdateTeamIntegrationsErrorResponse, TeamsControllerUpdateTeamIntegrationsMutationPathParams, TeamsControllerUpdateTeamIntegrationsMutationQueryParams, TeamsControllerUpdateTeamIntegrationsOkResponse, TeamsControllerUpdateTeamIntegrationsProps, TeamsControllerUpdateTeamIntegrationsRequestBody, } from './hooks/useTeamsControllerUpdateTeamIntegrationsMutation';
|
139
139
|
export { teamsControllerUpdateTeamIntegrations, useTeamsControllerUpdateTeamIntegrationsMutation, } from './hooks/useTeamsControllerUpdateTeamIntegrationsMutation';
|
140
|
-
export type { TeamsControllerUpdateTeamErrorResponse, TeamsControllerUpdateTeamMutationPathParams, TeamsControllerUpdateTeamMutationQueryParams, TeamsControllerUpdateTeamOkResponse, TeamsControllerUpdateTeamProps, TeamsControllerUpdateTeamRequestBody, } from './hooks/useTeamsControllerUpdateTeamMutation';
|
141
|
-
export { teamsControllerUpdateTeam, useTeamsControllerUpdateTeamMutation, } from './hooks/useTeamsControllerUpdateTeamMutation';
|
142
140
|
export type { BaBreakdownDto } from './schemas/BaBreakdownDto';
|
143
141
|
export type { BaCategoryMetric } from './schemas/BaCategoryMetric';
|
144
142
|
export type { BaDataPoint } from './schemas/BaDataPoint';
|
@@ -245,7 +243,6 @@ export type { SummaryValueChange } from './schemas/SummaryValueChange';
|
|
245
243
|
export type { TeamDevelopersDto } from './schemas/TeamDevelopersDto';
|
246
244
|
export type { TeamFilter } from './schemas/TeamFilter';
|
247
245
|
export type { TeamIntegrationDto } from './schemas/TeamIntegrationDto';
|
248
|
-
export type { TeamRequestDto } from './schemas/TeamRequestDto';
|
249
246
|
export type { TeamResponse } from './schemas/TeamResponse';
|
250
247
|
export type { TeamSummary } from './schemas/TeamSummary';
|
251
248
|
export type { TotalStatisticCount } from './schemas/TotalStatisticCount';
|
@@ -67,4 +67,3 @@ export { teamsControllerGetTeam, useTeamsControllerGetTeamQuery, } from './hooks
|
|
67
67
|
export { teamsControllerListTeams, useTeamsControllerListTeamsQuery, } from './hooks/useTeamsControllerListTeamsQuery';
|
68
68
|
export { teamsControllerUpdateTeamIntegrationFilters, useTeamsControllerUpdateTeamIntegrationFiltersMutation, } from './hooks/useTeamsControllerUpdateTeamIntegrationFiltersMutation';
|
69
69
|
export { teamsControllerUpdateTeamIntegrations, useTeamsControllerUpdateTeamIntegrationsMutation, } from './hooks/useTeamsControllerUpdateTeamIntegrationsMutation';
|
70
|
-
export { teamsControllerUpdateTeam, useTeamsControllerUpdateTeamMutation, } from './hooks/useTeamsControllerUpdateTeamMutation';
|
@@ -4,8 +4,9 @@
|
|
4
4
|
export interface MinimalTeamHierarchyResponseDto {
|
5
5
|
/**
|
6
6
|
* List of child teams in the hierarchy
|
7
|
+
* @example []
|
7
8
|
*/
|
8
|
-
children?: MinimalTeamHierarchyResponseDto;
|
9
|
+
children?: MinimalTeamHierarchyResponseDto[];
|
9
10
|
/**
|
10
11
|
* Whether this team is a leaf node (has no children)
|
11
12
|
*/
|
@@ -1,6 +1,4 @@
|
|
1
|
-
import type { OrgTreeProfileDto } from '../schemas/OrgTreeProfileDto';
|
2
1
|
export interface OrgTreeUpdateRequestDto {
|
3
|
-
efficiencyProfile?: OrgTreeProfileDto;
|
4
2
|
/**
|
5
3
|
* @format int32
|
6
4
|
*/
|
@@ -10,7 +8,6 @@ export interface OrgTreeUpdateRequestDto {
|
|
10
8
|
*/
|
11
9
|
integrationIds?: number[];
|
12
10
|
name: string;
|
13
|
-
productivityProfile?: OrgTreeProfileDto;
|
14
11
|
/**
|
15
12
|
* @format int32
|
16
13
|
*/
|
@@ -1,9 +1,6 @@
|
|
1
1
|
export interface TeamFilter {
|
2
2
|
applicableMetrics?: Array<'CFR' | 'DF' | 'LTTC' | 'MTTR' | 'PRODUCTIVITY'>;
|
3
|
-
|
4
|
-
* @format int32
|
5
|
-
*/
|
6
|
-
filterId?: number;
|
3
|
+
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';
|
7
4
|
/**
|
8
5
|
* @format int32
|
9
6
|
*/
|
@@ -14,5 +11,9 @@ export interface TeamFilter {
|
|
14
11
|
integrationId?: number;
|
15
12
|
integrationName?: string;
|
16
13
|
operator?: 'contains' | 'ends_with' | 'equals' | 'in' | 'not_contains' | 'not_equals' | 'not_in' | 'starts_with';
|
14
|
+
/**
|
15
|
+
* @format int32
|
16
|
+
*/
|
17
|
+
questionId?: number;
|
17
18
|
values?: string[];
|
18
19
|
}
|
@@ -1,15 +1,9 @@
|
|
1
1
|
export interface TeamResponse {
|
2
|
-
active?: boolean;
|
3
2
|
/**
|
4
3
|
* @format date-time
|
5
4
|
*/
|
6
5
|
createdAt?: string;
|
7
6
|
createdByEmail?: string;
|
8
|
-
/**
|
9
|
-
* @format int32
|
10
|
-
*/
|
11
|
-
id?: number;
|
12
|
-
latest?: boolean;
|
13
7
|
leaf?: boolean;
|
14
8
|
/**
|
15
9
|
* @format int32
|
@@ -33,8 +27,4 @@ export interface TeamResponse {
|
|
33
27
|
*/
|
34
28
|
updatedAt?: string;
|
35
29
|
updatedByEmail?: string;
|
36
|
-
/**
|
37
|
-
* @format int32
|
38
|
-
*/
|
39
|
-
versionId?: number;
|
40
30
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@harnessio/react-sei-panorama-service-client",
|
3
|
-
"version": "0.18.
|
3
|
+
"version": "0.18.4",
|
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",
|
package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerUpdateTeamMutation.d.ts
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
2
|
-
import type { TeamResponse } from '../schemas/TeamResponse';
|
3
|
-
import type { TeamRequestDto } from '../schemas/TeamRequestDto';
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
6
|
-
export interface TeamsControllerUpdateTeamMutationPathParams {
|
7
|
-
/**
|
8
|
-
* @format int32
|
9
|
-
*/
|
10
|
-
teamId: number;
|
11
|
-
}
|
12
|
-
export interface TeamsControllerUpdateTeamMutationQueryParams {
|
13
|
-
account: string;
|
14
|
-
}
|
15
|
-
export type TeamsControllerUpdateTeamRequestBody = TeamRequestDto;
|
16
|
-
export type TeamsControllerUpdateTeamOkResponse = ResponseWithPagination<TeamResponse>;
|
17
|
-
export type TeamsControllerUpdateTeamErrorResponse = TeamResponse;
|
18
|
-
export interface TeamsControllerUpdateTeamProps extends TeamsControllerUpdateTeamMutationPathParams, Omit<FetcherOptions<TeamsControllerUpdateTeamMutationQueryParams, TeamsControllerUpdateTeamRequestBody>, 'url'> {
|
19
|
-
queryParams: TeamsControllerUpdateTeamMutationQueryParams;
|
20
|
-
body: TeamsControllerUpdateTeamRequestBody;
|
21
|
-
}
|
22
|
-
export declare function teamsControllerUpdateTeam(props: TeamsControllerUpdateTeamProps): Promise<TeamsControllerUpdateTeamOkResponse>;
|
23
|
-
/**
|
24
|
-
* Updates the team with the specified ID
|
25
|
-
*/
|
26
|
-
export declare function useTeamsControllerUpdateTeamMutation(options?: Omit<UseMutationOptions<TeamsControllerUpdateTeamOkResponse, TeamsControllerUpdateTeamErrorResponse, TeamsControllerUpdateTeamProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TeamsControllerUpdateTeamOkResponse, TeamResponse, TeamsControllerUpdateTeamProps, unknown>;
|
package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerUpdateTeamMutation.js
DELETED
@@ -1,14 +0,0 @@
|
|
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.teamId}/team_info`, method: 'PUT' }, props));
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* Updates the team with the specified ID
|
11
|
-
*/
|
12
|
-
export function useTeamsControllerUpdateTeamMutation(options) {
|
13
|
-
return useMutation((mutateProps) => teamsControllerUpdateTeam(mutateProps), options);
|
14
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
export interface TeamRequestDto {
|
2
|
-
active?: boolean;
|
3
|
-
createdByEmail?: string;
|
4
|
-
latest?: boolean;
|
5
|
-
leaf?: boolean;
|
6
|
-
/**
|
7
|
-
* @format int32
|
8
|
-
*/
|
9
|
-
managerRefId?: number;
|
10
|
-
name?: string;
|
11
|
-
/**
|
12
|
-
* @format int32
|
13
|
-
*/
|
14
|
-
orgTreeId?: number;
|
15
|
-
/**
|
16
|
-
* @format int32
|
17
|
-
*/
|
18
|
-
parentRefId?: number;
|
19
|
-
/**
|
20
|
-
* @format int32
|
21
|
-
*/
|
22
|
-
refId?: number;
|
23
|
-
updatedByEmail?: string;
|
24
|
-
/**
|
25
|
-
* @format int32
|
26
|
-
*/
|
27
|
-
versionId?: number;
|
28
|
-
}
|