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

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,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 { UseQueryOptions } 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 LicenseControllerListLicensesQueryQueryParams {
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<LicenseControllerListLicensesQueryQueryParams, LicenseControllerListLicensesRequestBody>, 'url'> {
22
+ queryParams: LicenseControllerListLicensesQueryQueryParams;
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 useLicenseControllerListLicensesQuery(props: LicenseControllerListLicensesProps, options?: Omit<UseQueryOptions<LicenseControllerListLicensesOkResponse, LicenseControllerListLicensesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<LicenseControllerListLicensesOkResponse, 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 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 useLicenseControllerListLicensesQuery(props, options) {
13
+ return useQuery(['LicenseControllerListLicenses', props.queryParams, props.body], ({ signal }) => licenseControllerListLicenses(Object.assign(Object.assign({}, props), { signal })), 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, LicenseControllerListLicensesOkResponse, LicenseControllerListLicensesProps, LicenseControllerListLicensesQueryQueryParams, LicenseControllerListLicensesRequestBody, } from './hooks/useLicenseControllerListLicensesQuery';
157
+ export { licenseControllerListLicenses, useLicenseControllerListLicensesQuery, } from './hooks/useLicenseControllerListLicensesQuery';
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, useLicenseControllerListLicensesQuery, } from './hooks/useLicenseControllerListLicensesQuery';
77
79
  export { orgTreeControllerCreateOrgTree, useOrgTreeControllerCreateOrgTreeMutation, } from './hooks/useOrgTreeControllerCreateOrgTreeMutation';
78
80
  export { orgTreeControllerDeleteOrgTree, useOrgTreeControllerDeleteOrgTreeMutation, } from './hooks/useOrgTreeControllerDeleteOrgTreeMutation';
79
81
  export { orgTreeControllerGetBusinessAlignmentProfileRefId, useOrgTreeControllerGetBusinessAlignmentProfileRefIdQuery, } from './hooks/useOrgTreeControllerGetBusinessAlignmentProfileRefIdQuery';
@@ -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 {};
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.21.1",
3
+ "version": "0.21.3",
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",