@harnessio/react-sei-panorama-service-client 0.22.6 → 0.22.8

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/useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery.d.ts +20 -0
  2. package/dist/sei-panorama-service/src/services/hooks/useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery.js +14 -0
  3. package/dist/sei-panorama-service/src/services/hooks/useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery.d.ts +20 -0
  4. package/dist/sei-panorama-service/src/services/hooks/useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery.js +14 -0
  5. package/dist/sei-panorama-service/src/services/hooks/useIntegrationStatsControllerGetIntegrationHealthQuery.d.ts +4 -0
  6. package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerListTeamsQuery.d.ts +1 -1
  7. package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerListTeamsQuery.js +1 -1
  8. package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerSearchTeamsQuery.d.ts +1 -1
  9. package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerSearchTeamsQuery.js +1 -1
  10. package/dist/sei-panorama-service/src/services/index.d.ts +5 -0
  11. package/dist/sei-panorama-service/src/services/index.js +2 -0
  12. package/dist/sei-panorama-service/src/services/schemas/AccessResponseDto.d.ts +22 -0
  13. package/dist/sei-panorama-service/src/services/schemas/AccessResponseDto.js +4 -0
  14. package/dist/sei-panorama-service/src/services/schemas/ActivityDataDto.d.ts +8 -0
  15. package/dist/sei-panorama-service/src/services/schemas/DoraChangeFailureRateMetricBreakdown.d.ts +2 -0
  16. package/dist/sei-panorama-service/src/services/schemas/DoraChangeFailureRateMetricBreakdown.js +0 -3
  17. package/dist/sei-panorama-service/src/services/schemas/MinimalTeamHierarchyResponseDto.d.ts +5 -0
  18. package/dist/sei-panorama-service/src/services/schemas/TeamResponse.d.ts +2 -0
  19. package/dist/sei-panorama-service/src/services/schemas/TeamResponse.js +0 -3
  20. package/dist/sei-panorama-service/src/services/schemas/TeamSummary.d.ts +2 -0
  21. package/package.json +1 -1
