@equinor/echo-framework 0.16.6 → 0.16.7

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 (49) hide show
  1. package/index.cjs.js +1 -1
  2. package/package.json +2 -1
  3. package/src/index.d.ts +6 -0
  4. package/src/lib/components/errorBoundary/chunkLoadErrorHelper.d.ts +7 -0
  5. package/src/lib/components/errorBoundary/components/chunkLoadErrorMessage.d.ts +5 -2
  6. package/src/lib/components/errorBoundary/pageAutoReloadState.d.ts +9 -0
  7. package/src/lib/components/index.d.ts +3 -0
  8. package/src/lib/components/labelledValueGrid/index.d.ts +1 -0
  9. package/src/lib/components/labelledValueGrid/labelledValue.d.ts +8 -0
  10. package/src/lib/components/labelledValueGrid/labelledValueGrid.d.ts +16 -0
  11. package/src/lib/components/listItem/listItem.d.ts +12 -0
  12. package/src/lib/components/spinner/spinner.d.ts +8 -0
  13. package/src/lib/feature/equipment/api/api-equipmentInfo.d.ts +5 -0
  14. package/src/lib/feature/equipment/api/api-equipmentWithMeasuringPoints.d.ts +5 -0
  15. package/src/lib/feature/equipment/components/equipmentInfoItem.d.ts +9 -0
  16. package/src/lib/feature/equipment/components/equipmentItemDetails/equipmentItemDetails.d.ts +3 -0
  17. package/src/lib/feature/equipment/components/equipmentItemHeader/equipmentItemHeader.d.ts +7 -0
  18. package/src/lib/feature/equipment/components/equipmentTabs/equipmentTabs.d.ts +8 -0
  19. package/src/lib/feature/equipment/components/index.d.ts +4 -0
  20. package/src/lib/feature/equipment/hooks/useOpenEquipmentDetails.d.ts +11 -0
  21. package/src/lib/feature/equipment/index.d.ts +3 -0
  22. package/src/lib/feature/equipment/types/equipmentInfo.d.ts +18 -0
  23. package/src/lib/feature/equipment/types/equipmentWithMeasuringPoints.d.ts +19 -0
  24. package/src/lib/feature/measuringPoint/components/failureMechanism.config.d.ts +19 -0
  25. package/src/lib/feature/measuringPoint/components/index.d.ts +3 -0
  26. package/src/lib/feature/measuringPoint/components/lastRecordedMeasurement/lastRecordedMeasurement.d.ts +7 -0
  27. package/src/lib/feature/measuringPoint/components/lastRecordedMeasurement/lastRecordedMeasurement.logic.d.ts +6 -0
  28. package/src/lib/feature/measuringPoint/components/measuringPointDetails/measuringPointDetails.d.ts +6 -0
  29. package/src/lib/feature/measuringPoint/components/measuringPointDetails/measuringPointDetails.logic.d.ts +2 -0
  30. package/src/lib/feature/measuringPoint/components/measuringPointDetails/useAddTagToLegendRegistry.d.ts +12 -0
  31. package/src/lib/feature/measuringPoint/components/measuringPointHeader/measuringPointHeader.d.ts +6 -0
  32. package/src/lib/feature/measuringPoint/components/measuringPointItem.d.ts +16 -0
  33. package/src/lib/feature/measuringPoint/components/measuringPoints.utils.d.ts +7 -0
  34. package/src/lib/feature/measuringPoint/hooks/index.d.ts +1 -0
  35. package/src/lib/feature/measuringPoint/hooks/useOpenMeasuringPointDetails.d.ts +12 -0
  36. package/src/lib/feature/measuringPoint/index.d.ts +3 -0
  37. package/src/lib/feature/measuringPoint/types/measuringPoint.d.ts +32 -0
  38. package/src/lib/services/activeSelectionStore/activeSelectionData.hooks.d.ts +10 -0
  39. package/src/lib/services/activeSelectionStore/activeSelectionStore.d.ts +9 -1
  40. package/src/lib/services/activeSelectionStore/index.d.ts +1 -0
  41. package/src/lib/services/api/api-manager.d.ts +4 -1
  42. package/src/lib/services/api/api-stid-tags.d.ts +14 -0
  43. package/src/lib/services/eventHubActions/index.d.ts +1 -0
  44. package/src/lib/services/eventHubActions/legendActions.d.ts +6 -0
  45. package/src/lib/types/eventTypes/index.d.ts +1 -1
  46. package/src/lib/types/eventTypes/legendEvent.d.ts +4 -1
  47. package/src/lib/utils/formatTimeHelpers.d.ts +1 -0
  48. package/src/lib/utils/handleErrors.d.ts +1 -0
  49. package/src/lib/utils/index.d.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-framework",
