@harnessio/react-sei-panorama-service-client 0.20.3 → 0.21.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/useLicenseControllerGetDailyDeveloperCountsQuery.d.ts +24 -0
- package/dist/sei-panorama-service/src/services/hooks/useLicenseControllerGetDailyDeveloperCountsQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useLicenseControllerGetMonthlyDeveloperCountsQuery.d.ts +13 -0
- package/dist/sei-panorama-service/src/services/hooks/useLicenseControllerGetMonthlyDeveloperCountsQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/index.d.ts +6 -0
- package/dist/sei-panorama-service/src/services/index.js +2 -0
- package/dist/sei-panorama-service/src/services/schemas/DailyLicenseUsageResponseDto.d.ts +24 -0
- package/dist/sei-panorama-service/src/services/schemas/DailyLicenseUsageResponseDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/MonthlyLicenseUsageResponseDto.d.ts +12 -0
- package/dist/sei-panorama-service/src/services/schemas/MonthlyLicenseUsageResponseDto.js +4 -0
- package/package.json +1 -1
@@ -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,24 @@
|
|
1
|
+
/**
|
2
|
+
* Response containing daily license usage counts for a specific month
|
3
|
+
*/
|
4
|
+
export interface DailyLicenseUsageResponseDto {
|
5
|
+
/**
|
6
|
+
* A mapping of date strings (YYYY-MM-DD) to license counts for each day
|
7
|
+
* @example {"2025-07-01":42,"2025-07-02":45,"2025-07-03":48,"2025-07-04":41,"2025-07-05":40,"2025-07-06":39,"2025-07-07":50,"2025-07-08":53,"2025-07-09":54}
|
8
|
+
*/
|
9
|
+
dailyCounts?: {
|
10
|
+
[key: string]: number;
|
11
|
+
};
|
12
|
+
/**
|
13
|
+
* The month for which daily data is provided
|
14
|
+
* @format int32
|
15
|
+
* @example 7
|
16
|
+
*/
|
17
|
+
month?: number;
|
18
|
+
/**
|
19
|
+
* The year for which daily data is provided
|
20
|
+
* @format int32
|
21
|
+
* @example 2025
|
22
|
+
*/
|
23
|
+
year?: number;
|
24
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* Response containing monthly license usage counts
|
3
|
+
*/
|
4
|
+
export interface MonthlyLicenseUsageResponseDto {
|
5
|
+
/**
|
6
|
+
* A mapping of month strings (YYYY-MM) to maximum license counts for each month
|
7
|
+
* @example {"2024-08":45,"2024-09":52,"2024-10":53,"2024-11":48,"2024-12":50,"2025-01":55,"2025-02":58,"2025-03":60,"2025-04":62,"2025-05":63,"2025-06":65,"2025-07":67}
|
8
|
+
*/
|
9
|
+
monthlyCounts?: {
|
10
|
+
[key: string]: number;
|
11
|
+
};
|
12
|
+
}
|
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.21.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",
|