@harnessio/react-sei-panorama-service-client 0.10.8 → 0.10.10

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,31 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { DbListResponseCollectionTree } from '../schemas/DbListResponseCollectionTree';
3
+ import type { CollectionFilter } from '../schemas/CollectionFilter';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface CollectionControllerListCollectionsQueryQueryParams {
7
+ /**
8
+ * account id
9
+ */
10
+ account: string;
11
+ /**
12
+ * project id
13
+ */
14
+ projectIdentifier: string;
15
+ /**
16
+ * organization id
17
+ */
18
+ orgIdentifier: string;
19
+ }
20
+ export type CollectionControllerListCollectionsRequestBody = CollectionFilter;
21
+ export type CollectionControllerListCollectionsOkResponse = ResponseWithPagination<DbListResponseCollectionTree>;
22
+ export type CollectionControllerListCollectionsErrorResponse = DbListResponseCollectionTree;
23
+ export interface CollectionControllerListCollectionsProps extends Omit<FetcherOptions<CollectionControllerListCollectionsQueryQueryParams, CollectionControllerListCollectionsRequestBody>, 'url'> {
24
+ queryParams: CollectionControllerListCollectionsQueryQueryParams;
25
+ body: CollectionControllerListCollectionsRequestBody;
26
+ }
27
+ export declare function collectionControllerListCollections(props: CollectionControllerListCollectionsProps): Promise<CollectionControllerListCollectionsOkResponse>;
28
+ /**
29
+ * Get collections
30
+ */
31
+ export declare function useCollectionControllerListCollectionsQuery(props: CollectionControllerListCollectionsProps, options?: Omit<UseQueryOptions<CollectionControllerListCollectionsOkResponse, CollectionControllerListCollectionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CollectionControllerListCollectionsOkResponse, DbListResponseCollectionTree>;
@@ -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 collectionControllerListCollections(props) {
7
+ return fetcher(Object.assign({ url: `/v2/collection`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get collections
11
+ */
12
+ export function useCollectionControllerListCollectionsQuery(props, options) {
13
+ return useQuery(['CollectionControllerListCollections', props.queryParams, props.body], ({ signal }) => collectionControllerListCollections(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -1,6 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { DoraSummaryMetric } from '../schemas/DoraSummaryMetric';
3
- import type { DoraRequest } from '../schemas/DoraRequest';
3
+ import type { DoraSummaryRequest } from '../schemas/DoraSummaryRequest';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface DoraControllerSummaryQueryQueryParams {
@@ -8,7 +8,7 @@ export interface DoraControllerSummaryQueryQueryParams {
8
8
  projectIdentifier: string;
9
9
  orgIdentifier: string;
10
10
  }
11
- export type DoraControllerSummaryRequestBody = DoraRequest;
11
+ export type DoraControllerSummaryRequestBody = DoraSummaryRequest;
12
12
  export type DoraControllerSummaryOkResponse = ResponseWithPagination<DoraSummaryMetric>;
13
13
  export type DoraControllerSummaryErrorResponse = string;
14
14
  export interface DoraControllerSummaryProps extends Omit<FetcherOptions<DoraControllerSummaryQueryQueryParams, DoraControllerSummaryRequestBody>, 'url'> {
@@ -5,8 +5,8 @@ export type { CategoryControllerListErrorResponse, CategoryControllerListOkRespo
5
5
  export { categoryControllerList, useCategoryControllerListQuery, } from './hooks/useCategoryControllerListQuery';
6
6
  export type { CollectionControllerGetCollectionTreeErrorResponse, CollectionControllerGetCollectionTreeOkResponse, CollectionControllerGetCollectionTreeProps, CollectionControllerGetCollectionTreeQueryPathParams, CollectionControllerGetCollectionTreeQueryQueryParams, } from './hooks/useCollectionControllerGetCollectionTreeQuery';
7
7
  export { collectionControllerGetCollectionTree, useCollectionControllerGetCollectionTreeQuery, } from './hooks/useCollectionControllerGetCollectionTreeQuery';
8
- export type { CollectionControllerListErrorResponse, CollectionControllerListOkResponse, CollectionControllerListProps, CollectionControllerListQueryQueryParams, } from './hooks/useCollectionControllerListQuery';
9
- export { collectionControllerList, useCollectionControllerListQuery, } from './hooks/useCollectionControllerListQuery';
8
+ export type { CollectionControllerListCollectionsErrorResponse, CollectionControllerListCollectionsOkResponse, CollectionControllerListCollectionsProps, CollectionControllerListCollectionsQueryQueryParams, CollectionControllerListCollectionsRequestBody, } from './hooks/useCollectionControllerListCollectionsQuery';
9
+ export { collectionControllerListCollections, useCollectionControllerListCollectionsQuery, } from './hooks/useCollectionControllerListCollectionsQuery';
10
10
  export type { DoraControllerBreakdownErrorResponse, DoraControllerBreakdownOkResponse, DoraControllerBreakdownProps, DoraControllerBreakdownQueryQueryParams, DoraControllerBreakdownRequestBody, } from './hooks/useDoraControllerBreakdownQuery';
11
11
  export { doraControllerBreakdown, useDoraControllerBreakdownQuery, } from './hooks/useDoraControllerBreakdownQuery';
12
12
  export type { DoraControllerChangeFailureRateBreakdownErrorResponse, DoraControllerChangeFailureRateBreakdownOkResponse, DoraControllerChangeFailureRateBreakdownProps, DoraControllerChangeFailureRateBreakdownQueryQueryParams, DoraControllerChangeFailureRateBreakdownRequestBody, } from './hooks/useDoraControllerChangeFailureRateBreakdownQuery';
@@ -32,6 +32,7 @@ export { jiraIssuesControllerGetJiraIssueCount, useJiraIssuesControllerGetJiraIs
32
32
  export type { LegacyHealthControllerCheckErrorResponse, LegacyHealthControllerCheckOkResponse, LegacyHealthControllerCheckProps, } from './hooks/useLegacyHealthControllerCheckQuery';
33
33
  export { legacyHealthControllerCheck, useLegacyHealthControllerCheckQuery, } from './hooks/useLegacyHealthControllerCheckQuery';
34
34
  export type { Category } from './schemas/Category';
35
+ export type { CollectionFilter } from './schemas/CollectionFilter';
35
36
  export type { CollectionObject } from './schemas/CollectionObject';
36
37
  export type { CollectionTree } from './schemas/CollectionTree';
37
38
  export type { DataPoint } from './schemas/DataPoint';
@@ -48,7 +49,9 @@ export type { DoraMetric } from './schemas/DoraMetric';
48
49
  export type { DoraMetricBreakdown } from './schemas/DoraMetricBreakdown';
49
50
  export type { DoraRequest } from './schemas/DoraRequest';
50
51
  export type { DoraSummaryMetric } from './schemas/DoraSummaryMetric';
52
+ export type { DoraSummaryRequest } from './schemas/DoraSummaryRequest';
51
53
  export type { IntegrationObject } from './schemas/IntegrationObject';
52
54
  export type { Stage } from './schemas/Stage';
53
55
  export type { SummaryCard } from './schemas/SummaryCard';
54
56
  export type { SummaryValue } from './schemas/SummaryValue';
57
+ export type { SummaryValueChange } from './schemas/SummaryValueChange';
@@ -1,7 +1,7 @@
1
1
  export { categoryControllerGetCategory, useCategoryControllerGetCategoryQuery, } from './hooks/useCategoryControllerGetCategoryQuery';
2
2
  export { categoryControllerList, useCategoryControllerListQuery, } from './hooks/useCategoryControllerListQuery';
3
3
  export { collectionControllerGetCollectionTree, useCollectionControllerGetCollectionTreeQuery, } from './hooks/useCollectionControllerGetCollectionTreeQuery';
4
- export { collectionControllerList, useCollectionControllerListQuery, } from './hooks/useCollectionControllerListQuery';
4
+ export { collectionControllerListCollections, useCollectionControllerListCollectionsQuery, } from './hooks/useCollectionControllerListCollectionsQuery';
5
5
  export { doraControllerBreakdown, useDoraControllerBreakdownQuery, } from './hooks/useDoraControllerBreakdownQuery';
6
6
  export { doraControllerChangeFailureRateBreakdown, useDoraControllerChangeFailureRateBreakdownQuery, } from './hooks/useDoraControllerChangeFailureRateBreakdownQuery';
7
7
  export { doraControllerChangeFailureRate, useDoraControllerChangeFailureRateQuery, } from './hooks/useDoraControllerChangeFailureRateQuery';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * allow filtering by category id eg: filter=categoryId:category id
3
+ */
4
+ export interface CollectionFilter {
5
+ categoryId?: string;
6
+ insightType?: string;
7
+ }
@@ -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,11 @@
1
+ export interface DoraSummaryRequest {
2
+ collectionId: string;
3
+ /**
4
+ * @format date-time
5
+ */
6
+ dateEnd: string;
7
+ /**
8
+ * @format date-time
9
+ */
10
+ dateStart: 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,8 +1,18 @@
1
+ import type { SummaryValueChange } from '../schemas/SummaryValueChange';
1
2
  import type { SummaryValue } from '../schemas/SummaryValue';
2
3
  export interface SummaryCard {
3
- name?: string;
4
- rating?: string;
5
- trend?: SummaryValue;
6
- unit?: string;
7
- value?: SummaryValue;
4
+ changePercentage?: SummaryValueChange;
5
+ currentValue?: SummaryValue;
6
+ /**
7
+ * @format date-time
8
+ */
9
+ dateEnd?: string;
10
+ /**
11
+ * @format date-time
12
+ */
13
+ dateStart?: string;
14
+ doraMetricKey?: string;
15
+ doraMetricName?: string;
16
+ previousValue?: SummaryValue;
17
+ rating?: 'DANGER' | 'ELITE' | 'FAIR' | 'NEEDS_IMPROVEMENT' | 'SUCCESS' | 'WARNING';
8
18
  }
@@ -3,6 +3,10 @@ export interface SummaryValue {
3
3
  * @format int32
4
4
  */
5
5
  count?: number;
6
+ /**
7
+ * @format int32
8
+ */
9
+ failureCount?: number;
6
10
  /**
7
11
  * @format double
8
12
  */
@@ -19,4 +23,5 @@ export interface SummaryValue {
19
23
  * @format double
20
24
  */
21
25
  p95?: number;
26
+ rating?: 'DANGER' | 'ELITE' | 'FAIR' | 'NEEDS_IMPROVEMENT' | 'SUCCESS' | 'WARNING';
22
27
  }
@@ -0,0 +1,26 @@
1
+ export interface SummaryValueChange {
2
+ /**
3
+ * @format double
4
+ */
5
+ percentageChangeFailureRate?: number;
6
+ /**
7
+ * @format double
8
+ */
9
+ perchangeChangeCount?: number;
10
+ /**
11
+ * @format double
12
+ */
13
+ perchangeChangeMean?: number;
14
+ /**
15
+ * @format double
16
+ */
17
+ perchangeChangeMedian?: number;
18
+ /**
19
+ * @format double
20
+ */
21
+ perchangeChangeP90?: number;
22
+ /**
23
+ * @format double
24
+ */
25
+ perchangeChangeP95?: number;
26
+ }
@@ -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.8",
3
+ "version": "0.10.10",
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",
@@ -1,32 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { DbListResponseCollectionTree } from '../schemas/DbListResponseCollectionTree';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface CollectionControllerListQueryQueryParams {
6
- /**
7
- * account id
8
- */
9
- account: string;
10
- /**
11
- * project id
12
- */
13
- projectIdentifier: string;
14
- /**
15
- * organization id
16
- */
17
- orgIdentifier: string;
18
- /**
19
- * allow filtering by category id eg: filter=categoryId:category id
20
- */
21
- filter?: string;
22
- }
23
- export type CollectionControllerListOkResponse = ResponseWithPagination<DbListResponseCollectionTree>;
24
- export type CollectionControllerListErrorResponse = DbListResponseCollectionTree;
25
- export interface CollectionControllerListProps extends Omit<FetcherOptions<CollectionControllerListQueryQueryParams, unknown>, 'url'> {
26
- queryParams: CollectionControllerListQueryQueryParams;
27
- }
28
- export declare function collectionControllerList(props: CollectionControllerListProps): Promise<CollectionControllerListOkResponse>;
29
- /**
30
- * Get collections
31
- */
32
- export declare function useCollectionControllerListQuery(props: CollectionControllerListProps, options?: Omit<UseQueryOptions<CollectionControllerListOkResponse, CollectionControllerListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CollectionControllerListOkResponse, DbListResponseCollectionTree>;
@@ -1,14 +0,0 @@
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 collectionControllerList(props) {
7
- return fetcher(Object.assign({ url: `/v2/collection`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Get collections
11
- */
12
- export function useCollectionControllerListQuery(props, options) {
13
- return useQuery(['CollectionControllerList', props.queryParams], ({ signal }) => collectionControllerList(Object.assign(Object.assign({}, props), { signal })), options);
14
- }