@harnessio/react-sei-panorama-service-client 0.23.3 → 0.24.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.
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerListTeamsByAccessQuery.d.ts +25 -0
- package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerListTeamsByAccessQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/index.d.ts +4 -0
- package/dist/sei-panorama-service/src/services/index.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamAccessDto.d.ts +28 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamAccessDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamsByAccessResponseDto.d.ts +16 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamsByAccessResponseDto.js +1 -0
- package/package.json +1 -1
package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerListTeamsByAccessQuery.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TeamsByAccessResponseDto } from '../schemas/TeamsByAccessResponseDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface TeamsControllerListTeamsByAccessQueryQueryParams {
|
|
6
|
+
account: string;
|
|
7
|
+
/**
|
|
8
|
+
* @default ""
|
|
9
|
+
*/
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @default ""
|
|
13
|
+
*/
|
|
14
|
+
projectIdentifier?: string;
|
|
15
|
+
}
|
|
16
|
+
export type TeamsControllerListTeamsByAccessOkResponse = ResponseWithPagination<TeamsByAccessResponseDto>;
|
|
17
|
+
export type TeamsControllerListTeamsByAccessErrorResponse = unknown;
|
|
18
|
+
export interface TeamsControllerListTeamsByAccessProps extends Omit<FetcherOptions<TeamsControllerListTeamsByAccessQueryQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: TeamsControllerListTeamsByAccessQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function teamsControllerListTeamsByAccess(props: TeamsControllerListTeamsByAccessProps): Promise<TeamsControllerListTeamsByAccessOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Returns all teams (leaf and parent) grouped by access permissions - editableTeams (edit=true) and viewableTeams (view=true). Teams can appear in both lists if they have both permissions.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useTeamsControllerListTeamsByAccessQuery(props: TeamsControllerListTeamsByAccessProps, options?: Omit<UseQueryOptions<TeamsControllerListTeamsByAccessOkResponse, TeamsControllerListTeamsByAccessErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<TeamsControllerListTeamsByAccessOkResponse, unknown>;
|
package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerListTeamsByAccessQuery.js
ADDED
|
@@ -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 teamsControllerListTeamsByAccess(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/teams/list-by-access`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns all teams (leaf and parent) grouped by access permissions - editableTeams (edit=true) and viewableTeams (view=true). Teams can appear in both lists if they have both permissions.
|
|
11
|
+
*/
|
|
12
|
+
export function useTeamsControllerListTeamsByAccessQuery(props, options) {
|
|
13
|
+
return useQuery(['TeamsControllerListTeamsByAccess', props.queryParams], ({ signal }) => teamsControllerListTeamsByAccess(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -311,6 +311,8 @@ export type { TeamsControllerGetTeamIntegrationsErrorResponse, TeamsControllerGe
|
|
|
311
311
|
export { teamsControllerGetTeamIntegrations, useTeamsControllerGetTeamIntegrationsQuery, } from './hooks/useTeamsControllerGetTeamIntegrationsQuery';
|
|
312
312
|
export type { TeamsControllerGetTeamErrorResponse, TeamsControllerGetTeamOkResponse, TeamsControllerGetTeamProps, TeamsControllerGetTeamQueryPathParams, } from './hooks/useTeamsControllerGetTeamQuery';
|
|
313
313
|
export { teamsControllerGetTeam, useTeamsControllerGetTeamQuery, } from './hooks/useTeamsControllerGetTeamQuery';
|
|
314
|
+
export type { TeamsControllerListTeamsByAccessErrorResponse, TeamsControllerListTeamsByAccessOkResponse, TeamsControllerListTeamsByAccessProps, TeamsControllerListTeamsByAccessQueryQueryParams, } from './hooks/useTeamsControllerListTeamsByAccessQuery';
|
|
315
|
+
export { teamsControllerListTeamsByAccess, useTeamsControllerListTeamsByAccessQuery, } from './hooks/useTeamsControllerListTeamsByAccessQuery';
|
|
314
316
|
export type { TeamsControllerListTeamsErrorResponse, TeamsControllerListTeamsOkResponse, TeamsControllerListTeamsProps, TeamsControllerListTeamsQueryQueryParams, } from './hooks/useTeamsControllerListTeamsQuery';
|
|
315
317
|
export { teamsControllerListTeams, useTeamsControllerListTeamsQuery, } from './hooks/useTeamsControllerListTeamsQuery';
|
|
316
318
|
export type { TeamsControllerSearchTeamDevelopersErrorResponse, TeamsControllerSearchTeamDevelopersOkResponse, TeamsControllerSearchTeamDevelopersProps, TeamsControllerSearchTeamDevelopersQueryPathParams, TeamsControllerSearchTeamDevelopersQueryQueryParams, TeamsControllerSearchTeamDevelopersRequestBody, } from './hooks/useTeamsControllerSearchTeamDevelopersQuery';
|
|
@@ -570,6 +572,7 @@ export type { Stage } from './schemas/Stage';
|
|
|
570
572
|
export type { SummaryCard } from './schemas/SummaryCard';
|
|
571
573
|
export type { SummaryValue } from './schemas/SummaryValue';
|
|
572
574
|
export type { SummaryValueChange } from './schemas/SummaryValueChange';
|
|
575
|
+
export type { TeamAccessDto } from './schemas/TeamAccessDto';
|
|
573
576
|
export type { TeamDeveloperSearchParams } from './schemas/TeamDeveloperSearchParams';
|
|
574
577
|
export type { TeamDevelopersDto } from './schemas/TeamDevelopersDto';
|
|
575
578
|
export type { TeamFilter } from './schemas/TeamFilter';
|
|
@@ -581,6 +584,7 @@ export type { TeamIntegrationDto } from './schemas/TeamIntegrationDto';
|
|
|
581
584
|
export type { TeamResponse } from './schemas/TeamResponse';
|
|
582
585
|
export type { TeamSearchParams } from './schemas/TeamSearchParams';
|
|
583
586
|
export type { TeamSummary } from './schemas/TeamSummary';
|
|
587
|
+
export type { TeamsByAccessResponseDto } from './schemas/TeamsByAccessResponseDto';
|
|
584
588
|
export type { TotalStatisticCount } from './schemas/TotalStatisticCount';
|
|
585
589
|
export type { VersionReleaseRequest } from './schemas/VersionReleaseRequest';
|
|
586
590
|
export type { WorkCompletedDrilldownResponseDataPoint } from './schemas/WorkCompletedDrilldownResponseDataPoint';
|
|
@@ -154,6 +154,7 @@ export { teamsControllerGetTeamDevelopers, useTeamsControllerGetTeamDevelopersQu
|
|
|
154
154
|
export { teamsControllerGetTeamIntegrationFilters, useTeamsControllerGetTeamIntegrationFiltersQuery, } from './hooks/useTeamsControllerGetTeamIntegrationFiltersQuery';
|
|
155
155
|
export { teamsControllerGetTeamIntegrations, useTeamsControllerGetTeamIntegrationsQuery, } from './hooks/useTeamsControllerGetTeamIntegrationsQuery';
|
|
156
156
|
export { teamsControllerGetTeam, useTeamsControllerGetTeamQuery, } from './hooks/useTeamsControllerGetTeamQuery';
|
|
157
|
+
export { teamsControllerListTeamsByAccess, useTeamsControllerListTeamsByAccessQuery, } from './hooks/useTeamsControllerListTeamsByAccessQuery';
|
|
157
158
|
export { teamsControllerListTeams, useTeamsControllerListTeamsQuery, } from './hooks/useTeamsControllerListTeamsQuery';
|
|
158
159
|
export { teamsControllerSearchTeamDevelopers, useTeamsControllerSearchTeamDevelopersQuery, } from './hooks/useTeamsControllerSearchTeamDevelopersQuery';
|
|
159
160
|
export { teamsControllerSearchTeams, useTeamsControllerSearchTeamsQuery, } from './hooks/useTeamsControllerSearchTeamsQuery';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lightweight team information with minimal fields
|
|
3
|
+
*/
|
|
4
|
+
export interface TeamAccessDto {
|
|
5
|
+
/**
|
|
6
|
+
* Database ID of the team
|
|
7
|
+
* @format int32
|
|
8
|
+
* @example 123
|
|
9
|
+
*/
|
|
10
|
+
id?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Name of the team
|
|
13
|
+
* @example "Engineering Team"
|
|
14
|
+
*/
|
|
15
|
+
name?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Reference ID of the parent team, if any
|
|
18
|
+
* @format int32
|
|
19
|
+
* @example 10
|
|
20
|
+
*/
|
|
21
|
+
parentRefId?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Reference ID used for linking teams across versions
|
|
24
|
+
* @format int32
|
|
25
|
+
* @example 1
|
|
26
|
+
*/
|
|
27
|
+
refId?: number;
|
|
28
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TeamAccessDto } from '../schemas/TeamAccessDto';
|
|
2
|
+
/**
|
|
3
|
+
* Teams grouped by access permissions with lightweight team information
|
|
4
|
+
*/
|
|
5
|
+
export interface TeamsByAccessResponseDto {
|
|
6
|
+
/**
|
|
7
|
+
* Teams with edit permission (edit=true)
|
|
8
|
+
* @example "[...]"
|
|
9
|
+
*/
|
|
10
|
+
editableTeams?: TeamAccessDto[];
|
|
11
|
+
/**
|
|
12
|
+
* Teams with view permission (view=true)
|
|
13
|
+
* @example "[...]"
|
|
14
|
+
*/
|
|
15
|
+
viewableTeams?: TeamAccessDto[];
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-sei-panorama-service-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.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",
|