@harnessio/react-sei-panorama-service-client 0.10.2 → 0.10.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.
Files changed (27) hide show
  1. package/dist/sei-panorama-service/src/services/hooks/useDoraControllerBreakdownQuery.d.ts +2 -2
  2. package/dist/sei-panorama-service/src/services/hooks/useDoraControllerChangeFailureRateMutation.js +1 -1
  3. package/dist/sei-panorama-service/src/services/hooks/useDoraControllerDeploymentFrequencyMutation.js +1 -1
  4. package/dist/sei-panorama-service/src/services/hooks/useDoraControllerMeanTimeRestoreMutation.js +1 -1
  5. package/dist/sei-panorama-service/src/services/hooks/useDoraControllerSummaryMutation.d.ts +2 -2
  6. package/dist/sei-panorama-service/src/services/hooks/useJiraIssuesControllerGetJiraIssueCountQuery.d.ts +12 -0
  7. package/dist/sei-panorama-service/src/services/hooks/useJiraIssuesControllerGetJiraIssueCountQuery.js +14 -0
  8. package/dist/sei-panorama-service/src/services/hooks/useLegacyHealthControllerCheckQuery.d.ts +9 -0
  9. package/dist/sei-panorama-service/src/services/hooks/useLegacyHealthControllerCheckQuery.js +11 -0
  10. package/dist/sei-panorama-service/src/services/index.d.ts +9 -0
  11. package/dist/sei-panorama-service/src/services/index.js +2 -0
  12. package/dist/sei-panorama-service/src/services/schemas/CollectionTree.d.ts +8 -0
  13. package/dist/sei-panorama-service/src/services/schemas/DataPoint.d.ts +8 -0
  14. package/dist/sei-panorama-service/src/services/schemas/DataPointBreakdown.d.ts +4 -0
  15. package/dist/sei-panorama-service/src/services/schemas/DataPointBreakdown.js +1 -0
  16. package/dist/sei-panorama-service/src/services/schemas/DoraMetricBreakdown.d.ts +35 -0
  17. package/dist/sei-panorama-service/src/services/schemas/DoraMetricBreakdown.js +1 -0
  18. package/dist/sei-panorama-service/src/services/schemas/DoraRequest.d.ts +4 -0
  19. package/dist/sei-panorama-service/src/services/schemas/DoraSummaryMetric.d.ts +5 -0
  20. package/dist/sei-panorama-service/src/services/schemas/DoraSummaryMetric.js +1 -0
  21. package/dist/sei-panorama-service/src/services/schemas/IntegrationObject.d.ts +1 -0
  22. package/dist/sei-panorama-service/src/services/schemas/Stage.d.ts +3 -0
  23. package/dist/sei-panorama-service/src/services/schemas/SummaryCard.d.ts +8 -0
  24. package/dist/sei-panorama-service/src/services/schemas/SummaryCard.js +1 -0
  25. package/dist/sei-panorama-service/src/services/schemas/SummaryValue.d.ts +22 -0
  26. package/dist/sei-panorama-service/src/services/schemas/SummaryValue.js +4 -0
  27. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { DoraMetric } from '../schemas/DoraMetric';
2
+ import type { DataPointBreakdown } from '../schemas/DataPointBreakdown';
3
3
  import type { DoraRequest } from '../schemas/DoraRequest';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -9,7 +9,7 @@ export interface DoraControllerBreakdownQueryQueryParams {
9
9
  orgIdentifier: string;
10
10
  }
11
11
  export type DoraControllerBreakdownRequestBody = DoraRequest;
12
- export type DoraControllerBreakdownOkResponse = ResponseWithPagination<DoraMetric>;
12
+ export type DoraControllerBreakdownOkResponse = ResponseWithPagination<DataPointBreakdown>;
13
13
  export type DoraControllerBreakdownErrorResponse = unknown;
