@harnessio/react-sei-panorama-service-client 0.26.8 → 0.26.9

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 (29) hide show
  1. package/dist/sei-panorama-service/src/services/hooks/useDeveloperControllerUpsertDeveloperIdentitiesMutation.d.ts +1 -1
  2. package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetIngestionHistoryQuery.d.ts +2 -2
  3. package/dist/sei-panorama-service/src/services/hooks/useExternalDataControllerGetSchemaHistoryQuery.d.ts +2 -2
  4. package/dist/sei-panorama-service/src/services/index.d.ts +4 -4
  5. package/dist/sei-panorama-service/src/services/schemas/DataRecord.d.ts +4 -4
  6. package/dist/sei-panorama-service/src/services/schemas/IngestionRequest.d.ts +2 -2
  7. package/dist/sei-panorama-service/src/services/schemas/ItsmDrilldownItem.d.ts +18 -43
  8. package/dist/sei-panorama-service/src/services/schemas/ItsmDrilldownSummary.d.ts +40 -0
  9. package/dist/sei-panorama-service/src/services/schemas/MinimalTeamHierarchyResponseDto.d.ts +1 -0
  10. package/dist/sei-panorama-service/src/services/schemas/MttrDrillDownResponseDto.d.ts +5 -0
  11. package/dist/sei-panorama-service/src/services/schemas/PageMetadata.d.ts +45 -0
  12. package/dist/sei-panorama-service/src/services/schemas/PageMetadata.js +4 -0
  13. package/dist/sei-panorama-service/src/services/schemas/PagedResponseIngestionStatusResponse.d.ts +15 -0
  14. package/dist/sei-panorama-service/src/services/schemas/PagedResponseSchemaResponse.d.ts +15 -0
  15. package/dist/sei-panorama-service/src/services/schemas/PreviewTeamHierarchyResponseDto.d.ts +1 -0
  16. package/dist/sei-panorama-service/src/services/schemas/RecordBatch.d.ts +5 -5
  17. package/dist/sei-panorama-service/src/services/schemas/TeamAccessDto.d.ts +1 -0
  18. package/dist/sei-panorama-service/src/services/schemas/TeamHierarchyDto.d.ts +1 -0
  19. package/dist/sei-panorama-service/src/services/schemas/TeamResponse.d.ts +1 -0
  20. package/dist/sei-panorama-service/src/services/schemas/TeamSummary.d.ts +1 -0
  21. package/package.json +1 -1
  22. package/dist/sei-panorama-service/src/services/schemas/PageIngestionStatusResponse.d.ts +0 -31
  23. package/dist/sei-panorama-service/src/services/schemas/PageSchemaResponse.d.ts +0 -31
  24. package/dist/sei-panorama-service/src/services/schemas/PageableObject.d.ts +0 -18
  25. package/dist/sei-panorama-service/src/services/schemas/PageableObject.js +0 -1
  26. package/dist/sei-panorama-service/src/services/schemas/SortObject.d.ts +0 -5
  27. /package/dist/sei-panorama-service/src/services/schemas/{SortObject.js → ItsmDrilldownSummary.js} +0 -0
  28. /package/dist/sei-panorama-service/src/services/schemas/{PageIngestionStatusResponse.js → PagedResponseIngestionStatusResponse.js} +0 -0
  29. /package/dist/sei-panorama-service/src/services/schemas/{PageSchemaResponse.js → PagedResponseSchemaResponse.js} +0 -0
@@ -7,7 +7,7 @@ import type { ResponseWithPagination } from '../helpers';
7
7
  import { FetcherOptions } from '../../../../fetcher/index.js';
8
8
  export type DeveloperControllerUpsertDeveloperIdentitiesRequestBody = DeveloperIdentity[];
9
9
  export type DeveloperControllerUpsertDeveloperIdentitiesOkResponse = ResponseWithPagination<DeveloperIdentityUpsertResponse>;
