@harnessio/react-sei-panorama-service-client 0.21.16 → 0.21.18

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,30 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListResponseDtoIntegrationConfigResponseDto } from '../schemas/ListResponseDtoIntegrationConfigResponseDto';
3
+ import type { IntegrationConfigRequestDto } from '../schemas/IntegrationConfigRequestDto';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface IntegrationControllerListIntegrationConfigsQueryQueryParams {
7
+ /**
8
+ * @format int32
9
+ * @default 0
10
+ */
11
+ pageIndex?: number;
12
+ /**
13
+ * @format int32
14
+ * @default 100
15
+ */
16
+ pageSize?: number;
17
+ account: string;
18
+ }
19
+ export type IntegrationControllerListIntegrationConfigsRequestBody = IntegrationConfigRequestDto;
20
+ export type IntegrationControllerListIntegrationConfigsOkResponse = ResponseWithPagination<ListResponseDtoIntegrationConfigResponseDto>;
21
+ export type IntegrationControllerListIntegrationConfigsErrorResponse = ListResponseDtoIntegrationConfigResponseDto;
22
+ export interface IntegrationControllerListIntegrationConfigsProps extends Omit<FetcherOptions<IntegrationControllerListIntegrationConfigsQueryQueryParams, IntegrationControllerListIntegrationConfigsRequestBody>, 'url'> {
23
+ queryParams: IntegrationControllerListIntegrationConfigsQueryQueryParams;
24
+ body: IntegrationControllerListIntegrationConfigsRequestBody;
25
+ }
26
+ export declare function integrationControllerListIntegrationConfigs(props: IntegrationControllerListIntegrationConfigsProps): Promise<IntegrationControllerListIntegrationConfigsOkResponse>;
27
+ /**
28
+ * Returns a paginated list of integration configurations for the specified integration IDs.
29
+ */
30
+ export declare function useIntegrationControllerListIntegrationConfigsQuery(props: IntegrationControllerListIntegrationConfigsProps, options?: Omit<UseQueryOptions<IntegrationControllerListIntegrationConfigsOkResponse, IntegrationControllerListIntegrationConfigsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<IntegrationControllerListIntegrationConfigsOkResponse, ListResponseDtoIntegrationConfigResponseDto>;
@@ -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 integrationControllerListIntegrationConfigs(props) {
7
+ return fetcher(Object.assign({ url: `/v2/integrations/configs/list`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Returns a paginated list of integration configurations for the specified integration IDs.
11
+ */
12
+ export function useIntegrationControllerListIntegrationConfigsQuery(props, options) {
13
+ return useQuery(['IntegrationControllerListIntegrationConfigs', props.queryParams, props.body], ({ signal }) => integrationControllerListIntegrationConfigs(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -147,6 +147,8 @@ export type { ImFieldsControllerListImFieldsErrorResponse, ImFieldsControllerLis
147
147
  export { imFieldsControllerListImFields, useImFieldsControllerListImFieldsQuery, } from './hooks/useImFieldsControllerListImFieldsQuery';
148
148
  export type { IntegrationControllerGetFilterValuesErrorResponse, IntegrationControllerGetFilterValuesOkResponse, IntegrationControllerGetFilterValuesProps, IntegrationControllerGetFilterValuesQueryQueryParams, IntegrationControllerGetFilterValuesRequestBody, } from './hooks/useIntegrationControllerGetFilterValuesQuery';
149
149
  export { integrationControllerGetFilterValues, useIntegrationControllerGetFilterValuesQuery, } from './hooks/useIntegrationControllerGetFilterValuesQuery';
150
+ export type { IntegrationControllerListIntegrationConfigsErrorResponse, IntegrationControllerListIntegrationConfigsOkResponse, IntegrationControllerListIntegrationConfigsProps, IntegrationControllerListIntegrationConfigsQueryQueryParams, IntegrationControllerListIntegrationConfigsRequestBody, } from './hooks/useIntegrationControllerListIntegrationConfigsQuery';
151
+ export { integrationControllerListIntegrationConfigs, useIntegrationControllerListIntegrationConfigsQuery, } from './hooks/useIntegrationControllerListIntegrationConfigsQuery';
150
152
  export type { IntegrationControllerListIntegrationsErrorResponse, IntegrationControllerListIntegrationsOkResponse, IntegrationControllerListIntegrationsProps, IntegrationControllerListIntegrationsQueryQueryParams, } from './hooks/useIntegrationControllerListIntegrationsQuery';
151
153
  export { integrationControllerListIntegrations, useIntegrationControllerListIntegrationsQuery, } from './hooks/useIntegrationControllerListIntegrationsQuery';
152
154
  export type { IntegrationStatsControllerGetCicdJobsCountErrorResponse, IntegrationStatsControllerGetCicdJobsCountOkResponse, IntegrationStatsControllerGetCicdJobsCountProps, IntegrationStatsControllerGetCicdJobsCountQueryQueryParams, } from './hooks/useIntegrationStatsControllerGetCicdJobsCountQuery';
@@ -372,6 +374,8 @@ export type { IndividualDrilldownDataPoint } from './schemas/IndividualDrilldown
372
374
  export type { IndividualDrilldownDataPointV3 } from './schemas/IndividualDrilldownDataPointV3';
373
375
  export type { IndividualDrilldownDataV3 } from './schemas/IndividualDrilldownDataV3';
374
376
  export type { Integration } from './schemas/Integration';
377
+ export type { IntegrationConfigRequestDto } from './schemas/IntegrationConfigRequestDto';
378
+ export type { IntegrationConfigResponseDto } from './schemas/IntegrationConfigResponseDto';
375
379
  export type { IntegrationIdsDto } from './schemas/IntegrationIdsDto';
376
380
  export type { IntegrationObject } from './schemas/IntegrationObject';
377
381
  export type { IntegrationResponseDto } from './schemas/IntegrationResponseDto';
@@ -388,6 +392,7 @@ export type { LicenseSearchParams } from './schemas/LicenseSearchParams';
388
392
  export type { ListResponseDto } from './schemas/ListResponseDto';
389
393
  export type { ListResponseDtoDeveloperLicenseDto } from './schemas/ListResponseDtoDeveloperLicenseDto';
390
394
  export type { ListResponseDtoEfficiencyProfileResponseDto } from './schemas/ListResponseDtoEfficiencyProfileResponseDto';
395
+ export type { ListResponseDtoIntegrationConfigResponseDto } from './schemas/ListResponseDtoIntegrationConfigResponseDto';
391
396
  export type { ListResponseDtoIntegrationResponseDto } from './schemas/ListResponseDtoIntegrationResponseDto';
392
397
  export type { ListResponseDtoOrgTreeResponseDto } from './schemas/ListResponseDtoOrgTreeResponseDto';
393
398
  export type { ListResponseDtoProductivityProfileResponseDto } from './schemas/ListResponseDtoProductivityProfileResponseDto';
@@ -72,6 +72,7 @@ export { exportControllerForCollectionsExportData, useExportControllerForCollect
72
72
  export { exportControllerForTeamsExportData, useExportControllerForTeamsExportDataMutation, } from './hooks/useExportControllerForTeamsExportDataMutation';
73
73
  export { imFieldsControllerListImFields, useImFieldsControllerListImFieldsQuery, } from './hooks/useImFieldsControllerListImFieldsQuery';
74
74
  export { integrationControllerGetFilterValues, useIntegrationControllerGetFilterValuesQuery, } from './hooks/useIntegrationControllerGetFilterValuesQuery';
75
+ export { integrationControllerListIntegrationConfigs, useIntegrationControllerListIntegrationConfigsQuery, } from './hooks/useIntegrationControllerListIntegrationConfigsQuery';
75
76
  export { integrationControllerListIntegrations, useIntegrationControllerListIntegrationsQuery, } from './hooks/useIntegrationControllerListIntegrationsQuery';
76
77
  export { integrationStatsControllerGetCicdJobsCount, useIntegrationStatsControllerGetCicdJobsCountQuery, } from './hooks/useIntegrationStatsControllerGetCicdJobsCountQuery';
77
78
  export { integrationStatsControllerGetCicdPipelinesCount, useIntegrationStatsControllerGetCicdPipelinesCountQuery, } from './hooks/useIntegrationStatsControllerGetCicdPipelinesCountQuery';
@@ -1,12 +1,20 @@
1
1
  export interface FilterValuesRequestDto {
2
2
  /**
3
- * Filter key to get values for
3
+ * Custom filter key name to get values for (used when isCustom = true)
4
4
  */
5
- filterKey: 'CODE_AREA' | 'DEPLOYMENT_TYPE' | 'ENV_ID' | 'INFRA_ID' | 'ISSUE_PRIORITY' | 'ISSUE_STATUS' | 'ISSUE_TYPE' | 'LABEL' | 'LABELS' | 'PIPELINE_NAME' | 'PIPELINE_STATUS' | 'PRIORITY' | 'PROJECT' | 'REPO' | 'ROLLBACK' | 'SERVICE_NAME' | 'SOURCE_BRANCH' | 'SPRINT_NAME' | 'STAGE_NAME' | 'STATUS' | 'TAGS' | 'TARGET_BRANCH' | 'TEAM';
5
+ customFilterKey?: string;
6
+ /**
7
+ * Filter key to get values for (used when isCustom = false)
8
+ */
9
+ filterKey?: 'CODE_AREA' | 'DEPLOYMENT_TYPE' | 'ENV_ID' | 'INFRA_ID' | 'ISSUE_PRIORITY' | 'ISSUE_STATUS' | 'ISSUE_TYPE' | 'LABEL' | 'LABELS' | 'PIPELINE_NAME' | 'PIPELINE_STATUS' | 'PRIORITY' | 'PROJECT' | 'REPO' | 'ROLLBACK' | 'SERVICE_NAME' | 'SOURCE_BRANCH' | 'SPRINT_NAME' | 'STAGE_NAME' | 'STATUS' | 'TAGS' | 'TARGET_BRANCH' | 'TEAM';
6
10
  /**
7
11
  * Integration ID
8
12
  */
9
13
  integrationId?: string;
14
+ /**
15
+ * Is custom filter
16
+ */
17
+ isCustom?: boolean;
10
18
  /**
11
19
  * Team Integration ID
12
20
  */
@@ -0,0 +1,6 @@
1
+ export interface IntegrationConfigRequestDto {
2
+ /**
3
+ * List of integration IDs to retrieve configurations for
4
+ */
5
+ integrationIds: number[];
6
+ }
@@ -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,48 @@
1
+ export interface IntegrationConfigResponseDto {
2
+ /**
3
+ * Configuration data
4
+ */
5
+ config?: {
6
+ [key: string]: {
7
+ [key: string]: any;
8
+ };
9
+ };
10
+ /**
11
+ * Creation timestamp
12
+ * @format int64
13
+ */
14
+ created_at?: number;
15
+ /**
16
+ * Custom hygiene settings
17
+ */
18
+ custom_hygienes?: {
19
+ [key: string]: {
20
+ [key: string]: any;
21
+ };
22
+ };
23
+ /**
24
+ * Unique identifier for the integration config
25
+ */
26
+ id?: string;
27
+ /**
28
+ * Integration ID
29
+ * @format int32
30
+ */
31
+ integration_id?: number;
32
+ /**
33
+ * Metadata
34
+ */
35
+ metadata?: {
36
+ [key: string]: {
37
+ [key: string]: any;
38
+ };
39
+ };
40
+ /**
41
+ * Repository configuration
42
+ */
43
+ repository_config?: {
44
+ [key: string]: {
45
+ [key: string]: any;
46
+ };
47
+ };
48
+ }
@@ -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,16 @@
1
+ import type { IntegrationConfigResponseDto } from '../schemas/IntegrationConfigResponseDto';
2
+ export interface ListResponseDtoIntegrationConfigResponseDto {
3
+ /**
4
+ * @format int32
5
+ */
6
+ pageIndex?: number;
7
+ /**
8
+ * @format int32
9
+ */
10
+ pageSize?: number;
11
+ records?: IntegrationConfigResponseDto[];
12
+ /**
13
+ * @format int32
14
+ */
15
+ totalCount?: number;
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.21.16",
3
+ "version": "0.21.18",
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",