@harnessio/react-sei-panorama-service-client 0.21.0 → 0.21.2

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 (20) hide show
  1. package/dist/sei-panorama-service/src/services/hooks/useLicenseControllerDownloadLicensesQuery.d.ts +19 -0
  2. package/dist/sei-panorama-service/src/services/hooks/useLicenseControllerDownloadLicensesQuery.js +14 -0
  3. package/dist/sei-panorama-service/src/services/hooks/useLicenseControllerListLicensesMutation.d.ts +29 -0
  4. package/dist/sei-panorama-service/src/services/hooks/useLicenseControllerListLicensesMutation.js +14 -0
  5. package/dist/sei-panorama-service/src/services/index.d.ts +7 -0
  6. package/dist/sei-panorama-service/src/services/index.js +2 -0
  7. package/dist/sei-panorama-service/src/services/schemas/DailyLicenseUsageResponseDto.d.ts +0 -11
  8. package/dist/sei-panorama-service/src/services/schemas/DeveloperLicenseDto.d.ts +12 -0
  9. package/dist/sei-panorama-service/src/services/schemas/DeveloperLicenseDto.js +4 -0
  10. package/dist/sei-panorama-service/src/services/schemas/DoraLttcMttrMetric.d.ts +1 -0
  11. package/dist/sei-panorama-service/src/services/schemas/DrillDownRequest.d.ts +0 -8
  12. package/dist/sei-panorama-service/src/services/schemas/LicenseSearchParams.d.ts +12 -0
  13. package/dist/sei-panorama-service/src/services/schemas/LicenseSearchParams.js +4 -0
  14. package/dist/sei-panorama-service/src/services/schemas/ListResponseDtoDeveloperLicenseDto.d.ts +22 -0
  15. package/dist/sei-panorama-service/src/services/schemas/ListResponseDtoDeveloperLicenseDto.js +1 -0
  16. package/dist/sei-panorama-service/src/services/schemas/MinimalTeamHierarchyResponseDto.d.ts +12 -0
  17. package/dist/sei-panorama-service/src/services/schemas/MonthlyLicenseUsageResponseDto.d.ts +0 -7
  18. package/dist/sei-panorama-service/src/services/schemas/MttrMetric.d.ts +1 -0
  19. package/dist/sei-panorama-service/src/services/schemas/TeamFilter.d.ts +1 -1
  20. package/package.json +1 -1