10
- export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse = DeveloperIdentityUpsertFailureResponse | ErrorResponse;
10
+ export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse = (DeveloperIdentityUpsertFailureResponse & ErrorResponse) | ErrorResponse;
11
11
  export interface DeveloperControllerUpsertDeveloperIdentitiesProps extends Omit<FetcherOptions<unknown, DeveloperControllerUpsertDeveloperIdentitiesRequestBody>, 'url'> {
12
12
  body: DeveloperControllerUpsertDeveloperIdentitiesRequestBody;
13
13
  }
@@ -1,5 +1,5 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { PageIngestionStatusResponse } from '../schemas/PageIngestionStatusResponse';
2
+ import type { PagedResponseIngestionStatusResponse } from '../schemas/PagedResponseIngestionStatusResponse';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface ExternalDataControllerGetIngestionHistoryQueryPathParams {
@@ -20,7 +20,7 @@ export interface ExternalDataControllerGetIngestionHistoryQueryQueryParams {
20
20
  size?: number;
21
21
  sort?: string[];
22
22
  }
23
- export type ExternalDataControllerGetIngestionHistoryOkResponse = ResponseWithPagination<PageIngestionStatusResponse>;
23
+ export type ExternalDataControllerGetIngestionHistoryOkResponse = ResponseWithPagination<PagedResponseIngestionStatusResponse>;
24
24
  export type ExternalDataControllerGetIngestionHistoryErrorResponse = unknown;
25
25
  export interface ExternalDataControllerGetIngestionHistoryProps extends ExternalDataControllerGetIngestionHistoryQueryPathParams, Omit<FetcherOptions<ExternalDataControllerGetIngestionHistoryQueryQueryParams, unknown>, 'url'> {
26
26
  queryParams: ExternalDataControllerGetIngestionHistoryQueryQueryParams;
@@ -1,5 +1,5 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { PageSchemaResponse } from '../schemas/PageSchemaResponse';
2
+ import type { PagedResponseSchemaResponse } from '../schemas/PagedResponseSchemaResponse';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface ExternalDataControllerGetSchemaHistoryQueryPathParams {
@@ -19,7 +19,7 @@ export interface ExternalDataControllerGetSchemaHistoryQueryQueryParams {
19
19
  size?: number;
20
20
  sort?: string[];
21
21
  }
22
- export type ExternalDataControllerGetSchemaHistoryOkResponse = ResponseWithPagination<PageSchemaResponse>;
22
+ export type ExternalDataControllerGetSchemaHistoryOkResponse = ResponseWithPagination<PagedResponseSchemaResponse>;
23
23
  export type ExternalDataControllerGetSchemaHistoryErrorResponse = unknown;
24
24
  export interface ExternalDataControllerGetSchemaHistoryProps extends ExternalDataControllerGetSchemaHistoryQueryPathParams, Omit<FetcherOptions<ExternalDataControllerGetSchemaHistoryQueryQueryParams, unknown>, 'url'> {
25
25
  queryParams: ExternalDataControllerGetSchemaHistoryQueryQueryParams;
@@ -672,6 +672,7 @@ export type { IssuesPrResponse } from './schemas/IssuesPrResponse';
672
672
  export type { IssuesPrResponseWrapper } from './schemas/IssuesPrResponseWrapper';
673
673
  export type { ItsmCustomFieldDto } from './schemas/ItsmCustomFieldDto';
674
674
  export type { ItsmDrilldownItem } from './schemas/ItsmDrilldownItem';
675
+ export type { ItsmDrilldownSummary } from './schemas/ItsmDrilldownSummary';
675
676
  export type { JsonNode } from './schemas/JsonNode';
676
677
  export type { LanguageCount } from './schemas/LanguageCount';
677
678
  export type { LicenseSearchParams } from './schemas/LicenseSearchParams';
@@ -724,9 +725,9 @@ export type { OrgTreeSearchParams } from './schemas/OrgTreeSearchParams';
724
725
  export type { OrgTreeUpdateRequestDto } from './schemas/OrgTreeUpdateRequestDto';
725
726
  export type { OverallPrMetrics } from './schemas/OverallPrMetrics';
726
727
  export type { OverallReworkMetrics } from './schemas/OverallReworkMetrics';
727
- export type { PageIngestionStatusResponse } from './schemas/PageIngestionStatusResponse';
728
- export type { PageSchemaResponse } from './schemas/PageSchemaResponse';
729
- export type { PageableObject } from './schemas/PageableObject';
728
+ export type { PageMetadata } from './schemas/PageMetadata';
729
+ export type { PagedResponseIngestionStatusResponse } from './schemas/PagedResponseIngestionStatusResponse';
730
+ export type { PagedResponseSchemaResponse } from './schemas/PagedResponseSchemaResponse';
730
731
  export type { PaginatedResponseTeamSummary } from './schemas/PaginatedResponseTeamSummary';
731
732
  export type { Pagination } from './schemas/Pagination';
732
733
  export type { PaginationInfo } from './schemas/PaginationInfo';
@@ -792,7 +793,6 @@ export type { SeverityData } from './schemas/SeverityData';
792
793
  export type { SeveritySummaryData } from './schemas/SeveritySummaryData';
793
794
  export type { SimpleFilter } from './schemas/SimpleFilter';
794
795
  export type { SonarQubeEntitiesStatsDto } from './schemas/SonarQubeEntitiesStatsDto';
795
- export type { SortObject } from './schemas/SortObject';
796
796
  export type { SortOption } from './schemas/SortOption';
797
797
  export type { SprintConfigurationDto } from './schemas/SprintConfigurationDto';
798
798
  export type { SprintDeliveryAnalysisDto } from './schemas/SprintDeliveryAnalysisDto';
@@ -1,9 +1,9 @@
1
1
  /**
2
- * A single data record within a batch
2
+ * A single data point with timestamp and field values
3
3
  */
4
4
  export interface DataRecord {
5
5
  /**
6
- * Field values as key-value pairs
6
+ * Field values as key-value pairs. Keys must match schema field definitions.
7
7
  * @example {"team":"payments","application":"api","value":99.999}
8
8
  */
9
9
  fields: {
@@ -12,9 +12,9 @@ export interface DataRecord {
12
12
  };
13
13
  };
14
14
  /**
15
- * Timestamp when this data was recorded
15
+ * Timestamp when this data was recorded (ISO 8601 format)
16
16
  * @format date-time
17
- * @example "2024-01-24T10:00:00Z"
17
+ * @example "2024-02-13T10:00:00.000Z"
18
18
  */
19
19
  timestamp: string;
20
20
  }
@@ -4,9 +4,9 @@ import type { RecordBatch } from '../schemas/RecordBatch';
4
4
  */
5
5
  export interface IngestionRequest {
6
6
  /**
7
- * List of record batches to ingest
7
+ * List of record batches to ingest, grouped by record type
8
8
  */
9
- records: RecordBatch[];
9
+ batches: RecordBatch[];
10
10
  /**
11
11
  * Data source identifier
12
12
  * @example "aternity"
@@ -1,94 +1,69 @@
1
1
  /**
2
- * ITSM drilldown record for incidents and change requests
2
+ * ITSM drilldown record for incidents and change requests from incident_mgmt table
3
3
  */
4
4
  export interface ItsmDrilldownItem {
5
5
  /**
6
- * Application name associated with the record
7
- */
8
- applicationName?: string;
9
- /**
10
- * Approval group for the record
11
- */
12
- approvalGroup?: string;
13
- /**
14
- * Assignment group responsible for the record
6
+ * Assignment group from attributes['assignment_group']
15
7
  */
16
8
  assignmentGroup?: string;
17
9
  /**
18
- * Business service affected
10
+ * Business service from attributes['business_service']
19
11
  */
20
12
  businessService?: string;
21
13
  /**
22
- * When the record was closed
14
+ * When the record was closed from attributes['closed_at']
23
15
  * @format date-time
24
16
  */
25
17
  closedAt?: string;
26
18
  /**
27
- * When the record was created
19
+ * When the record was created from incident_created_at column
28
20
  * @format date-time
29
21
  */
30
22
  createdAt?: string;
31
23
  /**
32
- * Environment (e.g., Production, Staging)
33
- */
34
- environment?: string;
35
- /**
36
- * Record ID (e.g., INC0012345 for incidents, CHG0012345 for change requests)
24
+ * Record number from incident_number column (e.g., INC0012345, CHG0012345)
37
25
  */
38
26
  id?: string;
39
27
  /**
40
- * Whether this record represents a failure (for CFR)
41
- */
42
- isFailure?: boolean;
43
- /**
44
- * Owner of the record (incident owner or change owner)
28
+ * Person assigned to the record from assignee column
45
29
  */
46
30
  owner?: string;
47
31
  /**
48
- * Priority of the record
32
+ * Priority from priority column
49
33
  */
50
34
  priority?: string;
51
35
  /**
52
- * Record type: INCIDENT or CHANGE_REQUEST
36
+ * Record type from type column: 'Incident' or 'Change Request'
53
37
  */
54
38
  recordType?: 'CHANGE_REQUEST' | 'INCIDENT';
55
39
  /**
56
- * Resolution time in seconds (for MTTR)
40
+ * Resolution time in seconds: incident_resolved_at - incident_created_at
57
41
  * @format int64
58
42
  */
59
43
  resolutionTimeSeconds?: number;
60
44
  /**
61
- * When the record was resolved
45
+ * When the record was resolved from incident_resolved_at column
62
46
  * @format date-time
63
47
  */
64
48
  resolvedAt?: string;
65
49
  /**
66
- * Risk level (for change requests)
50
+ * Severity from severity column
67
51
  */
68
- risk?: string;
52
+ severity?: string;
69
53
  /**
70
- * Current status of the record
54
+ * Current status from status column
71
55
  */
72
56
  status?: string;
73
57
  /**
74
- * Support group handling the record
75
- */
76
- supportGroup?: string;
77
- /**
78
- * Type/category of the record
79
- */
80
- type?: string;
81
- /**
82
- * When the record was last updated
83
- * @format date-time
58
+ * Summary/short description from summary column
84
59
  */
85
- updatedAt?: string;
60
+ summary?: string;
86
61
  /**
87
- * Urgency level (for incidents)
62
+ * Urgency from urgency column
88
63
  */
89
64
  urgency?: string;
90
65
  /**
91
- * Direct URL to view the record in ServiceNow
66
+ * Direct URL to view the record in ServiceNow (url column)
92
67
  */
93
68
  url?: string;
94
69
  }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * ITSM drilldown summary statistics
3
+ */
4
+ export interface ItsmDrilldownSummary {
5
+ /**
6
+ * Average resolution time in hours (MTTR)
7
+ * @format double
8
+ */
9
+ avgResolutionTimeHours?: number;
10
+ /**
11
+ * Deployment frequency per day (DF)
12
+ * @format double
13
+ */
14
+ deploymentsPerDay?: number;
15
+ /**
16
+ * Change failure rate percentage (CFR)
17
+ * @format double
18
+ */
19
+ failureRatePercent?: number;
20
+ /**
21
+ * Number of incidents resolved (MTTR)
22
+ * @format int64
23
+ */
24
+ incidentsResolved?: number;
25
+ /**
26
+ * Total number of deployments/change requests (DF)
27
+ * @format int64
28
+ */
29
+ totalDeployments?: number;
30
+ /**
31
+ * Total number of failures (CFR)
32
+ * @format int64
33
+ */
34
+ totalFailures?: number;
35
+ /**
36
+ * Total number of incidents created (MTTR)
37
+ * @format int64
38
+ */
39
+ totalIncidentsCreated?: number;
40
+ }
@@ -20,6 +20,7 @@ export interface MinimalTeamHierarchyResponseDto {
20
20
  * @example 10
21
21
  */
22
22
  developerCount?: number;
23
+ displayName?: string;
23
24
  /**
24
25
  * Map of integration Filters associated with the team
25
26
  * @example []
@@ -1,5 +1,6 @@
1
1
  import type { ImmttrDrilldownItem } from '../schemas/ImmttrDrilldownItem';
2
2
  import type { ItsmDrilldownItem } from '../schemas/ItsmDrilldownItem';
3
+ import type { ItsmDrilldownSummary } from '../schemas/ItsmDrilldownSummary';
3
4
  import type { PaginationInfo } from '../schemas/PaginationInfo';
4
5
  /**
5
6
  * MTTR drilldown response with support for multiple integration types
@@ -22,6 +23,10 @@ export interface MttrDrillDownResponseDto {
22
23
  * ITSM records (ServiceNow incidents/change requests)
23
24
  */
24
25
  itsmRecords?: ItsmDrilldownItem[];
26
+ /**
27
+ * ITSM summary statistics
28
+ */
29
+ itsmSummary?: ItsmDrilldownSummary;
25
30
  /**
26
31
  * Pagination details
27
32
  */
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Pagination metadata information
3
+ */
4
+ export interface PageMetadata {
5
+ /**
6
+ * Whether this is the first page
7
+ */
8
+ first?: boolean;
9
+ /**
10
+ * Whether there is a next page
11
+ */
12
+ hasNext?: boolean;
13
+ /**
14
+ * Whether there is a previous page
15
+ */
16
+ hasPrevious?: boolean;
17
+ /**
18
+ * Whether this is the last page
19
+ */
20
+ last?: boolean;
21
+ /**
22
+ * Current page number (0-based)
23
+ * @format int32
24
+ * @example 0
25
+ */
26
+ page?: number;
27
+ /**
28
+ * Number of items per page
29
+ * @format int32
30
+ * @example 20
31
+ */
32
+ size?: number;
33
+ /**
34
+ * Total number of items across all pages
35
+ * @format int64
36
+ * @example 100
37
+ */
38
+ totalElements?: number;
39
+ /**
40
+ * Total number of pages
41
+ * @format int32
42
+ * @example 5
43
+ */
44
+ totalPages?: number;
45
+ }
@@ -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,15 @@
1
+ import type { IngestionStatusResponse } from '../schemas/IngestionStatusResponse';
2
+ import type { PageMetadata } from '../schemas/PageMetadata';
3
+ /**
4
+ * Paginated response with data and metadata
5
+ */
6
+ export interface PagedResponseIngestionStatusResponse {
7
+ /**
8
+ * List of data items for the current page
9
+ */
10
+ data?: IngestionStatusResponse[];
11
+ /**
12
+ * Pagination metadata
13
+ */
14
+ meta?: PageMetadata;
15
+ }
@@ -0,0 +1,15 @@
1
+ import type { SchemaResponse } from '../schemas/SchemaResponse';
2
+ import type { PageMetadata } from '../schemas/PageMetadata';
3
+ /**
4
+ * Paginated response with data and metadata
5
+ */
6
+ export interface PagedResponseSchemaResponse {
7
+ /**
8
+ * List of data items for the current page
9
+ */
10
+ data?: SchemaResponse[];
11
+ /**
12
+ * Pagination metadata
13
+ */
14
+ meta?: PageMetadata;
15
+ }
@@ -8,6 +8,7 @@ export interface PreviewTeamHierarchyResponseDto {
8
8
  [key: string]: string;
9
9
  };
10
10
  developerRefIds?: number[];
11
+ displayName?: string;
11
12
  /**
12
13
  * Whether this team is a leaf node (has no children)
13
14
  */
@@ -1,15 +1,15 @@
1
1
  import type { DataRecord } from '../schemas/DataRecord';
2
2
  /**
3
- * A batch of records of the same type
3
+ * A batch of data points grouped by record type
4
4
  */
5
5
  export interface RecordBatch {
6
+ /**
7
+ * List of data points for this record type
8
+ */
9
+ dataPoints: DataRecord[];
6
10
  /**
7
11
  * Type of records in this batch
8
12
  * @example "availability"
9
13
  */
10
14
  recordType: string;
11
- /**
12
- * List of data records
13
- */
14
- records: DataRecord[];
15
15
  }
@@ -2,6 +2,7 @@
2
2
  * Lightweight team information with minimal fields
3
3
  */
4
4
  export interface TeamAccessDto {
5
+ displayName?: string;
5
6
  /**
6
7
  * Database ID of the team
7
8
  * @format int32
@@ -6,6 +6,7 @@ export interface TeamHierarchyDto {
6
6
  * Array of child teams in the hierarchy
7
7
  */
8
8
  children?: TeamHierarchyDto[];
9
+ displayName?: string;
9
10
  /**
10
11
  * Name of the team
11
12
  * @example "Engineering"
@@ -6,6 +6,7 @@ export interface TeamResponse {
6
6
  */
7
7
  createdAt?: string;
8
8
  createdByEmail?: string;
9
+ displayName?: string;
9
10
  leaf?: boolean;
10
11
  /**
11
12
  * @format int32
@@ -7,6 +7,7 @@ export interface TeamSummary {
7
7
  * @format int32
8
8
  */
9
9
  developerCount?: number;
10
+ displayName?: string;
10
11
  /**
11
12
  * @format int32
12
13
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.26.8",
3
+ "version": "0.26.9",
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,31 +0,0 @@
1
- import type { IngestionStatusResponse } from '../schemas/IngestionStatusResponse';
2
- import type { PageableObject } from '../schemas/PageableObject';
3
- import type { SortObject } from '../schemas/SortObject';
4
- export interface PageIngestionStatusResponse {
5
- content?: IngestionStatusResponse[];
6
- empty?: boolean;
7
- first?: boolean;
8
- last?: boolean;
9
- /**
10
- * @format int32
11
- */
12
- number?: number;
13
- /**
14
- * @format int32
15
- */
16
- numberOfElements?: number;
17
- pageable?: PageableObject;
18
- /**
19
- * @format int32
20
- */
21
- size?: number;
22
- sort?: SortObject;
23
- /**
24
- * @format int64
25
- */
26
- totalElements?: number;
27
- /**
28
- * @format int32
29
- */
30
- totalPages?: number;
31
- }
@@ -1,31 +0,0 @@
1
- import type { SchemaResponse } from '../schemas/SchemaResponse';
2
- import type { PageableObject } from '../schemas/PageableObject';
3
- import type { SortObject } from '../schemas/SortObject';
4
- export interface PageSchemaResponse {
5
- content?: SchemaResponse[];
6
- empty?: boolean;
7
- first?: boolean;
8
- last?: boolean;
9
- /**
10
- * @format int32
11
- */
12
- number?: number;
13
- /**
14
- * @format int32
15
- */
16
- numberOfElements?: number;
17
- pageable?: PageableObject;
18
- /**
19
- * @format int32
20
- */
21
- size?: number;
22
- sort?: SortObject;
23
- /**
24
- * @format int64
25
- */
26
- totalElements?: number;
27
- /**
28
- * @format int32
29
- */
30
- totalPages?: number;
31
- }
@@ -1,18 +0,0 @@
1
- import type { SortObject } from '../schemas/SortObject';
2
- export interface PageableObject {
3
- /**
4
- * @format int64
5
- */
6
- offset?: number;
7
- /**
8
- * @format int32
9
- */
10
- pageNumber?: number;
11
- /**
12
- * @format int32
13
- */
14
- pageSize?: number;
15
- paged?: boolean;
16
- sort?: SortObject;
17
- unpaged?: boolean;
18
- }
@@ -1,5 +0,0 @@
1
- export interface SortObject {
2
- empty?: boolean;
3
- sorted?: boolean;
4
- unsorted?: boolean;
5
- }