@harnessio/react-sei-panorama-service-client 0.20.3 → 0.21.1

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.
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { DailyLicenseUsageResponseDto } from '../schemas/DailyLicenseUsageResponseDto';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface LicenseControllerGetDailyDeveloperCountsQueryQueryParams {
6
+ /**
7
+ * @format int32
8
+ */
9
+ year: number;
10
+ /**
11
+ * @format int32
12
+ */
13
+ month: number;
14
+ }
15
+ export type LicenseControllerGetDailyDeveloperCountsOkResponse = ResponseWithPagination<DailyLicenseUsageResponseDto>;
16
+ export type LicenseControllerGetDailyDeveloperCountsErrorResponse = unknown;
17
+ export interface LicenseControllerGetDailyDeveloperCountsProps extends Omit<FetcherOptions<LicenseControllerGetDailyDeveloperCountsQueryQueryParams, unknown>, 'url'> {
18
+ queryParams: LicenseControllerGetDailyDeveloperCountsQueryQueryParams;
19
+ }
20
+ export declare function licenseControllerGetDailyDeveloperCounts(props: LicenseControllerGetDailyDeveloperCountsProps): Promise<LicenseControllerGetDailyDeveloperCountsOkResponse>;
21
+ /**
22
+ * Returns license usage for each day in the specified month
23
+ */
24
+ export declare function useLicenseControllerGetDailyDeveloperCountsQuery(props: LicenseControllerGetDailyDeveloperCountsProps, options?: Omit<UseQueryOptions<LicenseControllerGetDailyDeveloperCountsOkResponse, LicenseControllerGetDailyDeveloperCountsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<LicenseControllerGetDailyDeveloperCountsOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function licenseControllerGetDailyDeveloperCounts(props) {
7
+ return fetcher(Object.assign({ url: `/v2/licenses/usage/daily`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns license usage for each day in the specified month
11
+ */
12
+ export function useLicenseControllerGetDailyDeveloperCountsQuery(props, options) {
13
+ return useQuery(['LicenseControllerGetDailyDeveloperCounts', props.queryParams], ({ signal }) => licenseControllerGetDailyDeveloperCounts(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,13 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { MonthlyLicenseUsageResponseDto } from '../schemas/MonthlyLicenseUsageResponseDto';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export type LicenseControllerGetMonthlyDeveloperCountsOkResponse = ResponseWithPagination<MonthlyLicenseUsageResponseDto>;
6
+ export type LicenseControllerGetMonthlyDeveloperCountsErrorResponse = unknown;
7
+ export interface LicenseControllerGetMonthlyDeveloperCountsProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
8
+ }
9
+ export declare function licenseControllerGetMonthlyDeveloperCounts(props: LicenseControllerGetMonthlyDeveloperCountsProps): Promise<LicenseControllerGetMonthlyDeveloperCountsOkResponse>;
10
+ /**
11
+ * Returns the maximum licenses used for each month over the past 12 months
12
+ */
13
+ export declare function useLicenseControllerGetMonthlyDeveloperCountsQuery(props: LicenseControllerGetMonthlyDeveloperCountsProps, options?: Omit<UseQueryOptions<LicenseControllerGetMonthlyDeveloperCountsOkResponse, LicenseControllerGetMonthlyDeveloperCountsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<LicenseControllerGetMonthlyDeveloperCountsOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function licenseControllerGetMonthlyDeveloperCounts(props) {
7
+ return fetcher(Object.assign({ url: `/v2/licenses/usage/monthly`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns the maximum licenses used for each month over the past 12 months
11
+ */
12
+ export function useLicenseControllerGetMonthlyDeveloperCountsQuery(props, options) {
13
+ return useQuery(['LicenseControllerGetMonthlyDeveloperCounts'], ({ signal }) => licenseControllerGetMonthlyDeveloperCounts(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -147,6 +147,10 @@ export type { JiraIssuesControllerGetJiraIssueCountErrorResponse, JiraIssuesCont
147
147
  export { jiraIssuesControllerGetJiraIssueCount, useJiraIssuesControllerGetJiraIssueCountQuery, } from './hooks/useJiraIssuesControllerGetJiraIssueCountQuery';
148
148
  export type { LegacyHealthControllerCheckErrorResponse, LegacyHealthControllerCheckOkResponse, LegacyHealthControllerCheckProps, } from './hooks/useLegacyHealthControllerCheckQuery';
149
149
  export { legacyHealthControllerCheck, useLegacyHealthControllerCheckQuery, } from './hooks/useLegacyHealthControllerCheckQuery';
150
+ export type { LicenseControllerGetDailyDeveloperCountsErrorResponse, LicenseControllerGetDailyDeveloperCountsOkResponse, LicenseControllerGetDailyDeveloperCountsProps, LicenseControllerGetDailyDeveloperCountsQueryQueryParams, } from './hooks/useLicenseControllerGetDailyDeveloperCountsQuery';
151
+ export { licenseControllerGetDailyDeveloperCounts, useLicenseControllerGetDailyDeveloperCountsQuery, } from './hooks/useLicenseControllerGetDailyDeveloperCountsQuery';
152
+ export type { LicenseControllerGetMonthlyDeveloperCountsErrorResponse, LicenseControllerGetMonthlyDeveloperCountsOkResponse, LicenseControllerGetMonthlyDeveloperCountsProps, } from './hooks/useLicenseControllerGetMonthlyDeveloperCountsQuery';
153
+ export { licenseControllerGetMonthlyDeveloperCounts, useLicenseControllerGetMonthlyDeveloperCountsQuery, } from './hooks/useLicenseControllerGetMonthlyDeveloperCountsQuery';
150
154
  export type { OrgTreeControllerCreateOrgTreeErrorResponse, OrgTreeControllerCreateOrgTreeMutationQueryParams, OrgTreeControllerCreateOrgTreeOkResponse, OrgTreeControllerCreateOrgTreeProps, OrgTreeControllerCreateOrgTreeRequestBody, } from './hooks/useOrgTreeControllerCreateOrgTreeMutation';
151
155
  export { orgTreeControllerCreateOrgTree, useOrgTreeControllerCreateOrgTreeMutation, } from './hooks/useOrgTreeControllerCreateOrgTreeMutation';
152
156
  export type { OrgTreeControllerDeleteOrgTreeErrorResponse, OrgTreeControllerDeleteOrgTreeMutationPathParams, OrgTreeControllerDeleteOrgTreeOkResponse, OrgTreeControllerDeleteOrgTreeProps, } from './hooks/useOrgTreeControllerDeleteOrgTreeMutation';
@@ -249,6 +253,7 @@ export type { CollectionEnriched } from './schemas/CollectionEnriched';
249
253
  export type { CollectionFilter } from './schemas/CollectionFilter';
250
254
  export type { CollectionTree } from './schemas/CollectionTree';
251
255
  export type { CommitInfo } from './schemas/CommitInfo';
256
+ export type { DailyLicenseUsageResponseDto } from './schemas/DailyLicenseUsageResponseDto';
252
257
  export type { DataPoint } from './schemas/DataPoint';
253
258
  export type { DataPointBreakdown } from './schemas/DataPointBreakdown';
254
259
  export type { DataPointChangeFailureRate } from './schemas/DataPointChangeFailureRate';
@@ -332,6 +337,7 @@ export type { LtcStageDto } from './schemas/LtcStageDto';
332
337
  export type { Metric } from './schemas/Metric';
333
338
  export type { MinimalOrgTree } from './schemas/MinimalOrgTree';
334
339
  export type { MinimalTeamHierarchyResponseDto } from './schemas/MinimalTeamHierarchyResponseDto';
340
+ export type { MonthlyLicenseUsageResponseDto } from './schemas/MonthlyLicenseUsageResponseDto';
335
341
  export type { MttrConfigurationDto } from './schemas/MttrConfigurationDto';
336
342
  export type { MttrDataPoint } from './schemas/MttrDataPoint';
337
343
  export type { MttrMetric } from './schemas/MttrMetric';
@@ -72,6 +72,8 @@ export { issuesControllerGetDeployInfoFromIssues, useIssuesControllerGetDeployIn
72
72
  export { issuesControllerGetPrsFromIssues, useIssuesControllerGetPrsFromIssuesQuery, } from './hooks/useIssuesControllerGetPrsFromIssuesQuery';
73
73
  export { jiraIssuesControllerGetJiraIssueCount, useJiraIssuesControllerGetJiraIssueCountQuery, } from './hooks/useJiraIssuesControllerGetJiraIssueCountQuery';
74
74
  export { legacyHealthControllerCheck, useLegacyHealthControllerCheckQuery, } from './hooks/useLegacyHealthControllerCheckQuery';
75
+ export { licenseControllerGetDailyDeveloperCounts, useLicenseControllerGetDailyDeveloperCountsQuery, } from './hooks/useLicenseControllerGetDailyDeveloperCountsQuery';
76
+ export { licenseControllerGetMonthlyDeveloperCounts, useLicenseControllerGetMonthlyDeveloperCountsQuery, } from './hooks/useLicenseControllerGetMonthlyDeveloperCountsQuery';
75
77
  export { orgTreeControllerCreateOrgTree, useOrgTreeControllerCreateOrgTreeMutation, } from './hooks/useOrgTreeControllerCreateOrgTreeMutation';
76
78
  export { orgTreeControllerDeleteOrgTree, useOrgTreeControllerDeleteOrgTreeMutation, } from './hooks/useOrgTreeControllerDeleteOrgTreeMutation';
77
79
  export { orgTreeControllerGetBusinessAlignmentProfileRefId, useOrgTreeControllerGetBusinessAlignmentProfileRefIdQuery, } from './hooks/useOrgTreeControllerGetBusinessAlignmentProfileRefIdQuery';
@@ -0,0 +1,13 @@
1
+ export interface DailyLicenseUsageResponseDto {
2
+ dailyCounts?: {
3
+ [key: string]: number;
4
+ };
5
+ /**
6
+ * @format int32
7
+ */
8
+ month?: number;
9
+ /**
10
+ * @format int32
11
+ */
12
+ year?: number;
13
+ }
@@ -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,6 +1,7 @@
1
1
  import type { DataPoint } from '../schemas/DataPoint';
2
2
  import type { Stage } from '../schemas/Stage';
3
3
  export interface DoraLttcMttrMetric {
4
+ basedOn?: 'CD' | 'CI' | 'IM' | 'ITSM' | 'SCM';
4
5
  dataPoints?: DataPoint[];
5
6
  /**
6
7
  * @format date-time
@@ -8,14 +8,6 @@ export interface DrillDownRequest {
8
8
  * @format date-time
9
9
  */
10
10
  dateStart: string;
11
- /**
12
- * @format date-time
13
- */
14
- drillDownEndDate?: string;
15
- /**
16
- * @format date-time
17
- */
18
- drillDownStartDate?: string;
19
11
  /**
20
12
  * @format int32
21
13
  */
@@ -22,6 +22,12 @@ export interface MinimalTeamHierarchyResponseDto {
22
22
  groupedFilters?: {
23
23
  [key: string]: TeamFilter[];
24
24
  };
25
+ /**
26
+ * Count of cloud IDs associated with Developers in the team for IM integration mapped to team
27
+ * @format int32
28
+ * @example []
29
+ */
30
+ imCloudIdCount?: number;
25
31
  /**
26
32
  * List of integrations associated with the team
27
33
  * @example []
@@ -48,4 +54,10 @@ export interface MinimalTeamHierarchyResponseDto {
48
54
  * @example 1073741824
49
55
  */
50
56
  refId?: number;
57
+ /**
58
+ * Count of cloud IDs associated with Developers in the team for SCM integration mapped to team
59
+ * @format int32
60
+ * @example []
61
+ */
62
+ scmCloudIdCount?: number;
51
63
  }
@@ -0,0 +1,5 @@
1
+ export interface MonthlyLicenseUsageResponseDto {
2
+ monthlyCounts?: {
3
+ [key: string]: number;
4
+ };
5
+ }
@@ -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,5 +1,6 @@
1
1
  import type { MttrDataPoint } from '../schemas/MttrDataPoint';
2
2
  export interface MttrMetric {
3
+ basedOn?: 'CD' | 'CI' | 'IM' | 'ITSM' | 'SCM';
3
4
  dataPoints?: MttrDataPoint[];
4
5
  /**
5
6
  * @format date-time
@@ -1,5 +1,5 @@
1
1
  export interface TeamFilter {
2
- applicableMetrics?: Array<'CFR' | 'DF' | 'LTTC' | 'MTTR' | 'PRODUCTIVITY'>;
2
+ applicableMetrics?: Array<'BA' | 'CFR' | 'DF' | 'LTTC' | 'MTTR' | 'PRODUCTIVITY'>;
3
3
  filterKey?: 'CODE_AREA' | 'DEPLOYMENT_TYPE' | 'ENV_ID' | 'INFRA_ID' | 'ISSUE_PRIORITY' | 'ISSUE_STATUS' | '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';
4
4
  /**
5
5
  * @format int32
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.20.3",
3
+ "version": "0.21.1",
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",