@@ -0,0 +1,19 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { DeveloperLicenseDto } from '../schemas/DeveloperLicenseDto';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface LicenseControllerDownloadLicensesQueryHeaderParams {
6
+ /**
7
+ * @default "text/csv"
8
+ */
9
+ Accept?: string;
10
+ }
11
+ export type LicenseControllerDownloadLicensesOkResponse = ResponseWithPagination<DeveloperLicenseDto[]>;
12
+ export type LicenseControllerDownloadLicensesErrorResponse = unknown;
13
+ export interface LicenseControllerDownloadLicensesProps extends Omit<FetcherOptions<unknown, unknown, LicenseControllerDownloadLicensesQueryHeaderParams>, 'url'> {
14
+ }
15
+ export declare function licenseControllerDownloadLicenses(props: LicenseControllerDownloadLicensesProps): Promise<LicenseControllerDownloadLicensesOkResponse>;
16
+ /**
17
+ * Downloads all licenses in CSV or JSON format based on the Accept header, defaults to CSV
18
+ */
19
+ export declare function useLicenseControllerDownloadLicensesQuery(props: LicenseControllerDownloadLicensesProps, options?: Omit<UseQueryOptions<LicenseControllerDownloadLicensesOkResponse, LicenseControllerDownloadLicensesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<LicenseControllerDownloadLicensesOkResponse, 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 licenseControllerDownloadLicenses(props) {
7
+ return fetcher(Object.assign({ url: `/v2/licenses/download`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Downloads all licenses in CSV or JSON format based on the Accept header, defaults to CSV
11
+ */
12
+ export function useLicenseControllerDownloadLicensesQuery(props, options) {
13
+ return useQuery(['LicenseControllerDownloadLicenses'], ({ signal }) => licenseControllerDownloadLicenses(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,29 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ListResponseDtoDeveloperLicenseDto } from '../schemas/ListResponseDtoDeveloperLicenseDto';
3
+ import type { LicenseSearchParams } from '../schemas/LicenseSearchParams';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface LicenseControllerListLicensesMutationQueryParams {
7
+ /**
8
+ * @format int32
9
+ * @default 0
10
+ */
11
+ pageIndex?: number;
12
+ /**
13
+ * @format int32
14
+ * @default 50
15
+ */
16
+ pageSize?: number;
17
+ }
18
+ export type LicenseControllerListLicensesRequestBody = LicenseSearchParams;
19
+ export type LicenseControllerListLicensesOkResponse = ResponseWithPagination<ListResponseDtoDeveloperLicenseDto>;
20
+ export type LicenseControllerListLicensesErrorResponse = unknown;
21
+ export interface LicenseControllerListLicensesProps extends Omit<FetcherOptions<LicenseControllerListLicensesMutationQueryParams, LicenseControllerListLicensesRequestBody>, 'url'> {
22
+ queryParams: LicenseControllerListLicensesMutationQueryParams;
23
+ body: LicenseControllerListLicensesRequestBody;
24
+ }
25
+ export declare function licenseControllerListLicenses(props: LicenseControllerListLicensesProps): Promise<LicenseControllerListLicensesOkResponse>;
26
+ /**
27
+ * Returns a list of licenses matching the search criteria
28
+ */
29
+ export declare function useLicenseControllerListLicensesMutation(options?: Omit<UseMutationOptions<LicenseControllerListLicensesOkResponse, LicenseControllerListLicensesErrorResponse, LicenseControllerListLicensesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<LicenseControllerListLicensesOkResponse, unknown, LicenseControllerListLicensesProps, 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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function licenseControllerListLicenses(props) {
7
+ return fetcher(Object.assign({ url: `/v2/licenses/list`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Returns a list of licenses matching the search criteria
11
+ */
12
+ export function useLicenseControllerListLicensesMutation(options) {
13
+ return useMutation((mutateProps) => licenseControllerListLicenses(mutateProps), options);
14
+ }
@@ -147,10 +147,14 @@ 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 { LicenseControllerDownloadLicensesErrorResponse, LicenseControllerDownloadLicensesOkResponse, LicenseControllerDownloadLicensesProps, } from './hooks/useLicenseControllerDownloadLicensesQuery';
151
+ export { licenseControllerDownloadLicenses, useLicenseControllerDownloadLicensesQuery, } from './hooks/useLicenseControllerDownloadLicensesQuery';
150
152
  export type { LicenseControllerGetDailyDeveloperCountsErrorResponse, LicenseControllerGetDailyDeveloperCountsOkResponse, LicenseControllerGetDailyDeveloperCountsProps, LicenseControllerGetDailyDeveloperCountsQueryQueryParams, } from './hooks/useLicenseControllerGetDailyDeveloperCountsQuery';
151
153
  export { licenseControllerGetDailyDeveloperCounts, useLicenseControllerGetDailyDeveloperCountsQuery, } from './hooks/useLicenseControllerGetDailyDeveloperCountsQuery';
152
154
  export type { LicenseControllerGetMonthlyDeveloperCountsErrorResponse, LicenseControllerGetMonthlyDeveloperCountsOkResponse, LicenseControllerGetMonthlyDeveloperCountsProps, } from './hooks/useLicenseControllerGetMonthlyDeveloperCountsQuery';
153
155
  export { licenseControllerGetMonthlyDeveloperCounts, useLicenseControllerGetMonthlyDeveloperCountsQuery, } from './hooks/useLicenseControllerGetMonthlyDeveloperCountsQuery';
156
+ export type { LicenseControllerListLicensesErrorResponse, LicenseControllerListLicensesMutationQueryParams, LicenseControllerListLicensesOkResponse, LicenseControllerListLicensesProps, LicenseControllerListLicensesRequestBody, } from './hooks/useLicenseControllerListLicensesMutation';
157
+ export { licenseControllerListLicenses, useLicenseControllerListLicensesMutation, } from './hooks/useLicenseControllerListLicensesMutation';
154
158
  export type { OrgTreeControllerCreateOrgTreeErrorResponse, OrgTreeControllerCreateOrgTreeMutationQueryParams, OrgTreeControllerCreateOrgTreeOkResponse, OrgTreeControllerCreateOrgTreeProps, OrgTreeControllerCreateOrgTreeRequestBody, } from './hooks/useOrgTreeControllerCreateOrgTreeMutation';
155
159
  export { orgTreeControllerCreateOrgTree, useOrgTreeControllerCreateOrgTreeMutation, } from './hooks/useOrgTreeControllerCreateOrgTreeMutation';
156
160
  export type { OrgTreeControllerDeleteOrgTreeErrorResponse, OrgTreeControllerDeleteOrgTreeMutationPathParams, OrgTreeControllerDeleteOrgTreeOkResponse, OrgTreeControllerDeleteOrgTreeProps, } from './hooks/useOrgTreeControllerDeleteOrgTreeMutation';
@@ -265,6 +269,7 @@ export type { DeveloperCloudIdMapping } from './schemas/DeveloperCloudIdMapping'
265
269
  export type { DeveloperFieldDto } from './schemas/DeveloperFieldDto';
266
270
  export type { DeveloperFilePreviewDto } from './schemas/DeveloperFilePreviewDto';
267
271
  export type { DeveloperInfo } from './schemas/DeveloperInfo';
272
+ export type { DeveloperLicenseDto } from './schemas/DeveloperLicenseDto';
268
273
  export type { DeveloperListResponseDto } from './schemas/DeveloperListResponseDto';
269
274
  export type { DeveloperSaveResponseDto } from './schemas/DeveloperSaveResponseDto';
270
275
  export type { DeveloperValidationErrorDto } from './schemas/DeveloperValidationErrorDto';
@@ -328,6 +333,8 @@ export type { IssuesPipelineExecutionResponseWrapper } from './schemas/IssuesPip
328
333
  export type { IssuesPrResponse } from './schemas/IssuesPrResponse';
329
334
  export type { IssuesPrResponseWrapper } from './schemas/IssuesPrResponseWrapper';
330
335
  export type { JsonNode } from './schemas/JsonNode';
336
+ export type { LicenseSearchParams } from './schemas/LicenseSearchParams';
337
+ export type { ListResponseDtoDeveloperLicenseDto } from './schemas/ListResponseDtoDeveloperLicenseDto';
331
338
  export type { ListResponseDtoEfficiencyProfileResponseDto } from './schemas/ListResponseDtoEfficiencyProfileResponseDto';
332
339
  export type { ListResponseDtoIntegrationResponseDto } from './schemas/ListResponseDtoIntegrationResponseDto';
333
340
  export type { ListResponseDtoOrgTreeResponseDto } from './schemas/ListResponseDtoOrgTreeResponseDto';
@@ -72,8 +72,10 @@ 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 { licenseControllerDownloadLicenses, useLicenseControllerDownloadLicensesQuery, } from './hooks/useLicenseControllerDownloadLicensesQuery';
75
76
  export { licenseControllerGetDailyDeveloperCounts, useLicenseControllerGetDailyDeveloperCountsQuery, } from './hooks/useLicenseControllerGetDailyDeveloperCountsQuery';
76
77
  export { licenseControllerGetMonthlyDeveloperCounts, useLicenseControllerGetMonthlyDeveloperCountsQuery, } from './hooks/useLicenseControllerGetMonthlyDeveloperCountsQuery';
78
+ export { licenseControllerListLicenses, useLicenseControllerListLicensesMutation, } from './hooks/useLicenseControllerListLicensesMutation';
77
79
  export { orgTreeControllerCreateOrgTree, useOrgTreeControllerCreateOrgTreeMutation, } from './hooks/useOrgTreeControllerCreateOrgTreeMutation';
78
80
  export { orgTreeControllerDeleteOrgTree, useOrgTreeControllerDeleteOrgTreeMutation, } from './hooks/useOrgTreeControllerDeleteOrgTreeMutation';
79
81
  export { orgTreeControllerGetBusinessAlignmentProfileRefId, useOrgTreeControllerGetBusinessAlignmentProfileRefIdQuery, } from './hooks/useOrgTreeControllerGetBusinessAlignmentProfileRefIdQuery';
@@ -1,24 +1,13 @@
1
- /**
2
- * Response containing daily license usage counts for a specific month
3
- */
4
1
  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
2
  dailyCounts?: {
10
3
  [key: string]: number;
11
4
  };
12
5
  /**
13
- * The month for which daily data is provided
14
6
  * @format int32
15
- * @example 7
16
7
  */
17
8
  month?: number;
18
9
  /**
19
- * The year for which daily data is provided
20
10
  * @format int32
21
- * @example 2025
22
11
  */
23
12
  year?: number;
24
13
  }
@@ -0,0 +1,12 @@
1
+ export interface DeveloperLicenseDto {
2
+ /**
3
+ * @format int64
4
+ */
5
+ createdAtEpochSec?: number;
6
+ email?: string;
7
+ name?: string;
8
+ /**
9
+ * @format int64
10
+ */
11
+ updatedAtEpochSec?: number;
12
+ }
@@ -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
  */
@@ -0,0 +1,12 @@
1
+ export interface LicenseSearchParams {
2
+ /**
3
+ * @format date-time
4
+ */
5
+ createdAt?: string;
6
+ email?: string;
7
+ name?: string;
8
+ /**
9
+ * @format date-time
10
+ */
11
+ updatedAt?: string;
12
+ }
@@ -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 {};
@@ -0,0 +1,22 @@
1
+ import type { DeveloperFieldDto } from '../schemas/DeveloperFieldDto';
2
+ export interface ListResponseDtoDeveloperLicenseDto {
3
+ /**
4
+ * Information about the fields detected in the file
5
+ */
6
+ fields?: DeveloperFieldDto[];
7
+ /**
8
+ * @format int32
9
+ */
10
+ pageIndex?: number;
11
+ /**
12
+ * @format int32
13
+ */
14
+ pageSize?: number;
15
+ records?: Array<{
16
+ [key: string]: string;
17
+ }>;
18
+ /**
19
+ * @format int32
20
+ */
21
+ totalRecords?: number;
22
+ }
@@ -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
  }
@@ -1,11 +1,4 @@
1
- /**
2
- * Response containing monthly license usage counts
3
- */
4
1
  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
2
  monthlyCounts?: {
10
3
  [key: string]: number;
11
4
  };
@@ -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.21.0",
3
+ "version": "0.21.2",
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",