@harnessio/react-sei-panorama-service-client 0.31.2 → 0.31.4

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 (21) hide show
  1. package/dist/sei-panorama-service/src/services/hooks/useArmorCodeControllerGetFindingStatsMutation.d.ts +16 -0
  2. package/dist/sei-panorama-service/src/services/hooks/useArmorCodeControllerGetFindingStatsMutation.js +14 -0
  3. package/dist/sei-panorama-service/src/services/hooks/useArmorCodeControllerGetFindingsFiltersMutation.d.ts +23 -0
  4. package/dist/sei-panorama-service/src/services/hooks/useArmorCodeControllerGetFindingsFiltersMutation.js +14 -0
  5. package/dist/sei-panorama-service/src/services/hooks/useGitAiArtifactControllerDownloadLatestArtifactQuery.d.ts +1 -1
  6. package/dist/sei-panorama-service/src/services/hooks/useGitAiArtifactControllerDownloadLatestArtifactQuery.js +1 -1
  7. package/dist/sei-panorama-service/src/services/hooks/useGitAiArtifactControllerGetLatestArtifactQuery.d.ts +1 -1
  8. package/dist/sei-panorama-service/src/services/hooks/useGitAiArtifactControllerGetLatestArtifactQuery.js +1 -1
  9. package/dist/sei-panorama-service/src/services/index.d.ts +8 -0
  10. package/dist/sei-panorama-service/src/services/index.js +2 -0
  11. package/dist/sei-panorama-service/src/services/schemas/ArmorCodeFindingStatsRequest.d.ts +9 -0
  12. package/dist/sei-panorama-service/src/services/schemas/ArmorCodeFindingStatsRequest.js +4 -0
  13. package/dist/sei-panorama-service/src/services/schemas/ArmorCodeFindingStatsResponse.d.ts +6 -0
  14. package/dist/sei-panorama-service/src/services/schemas/ArmorCodeFindingStatsResponse.js +1 -0
  15. package/dist/sei-panorama-service/src/services/schemas/ArmorCodeFindingsFiltersRequest.d.ts +4 -0
  16. package/dist/sei-panorama-service/src/services/schemas/ArmorCodeFindingsFiltersRequest.js +4 -0
  17. package/dist/sei-panorama-service/src/services/schemas/FindingStatusStat.d.ts +13 -0
  18. package/dist/sei-panorama-service/src/services/schemas/FindingStatusStat.js +4 -0
  19. package/dist/sei-panorama-service/src/services/schemas/MetricValue.d.ts +6 -0
  20. package/dist/sei-panorama-service/src/services/schemas/SimpleMetric.d.ts +5 -4
  21. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ArmorCodeFindingStatsResponse } from '../schemas/ArmorCodeFindingStatsResponse';
