@equinor/echo-framework 0.24.2 → 0.25.1

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 (39) hide show
  1. package/{47deeba42768c5d1.svg → 063009f06499d102.svg} +8 -8
  2. package/README.md +28 -28
  3. package/{1bd97dd2170d0f64.svg → f4c85313e79b1662.svg} +850 -850
  4. package/index.cjs.d.ts +2 -2
  5. package/index.cjs.js +3 -3
  6. package/package.json +1 -1
  7. package/src/index.d.ts +2 -0
  8. package/src/lib/components/fullScreenButtons/FullScreenModeButton.d.ts +3 -1
  9. package/src/lib/components/notificationListItem/types/types.d.ts +1 -0
  10. package/src/lib/components/plantSelector/plantSelectorHelper.d.ts +0 -1
  11. package/src/lib/components/prepview/workorder/header/mapWorkOrderDetailsToWorkOrderItem.d.ts +2 -2
  12. package/src/lib/components/workOrderListItem/WorkOrderListItem.d.ts +1 -14
  13. package/src/lib/components/workOrderListItem/components/BasicFinishDate.d.ts +2 -0
  14. package/src/lib/components/workOrderListItem/components/ExtraIcons.d.ts +2 -0
  15. package/src/lib/components/workOrderListItem/components/OperationDateRange.d.ts +2 -0
  16. package/src/lib/components/workOrderListItem/components/PM01HeaderData.d.ts +2 -0
  17. package/src/lib/components/workOrderListItem/components/PM02HeaderData.d.ts +2 -0
  18. package/src/lib/components/workOrderListItem/components/WorkOrderHeaderDate.d.ts +2 -0
  19. package/src/lib/components/workOrderListItem/types/types.d.ts +55 -0
  20. package/src/lib/components/workOrderListItem/utils/dates.d.ts +1 -0
  21. package/src/lib/feature/globalSelection/globalSelection.api.d.ts +2 -1
  22. package/src/lib/feature/globalSelection/globalSelectionStore/actions/addItemsToSelectionFactory.d.ts +4 -1
  23. package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts +1 -1
  24. package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStoreHelpers.d.ts +0 -5
  25. package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/actions/selectionTree.action.types.d.ts +7 -3
  26. package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/selectionTree.store.types.d.ts +4 -4
  27. package/src/lib/feature/openItemsIn3d/components/plantNoSelectionDialog/plantNoRadioList.d.ts +9 -0
  28. package/src/lib/feature/openItemsIn3d/{plantNoSelectionDialog.d.ts → components/plantNoSelectionDialog/plantNoSelectionDialog.d.ts} +1 -1
  29. package/src/lib/feature/openItemsIn3d/logic/getPlant.d.ts +3 -0
  30. package/src/lib/feature/workOrder/WorkOrder.d.ts +5 -0
  31. package/src/lib/feature/workOrder/api/api-prepview-workOrder.d.ts +7 -0
  32. package/src/lib/feature/workOrder/components/WorkOrderItemDetails.d.ts +6 -0
  33. package/src/lib/feature/workOrder/components/WorkOrderItemHeader.d.ts +6 -0
  34. package/src/lib/feature/workOrder/hooks/useOpenWorkOrder.d.ts +9 -0
  35. package/src/lib/feature/workOrder/hooks/usePrepviewWorkOrder.d.ts +6 -0
  36. package/src/lib/feature/workOrder/types/workOrder.d.ts +70 -0
  37. package/src/lib/feature/workOrder/utils/workOrderUtils.d.ts +3 -0
  38. package/src/lib/services/echopediaAnalyticsModule/echopediaAnalyticsModule.d.ts +1 -0
  39. /package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/actions/{createAddItemsToSelectionTreeFactory.d.ts → addItemsToSelectionTreeFactory.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-framework",
3
- "version": "0.24.2",
3
+ "version": "0.25.1",
4
4
  "peerDependencies": {
5
5
  "@equinor/echo-base": ">= 0.7.5 < 0.8.0",
6
6
  "@equinor/echo-components": ">= 0.12.4 < 0.13.0",
package/src/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export { useFetchPlantInfo } from './lib/components/requestAccess/hooks/fetchPla
9
9
  export { RequestProCoSysAccess } from './lib/components/requestAccess/RequestProCoSysAccess';
10
10
  export { RequestSapAccess } from './lib/components/requestAccess/RequestSapAccess';
11
11
  export { WorkOrderListItem } from './lib/components/workOrderListItem';
12
+ export type { WorkOrderListItemData } from './lib/components/workOrderListItem/types/types';
12
13
  export * from './lib/coreApplication';
13
14
  export { fetchEquipmentFromApi } from './lib/feature/equipment/api/api-equipmentWithMeasuringPoints';
14
15
  export * from './lib/feature/equipment/index';
@@ -27,6 +28,7 @@ export * from './lib/feature/measuringPoint/index';
27
28
  export * from './lib/feature/measuringPoint/types/measuringPoint';
28
29
  export * from './lib/feature/openItemsIn3d';
29
30
  export { createEcho3dInternalLink } from './lib/feature/openItemsIn3d/logic/createEcho3dInternalLink';
31
+ export { useOpenWorkOrder } from './lib/feature/workOrder/hooks/useOpenWorkOrder';
30
32
  export { WorkOrderContent } from './lib/feature/workOrder/WorkOrderContent';
31
33
  export { RegisteredHookName } from './lib/hooks/hookLibrary';
32
34
  export { useCloseActiveTopMenuAtBreakPoint } from './lib/hooks/useCloseActiveTopMenuAtBreakPoint';
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const FullScreenModeButton: React.FC;
2
+ export declare const FullScreenModeButton: React.FC<{
3
+ toolTipDisabled?: boolean;
4
+ }>;
@@ -8,4 +8,5 @@ export interface NotificationListItemProps {
8
8
  isHeader?: boolean;
9
9
  colorMap?: ColorMap;
10
10
  className?: string;
11
+ isHighlightable?: boolean;
11
12
  }
@@ -2,4 +2,3 @@ import { Plant } from '@equinor/echo-core';
2
2
  export type MinimalPlant = Pick<Plant, 'instCode' | 'description' | 'sapPlantId'>;
3
3
  export declare function filterPlant(plant: MinimalPlant, inputValue: string): boolean;
4
4
  export declare function formatPlantOptionText(plantName: string, plantId: string | null): string;
5
- export declare function handleAutoSelectOnFocus(autocompleteRef: React.RefObject<HTMLDivElement>): void;
@@ -1,3 +1,3 @@
1
- import { WorkOrderItem } from '@equinor/echo-components';
1
+ import { WorkOrderListItemData } from '../../../workOrderListItem/types/types';
2
2
  import { WorkOrderDetails } from '../../types';
3
- export declare function mapWorkOrderDetailsToWorkOrderItem(details: WorkOrderDetails): WorkOrderItem;
3
+ export declare function mapWorkOrderDetailsToWorkOrderItem(details: WorkOrderDetails): WorkOrderListItemData;
@@ -1,16 +1,3 @@
1
- import React from 'react';
2
- import { ColorMap, WorkOrderDateType, WorkOrderItem } from '@equinor/echo-components';
3
- export interface WorkOrderListItemProps {
4
- workOrder: WorkOrderItem;
5
- onCardClick?: () => void;
6
- itemAction?: React.ReactNode;
7
- isHeader?: boolean;
8
- colorMap?: ColorMap;
9
- iconName?: string;
10
- workOrderDateType?: WorkOrderDateType;
11
- className?: string;
12
- cardClassName?: string;
13
- footer?: React.ReactNode;
14
- }
1
+ import { WorkOrderListItemProps } from './types/types';
15
2
  declare function WorkOrderListItem(props: Readonly<WorkOrderListItemProps>): import("react/jsx-runtime").JSX.Element;
16
3
  export { WorkOrderListItem };
@@ -0,0 +1,2 @@
1
+ import { BasicFinishDateProps } from '../types/types';
2
+ export declare function BasicFinishDate(props: Readonly<BasicFinishDateProps>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ExtraIconsProps } from '../types/types';
2
+ export declare function ExtraIcons(props: Readonly<ExtraIconsProps>): import("react/jsx-runtime").JSX.Element | undefined;
@@ -0,0 +1,2 @@
1
+ import { OperationDateRangeProps } from '../types/types';
2
+ export declare function OperationDateRange(props: Readonly<OperationDateRangeProps>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { PM01HeaderDataProps } from '../types/types';
2
+ export declare function PM01HeaderData(props: Readonly<PM01HeaderDataProps>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { PM02HeaderDataProps } from '../types/types';
2
+ export declare function PM02HeaderData(props: Readonly<PM02HeaderDataProps>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { WorkOrderListItemProps } from '../types/types';
2
+ export declare function WorkOrderHeaderDate({ workOrder, workOrderDateType }: WorkOrderListItemProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,55 @@
1
+ import { ColorMap, WorkOrderDateType } from '@equinor/echo-components';
2
+ export interface WorkOrderListItemData {
3
+ description: string;
4
+ id: string;
5
+ isActive: boolean;
6
+ orderType: string;
7
+ workCenterId: string;
8
+ recordTypeIds: string[] | undefined;
9
+ hasB30Document: boolean | undefined;
10
+ hasPrts: boolean | undefined;
11
+ basicFinishDateStatus: string | undefined;
12
+ basicFinishDateTime: Date | undefined;
13
+ earlyFinishDate: Date | undefined;
14
+ earlyStartDate: Date | undefined;
15
+ maintenancePlanDate: Date | undefined;
16
+ maintenancePlant: string | undefined;
17
+ operationId: string | undefined;
18
+ planningPlant: string | undefined;
19
+ requiredEndDateStatus: string | undefined;
20
+ requiredEndDateTime: Date | undefined;
21
+ }
22
+ export interface WorkOrderListItemProps {
23
+ workOrder: WorkOrderListItemData;
24
+ onCardClick?: () => void;
25
+ itemAction?: React.ReactNode;
26
+ isHeader?: boolean;
27
+ colorMap?: ColorMap;
28
+ iconName?: string;
29
+ workOrderDateType?: WorkOrderDateType;
30
+ className?: string;
31
+ cardClassName?: string;
32
+ footer?: React.ReactNode;
33
+ isHighlightable?: boolean;
34
+ }
35
+ export type BasicFinishDateProps = {
36
+ readonly basicFinishDateStatus?: string;
37
+ readonly basicFinishDateTime?: Date;
38
+ };
39
+ export type OperationDateRangeProps = {
40
+ readonly earlyStartDate?: Date;
41
+ readonly earlyFinishDate?: Date;
42
+ };
43
+ export type PM02HeaderDataProps = {
44
+ readonly maintenancePlanDate?: Date;
45
+ };
46
+ export type PM01HeaderDataProps = {
47
+ readonly requiredEndDateStatus: string;
48
+ readonly requiredEndDateTime: Date;
49
+ };
50
+ export type ExtraIconsProps = {
51
+ readonly hasPrts?: boolean;
52
+ readonly operationId?: string;
53
+ readonly recordTypeIds?: string[];
54
+ readonly hasB30Document?: boolean;
55
+ };
@@ -0,0 +1 @@
1
+ export declare function getFullLocaleDatetime(date: Date | undefined): string | undefined;
@@ -109,7 +109,7 @@ export declare const globalSelectionApi: Readonly<{
109
109
  */
110
110
  addItems: (args: {
111
111
  itemIds: GlobalSelectionTypes.ItemId[];
112
- } & import("./selectionMenu/selectionTreeStore/actions/selectionTree.action.types").AddByLabel) => void;
112
+ } & import("./selectionMenu/selectionTreeStore/actions/selectionTree.action.types").AddByGroupIdAndLabel) => void;
113
113
  }>;
114
114
  search: {
115
115
  /**
@@ -199,6 +199,7 @@ export declare const globalSelectionApi: Readonly<{
199
199
  */
200
200
  clearSelection: () => void;
201
201
  createGroup: (args: {
202
+ groupId?: string;
202
203
  label: string;
203
204
  subLabel: string;
204
205
  }) => import("dist/libs/echo-utils/src").Guid;
@@ -1,7 +1,10 @@
1
1
  import { ResultArray } from '@equinor/echo-search';
2
2
  import { StoreApi } from 'zustand';
3
3
  import { GlobalSelectionItemType, GlobalSelectionItemTypeToDataMap, GlobalSelectionStore, GlobalSelectionTypes, SelectionItemTypeToItemIdMap } from '../globalSelectionStore.types';
4
- type FetchFunction<T, U> = (itemIds: Readonly<U[]>) => Promise<ResultArray<T>[]>;
4
+ type FetchFunction<T, U> = (itemIds: Readonly<U[]>) => Promise<{
5
+ result: ResultArray<T>;
6
+ itemIdsUsed: U[];
7
+ }[]>;
5
8
  type NullItemGenerator<T, U> = (itemId: U) => T;
6
9
  type SetFunction = (set: (state: GlobalSelectionStore) => void, shouldReplace?: boolean | undefined, action?: string) => void;
7
10
  export declare function addItemsToSelectionFactory<T extends GlobalSelectionItemType>(args: {
@@ -33,7 +33,7 @@ export type GlobalSelectionObject = {
33
33
  export interface GlobalSelectionStoreData {
34
34
  lists: GlobalSelectionObject;
35
35
  }
36
- export type SelectionItemSystemStatus = 'isLoading' | 'notFound' | 'loadedSuccessfully';
36
+ export type SelectionItemSystemStatus = 'isLoading' | 'notFound' | 'loadedSuccessfully' | 'error';
37
37
  export interface GlobalSelectionMetaData {
38
38
  color: string;
39
39
  isHiddenByUser: boolean;
@@ -15,11 +15,6 @@ import { GlobalSelectionItemType, GlobalSelectionTypes, SelectionItemSystemStatu
15
15
  export declare function convertGlobalSelectionItemsToPlantTagPairs(): Promise<PlantAndTagForOpenIn3d[]>;
16
16
  export declare function toGlobalSelectionItem<T extends GlobalSelectionTypes.ItemTypeToDataMap[K], K extends GlobalSelectionItemType>(item: T, type: K, systemStatus: SelectionItemSystemStatus): GlobalSelectionTypes.GenericItem<K>;
17
17
  export declare function toGlobalSelectionItems<T extends GlobalSelectionTypes.ItemTypeToDataMap[K], K extends GlobalSelectionItemType>(items: T[], type: K, systemStatus: SelectionItemSystemStatus): GlobalSelectionTypes.GenericItem<K>[];
18
- export declare function finalizeLoadStateByItemType<T extends GlobalSelectionItemType>(args: {
19
- itemType: GlobalSelectionItemType;
20
- state: GlobalSelectionTypes.Store;
21
- itemDataToStore: GlobalSelectionTypes.ItemTypeToDataMap[T][];
22
- }): void;
23
18
  export declare function setNotFoundStatusByItemIds(args: {
24
19
  itemType: GlobalSelectionItemType;
25
20
  state: GlobalSelectionTypes.Store;
@@ -1,7 +1,11 @@
1
1
  import { ResultArray } from '@equinor/echo-search';
2
2
  import { GlobalSelectionItemType, GlobalSelectionItemTypeToDataMap, GlobalSelectionTypes, SelectionItemTypeToItemIdMap } from '../../../globalSelectionStore/globalSelectionStore.types';
3
- import { SelectionBase } from '../selectionTree.store.types';
4
- export type AddByLabel = SelectionBase | {
3
+ export type AddByGroupIdAndLabel = {
4
+ groupId?: string;
5
+ label: string;
6
+ subLabel: string;
7
+ } | {
8
+ groupId?: string;
5
9
  label?: undefined;
6
10
  subLabel?: undefined;
7
11
  };
@@ -9,7 +13,7 @@ export type AddItemArgs<ItemIdType extends GlobalSelectionTypes.ItemId> = {
9
13
  itemIds: Readonly<ItemIdType[]>;
10
14
  replaceItems?: boolean;
11
15
  getActionResult?: boolean;
12
- } & AddByLabel;
16
+ } & AddByGroupIdAndLabel;
13
17
  export type AddItemsResponse<T extends GlobalSelectionItemType> = {
14
18
  fetchResults: ResultArray<GlobalSelectionItemTypeToDataMap[T]>[];
15
19
  itemsAdded: Readonly<SelectionItemTypeToItemIdMap[T][]>;
@@ -1,6 +1,6 @@
1
1
  import { Guid } from '@equinor/echo-utils';
2
2
  import { GlobalSelectionItemType, GlobalSelectionTypes, SelectionItemTypeToItemIdMap } from '../../globalSelectionStore/globalSelectionStore.types';
3
- import { AddByLabel, AddItemArgs, AddItemsResponse, SelectionTreeActionResult } from './actions/selectionTree.action.types';
3
+ import { AddByGroupIdAndLabel, AddItemArgs, AddItemsResponse, SelectionTreeActionResult } from './actions/selectionTree.action.types';
4
4
  export declare enum GlobalSelectionCategoryId {
5
5
  Tags = "DEFAULT_TAG_LIST_ID",
6
6
  WorkOrders = "DEFAULT_WORK_ORDER_LIST_ID",
@@ -13,6 +13,7 @@ export type SelectionTreeItem<T extends GlobalSelectionItemType> = {
13
13
  readonly type: T;
14
14
  };
15
15
  export interface SelectionBase {
16
+ readonly groupId: Guid;
16
17
  readonly label: string;
17
18
  readonly subLabel: string;
18
19
  }
@@ -27,11 +28,9 @@ export interface PersistedSelectionCategory {
27
28
  readonly items: SelectionTreeItem<GlobalSelectionItemType>[];
28
29
  }
29
30
  export interface SelectionGroup extends SelectionBase {
30
- readonly id: Guid;
31
31
  readonly categories: SelectionCategory[];
32
32
  }
33
33
  export interface PersistedSelectionGroup extends SelectionBase {
34
- readonly id: Guid;
35
34
  readonly categories: PersistedSelectionCategory[];
36
35
  }
37
36
  export interface SelectionTreeData {
@@ -41,12 +40,13 @@ export interface SelectionTreeStore {
41
40
  groups: SelectionGroup[];
42
41
  addItems: (args: {
43
42
  itemIds: GlobalSelectionTypes.ItemId[];
44
- } & AddByLabel) => void;
43
+ } & AddByGroupIdAndLabel) => void;
45
44
  addTags: (args: AddItemArgs<GlobalSelectionTypes.TagId>) => AddTagsReturnType;
46
45
  addWorkOrders: (args: AddItemArgs<GlobalSelectionTypes.WorkOrderId>) => AddWorkOrdersReturnType;
47
46
  addEquipments: (args: AddItemArgs<GlobalSelectionTypes.EquipmentId>) => AddEquipmentsReturnType;
48
47
  addMeasuringPoints: (args: AddItemArgs<GlobalSelectionTypes.MeasuringPointId>) => AddMeasuringPointsReturnType;
49
48
  createGroup: (args: {
49
+ groupId?: string;
50
50
  label: string;
51
51
  subLabel: string;
52
52
  }) => Guid;
@@ -0,0 +1,9 @@
1
+ import { Plant3dInfo, Plant3dInfoCount } from '../../logic/openItemsIn3d.utils';
2
+ interface PlantNoRadioListProps {
3
+ title: string;
4
+ items: Plant3dInfoCount[];
5
+ selectedPlant: Plant3dInfo | undefined;
6
+ onSelect: (selectedPlant: Plant3dInfoCount) => void;
7
+ }
8
+ export declare const PlantNoRadioList: React.FC<PlantNoRadioListProps>;
9
+ export {};
@@ -1,4 +1,4 @@
1
- import { Plant3dInfo, PlantAndTagForOpenIn3d } from './logic/openItemsIn3d.utils';
1
+ import { Plant3dInfo, PlantAndTagForOpenIn3d } from '../../logic/openItemsIn3d.utils';
2
2
  interface PlantNoSelectionDialogProps {
3
3
  getItems: () => Promise<PlantAndTagForOpenIn3d[]>;
4
4
  onPlantSelectionConfirmed: (selectedPlantNo: Plant3dInfo) => void;
@@ -0,0 +1,3 @@
1
+ import { Plant } from '@equinor/echo-core';
2
+ import { Plant3dInfo } from './openItemsIn3d.utils';
3
+ export declare function getPlantFromPlant3dInfo(selectedPlant: Plant3dInfo): Promise<Plant | undefined>;
@@ -0,0 +1,5 @@
1
+ interface WorkOrderProps {
2
+ readonly workOrderId: string;
3
+ }
4
+ export declare const WorkOrder: React.FC<WorkOrderProps>;
5
+ export {};
@@ -0,0 +1,7 @@
1
+ import { PrepViewWorkOrder, PrepViewWorkOrderDto } from '../types/workOrder';
2
+ interface WorkOrderRequest {
3
+ readonly workOrderId: string;
4
+ }
5
+ export declare const getPrepviewWorkOrderDetails: (args: WorkOrderRequest) => Promise<PrepViewWorkOrder>;
6
+ export declare const cleanupPrepviewWorkOrder: (workOrder: PrepViewWorkOrderDto) => PrepViewWorkOrder;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { PrepViewWorkOrder } from '../types/workOrder';
2
+ interface WorkOrderItemDetailsProps {
3
+ readonly data: PrepViewWorkOrder;
4
+ }
5
+ export declare const WorkOrderItemDetails: (props: WorkOrderItemDetailsProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { PrepViewWorkOrder } from '../types/workOrder';
2
+ interface WorkOrderHeaderProps {
3
+ readonly data: PrepViewWorkOrder;
4
+ }
5
+ export declare const WorkOrderItemHeader: (props: WorkOrderHeaderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @deprecated Don't use this hook, it is under development and not ready for production use.
3
+ * Use openWorkOrderDetails() instead.
4
+ */
5
+ export declare function useOpenWorkOrder(): (args: {
6
+ workOrderId: string;
7
+ panelKey?: string;
8
+ keepLastNavigationItem?: boolean;
9
+ }) => void;
@@ -0,0 +1,6 @@
1
+ import { PrepViewWorkOrder } from '../types/workOrder';
2
+ export declare function usePrepviewWorkOrder(workOrderId: string): {
3
+ isLoading: boolean;
4
+ error: Error | null;
5
+ workOrder?: PrepViewWorkOrder;
6
+ };
@@ -0,0 +1,70 @@
1
+ /**
2
+ * TODO: This should be a common type/enum,
3
+ * See endDateStatus.ts in echo-components.
4
+ * They are the same but with different case
5
+ */
6
+ type ExpirationStatus = 'Completed' | 'Expired' | 'WithinSevenDays' | 'EightDaysToOneMonth' | 'OneToThreeMonths' | 'ThreeToSixMonths' | 'SixToTwelveMonths' | 'InMoreThanOneYear' | 'Unknown';
7
+ type WorkOrderUserStatus = 'PREP' | 'PRCO' | 'RDEX' | 'STRT' | 'RDOP' | 'Other';
8
+ interface ContentReferencesDto {
9
+ label?: string | null;
10
+ typeLabel?: string | null;
11
+ }
12
+ export interface PrepViewWorkOrderDto {
13
+ id: string;
14
+ plantId?: string | null;
15
+ tagId?: string | null;
16
+ tagPlantId?: string | null;
17
+ tagCategory?: string | null;
18
+ tagCategoryId?: string | null;
19
+ orderType: string;
20
+ activeStatusIds: string;
21
+ userStatus: WorkOrderUserStatus;
22
+ isActive: boolean;
23
+ personResponsible?: string | null;
24
+ plannerGroupId?: string | null;
25
+ workCenterId?: string | null;
26
+ locationId?: string | null;
27
+ changedDateTime?: string | null;
28
+ createdDateTime?: string | null;
29
+ requiredEndDateTime?: string | null;
30
+ requiredEndDateStatus: ExpirationStatus;
31
+ requiredEndDateStatusDescription: string;
32
+ basicStartDateTime?: string | null;
33
+ basicFinishDateTime?: string | null;
34
+ basicFinishDateStatus?: ExpirationStatus;
35
+ basicFinishDateStatusDescription?: string | null;
36
+ maintenancePlanDate?: string | null;
37
+ maintenancePlantId?: string | null;
38
+ maintenancePlant?: string | null;
39
+ planningPlantId?: string | null;
40
+ planningPlant?: string | null;
41
+ priorityId?: string | null;
42
+ priority?: string | null;
43
+ revisionId?: string | null;
44
+ equipmentId?: string | null;
45
+ systemId?: string | null;
46
+ system?: string | null;
47
+ description?: string | null;
48
+ longText?: string | null;
49
+ instCode?: string | null;
50
+ sortField?: string | null;
51
+ maintenancePlantReference?: ContentReferencesDto;
52
+ planningPlantReference?: ContentReferencesDto;
53
+ }
54
+ export interface PrepViewWorkOrder {
55
+ id: string;
56
+ description: string;
57
+ orderType: string;
58
+ isActive: boolean;
59
+ workCenterId: string;
60
+ basicFinishDateStatus?: ExpirationStatus;
61
+ requiredEndDateTime?: string;
62
+ requiredEndDateStatus?: ExpirationStatus;
63
+ maintenancePlanDate?: string;
64
+ basicFinishDateTime?: string;
65
+ basicStartDateTime?: string;
66
+ planningPlant?: string;
67
+ maintenancePlant?: string;
68
+ plantId?: string;
69
+ }
70
+ export {};
@@ -0,0 +1,3 @@
1
+ import { WorkOrderListItemData } from '../../../components/workOrderListItem/types/types';
2
+ import { PrepViewWorkOrder } from '../types/workOrder';
3
+ export declare function mapWorkOrderDetailsToWorkOrderItem(details: PrepViewWorkOrder): WorkOrderListItemData;
@@ -1 +1,2 @@
1
1
  export declare const echopediaAnalyticsModule: import("@equinor/echo-core").AnalyticsModule;
2
+ export declare function trackEventOpenExternalLink(linkTo: string): void;