3
- "version": "0.16.6",
3
+ "version": "0.16.7",
4
4
  "peerDependencies": {
5
5
  "@equinor/echo-base": ">= 0.7.0 < 0.8.0",
6
6
  "@equinor/echo-components": ">= 0.9.0 < 0.10.0",
@@ -11,6 +11,7 @@
11
11
  "@equinor/eds-icons": "^0.17.0",
12
12
  "react": ">= 17.0.2",
13
13
  "react-dom": ">= 17.0.2",
14
+ "@tanstack/react-query": "5.8.1",
14
15
  "@microsoft/signalr": "7.0.12",
15
16
  "classnames": "2.3.2",
16
17
  "history": "5.3.0",
package/src/index.d.ts CHANGED
@@ -1,11 +1,16 @@
1
1
  /// <reference types="react" />
2
+ import { getEquipmentInfoFromApi } from './lib/feature/equipment/api/api-equipmentInfo';
2
3
  import { getLegendStatusColor } from './lib/feature/legend/utils/legendUtils';
3
4
  import './lib/globalStyles.css';
4
5
  import { getPlantsInfo, getTagDetails } from './lib/services/api';
5
6
  export * from './lib/components';
6
7
  export { RequestSapAccess } from './lib/components/requestAccess/RequestSapAccess';
7
8
  export * from './lib/coreApplication';
9
+ export * from './lib/feature/equipment/index';
10
+ export * from './lib/feature/equipment/types/equipmentInfo';
8
11
  export * from './lib/feature/legend/index';
12
+ export * from './lib/feature/measuringPoint/index';
13
+ export * from './lib/feature/measuringPoint/types/measuringPoint';
9
14
  export { RegisteredHookName } from './lib/hooks/hookLibrary';
10
15
  export { useIsCompactLayout } from './lib/hooks/useIsCompactLayout';
11
16
  export { useIsFullScreenModeEnabled } from './lib/hooks/useIsFullScreenModeEnabled';
@@ -115,6 +120,7 @@ declare const EchoFramework: Readonly<{
115
120
  web3dUrl: string;
116
121
  }>;
117
122
  createTemporarilyEchoHubListFor3D: (request: import("./lib/types/api-echohub").TemporaryEchoHubListDto, abortSignal?: AbortSignal | undefined) => Promise<import("./lib/types/api-echohub").TemporaryHubListCreatedResponse>;
123
+ getEquipmentInfoFromApi: typeof getEquipmentInfoFromApi;
118
124
  }>;
119
125
  }>;
120
126
  export default EchoFramework;
@@ -0,0 +1,7 @@
1
+ type ErrorHandlers = {
2
+ reloadPageClicked: () => void;
3
+ forcePageReloadOnceOnChunkLoadError: () => void;
4
+ };
5
+ export declare function chunkLoadErrorHelper(error: Error | undefined): ErrorHandlers;
6
+ export declare function isChunkLoadError(error: Error): boolean;
7
+ export {};
@@ -1,3 +1,6 @@
1
1
  /// <reference types="react" />
2
- declare const ChunkLoadErrorMessage: () => JSX.Element;
3
- export default ChunkLoadErrorMessage;
2
+ type Props = {
3
+ error: Error | undefined;
4
+ };
5
+ export declare const ChunkLoadErrorMessage: ({ error }: Props) => JSX.Element;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ declare function hasForcedPageReloadAlready(): boolean;
2
+ declare function savePageAutoReloaded(autoReloadedAt?: Date): void;
3
+ declare function deleteState(): void;
4
+ export declare const pageAutoReloadState: {
5
+ save: typeof savePageAutoReloaded;
6
+ delete: typeof deleteState;
7
+ hasReloadedAlready: typeof hasForcedPageReloadAlready;
8
+ };
9
+ export {};
@@ -21,3 +21,6 @@ export * from './router';
21
21
  export * from './searchMenu';
22
22
  export * from './tagNumber';
23
23
  export * from './toaster';