@@ -0,0 +1,20 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { IntegrationStatsDto } from '../schemas/IntegrationStatsDto';
3
+ import type { ScmStatsRequest } from '../schemas/ScmStatsRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface IntegrationStatsControllerGetImProjectsCountWithDateRangeQueryQueryParams {
7
+ account: string;
8
+ }
9
+ export type IntegrationStatsControllerGetImProjectsCountWithDateRangeRequestBody = ScmStatsRequest;
10
+ export type IntegrationStatsControllerGetImProjectsCountWithDateRangeOkResponse = ResponseWithPagination<IntegrationStatsDto[]>;
11
+ export type IntegrationStatsControllerGetImProjectsCountWithDateRangeErrorResponse = IntegrationStatsDto[];
12
+ export interface IntegrationStatsControllerGetImProjectsCountWithDateRangeProps extends Omit<FetcherOptions<IntegrationStatsControllerGetImProjectsCountWithDateRangeQueryQueryParams, IntegrationStatsControllerGetImProjectsCountWithDateRangeRequestBody>, 'url'> {
13
+ queryParams: IntegrationStatsControllerGetImProjectsCountWithDateRangeQueryQueryParams;
14
+ body: IntegrationStatsControllerGetImProjectsCountWithDateRangeRequestBody;
15
+ }
16
+ export declare function integrationStatsControllerGetImProjectsCountWithDateRange(props: IntegrationStatsControllerGetImProjectsCountWithDateRangeProps): Promise<IntegrationStatsControllerGetImProjectsCountWithDateRangeOkResponse>;
17
+ /**
18
+ * Get IM project counts with optional daily breakdown
19
+ */
20
+ export declare function useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery(props: IntegrationStatsControllerGetImProjectsCountWithDateRangeProps, options?: Omit<UseQueryOptions<IntegrationStatsControllerGetImProjectsCountWithDateRangeOkResponse, IntegrationStatsControllerGetImProjectsCountWithDateRangeErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<IntegrationStatsControllerGetImProjectsCountWithDateRangeOkResponse, IntegrationStatsControllerGetImProjectsCountWithDateRangeErrorResponse>;
@@ -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 integrationStatsControllerGetImProjectsCountWithDateRange(props) {
7
+ return fetcher(Object.assign({ url: `/v2/integration-stats/im/projects`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get IM project counts with optional daily breakdown
11
+ */
12
+ export function useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery(props, options) {
13
+ return useQuery(['IntegrationStatsControllerGetImProjectsCountWithDateRange', props.queryParams, props.body], ({ signal }) => integrationStatsControllerGetImProjectsCountWithDateRange(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,20 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { IntegrationStatsDto } from '../schemas/IntegrationStatsDto';
3
+ import type { ScmStatsRequest } from '../schemas/ScmStatsRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface IntegrationStatsControllerGetImTicketsCountWithDateRangeQueryQueryParams {
7
+ account: string;
8
+ }
9
+ export type IntegrationStatsControllerGetImTicketsCountWithDateRangeRequestBody = ScmStatsRequest;
10
+ export type IntegrationStatsControllerGetImTicketsCountWithDateRangeOkResponse = ResponseWithPagination<IntegrationStatsDto[]>;
11
+ export type IntegrationStatsControllerGetImTicketsCountWithDateRangeErrorResponse = IntegrationStatsDto[];
12
+ export interface IntegrationStatsControllerGetImTicketsCountWithDateRangeProps extends Omit<FetcherOptions<IntegrationStatsControllerGetImTicketsCountWithDateRangeQueryQueryParams, IntegrationStatsControllerGetImTicketsCountWithDateRangeRequestBody>, 'url'> {
13
+ queryParams: IntegrationStatsControllerGetImTicketsCountWithDateRangeQueryQueryParams;
14
+ body: IntegrationStatsControllerGetImTicketsCountWithDateRangeRequestBody;
15
+ }
16
+ export declare function integrationStatsControllerGetImTicketsCountWithDateRange(props: IntegrationStatsControllerGetImTicketsCountWithDateRangeProps): Promise<IntegrationStatsControllerGetImTicketsCountWithDateRangeOkResponse>;
17
+ /**
18
+ * Get IM ticket counts with optional daily breakdown
19
+ */
20
+ export declare function useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery(props: IntegrationStatsControllerGetImTicketsCountWithDateRangeProps, options?: Omit<UseQueryOptions<IntegrationStatsControllerGetImTicketsCountWithDateRangeOkResponse, IntegrationStatsControllerGetImTicketsCountWithDateRangeErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<IntegrationStatsControllerGetImTicketsCountWithDateRangeOkResponse, IntegrationStatsControllerGetImTicketsCountWithDateRangeErrorResponse>;
@@ -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 integrationStatsControllerGetImTicketsCountWithDateRange(props) {
7
+ return fetcher(Object.assign({ url: `/v2/integration-stats/im/tickets`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get IM ticket counts with optional daily breakdown
11
+ */
12
+ export function useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery(props, options) {
13
+ return useQuery(['IntegrationStatsControllerGetImTicketsCountWithDateRange', props.queryParams, props.body], ({ signal }) => integrationStatsControllerGetImTicketsCountWithDateRange(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -6,6 +6,10 @@ export interface IntegrationStatsControllerGetIntegrationHealthQueryQueryParams
6
6
  integrationId: string;
7
7
  fromDate: string;
8
8
  toDate: string;
9
+ /**
10
+ * @default "SCM"
11
+ */
12
+ appType?: string;
9
13
  account: string;
10
14
  }
11
15
  export type IntegrationStatsControllerGetIntegrationHealthOkResponse = ResponseWithPagination<IntegrationHealthStatusDto[]>;
@@ -32,6 +32,6 @@ export interface TeamsControllerListTeamsProps extends Omit<FetcherOptions<Teams
32
32
  }
33
33
  export declare function teamsControllerListTeams(props: TeamsControllerListTeamsProps): Promise<TeamsControllerListTeamsOkResponse>;
34
34
  /**
35
- * Returns all teams with optional pagination
35
+ * Returns all teams with optional pagination and RBAC permissions
36
36
  */
37
37
  export declare function useTeamsControllerListTeamsQuery(props: TeamsControllerListTeamsProps, options?: Omit<UseQueryOptions<TeamsControllerListTeamsOkResponse, TeamsControllerListTeamsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<TeamsControllerListTeamsOkResponse, unknown>;
@@ -7,7 +7,7 @@ export function teamsControllerListTeams(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/teams/list`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Returns all teams with optional pagination
10
+ * Returns all teams with optional pagination and RBAC permissions
11
11
  */
12
12
  export function useTeamsControllerListTeamsQuery(props, options) {
13
13
  return useQuery(['TeamsControllerListTeams', props.queryParams], ({ signal }) => teamsControllerListTeams(Object.assign(Object.assign({}, props), { signal })), options);
@@ -32,6 +32,6 @@ export interface TeamsControllerSearchTeamsProps extends Omit<FetcherOptions<Tea
32
32
  }
33
33
  export declare function teamsControllerSearchTeams(props: TeamsControllerSearchTeamsProps): Promise<TeamsControllerSearchTeamsOkResponse>;
34
34
  /**
35
- * Search teams with filtering and sorting options
35
+ * Search teams with filtering and sorting options and RBAC permissions
36
36
  */
37
37
  export declare function useTeamsControllerSearchTeamsQuery(props: TeamsControllerSearchTeamsProps, options?: Omit<UseQueryOptions<TeamsControllerSearchTeamsOkResponse, TeamsControllerSearchTeamsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<TeamsControllerSearchTeamsOkResponse, unknown>;
@@ -7,7 +7,7 @@ export function teamsControllerSearchTeams(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/teams/list`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Search teams with filtering and sorting options
10
+ * Search teams with filtering and sorting options and RBAC permissions
11
11
  */
12
12
  export function useTeamsControllerSearchTeamsQuery(props, options) {
13
13
  return useQuery(['TeamsControllerSearchTeams', props.queryParams, props.body], ({ signal }) => teamsControllerSearchTeams(Object.assign(Object.assign({}, props), { signal })), options);
@@ -167,8 +167,12 @@ export type { IntegrationStatsControllerGetCicdPipelinesCountErrorResponse, Inte
167
167
  export { integrationStatsControllerGetCicdPipelinesCount, useIntegrationStatsControllerGetCicdPipelinesCountQuery, } from './hooks/useIntegrationStatsControllerGetCicdPipelinesCountQuery';
168
168
  export type { IntegrationStatsControllerGetImProjectsCountErrorResponse, IntegrationStatsControllerGetImProjectsCountOkResponse, IntegrationStatsControllerGetImProjectsCountProps, IntegrationStatsControllerGetImProjectsCountQueryQueryParams, } from './hooks/useIntegrationStatsControllerGetImProjectsCountQuery';
169
169
  export { integrationStatsControllerGetImProjectsCount, useIntegrationStatsControllerGetImProjectsCountQuery, } from './hooks/useIntegrationStatsControllerGetImProjectsCountQuery';
170
+ export type { IntegrationStatsControllerGetImProjectsCountWithDateRangeErrorResponse, IntegrationStatsControllerGetImProjectsCountWithDateRangeOkResponse, IntegrationStatsControllerGetImProjectsCountWithDateRangeProps, IntegrationStatsControllerGetImProjectsCountWithDateRangeQueryQueryParams, IntegrationStatsControllerGetImProjectsCountWithDateRangeRequestBody, } from './hooks/useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery';
171
+ export { integrationStatsControllerGetImProjectsCountWithDateRange, useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery, } from './hooks/useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery';
170
172
  export type { IntegrationStatsControllerGetImTicketsCountErrorResponse, IntegrationStatsControllerGetImTicketsCountOkResponse, IntegrationStatsControllerGetImTicketsCountProps, IntegrationStatsControllerGetImTicketsCountQueryQueryParams, } from './hooks/useIntegrationStatsControllerGetImTicketsCountQuery';
171
173
  export { integrationStatsControllerGetImTicketsCount, useIntegrationStatsControllerGetImTicketsCountQuery, } from './hooks/useIntegrationStatsControllerGetImTicketsCountQuery';
174
+ export type { IntegrationStatsControllerGetImTicketsCountWithDateRangeErrorResponse, IntegrationStatsControllerGetImTicketsCountWithDateRangeOkResponse, IntegrationStatsControllerGetImTicketsCountWithDateRangeProps, IntegrationStatsControllerGetImTicketsCountWithDateRangeQueryQueryParams, IntegrationStatsControllerGetImTicketsCountWithDateRangeRequestBody, } from './hooks/useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery';
175
+ export { integrationStatsControllerGetImTicketsCountWithDateRange, useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery, } from './hooks/useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery';
172
176
  export type { IntegrationStatsControllerGetIntegrationHealthDrillDownErrorResponse, IntegrationStatsControllerGetIntegrationHealthDrillDownOkResponse, IntegrationStatsControllerGetIntegrationHealthDrillDownProps, IntegrationStatsControllerGetIntegrationHealthDrillDownQueryQueryParams, } from './hooks/useIntegrationStatsControllerGetIntegrationHealthDrillDownQuery';
173
177
  export { integrationStatsControllerGetIntegrationHealthDrillDown, useIntegrationStatsControllerGetIntegrationHealthDrillDownQuery, } from './hooks/useIntegrationStatsControllerGetIntegrationHealthDrillDownQuery';
174
178
  export type { IntegrationStatsControllerGetIntegrationHealthErrorResponse, IntegrationStatsControllerGetIntegrationHealthOkResponse, IntegrationStatsControllerGetIntegrationHealthProps, IntegrationStatsControllerGetIntegrationHealthQueryQueryParams, } from './hooks/useIntegrationStatsControllerGetIntegrationHealthQuery';
@@ -293,6 +297,7 @@ export type { TeamsControllerUpdateTeamIntegrationsErrorResponse, TeamsControlle
293
297
  export { teamsControllerUpdateTeamIntegrations, useTeamsControllerUpdateTeamIntegrationsMutation, } from './hooks/useTeamsControllerUpdateTeamIntegrationsMutation';
294
298
  export type { TeamsControllerUpdateTeamErrorResponse, TeamsControllerUpdateTeamMutationPathParams, TeamsControllerUpdateTeamMutationQueryParams, TeamsControllerUpdateTeamOkResponse, TeamsControllerUpdateTeamProps, TeamsControllerUpdateTeamRequestBody, } from './hooks/useTeamsControllerUpdateTeamMutation';
295
299
  export { teamsControllerUpdateTeam, useTeamsControllerUpdateTeamMutation, } from './hooks/useTeamsControllerUpdateTeamMutation';
300
+ export type { AccessResponseDto } from './schemas/AccessResponseDto';
296
301
  export type { ActivityDataDto } from './schemas/ActivityDataDto';
297
302
  export type { BaBreakdownDto } from './schemas/BaBreakdownDto';
298
303
  export type { BaCategoryDto } from './schemas/BaCategoryDto';
@@ -82,7 +82,9 @@ export { integrationControllerListIntegrations, useIntegrationControllerListInte
82
82
  export { integrationStatsControllerGetCicdJobsCount, useIntegrationStatsControllerGetCicdJobsCountQuery, } from './hooks/useIntegrationStatsControllerGetCicdJobsCountQuery';
83
83
  export { integrationStatsControllerGetCicdPipelinesCount, useIntegrationStatsControllerGetCicdPipelinesCountQuery, } from './hooks/useIntegrationStatsControllerGetCicdPipelinesCountQuery';
84
84
  export { integrationStatsControllerGetImProjectsCount, useIntegrationStatsControllerGetImProjectsCountQuery, } from './hooks/useIntegrationStatsControllerGetImProjectsCountQuery';
85
+ export { integrationStatsControllerGetImProjectsCountWithDateRange, useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery, } from './hooks/useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery';
85
86
  export { integrationStatsControllerGetImTicketsCount, useIntegrationStatsControllerGetImTicketsCountQuery, } from './hooks/useIntegrationStatsControllerGetImTicketsCountQuery';
87
+ export { integrationStatsControllerGetImTicketsCountWithDateRange, useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery, } from './hooks/useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery';
86
88
  export { integrationStatsControllerGetIntegrationHealthDrillDown, useIntegrationStatsControllerGetIntegrationHealthDrillDownQuery, } from './hooks/useIntegrationStatsControllerGetIntegrationHealthDrillDownQuery';
87
89
  export { integrationStatsControllerGetIntegrationHealth, useIntegrationStatsControllerGetIntegrationHealthQuery, } from './hooks/useIntegrationStatsControllerGetIntegrationHealthQuery';
88
90
  export { integrationStatsControllerGetScmCommitsCount, useIntegrationStatsControllerGetScmCommitsCountQuery, } from './hooks/useIntegrationStatsControllerGetScmCommitsCountQuery';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Access control permissions for a team
3
+ */
4
+ export interface AccessResponseDto {
5
+ /**
6
+ * Whether the user can create teams
7
+ */
8
+ create?: boolean;
9
+ /**
10
+ * Whether the user can delete this team
11
+ */
12
+ delete?: boolean;
13
+ /**
14
+ * Whether the user can edit this team
15
+ */
16
+ edit?: boolean;
17
+ /**
18
+ * Whether the user can view this team
19
+ * @example true
20
+ */
21
+ view?: boolean;
22
+ }
@@ -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 {};
@@ -3,6 +3,14 @@ export interface ActivityDataDto {
3
3
  * @format int64
4
4
  */
5
5
  commits?: number;
6
+ /**
7
+ * @format int64
8
+ */
9
+ issues?: number;
10
+ /**
11
+ * @format int64
12
+ */
13
+ projects?: number;
6
14
  /**
7
15
  * @format int64
8
16
  */
@@ -1,4 +1,6 @@
1
+ import type { RatingDto } from '../schemas/RatingDto';
1
2
  export interface DoraChangeFailureRateMetricBreakdown {
3
+ changeFailureRateRating?: RatingDto;
2
4
  collectionId?: string;
3
5
  collectionName?: string;
4
6
  /**
@@ -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,9 +1,14 @@
1
+ import type { AccessResponseDto } from '../schemas/AccessResponseDto';
1
2
  import type { TeamFilter } from '../schemas/TeamFilter';
2
3
  import type { IntegrationResponseDto } from '../schemas/IntegrationResponseDto';
3
4
  /**
4
5
  * Team hierarchy response with minimal information
5
6
  */
6
7
  export interface MinimalTeamHierarchyResponseDto {
8
+ /**
9
+ * Access control permissions for this team
10
+ */
11
+ accessResponse?: AccessResponseDto;
7
12
  /**
8
13
  * List of child teams in the hierarchy
9
14
  * @example []
@@ -1,4 +1,6 @@
1
+ import type { AccessResponseDto } from '../schemas/AccessResponseDto';
1
2
  export interface TeamResponse {
3
+ accessResponse?: AccessResponseDto;
2
4
  /**
3
5
  * @format date-time
4
6
  */
@@ -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,6 +1,8 @@
1
+ import type { AccessResponseDto } from '../schemas/AccessResponseDto';
1
2
  import type { IntegrationSummary } from '../schemas/IntegrationSummary';
2
3
  import type { MinimalOrgTree } from '../schemas/MinimalOrgTree';
3
4
  export interface TeamSummary {
5
+ accessResponse?: AccessResponseDto;
4
6
  /**
5
7
  * @format int32
6
8
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.22.6",
3
+ "version": "0.22.8",
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",