14
14
  export interface DoraControllerBreakdownProps extends Omit<FetcherOptions<DoraControllerBreakdownQueryQueryParams, DoraControllerBreakdownRequestBody>, 'url'> {
15
15
  queryParams: DoraControllerBreakdownQueryQueryParams;
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function doraControllerChangeFailureRate(props) {
7
- return fetcher(Object.assign({ url: `/v2/insights/dora/changefailurerates`, method: 'POST' }, props));
7
+ return fetcher(Object.assign({ url: `/v2/insights/dora/change_failure_rates`, method: 'POST' }, props));
8
8
  }
9
9
  export function useDoraControllerChangeFailureRateMutation(options) {
10
10
  return useMutation((mutateProps) => doraControllerChangeFailureRate(mutateProps), options);
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function doraControllerDeploymentFrequency(props) {
7
- return fetcher(Object.assign({ url: `/v2/insights/dora/deploymentfrequency`, method: 'POST' }, props));
7
+ return fetcher(Object.assign({ url: `/v2/insights/dora/deployment_frequency`, method: 'POST' }, props));
8
8
  }
9
9
  export function useDoraControllerDeploymentFrequencyMutation(options) {
10
10
  return useMutation((mutateProps) => doraControllerDeploymentFrequency(mutateProps), options);
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function doraControllerMeanTimeRestore(props) {
7
- return fetcher(Object.assign({ url: `/v2/insights/dora/meantimerestore`, method: 'POST' }, props));
7
+ return fetcher(Object.assign({ url: `/v2/insights/dora/mean_time_to_restore`, method: 'POST' }, props));
8
8
  }
9
9
  export function useDoraControllerMeanTimeRestoreMutation(options) {
10
10
  return useMutation((mutateProps) => doraControllerMeanTimeRestore(mutateProps), options);
@@ -1,5 +1,5 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { DoraMetric } from '../schemas/DoraMetric';
2
+ import type { DoraSummaryMetric } from '../schemas/DoraSummaryMetric';
3
3
  import type { DoraRequest } from '../schemas/DoraRequest';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -9,7 +9,7 @@ export interface DoraControllerSummaryMutationQueryParams {
9
9
  orgIdentifier: string;
10
10
  }
11
11
  export type DoraControllerSummaryRequestBody = DoraRequest;
12
- export type DoraControllerSummaryOkResponse = ResponseWithPagination<DoraMetric>;
12
+ export type DoraControllerSummaryOkResponse = ResponseWithPagination<DoraSummaryMetric>;
13
13
  export type DoraControllerSummaryErrorResponse = unknown;
14
14
  export interface DoraControllerSummaryProps extends Omit<FetcherOptions<DoraControllerSummaryMutationQueryParams, DoraControllerSummaryRequestBody>, 'url'> {
15
15
  queryParams: DoraControllerSummaryMutationQueryParams;
@@ -0,0 +1,12 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export type JiraIssuesControllerGetJiraIssueCountOkResponse = ResponseWithPagination<number>;
5
+ export type JiraIssuesControllerGetJiraIssueCountErrorResponse = unknown;
6
+ export interface JiraIssuesControllerGetJiraIssueCountProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
7
+ }
8
+ export declare function jiraIssuesControllerGetJiraIssueCount(props: JiraIssuesControllerGetJiraIssueCountProps): Promise<JiraIssuesControllerGetJiraIssueCountOkResponse>;
9
+ /**
10
+ * Test the Starrocks DB connection by getting number of Jira issues
11
+ */
12
+ export declare function useJiraIssuesControllerGetJiraIssueCountQuery(props: JiraIssuesControllerGetJiraIssueCountProps, options?: Omit<UseQueryOptions<JiraIssuesControllerGetJiraIssueCountOkResponse, JiraIssuesControllerGetJiraIssueCountErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<JiraIssuesControllerGetJiraIssueCountOkResponse, 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 jiraIssuesControllerGetJiraIssueCount(props) {
7
+ return fetcher(Object.assign({ url: `/v2/insights/jira/issue_count`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Test the Starrocks DB connection by getting number of Jira issues
11
+ */
12
+ export function useJiraIssuesControllerGetJiraIssueCountQuery(props, options) {
13
+ return useQuery(['JiraIssuesControllerGetJiraIssueCount'], ({ signal }) => jiraIssuesControllerGetJiraIssueCount(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,9 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export type LegacyHealthControllerCheckOkResponse = ResponseWithPagination<string>;
5
+ export type LegacyHealthControllerCheckErrorResponse = unknown;
6
+ export interface LegacyHealthControllerCheckProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
7
+ }
8
+ export declare function legacyHealthControllerCheck(props: LegacyHealthControllerCheckProps): Promise<LegacyHealthControllerCheckOkResponse>;
9
+ export declare function useLegacyHealthControllerCheckQuery(props: LegacyHealthControllerCheckProps, options?: Omit<UseQueryOptions<LegacyHealthControllerCheckOkResponse, LegacyHealthControllerCheckErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<LegacyHealthControllerCheckOkResponse, unknown>;
@@ -0,0 +1,11 @@
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 legacyHealthControllerCheck(props) {
7
+ return fetcher(Object.assign({ url: `/`, method: 'GET' }, props));
8
+ }
9
+ export function useLegacyHealthControllerCheckQuery(props, options) {
10
+ return useQuery(['LegacyHealthControllerCheck'], ({ signal }) => legacyHealthControllerCheck(Object.assign(Object.assign({}, props), { signal })), options);
11
+ }
@@ -19,13 +19,22 @@ export type { DoraControllerMeanTimeRestoreErrorResponse, DoraControllerMeanTime
19
19
  export { doraControllerMeanTimeRestore, useDoraControllerMeanTimeRestoreMutation, } from './hooks/useDoraControllerMeanTimeRestoreMutation';
20
20
  export type { DoraControllerSummaryErrorResponse, DoraControllerSummaryMutationQueryParams, DoraControllerSummaryOkResponse, DoraControllerSummaryProps, DoraControllerSummaryRequestBody, } from './hooks/useDoraControllerSummaryMutation';
21
21
  export { doraControllerSummary, useDoraControllerSummaryMutation, } from './hooks/useDoraControllerSummaryMutation';
22
+ export type { JiraIssuesControllerGetJiraIssueCountErrorResponse, JiraIssuesControllerGetJiraIssueCountOkResponse, JiraIssuesControllerGetJiraIssueCountProps, } from './hooks/useJiraIssuesControllerGetJiraIssueCountQuery';
23
+ export { jiraIssuesControllerGetJiraIssueCount, useJiraIssuesControllerGetJiraIssueCountQuery, } from './hooks/useJiraIssuesControllerGetJiraIssueCountQuery';
24
+ export type { LegacyHealthControllerCheckErrorResponse, LegacyHealthControllerCheckOkResponse, LegacyHealthControllerCheckProps, } from './hooks/useLegacyHealthControllerCheckQuery';
25
+ export { legacyHealthControllerCheck, useLegacyHealthControllerCheckQuery, } from './hooks/useLegacyHealthControllerCheckQuery';
22
26
  export type { Category } from './schemas/Category';
23
27
  export type { CollectionObject } from './schemas/CollectionObject';
24
28
  export type { CollectionTree } from './schemas/CollectionTree';
25
29
  export type { DataPoint } from './schemas/DataPoint';
30
+ export type { DataPointBreakdown } from './schemas/DataPointBreakdown';
26
31
  export type { DbListResponseCategory } from './schemas/DbListResponseCategory';
27
32
  export type { DbListResponseCollectionTree } from './schemas/DbListResponseCollectionTree';
28
33
  export type { DoraMetric } from './schemas/DoraMetric';
34
+ export type { DoraMetricBreakdown } from './schemas/DoraMetricBreakdown';
29
35
  export type { DoraRequest } from './schemas/DoraRequest';
36
+ export type { DoraSummaryMetric } from './schemas/DoraSummaryMetric';
30
37
  export type { IntegrationObject } from './schemas/IntegrationObject';
31
38
  export type { Stage } from './schemas/Stage';
39
+ export type { SummaryCard } from './schemas/SummaryCard';
40
+ export type { SummaryValue } from './schemas/SummaryValue';
@@ -8,3 +8,5 @@ export { doraControllerDeploymentFrequency, useDoraControllerDeploymentFrequency
8
8
  export { doraControllerLeadTime, useDoraControllerLeadTimeQuery, } from './hooks/useDoraControllerLeadTimeQuery';
9
9
  export { doraControllerMeanTimeRestore, useDoraControllerMeanTimeRestoreMutation, } from './hooks/useDoraControllerMeanTimeRestoreMutation';
10
10
  export { doraControllerSummary, useDoraControllerSummaryMutation, } from './hooks/useDoraControllerSummaryMutation';
11
+ export { jiraIssuesControllerGetJiraIssueCount, useJiraIssuesControllerGetJiraIssueCountQuery, } from './hooks/useJiraIssuesControllerGetJiraIssueCountQuery';
12
+ export { legacyHealthControllerCheck, useLegacyHealthControllerCheckQuery, } from './hooks/useLegacyHealthControllerCheckQuery';
@@ -5,6 +5,14 @@ export interface CollectionTree {
5
5
  id?: string;
6
6
  leaf?: boolean;
7
7
  name?: string;
8
+ /**
9
+ * @format int32
10
+ */
11
+ parentRefId?: number;
12
+ /**
13
+ * @format int32
14
+ */
15
+ parent_ref_id?: number;
8
16
  /**
9
17
  * @format int32
10
18
  */
@@ -4,6 +4,10 @@ export interface DataPoint {
4
4
  * @format int32
5
5
  */
6
6
  count?: number;
7
+ /**
8
+ * @format date-time
9
+ */
10
+ end_date?: string;
7
11
  /**
8
12
  * @format double
9
13
  */
@@ -21,5 +25,9 @@ export interface DataPoint {
21
25
  */
22
26
  p95?: number;
23
27
  stages?: Stage[];
28
+ /**
29
+ * @format date-time
30
+ */
31
+ start_date?: string;
24
32
  x_axis_label?: string;
25
33
  }
@@ -0,0 +1,4 @@
1
+ import type { DoraMetricBreakdown } from '../schemas/DoraMetricBreakdown';
2
+ export interface DataPointBreakdown {
3
+ dataPoints?: DoraMetricBreakdown[];
4
+ }
@@ -0,0 +1,35 @@
1
+ import type { Stage } from '../schemas/Stage';
2
+ export interface DoraMetricBreakdown {
3
+ collectionId?: string;
4
+ collectionName?: string;
5
+ /**
6
+ * @format int32
7
+ */
8
+ count?: number;
9
+ /**
10
+ * @format date-time
11
+ */
12
+ endDate?: string;
13
+ /**
14
+ * @format double
15
+ */
16
+ mean?: number;
17
+ /**
18
+ * @format double
19
+ */
20
+ median?: number;
21
+ /**
22
+ * @format double
23
+ */
24
+ p90?: number;
25
+ /**
26
+ * @format double
27
+ */
28
+ p95?: number;
29
+ stageBreakdown?: Stage[];
30
+ stages?: Stage[];
31
+ /**
32
+ * @format date-time
33
+ */
34
+ startDate?: string;
35
+ }
@@ -8,6 +8,10 @@ export interface DoraRequest {
8
8
  * @format date-time
9
9
  */
10
10
  date_start?: string;
11
+ /**
12
+ * @format date-time
13
+ */
14
+ granularity?: string;
11
15
  /**
12
16
  * @format int32
13
17
  */
@@ -0,0 +1,5 @@
1
+ import type { SummaryCard } from '../schemas/SummaryCard';
2
+ export interface DoraSummaryMetric {
3
+ summaryCards?: SummaryCard[];
4
+ summary_cards?: SummaryCard[];
5
+ }
@@ -1,4 +1,5 @@
1
1
  export interface IntegrationObject {
2
+ application?: string;
2
3
  integrationFilters?: {
3
4
  [key: string]: {
4
5
  [key: string]: any;
@@ -1,8 +1,10 @@
1
1
  export interface Stage {
2
+ application?: string;
2
3
  /**
3
4
  * @format int32
4
5
  */
5
6
  count?: number;
7
+ integrationType?: string;
6
8
  /**
7
9
  * @format double
8
10
  */
@@ -25,4 +27,5 @@ export interface Stage {
25
27
  * @format int32
26
28
  */
27
29
  stage_order?: number;
30
+ startEvent?: string;
28
31
  }
@@ -0,0 +1,8 @@
1
+ import type { SummaryValue } from '../schemas/SummaryValue';
2
+ export interface SummaryCard {
3
+ name?: string;
4
+ rating?: string;
5
+ trend?: SummaryValue;
6
+ unit?: string;
7
+ value?: SummaryValue;
8
+ }
@@ -0,0 +1,22 @@
1
+ export interface SummaryValue {
2
+ /**
3
+ * @format int32
4
+ */
5
+ count?: number;
6
+ /**
7
+ * @format double
8
+ */
9
+ mean?: number;
10
+ /**
11
+ * @format double
12
+ */
13
+ median?: number;
14
+ /**
15
+ * @format double
16
+ */
17
+ p90?: number;
18
+ /**
19
+ * @format double
20
+ */
21
+ p95?: number;
22
+ }
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.10.2",
3
+ "version": "0.10.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",