3
+ import type { ArmorCodeFindingStatsRequest } from '../schemas/ArmorCodeFindingStatsRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export type ArmorCodeControllerGetFindingStatsRequestBody = ArmorCodeFindingStatsRequest;
7
+ export type ArmorCodeControllerGetFindingStatsOkResponse = ResponseWithPagination<ArmorCodeFindingStatsResponse>;
8
+ export type ArmorCodeControllerGetFindingStatsErrorResponse = ArmorCodeFindingStatsResponse;
9
+ export interface ArmorCodeControllerGetFindingStatsProps extends Omit<FetcherOptions<unknown, ArmorCodeControllerGetFindingStatsRequestBody>, 'url'> {
10
+ body: ArmorCodeControllerGetFindingStatsRequestBody;
11
+ }
12
+ export declare function armorCodeControllerGetFindingStats(props: ArmorCodeControllerGetFindingStatsProps): Promise<ArmorCodeControllerGetFindingStatsOkResponse>;
13
+ /**
14
+ * Get ArmorCode finding stats grouped by status
15
+ */
16
+ export declare function useArmorCodeControllerGetFindingStatsMutation(options?: Omit<UseMutationOptions<ArmorCodeControllerGetFindingStatsOkResponse, ArmorCodeControllerGetFindingStatsErrorResponse, ArmorCodeControllerGetFindingStatsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ArmorCodeControllerGetFindingStatsOkResponse, ArmorCodeFindingStatsResponse, ArmorCodeControllerGetFindingStatsProps, 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 armorCodeControllerGetFindingStats(props) {
7
+ return fetcher(Object.assign({ url: `/v2/integrations/armorcode/spotcheck`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get ArmorCode finding stats grouped by status
11
+ */
12
+ export function useArmorCodeControllerGetFindingStatsMutation(options) {
13
+ return useMutation((mutateProps) => armorCodeControllerGetFindingStats(mutateProps), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ArmorCodeFindingsFiltersRequest } from '../schemas/ArmorCodeFindingsFiltersRequest';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export type ArmorCodeControllerGetFindingsFiltersRequestBody = ArmorCodeFindingsFiltersRequest;
6
+ export type ArmorCodeControllerGetFindingsFiltersOkResponse = ResponseWithPagination<{
7
+ [key: string]: Array<{
8
+ [key: string]: any;
9
+ }>;
10
+ }>;
11
+ export type ArmorCodeControllerGetFindingsFiltersErrorResponse = {
12
+ [key: string]: Array<{
13
+ [key: string]: any;
14
+ }>;
15
+ };
16
+ export interface ArmorCodeControllerGetFindingsFiltersProps extends Omit<FetcherOptions<unknown, ArmorCodeControllerGetFindingsFiltersRequestBody>, 'url'> {
17
+ body: ArmorCodeControllerGetFindingsFiltersRequestBody;
18
+ }
19
+ export declare function armorCodeControllerGetFindingsFilters(props: ArmorCodeControllerGetFindingsFiltersProps): Promise<ArmorCodeControllerGetFindingsFiltersOkResponse>;
20
+ /**
21
+ * Get ArmorCode findings filter values for the given fields
22
+ */
23
+ export declare function useArmorCodeControllerGetFindingsFiltersMutation(options?: Omit<UseMutationOptions<ArmorCodeControllerGetFindingsFiltersOkResponse, ArmorCodeControllerGetFindingsFiltersErrorResponse, ArmorCodeControllerGetFindingsFiltersProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ArmorCodeControllerGetFindingsFiltersOkResponse, ArmorCodeControllerGetFindingsFiltersErrorResponse, ArmorCodeControllerGetFindingsFiltersProps, 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 armorCodeControllerGetFindingsFilters(props) {
7
+ return fetcher(Object.assign({ url: `/v2/integrations/armorcode/findings-filters`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get ArmorCode findings filter values for the given fields
11
+ */
12
+ export function useArmorCodeControllerGetFindingsFiltersMutation(options) {
13
+ return useMutation((mutateProps) => armorCodeControllerGetFindingsFilters(mutateProps), options);
14
+ }
@@ -11,6 +11,6 @@ export interface GitAiArtifactControllerDownloadLatestArtifactProps extends Omit
11
11
  }
12
12
  export declare function gitAiArtifactControllerDownloadLatestArtifact(props: GitAiArtifactControllerDownloadLatestArtifactProps): Promise<GitAiArtifactControllerDownloadLatestArtifactOkResponse>;
13
13
  /**
14
- * Download latest Git AI agent artifact for a supported platform
14
+ * Download the latest approved Git AI agent artifact for a supported platform
15
15
  */
16
16
  export declare function useGitAiArtifactControllerDownloadLatestArtifactQuery(props: GitAiArtifactControllerDownloadLatestArtifactProps, options?: Omit<UseQueryOptions<GitAiArtifactControllerDownloadLatestArtifactOkResponse, GitAiArtifactControllerDownloadLatestArtifactErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GitAiArtifactControllerDownloadLatestArtifactOkResponse, string>;
@@ -7,7 +7,7 @@ export function gitAiArtifactControllerDownloadLatestArtifact(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/git-ai/artifacts/latest/download`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Download latest Git AI agent artifact for a supported platform
10
+ * Download the latest approved Git AI agent artifact for a supported platform
11
11
  */
12
12
  export function useGitAiArtifactControllerDownloadLatestArtifactQuery(props, options) {
13
13
  return useQuery(['GitAiArtifactControllerDownloadLatestArtifact', props.queryParams], ({ signal }) => gitAiArtifactControllerDownloadLatestArtifact(Object.assign(Object.assign({}, props), { signal })), options);
@@ -12,6 +12,6 @@ export interface GitAiArtifactControllerGetLatestArtifactProps extends Omit<Fetc
12
12
  }
13
13
  export declare function gitAiArtifactControllerGetLatestArtifact(props: GitAiArtifactControllerGetLatestArtifactProps): Promise<GitAiArtifactControllerGetLatestArtifactOkResponse>;
14
14
  /**
15
- * Get latest Git AI agent artifact for a supported platform
15
+ * Get the latest approved Git AI agent artifact for a supported platform
16
16
  */
17
17
  export declare function useGitAiArtifactControllerGetLatestArtifactQuery(props: GitAiArtifactControllerGetLatestArtifactProps, options?: Omit<UseQueryOptions<GitAiArtifactControllerGetLatestArtifactOkResponse, GitAiArtifactControllerGetLatestArtifactErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GitAiArtifactControllerGetLatestArtifactOkResponse, GitAiArtifactDownloadResponse>;
@@ -7,7 +7,7 @@ export function gitAiArtifactControllerGetLatestArtifact(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/git-ai/artifacts/latest`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Get latest Git AI agent artifact for a supported platform
10
+ * Get the latest approved Git AI agent artifact for a supported platform
11
11
  */
12
12
  export function useGitAiArtifactControllerGetLatestArtifactQuery(props, options) {
13
13
  return useQuery(['GitAiArtifactControllerGetLatestArtifact', props.queryParams], ({ signal }) => gitAiArtifactControllerGetLatestArtifact(Object.assign(Object.assign({}, props), { signal })), options);
@@ -77,6 +77,10 @@ export type { AiInsightsControllerGetTopLanguagesErrorResponse, AiInsightsContro
77
77
  export { aiInsightsControllerGetTopLanguages, useAiInsightsControllerGetTopLanguagesQuery, } from './hooks/useAiInsightsControllerGetTopLanguagesQuery';
78
78
  export type { AiSummaryControllerGenerateSummaryErrorResponse, AiSummaryControllerGenerateSummaryOkResponse, AiSummaryControllerGenerateSummaryProps, AiSummaryControllerGenerateSummaryQueryQueryParams, AiSummaryControllerGenerateSummaryRequestBody, } from './hooks/useAiSummaryControllerGenerateSummaryQuery';
79
79
  export { aiSummaryControllerGenerateSummary, useAiSummaryControllerGenerateSummaryQuery, } from './hooks/useAiSummaryControllerGenerateSummaryQuery';
80
+ export type { ArmorCodeControllerGetFindingStatsErrorResponse, ArmorCodeControllerGetFindingStatsOkResponse, ArmorCodeControllerGetFindingStatsProps, ArmorCodeControllerGetFindingStatsRequestBody, } from './hooks/useArmorCodeControllerGetFindingStatsMutation';
81
+ export { armorCodeControllerGetFindingStats, useArmorCodeControllerGetFindingStatsMutation, } from './hooks/useArmorCodeControllerGetFindingStatsMutation';
82
+ export type { ArmorCodeControllerGetFindingsFiltersErrorResponse, ArmorCodeControllerGetFindingsFiltersOkResponse, ArmorCodeControllerGetFindingsFiltersProps, ArmorCodeControllerGetFindingsFiltersRequestBody, } from './hooks/useArmorCodeControllerGetFindingsFiltersMutation';
83
+ export { armorCodeControllerGetFindingsFilters, useArmorCodeControllerGetFindingsFiltersMutation, } from './hooks/useArmorCodeControllerGetFindingsFiltersMutation';
80
84
  export type { AsyncExportControllerDownloadExportErrorResponse, AsyncExportControllerDownloadExportOkResponse, AsyncExportControllerDownloadExportProps, AsyncExportControllerDownloadExportQueryPathParams, AsyncExportControllerDownloadExportQueryQueryParams, } from './hooks/useAsyncExportControllerDownloadExportQuery';
81
85
  export { asyncExportControllerDownloadExport, useAsyncExportControllerDownloadExportQuery, } from './hooks/useAsyncExportControllerDownloadExportQuery';
82
86
  export type { AsyncExportControllerGetJobStatusErrorResponse, AsyncExportControllerGetJobStatusOkResponse, AsyncExportControllerGetJobStatusProps, AsyncExportControllerGetJobStatusQueryPathParams, AsyncExportControllerGetJobStatusQueryQueryParams, } from './hooks/useAsyncExportControllerGetJobStatusQuery';
@@ -699,6 +703,9 @@ export type { ApiResponseOptimizationListData } from './schemas/ApiResponseOptim
699
703
  export type { ApiResponseScorecardData } from './schemas/ApiResponseScorecardData';
700
704
  export type { ApiResponseTimeSeriesTemplate } from './schemas/ApiResponseTimeSeriesTemplate';
701
705
  export type { ApiResponseWrapper } from './schemas/ApiResponseWrapper';
706
+ export type { ArmorCodeFindingStatsRequest } from './schemas/ArmorCodeFindingStatsRequest';
707
+ export type { ArmorCodeFindingStatsResponse } from './schemas/ArmorCodeFindingStatsResponse';
708
+ export type { ArmorCodeFindingsFiltersRequest } from './schemas/ArmorCodeFindingsFiltersRequest';
702
709
  export type { AssociateDevelopersRequestDto } from './schemas/AssociateDevelopersRequestDto';
703
710
  export type { BaBreakdownDto } from './schemas/BaBreakdownDto';
704
711
  export type { BaCategoryDto } from './schemas/BaCategoryDto';
@@ -861,6 +868,7 @@ export type { FeatureSizes } from './schemas/FeatureSizes';
861
868
  export type { FilterByField } from './schemas/FilterByField';
862
869
  export type { FilterExpression } from './schemas/FilterExpression';
863
870
  export type { FilterValuesRequestDto } from './schemas/FilterValuesRequestDto';
871
+ export type { FindingStatusStat } from './schemas/FindingStatusStat';
864
872
  export type { GitAiArtifactDownloadResponse } from './schemas/GitAiArtifactDownloadResponse';
865
873
  export type { GitAiInstallation } from './schemas/GitAiInstallation';
866
874
  export type { GitAiInstallationsPage } from './schemas/GitAiInstallationsPage';
@@ -37,6 +37,8 @@ export { aiInsightsControllerGetTeamBreakdown, useAiInsightsControllerGetTeamBre
37
37
  export { aiInsightsControllerGetToolUsersSummary, useAiInsightsControllerGetToolUsersSummaryQuery, } from './hooks/useAiInsightsControllerGetToolUsersSummaryQuery';
38
38
  export { aiInsightsControllerGetTopLanguages, useAiInsightsControllerGetTopLanguagesQuery, } from './hooks/useAiInsightsControllerGetTopLanguagesQuery';
39
39
  export { aiSummaryControllerGenerateSummary, useAiSummaryControllerGenerateSummaryQuery, } from './hooks/useAiSummaryControllerGenerateSummaryQuery';
40
+ export { armorCodeControllerGetFindingStats, useArmorCodeControllerGetFindingStatsMutation, } from './hooks/useArmorCodeControllerGetFindingStatsMutation';
41
+ export { armorCodeControllerGetFindingsFilters, useArmorCodeControllerGetFindingsFiltersMutation, } from './hooks/useArmorCodeControllerGetFindingsFiltersMutation';
40
42
  export { asyncExportControllerDownloadExport, useAsyncExportControllerDownloadExportQuery, } from './hooks/useAsyncExportControllerDownloadExportQuery';
41
43
  export { asyncExportControllerGetJobStatus, useAsyncExportControllerGetJobStatusQuery, } from './hooks/useAsyncExportControllerGetJobStatusQuery';
42
44
  export { asyncExportControllerInitiateExport, useAsyncExportControllerInitiateExportMutation, } from './hooks/useAsyncExportControllerInitiateExportMutation';
@@ -0,0 +1,9 @@
1
+ export interface ArmorCodeFindingStatsRequest {
2
+ agg_field?: string;
3
+ filters?: {
4
+ [key: string]: {
5
+ [key: string]: any;
6
+ };
7
+ };
8
+ integration_id: string;
9
+ }
@@ -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,6 @@
1
+ import type { FindingStatusStat } from '../schemas/FindingStatusStat';
2
+ export interface ArmorCodeFindingStatsResponse {
3
+ stats?: {
4
+ [key: string]: FindingStatusStat;
5
+ };
6
+ }
@@ -0,0 +1,4 @@
1
+ export interface ArmorCodeFindingsFiltersRequest {
2
+ fields: string[];
3
+ integration_id: string;
4
+ }
@@ -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,13 @@
1
+ export interface FindingStatusStat {
2
+ /**
3
+ * @format int64
4
+ */
5
+ count?: number;
6
+ name?: string;
7
+ riskScore?: {
8
+ [key: string]: any;
9
+ };
10
+ severity?: {
11
+ [key: string]: number;
12
+ };
13
+ }
@@ -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 {};
@@ -2,6 +2,12 @@
2
2
  * Represents a metric value with optional trend and change information
3
3
  */
4
4
  export interface MetricValue {
5
+ /**
6
+ * Absolute (raw) value behind a percentage, e.g. user count behind a % share
7
+ * @format double
8
+ * @example 10
9
+ */
10
+ absolute?: number;
5
11
  /**
6
12
  * Optional phase breakdown (e.g., coding/review/merge for pr-cycle-time)
7
13
  */
@@ -8,14 +8,15 @@ export interface SimpleMetric {
8
8
  */
9
9
  name?: string;
10
10
  /**
11
- * Unit of measurement (optional, e.g., %, days, count, hours)
11
+ * Unit of measurement (optional, e.g., %, days, count, boolean, hours)
12
12
  * @example "%"
13
13
  */
14
14
  unit?: string;
15
15
  /**
16
- * Metric value
17
- * @format double
16
+ * Metric value (numeric or boolean when unit is boolean)
18
17
  * @example 42.5
19
18
  */
20
- value?: number;
19
+ value?: {
20
+ [key: string]: any;
21
+ };
21
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.31.2",
3
+ "version": "0.31.4",
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",