24
+ export * from './labelledValueGrid';
25
+ export * from './spinner/spinner';
26
+ export { ListItem } from './listItem/listItem';
@@ -0,0 +1 @@
1
+ export * from './labelledValueGrid';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface LabelledValueProps {
3
+ label: string;
4
+ value: React.ReactNode | string;
5
+ colSpan?: boolean;
6
+ }
7
+ export declare const LabelledValue: React.FC<LabelledValueProps>;
8
+ export {};
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ interface LabelledValueGridProps {
3
+ fields: LabelledValueGridField[];
4
+ }
5
+ export type LabelledValueGridField = {
6
+ label: string;
7
+ value: React.ReactNode | string;
8
+ colSpan?: boolean;
9
+ };
10
+ /**
11
+ * Component for displaying elements in a grid with labels per value
12
+ * @param fields: takes in a list of values with their corresponding labels
13
+ * @returns {*}
14
+ */
15
+ export declare const LabelledValueGrid: React.FC<LabelledValueGridProps>;
16
+ export {};
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ interface ListItemProps {
3
+ title: string;
4
+ iconName?: string;
5
+ iconColor?: string;
6
+ iconBackgroundColor?: string;
7
+ visualText?: string;
8
+ description?: string;
9
+ additionalInfo?: JSX.Element;
10
+ }
11
+ export declare const ListItem: React.FC<ListItemProps>;
12
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface SpinnerProps {
3
+ label?: string;
4
+ className?: string;
5
+ size?: 16 | 24 | 32 | 40 | 48;
6
+ }
7
+ export declare const Spinner: React.FC<SpinnerProps>;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ import { EquipmentInfo } from '../types/equipmentInfo';
2
+ export declare function getEquipmentInfoFromApi({ tagNo, instCode }: {
3
+ tagNo: string;
4
+ instCode: string;
5
+ }): Promise<EquipmentInfo[]>;
@@ -0,0 +1,5 @@
1
+ import { EquipmentWithMeasuringPoints } from '../types/equipmentWithMeasuringPoints';
2
+ export declare function getEquipmentWithMeasuringPointsFromApi({ tagNos, instCode }: {
3
+ tagNos: string[];
4
+ instCode: string;
5
+ }): Promise<EquipmentWithMeasuringPoints[]>;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { EquipmentInfo } from '../types/equipmentInfo';
3
+ interface EquipmentItemProps {
4
+ equipment: EquipmentInfo;
5
+ tagNo: string;
6
+ plantNo: string;
7
+ }
8
+ export declare const EquipmentInfoItem: React.FC<EquipmentItemProps>;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { EquipmentAccordionContentProps } from '../equipmentTabs/equipmentTabs';
3
+ export declare const EquipmentItemDetails: React.FC<EquipmentAccordionContentProps>;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface EquipmentItemHeaderProps {
3
+ equipmentNo: string;
4
+ tagNo: string;
5
+ }
6
+ export declare const EquipmentItemHeader: React.FC<EquipmentItemHeaderProps>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export interface EquipmentAccordionContentProps {
3
+ equipmentNo: string;
4
+ tagNo: string;
5
+ plantNo: string;
6
+ showAdditionalInfo?: boolean;
7
+ }
8
+ export declare const EquipmentTabs: React.FC<EquipmentAccordionContentProps>;
@@ -0,0 +1,4 @@
1
+ export { EquipmentTabs } from './equipmentTabs/equipmentTabs';
2
+ export { EquipmentItemHeader } from './equipmentItemHeader/equipmentItemHeader';
3
+ export { EquipmentInfoItem } from './equipmentInfoItem';
4
+ export { EquipmentItemDetails } from './equipmentItemDetails/equipmentItemDetails';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Opens equipment details panel on the left side of the screen
3
+ * @returns {function}
4
+ */
5
+ export declare function useOpenEquipmentDetails(): (args: {
6
+ equipmentNo: string;
7
+ tagNo: string;
8
+ plantNo: string;
9
+ panelKey?: string | undefined;
10
+ keepLastNavigationItem?: boolean | undefined;
11
+ }) => void;
@@ -0,0 +1,3 @@
1
+ export { useOpenEquipmentDetails } from './hooks/useOpenEquipmentDetails';
2
+ export { getEquipmentWithMeasuringPointsFromApi } from './api/api-equipmentWithMeasuringPoints';
3
+ export { EquipmentInfoItem, EquipmentItemDetails, EquipmentItemHeader, EquipmentTabs } from './components';
@@ -0,0 +1,18 @@
1
+ export interface EquipmentInfo {
2
+ readonly equipmentNo: string;
3
+ readonly description: string;
4
+ readonly manufacturer: string;
5
+ readonly modelNo: string;
6
+ readonly partNo: string;
7
+ readonly serialNo: string;
8
+ readonly materialNo: string;
9
+ readonly functionalLocation: string;
10
+ readonly validFrom: string;
11
+ readonly weightNet: number;
12
+ readonly documents: {
13
+ readonly docId: string;
14
+ readonly docNo: string;
15
+ readonly description: string;
16
+ readonly url: string;
17
+ };
18
+ }
@@ -0,0 +1,19 @@
1
+ import { MeasuringPointDto } from '../../measuringPoint/types/measuringPoint';
2
+ export interface EquipmentWithMeasuringPoints {
3
+ readonly equipmentId: string;
4
+ readonly equipment: string;
5
+ readonly maintenancePlantId: string;
6
+ readonly functionalLocationId: string;
7
+ readonly tagPlantId: string;
8
+ readonly tagId: string;
9
+ readonly locationId: string;
10
+ readonly area: string;
11
+ readonly categoryId: string;
12
+ readonly activeStatusIds: string[];
13
+ readonly systemStatusIds: string[];
14
+ readonly userStatusIds: string[];
15
+ readonly equipmentsStatus: string[];
16
+ readonly changedDate: string;
17
+ readonly createdDate: string;
18
+ readonly measuringPoints: MeasuringPointDto[];
19
+ }
@@ -0,0 +1,19 @@
1
+ export declare const failureMechanismConfig: ({
2
+ title: string;
3
+ id: string;
4
+ legendValueType: string;
5
+ measuringPointQueryTypeIdentifier: string;
6
+ values: {
7
+ value: string;
8
+ color: string;
9
+ }[];
10
+ } | {
11
+ title: string;
12
+ id: string;
13
+ legendValueType: string;
14
+ measuringPointQueryTypeIdentifier: string;
15
+ values: {
16
+ value: number;
17
+ color: string;
18
+ }[];
19
+ })[];
@@ -0,0 +1,3 @@
1
+ export { MeasuringPointItem } from './measuringPointItem';
2
+ export { MeasuringPointHeader } from './measuringPointHeader/measuringPointHeader';
3
+ export { MeasuringPointDetails } from './measuringPointDetails/measuringPointDetails';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { MeasuringPointDto } from '../../types/measuringPoint';
3
+ type LastRecordedMeasurementProps = {
4
+ measuringPoint: MeasuringPointDto;
5
+ };
6
+ export declare const LastRecordedMeasurement: React.FC<LastRecordedMeasurementProps>;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { MeasurementDto } from '../../types/measuringPoint';
2
+ export type LastRecordedMeasurementData = {
3
+ conditionAsText: string;
4
+ measurementDateTime: string | null;
5
+ };
6
+ export declare const getLastRecordedMeasurement: (measurements: MeasurementDto[]) => LastRecordedMeasurementData;
@@ -0,0 +1,6 @@
1
+ import { MeasuringPointDto } from '../../types/measuringPoint';
2
+ type MeasuringPointDetailsProps = {
3
+ measuringPoint: MeasuringPointDto;
4
+ };
5
+ export declare const MeasuringPointDetails: ({ measuringPoint }: MeasuringPointDetailsProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const getInstCodeForSapPlantId: (sapPlantId: string) => string;
2
+ export declare const isNumberInRange: (sapPlantIdStr: string, sapPlantIdRange: string) => boolean;
@@ -0,0 +1,12 @@
1
+ import { LegendItemStatus } from '../../../legend';
2
+ /**
3
+ * @deprecated Don't use this - the current legend registry service is a heavily outdated solution,
4
+ * we shouldn't increase the tech dept even further.
5
+ *
6
+ * Adds one given tag item to the legend registry service, which tracks the legend status of the registered items.
7
+ * Returns with the updated itemIdToStatusMap, which contains this newly added item by id as well.
8
+ *
9
+ * @param {string} tagId The given tag's id to be stored in the registry.
10
+ * @returns {Record<string, LegendItemStatus>} A legend status map: keys are the item ids, values are the legend statuses.
11
+ */
12
+ export declare function useAddTagToLegendRegistry(tagId: string): Record<string, LegendItemStatus>;
@@ -0,0 +1,6 @@
1
+ import { MeasuringPointDto } from '../../types/measuringPoint';
2
+ type Props = {
3
+ measuringPoint: MeasuringPointDto;
4
+ };
5
+ export declare const MeasuringPointHeader: ({ measuringPoint }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { MeasuringPointDto } from '../types/measuringPoint';
3
+ interface MeasuringPointItemProps {
4
+ measuringPoint: MeasuringPointDto;
5
+ asHeader?: boolean;
6
+ isActive: boolean;
7
+ onClick: () => void;
8
+ }
9
+ /**
10
+ * Component for displaying measuring point item.
11
+ * Displays information about the condition of the measuring point, as well as the last recorded measurement.
12
+ * @param {MeasuringPointItemProps}
13
+ * @returns {*}
14
+ */
15
+ export declare const MeasuringPointItem: React.FC<React.PropsWithChildren<MeasuringPointItemProps>>;
16
+ export {};
@@ -0,0 +1,7 @@
1
+ interface FailureMechanismCondition {
2
+ id: string | undefined;
3
+ value: string | undefined;
4
+ color: string;
5
+ }
6
+ export declare function getFailureMechanismCondition(qualitativeCodeGroupId: string | undefined, qualitativeCodeId: string | number | undefined): FailureMechanismCondition;
7
+ export {};
@@ -0,0 +1 @@
1
+ export { useOpenMeasuringPointDetails } from './useOpenMeasuringPointDetails';
@@ -0,0 +1,12 @@
1
+ import { MeasuringPointDto } from '../types/measuringPoint';
2
+ /**
3
+ * Opens measuring point details panel on the left side of the screen
4
+ * @returns {function}
5
+ */
6
+ export declare function useOpenMeasuringPointDetails(): (args: MeasuringPointArgs) => void;
7
+ type MeasuringPointArgs = {
8
+ measuringPoint: MeasuringPointDto;
9
+ panelKey?: string;
10
+ keepLastNavigationItem?: boolean;
11
+ };
12
+ export {};
@@ -0,0 +1,3 @@
1
+ export { MeasuringPointDetails, MeasuringPointItem, MeasuringPointHeader } from './components';
2
+ export type { MeasurementDto, MeasuringPointDto } from './types/measuringPoint';
3
+ export { useOpenMeasuringPointDetails } from './hooks';
@@ -0,0 +1,32 @@
1
+ export interface MeasurementDto {
2
+ measurementId: string;
3
+ measuringPointId: string;
4
+ measurementDateTime?: string;
5
+ measurementTitle?: string;
6
+ longTextExists?: string;
7
+ createdDateTime?: string;
8
+ maintenanceRecordId?: string;
9
+ workOrderId?: string;
10
+ quantitativeReadingInSIUnit?: number;
11
+ quantitativeReading?: number;
12
+ quantitativeReadingUnitId?: string;
13
+ qualitativeCodeGroupId?: string;
14
+ qualitativeCodeId?: string;
15
+ longText?: object;
16
+ }
17
+ export interface MeasuringPointDto {
18
+ readonly measuringPointId: string;
19
+ readonly measuringPosition?: string;
20
+ readonly measuringPoint?: string;
21
+ readonly functionalLocationId?: string;
22
+ readonly tagPlantId?: string;
23
+ readonly tagId?: string;
24
+ readonly equipmentId?: string;
25
+ readonly quantitativeCharacteristicUnit?: string;
26
+ readonly positionDetails_CoordinateSystemName?: string;
27
+ readonly positionDetails_E3DReferenceNumber?: string;
28
+ readonly positionDetails_CoordinateEast?: string;
29
+ readonly positionDetails_CoordinateNorth?: string;
30
+ readonly positionDetails_CoordinateUp?: string;
31
+ readonly measurements: MeasurementDto[];
32
+ }
@@ -0,0 +1,10 @@
1
+ import { TagSummaryDto } from '@equinor/echo-search';
2
+ import { UseQueryResult } from '@tanstack/react-query';
3
+ /**
4
+ * Get the tag summaries for those tags, which are part of the active selection.
5
+ * Works with deep linking: if the selected instCode is different then the instCode in the URL
6
+ * it will fetch the tag summaries from STID API.
7
+ * Otherwise it will get it from echo-search.
8
+ * @returns {UseQueryResult<TagSummaryDto[]>}
9
+ */
10
+ export declare function useActiveSelectedTagSummaries(): UseQueryResult<TagSummaryDto[]>;
@@ -1,5 +1,13 @@
1
1
  import * as zustand from 'zustand';
2
- export declare const useActiveSelectionStore: zustand.UseBoundStore<zustand.StoreApi<ActiveSelectionState>>;
2
+ export declare const useActiveSelectionStore: zustand.UseBoundStore<Omit<zustand.StoreApi<ActiveSelectionState>, "subscribe"> & {
3
+ subscribe: {
4
+ (listener: (selectedState: ActiveSelectionState, previousSelectedState: ActiveSelectionState) => void): () => void;
5
+ <U>(selector: (state: ActiveSelectionState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
6
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
7
+ fireImmediately?: boolean | undefined;
8
+ } | undefined): () => void;
9
+ };
10
+ }>;
3
11
  export type ActiveSelectionItemType = 'tagNos' | 'workOrderIds' | 'measuringPointIds';
4
12
  export type ActiveSelectionItems = {
5
13
  [key in ActiveSelectionItemType]: string[];
@@ -1 +1,2 @@
1
+ export * from './activeSelectionData.hooks';
1
2
  export * from './activeSelectionStore';
@@ -13,7 +13,10 @@ interface Request<T> {
13
13
  isEnabled: boolean;
14
14
  timeToLiveMilliseconds?: number;
15
15
  };
16
+ method?: string;
17
+ body?: BodyInit;
18
+ headerOptions?: Record<string, unknown>;
16
19
  options?: RequestOptions<T>;
17
20
  }
18
- export declare function request<T>({ cache, url, abortSignal, options }: Request<T>): Promise<T | undefined>;
21
+ export declare function request<T>({ cache, url, abortSignal, options, headerOptions, method, body }: Request<T>): Promise<T | undefined>;
19
22
  export {};
@@ -0,0 +1,14 @@
1
+ import { TagSummaryDto } from '@equinor/echo-search';
2
+ /**
3
+ * Get a list of tags from STID.
4
+ * @param {string} args.instCode Plant instCode
5
+ * @param {string[]} args.tagNos Tag ids to query for
6
+ * @param {boolean} args.enableCache With this enabled, the call will be cached in memory and
7
+ * will be fetched from there instead of getting it from the API
8
+ * @returns {TagSummaryDto[]}
9
+ */
10
+ export declare function getTagsFromStidApi(args: {
11
+ instCode: string;
12
+ tagNos: string[];
13
+ enableCache?: boolean;
14
+ }): Promise<TagSummaryDto[]>;
@@ -1 +1,2 @@
1
1
  export * from './toastActions';
2
+ export * from './legendActions';
@@ -0,0 +1,6 @@
1
+ import { LegendStatusesChangedEvent } from '../../types/eventTypes';
2
+ /**
3
+ * Emit a statuses for item type event on echo core eventHub with a specific payload.
4
+ * @param {LegendStatusesChangedEvent} payload
5
+ */
6
+ export declare const emitLegendStatusChangedEvent: (payload: LegendStatusesChangedEvent) => void;
@@ -1,6 +1,6 @@
1
1
  export type { FullScreenModeEvent } from './fullScreenModeEvent';
2
2
  export type { LeftPanelNavigationUpdateEvent } from './leftPanelNavigationUpdateEvent';
3
- export type { LegendChangedEvent } from './legendEvent';
3
+ export type { LegendChangedEvent, LegendStatusesChangedEvent } from './legendEvent';
4
4
  export type { PlantEvent } from './plantEvent';
5
5
  export type { SearchItemDetailsClosedEvent } from './searchDetailsContainerEvents';
6
6
  export type { ToasterEvent } from './toasterEvent';
@@ -1,4 +1,7 @@
1
- import { LegendType } from '../../feature/legend/legend';
1
+ import { LegendItemStatus, LegendType } from '../../feature/legend/legend';
2
2
  export interface LegendChangedEvent {
3
3
  newLegendType: LegendType;
4
4
  }
5
+ export interface LegendStatusesChangedEvent {
6
+ itemIdToStatusMap: Record<string, LegendItemStatus>;
7
+ }
@@ -0,0 +1 @@
1
+ export declare function dateToStringOrEmptyWithoutTime(date: Date | string | undefined): string;
@@ -0,0 +1 @@
1
+ export default function handleErrors(exception: Error | unknown): void;
@@ -3,3 +3,4 @@ export * from './plantInfo';
3
3
  export * from './previousUtils';
4
4
  export * from './searchUtil';
5
5
  export * from './stringUtils';
6
+ export * from './formatTimeHelpers';