@harnessio/react-sei-panorama-service-client 0.21.20 → 0.21.21

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.
@@ -3,7 +3,9 @@ import type { IntegrationStatsDto } from '../schemas/IntegrationStatsDto';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface IntegrationStatsControllerGetScmCommitsCountQueryQueryParams {
6
- integration_ids: string;
6
+ integrationIds: string[];
7
+ fromDate?: string;
8
+ toDate?: string;
7
9
  account: string;
8
10
  }
9
11
  export type IntegrationStatsControllerGetScmCommitsCountOkResponse = ResponseWithPagination<IntegrationStatsDto[]>;
@@ -13,6 +15,6 @@ export interface IntegrationStatsControllerGetScmCommitsCountProps extends Omit<
13
15
  }
14
16
  export declare function integrationStatsControllerGetScmCommitsCount(props: IntegrationStatsControllerGetScmCommitsCountProps): Promise<IntegrationStatsControllerGetScmCommitsCountOkResponse>;
15
17
  /**
16
- * Get SCM commit counts
18
+ * Get SCM commit counts with optional daily breakdown
17
19
  */
18
20
  export declare function useIntegrationStatsControllerGetScmCommitsCountQuery(props: IntegrationStatsControllerGetScmCommitsCountProps, options?: Omit<UseQueryOptions<IntegrationStatsControllerGetScmCommitsCountOkResponse, IntegrationStatsControllerGetScmCommitsCountErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<IntegrationStatsControllerGetScmCommitsCountOkResponse, IntegrationStatsControllerGetScmCommitsCountErrorResponse>;
@@ -7,7 +7,7 @@ export function integrationStatsControllerGetScmCommitsCount(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/integration-stats/scm/commits`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Get SCM commit counts
10
+ * Get SCM commit counts with optional daily breakdown
11
11
  */
12
12
  export function useIntegrationStatsControllerGetScmCommitsCountQuery(props, options) {
13
13
  return useQuery(['IntegrationStatsControllerGetScmCommitsCount', props.queryParams], ({ signal }) => integrationStatsControllerGetScmCommitsCount(Object.assign(Object.assign({}, props), { signal })), options);
@@ -3,7 +3,9 @@ import type { IntegrationStatsDto } from '../schemas/IntegrationStatsDto';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface IntegrationStatsControllerGetScmPrsCountQueryQueryParams {
6
- integration_ids: string;
6
+ integrationIds: string[];
7
+ fromDate?: string;
8
+ toDate?: string;
7
9
  account: string;
8
10
  }
9
11
  export type IntegrationStatsControllerGetScmPrsCountOkResponse = ResponseWithPagination<IntegrationStatsDto[]>;
@@ -13,6 +15,6 @@ export interface IntegrationStatsControllerGetScmPrsCountProps extends Omit<Fetc
13
15
  }
14
16
  export declare function integrationStatsControllerGetScmPrsCount(props: IntegrationStatsControllerGetScmPrsCountProps): Promise<IntegrationStatsControllerGetScmPrsCountOkResponse>;
15
17
  /**
16
- * Get SCM pull request counts
18
+ * Get SCM pull request counts with optional daily breakdown
17
19
  */
18
20
  export declare function useIntegrationStatsControllerGetScmPrsCountQuery(props: IntegrationStatsControllerGetScmPrsCountProps, options?: Omit<UseQueryOptions<IntegrationStatsControllerGetScmPrsCountOkResponse, IntegrationStatsControllerGetScmPrsCountErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<IntegrationStatsControllerGetScmPrsCountOkResponse, IntegrationStatsControllerGetScmPrsCountErrorResponse>;
@@ -7,7 +7,7 @@ export function integrationStatsControllerGetScmPrsCount(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/integration-stats/scm/prs`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Get SCM pull request counts
10
+ * Get SCM pull request counts with optional daily breakdown
11
11
  */
12
12
  export function useIntegrationStatsControllerGetScmPrsCountQuery(props, options) {
13
13
  return useQuery(['IntegrationStatsControllerGetScmPrsCount', props.queryParams], ({ signal }) => integrationStatsControllerGetScmPrsCount(Object.assign(Object.assign({}, props), { signal })), options);
@@ -3,7 +3,9 @@ import type { IntegrationStatsDto } from '../schemas/IntegrationStatsDto';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface IntegrationStatsControllerGetScmReposCountQueryQueryParams {
6
- integration_ids: string;
6
+ integrationIds: string[];
7
+ fromDate?: string;
8
+ toDate?: string;
7
9
  account: string;
8
10
  }
9
11
  export type IntegrationStatsControllerGetScmReposCountOkResponse = ResponseWithPagination<IntegrationStatsDto[]>;
@@ -13,6 +15,6 @@ export interface IntegrationStatsControllerGetScmReposCountProps extends Omit<Fe
13
15
  }
14
16
  export declare function integrationStatsControllerGetScmReposCount(props: IntegrationStatsControllerGetScmReposCountProps): Promise<IntegrationStatsControllerGetScmReposCountOkResponse>;
15
17
  /**
16
- * Get SCM repository counts
18
+ * Get SCM repository counts with optional daily breakdown
17
19
  */
18
20
  export declare function useIntegrationStatsControllerGetScmReposCountQuery(props: IntegrationStatsControllerGetScmReposCountProps, options?: Omit<UseQueryOptions<IntegrationStatsControllerGetScmReposCountOkResponse, IntegrationStatsControllerGetScmReposCountErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<IntegrationStatsControllerGetScmReposCountOkResponse, IntegrationStatsControllerGetScmReposCountErrorResponse>;
@@ -7,7 +7,7 @@ export function integrationStatsControllerGetScmReposCount(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/integration-stats/scm/repos`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Get SCM repository counts
10
+ * Get SCM repository counts with optional daily breakdown
11
11
  */
12
12
  export function useIntegrationStatsControllerGetScmReposCountQuery(props, options) {
13
13
  return useQuery(['IntegrationStatsControllerGetScmReposCount', props.queryParams], ({ signal }) => integrationStatsControllerGetScmReposCount(Object.assign(Object.assign({}, props), { signal })), options);
@@ -307,6 +307,7 @@ export type { CollectionEnriched } from './schemas/CollectionEnriched';
307
307
  export type { CollectionFilter } from './schemas/CollectionFilter';
308
308
  export type { CollectionTree } from './schemas/CollectionTree';
309
309
  export type { CommitInfo } from './schemas/CommitInfo';
310
+ export type { DailyCountDataPoint } from './schemas/DailyCountDataPoint';
310
311
  export type { DailyLicenseUsageResponseDto } from './schemas/DailyLicenseUsageResponseDto';
311
312
  export type { DataPoint } from './schemas/DataPoint';
312
313
  export type { DataPointBreakdown } from './schemas/DataPointBreakdown';
@@ -0,0 +1,11 @@
1
+ export interface DailyCountDataPoint {
2
+ /**
3
+ * @format int64
4
+ */
5
+ dailyCount?: number;
6
+ /**
7
+ * @format date
8
+ */
9
+ date?: string;
10
+ integrationId?: string;
11
+ }
@@ -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,7 +1,9 @@
1
+ import type { DailyCountDataPoint } from '../schemas/DailyCountDataPoint';
1
2
  export interface IntegrationStatsDto {
2
3
  /**
3
4
  * @format int64
4
5
  */
5
6
  count?: number;
6
- integration_id?: string;
7
+ dailyCounts?: DailyCountDataPoint[];
8
+ integrationId?: string;
7
9
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.21.20",
3
+ "version": "0.21.21",
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",