@equinor/echo-framework 0.18.6 → 0.18.7-beta-0
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.
- package/index.cjs.js +1 -1
- package/package.json +1 -1
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/components/listItem/listItem.d.ts +2 -0
- package/src/lib/components/listItemAdditionalInfoRow/listItemAdditionalInfoRow.d.ts +7 -0
- package/src/lib/components/prepview/api/api.d.ts +13 -7
- package/src/lib/components/prepview/api/resources.d.ts +9 -2
- package/src/lib/components/prepview/common/additionalInformation/AdditionalDetails.d.ts +2 -3
- package/src/lib/components/prepview/common/additionalInformation/tabsPanels/NotificationPanels.d.ts +7 -0
- package/src/lib/components/prepview/common/additionalInformation/tabsPanels/TabsPanels.d.ts +2 -3
- package/src/lib/components/prepview/common/additionalInformation/tabsPanels/WorkOrderPanels.d.ts +7 -0
- package/src/lib/components/prepview/notification/{index.d.ts → Notification.d.ts} +1 -2
- package/src/lib/components/prepview/notification/header/NotificationHeader.d.ts +2 -2
- package/src/lib/components/prepview/panels/attachments/AttachmentItem.d.ts +8 -0
- package/src/lib/components/prepview/panels/attachments/AttachmentTable.d.ts +8 -0
- package/src/lib/components/prepview/panels/attachments/Attachments.d.ts +7 -4
- package/src/lib/components/prepview/panels/history/TagHistory.d.ts +3 -5
- package/src/lib/components/prepview/panels/history/TagHistoryGroup.d.ts +11 -0
- package/src/lib/components/prepview/panels/history/horizontalView/HorizontalTagHistory.d.ts +4 -4
- package/src/lib/components/prepview/panels/history/items/Items.d.ts +2 -2
- package/src/lib/components/prepview/panels/history/items/PunchItem.d.ts +2 -2
- package/src/lib/components/prepview/panels/objects/HorizontalObjects.d.ts +6 -0
- package/src/lib/components/prepview/panels/objects/Objects.d.ts +2 -3
- package/src/lib/components/prepview/panels/objects/VerticalObject.d.ts +6 -0
- package/src/lib/components/prepview/panels/operations/OperationItem.d.ts +6 -0
- package/src/lib/components/prepview/panels/operations/OperationTable.d.ts +6 -0
- package/src/lib/components/prepview/panels/operations/Operations.d.ts +1 -3
- package/src/lib/components/prepview/panels/risk/Risk.d.ts +3 -3
- package/src/lib/components/prepview/panels/risk/RiskItems.d.ts +6 -0
- package/src/lib/components/prepview/panels/risk/RiskTable.d.ts +6 -0
- package/src/lib/components/prepview/panels/tagDocumentRefs/TagDocumentRefs.d.ts +3 -3
- package/src/lib/components/prepview/panels/tagInformation/TagInformation.d.ts +3 -4
- package/src/lib/components/prepview/punch/{index.d.ts → Punch.d.ts} +2 -2
- package/src/lib/components/prepview/types/index.d.ts +2 -7
- package/src/lib/components/prepview/types/notification.d.ts +4 -51
- package/src/lib/components/prepview/types/punch.d.ts +2 -12
- package/src/lib/components/prepview/types/shared.d.ts +130 -0
- package/src/lib/components/prepview/types/workorder.d.ts +49 -81
- package/src/lib/components/prepview/utils/documents.d.ts +1 -0
- package/src/lib/components/prepview/utils/workorder.d.ts +0 -3
- package/src/lib/components/prepview/workorder/{index.d.ts → WorkOrder.d.ts} +1 -2
- package/src/lib/components/prepview/workorder/details/DetailsWorkOrder.d.ts +2 -2
- package/src/lib/components/prepview/workorder/header/WorkOrderHeader.d.ts +2 -2
- package/src/lib/feature/equipment/components/equipmentItemDetails/equipmentItemDetails.d.ts +2 -2
- package/src/lib/feature/equipment/utils/equipmentUtils.d.ts +17 -4
- package/src/lib/feature/measuringPoint/components/index.d.ts +1 -0
- package/src/lib/feature/measuringPoint/components/measuringPointDetails/lastReportedFields.d.ts +6 -0
- package/src/lib/feature/measuringPoint/components/measuringPointDetails/measuringPointHistoryList.d.ts +7 -0
- package/src/lib/feature/measuringPoint/components/measuringPointItem.d.ts +1 -2
- package/src/lib/feature/measuringPoint/index.d.ts +1 -1
- package/src/lib/types/searchItemDetailsType.d.ts +2 -1
- package/src/lib/utils/index.d.ts +1 -0
- package/src/lib/components/prepview/api/attachment.d.ts +0 -2
- package/src/lib/components/prepview/panels/history/group/TagHistoryGroup.d.ts +0 -10
- package/src/lib/components/prepview/panels/history/group/index.d.ts +0 -1
- package/src/lib/components/prepview/types/attachment.d.ts +0 -7
- package/src/lib/components/prepview/types/common.d.ts +0 -50
- package/src/lib/components/prepview/types/document.d.ts +0 -13
- package/src/lib/components/prepview/types/operation.d.ts +0 -15
- package/src/lib/components/prepview/types/safety.d.ts +0 -21
- package/src/lib/components/prepview/types/tag.d.ts +0 -28
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@ export * from './fullScreenButtons';
|
|
|
11
11
|
export * from './labelledValueGrid';
|
|
12
12
|
export * from './lazyLoading';
|
|
13
13
|
export { ListItem } from './listItem/listItem';
|
|
14
|
+
export * from './listItemAdditionalInfoRow/listItemAdditionalInfoRow';
|
|
14
15
|
export * from './mediator';
|
|
15
16
|
export { OpenIn3dWarningDialog } from './openIn3d/OpenIn3dWarningDialog';
|
|
16
17
|
export { PlantNoSelectionDialog } from './openIn3d/PlantNoSelectionDialog';
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface ListItemProps {
|
|
3
3
|
title: string;
|
|
4
|
+
showIcon?: boolean;
|
|
4
5
|
iconName?: string;
|
|
5
6
|
iconColor?: string;
|
|
6
7
|
iconBackgroundColor?: string;
|
|
7
8
|
visualText?: string;
|
|
8
9
|
description?: string;
|
|
9
10
|
additionalInfo?: JSX.Element;
|
|
11
|
+
label?: JSX.Element;
|
|
10
12
|
}
|
|
11
13
|
export declare const ListItem: React.FC<ListItemProps>;
|
|
12
14
|
export {};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
1
|
+
import { NotificationDetails, PrepviewAttachment, PrepviewDocumentGroup, PrepviewHistory, PrepviewObject, PrepviewOperation, PrepviewSafety, PrepviewTagInformation, PunchDetails, WorkOrderDetails } from '../types';
|
|
2
|
+
export declare function getWorkOrderDetails(workOrderId: string): Promise<WorkOrderDetails>;
|
|
3
|
+
export declare function getWorkType(workOrderId: string): Promise<string[]>;
|
|
4
|
+
export declare function getNotificationDetails(notificationId: string): Promise<NotificationDetails>;
|
|
5
|
+
export declare function getPunchDetails(instCode: string, punchId: string): Promise<PunchDetails>;
|
|
6
|
+
export declare function getTagInformation(itemId: string, isWorkOrder?: boolean): Promise<PrepviewTagInformation>;
|
|
7
|
+
export declare function getAttachments(itemId: string, isWorkOrder?: boolean): Promise<PrepviewAttachment[]>;
|
|
8
|
+
export declare function getAttachmentFile(type: string, id: string, attachment: PrepviewAttachment, isWorkOrder?: boolean): Promise<Blob>;
|
|
9
|
+
export declare function getDocuments(itemId: string, isWorkOrder?: boolean): Promise<PrepviewDocumentGroup[]>;
|
|
10
|
+
export declare function getHistory(itemId: string, isWorkOrder?: boolean): Promise<PrepviewHistory>;
|
|
11
|
+
export declare function getSafetyCards(itemId: string, isWorkOrder?: boolean): Promise<PrepviewSafety[]>;
|
|
12
|
+
export declare function getOperations(workOrderId: string): Promise<PrepviewOperation[]>;
|
|
13
|
+
export declare function getObjects(workOrderId: string): Promise<PrepviewObject[]>;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export declare function getWorkOrder(workOrderId: string): string;
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function getWorkTypeUrl(workOrderId: string): string;
|
|
3
|
+
export declare function getNotification(maintenanceRecordId: string): string;
|
|
3
4
|
export declare function getPunch(instCode: string, punchId: string): string;
|
|
4
|
-
export declare function
|
|
5
|
+
export declare function getTagInformation(itemId: string, isWorkOrder?: boolean): string;
|
|
6
|
+
export declare function getAttachments(itemId: string, isWorkOrder?: boolean): string;
|
|
5
7
|
export declare function getWorkorderAttachmentFile(orderTypeId: string, workorderId: string, attachmentId: string): string;
|
|
6
8
|
export declare function getNotificationAttachmentFile(maintenanceRecordTypeId: string, maintenanceRecordId: string, attachmentId: string): string;
|
|
9
|
+
export declare function getDocuments(itemId: string, isWorkOrder?: boolean): string;
|
|
10
|
+
export declare function getHistory(itemId: string, isWorkOrder?: boolean): string;
|
|
11
|
+
export declare function getSafetyCards(itemId: string, isWorkOrder?: boolean): string;
|
|
12
|
+
export declare function getOperations(workOrderId: string): string;
|
|
13
|
+
export declare function getObjects(workOrderId: string): string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NotificationDetails, WorkOrderDetails } from '../../types';
|
|
2
2
|
interface Props {
|
|
3
3
|
workOrderDetails?: WorkOrderDetails;
|
|
4
4
|
notificationDetails?: NotificationDetails;
|
|
5
|
-
additionalDetails: AdditionalDetailsDto;
|
|
6
5
|
closePanel: () => void;
|
|
7
6
|
}
|
|
8
|
-
declare function AdditionalDetails({ workOrderDetails, notificationDetails,
|
|
7
|
+
declare function AdditionalDetails({ workOrderDetails, notificationDetails, closePanel, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export { AdditionalDetails };
|
package/src/lib/components/prepview/common/additionalInformation/tabsPanels/NotificationPanels.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NotificationDetails } from '../../../types';
|
|
2
|
+
interface NotificationPanelsProps {
|
|
3
|
+
details: NotificationDetails;
|
|
4
|
+
closePanel: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare function NotificationPanels({ details, closePanel }: NotificationPanelsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { NotificationPanels };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NotificationDetails, WorkOrderDetails } from '../../../types';
|
|
3
3
|
interface Props {
|
|
4
4
|
workOrderDetails?: WorkOrderDetails;
|
|
5
5
|
notificationDetails?: NotificationDetails;
|
|
6
|
-
additionalDetails: AdditionalDetailsDto;
|
|
7
6
|
closePanel: () => void;
|
|
8
7
|
}
|
|
9
|
-
declare function TabsPanels({ workOrderDetails, notificationDetails,
|
|
8
|
+
declare function TabsPanels({ workOrderDetails, notificationDetails, closePanel, }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
10
9
|
interface TabsListProps {
|
|
11
10
|
tabListRef: React.RefObject<HTMLDivElement>;
|
|
12
11
|
}
|
package/src/lib/components/prepview/common/additionalInformation/tabsPanels/WorkOrderPanels.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WorkOrderDetails } from '../../../types';
|
|
2
|
+
interface WorkOrderPanelsProps {
|
|
3
|
+
details: WorkOrderDetails;
|
|
4
|
+
closePanel: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare function WorkOrderPanels({ details, closePanel }: WorkOrderPanelsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { WorkOrderPanels };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { NotificationDetails } from '../../types';
|
|
3
3
|
interface NotificationHeaderProps {
|
|
4
|
-
|
|
4
|
+
notificationDetails: NotificationDetails;
|
|
5
5
|
headerAction?: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
declare function NotificationHeader(
|
|
7
|
+
declare function NotificationHeader({ notificationDetails, headerAction }: NotificationHeaderProps): JSX.Element | null;
|
|
8
8
|
export { NotificationHeader };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PrepviewAttachment } from '../../types';
|
|
2
|
+
interface AttachmentItemProps {
|
|
3
|
+
recordType: string;
|
|
4
|
+
recordId: string;
|
|
5
|
+
attachment: PrepviewAttachment;
|
|
6
|
+
}
|
|
7
|
+
declare function AttachmentItem({ recordType, recordId, attachment, }: AttachmentItemProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { AttachmentItem };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PrepviewAttachment } from '../../types';
|
|
2
|
+
interface AttachmentTableProps {
|
|
3
|
+
recordType: string;
|
|
4
|
+
recordId: string;
|
|
5
|
+
attachments: PrepviewAttachment[];
|
|
6
|
+
}
|
|
7
|
+
declare function AttachmentTable({ recordType, recordId, attachments, }: AttachmentTableProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { AttachmentTable };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import type { PrepviewAttachment } from '../../types';
|
|
2
1
|
interface Props {
|
|
3
|
-
recordType: string;
|
|
4
2
|
recordId: string;
|
|
5
|
-
|
|
3
|
+
recordType: string;
|
|
4
|
+
isWorkOrder?: boolean;
|
|
6
5
|
}
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* AttachmentsPanel
|
|
8
|
+
* this panel requires the user to have maintenance access to show data.
|
|
9
|
+
*/
|
|
10
|
+
declare function AttachmentsPanel({ recordId, recordType, isWorkOrder }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export { AttachmentsPanel };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PrepviewNotification, PrepviewPunch, PrepviewTagHistoryGroup, PrepviewWorkOrder } from '../../types';
|
|
3
2
|
interface HistoryProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
punchGroups: PrepviewTagHistoryGroup<PrepviewPunch>[];
|
|
3
|
+
itemId: string;
|
|
4
|
+
isWorkOrder?: boolean;
|
|
7
5
|
}
|
|
8
|
-
declare function TagHistoryPanel({
|
|
6
|
+
declare function TagHistoryPanel({ itemId, isWorkOrder }: HistoryProps): JSX.Element;
|
|
9
7
|
export { TagHistoryPanel };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NotificationGroup, PunchGroup, WorkOrderGroup } from '../../types';
|
|
3
|
+
import { WorkItemType } from '../../utils';
|
|
4
|
+
interface Props {
|
|
5
|
+
emptyText: string;
|
|
6
|
+
workItemType: WorkItemType;
|
|
7
|
+
groups: NotificationGroup[] | WorkOrderGroup[] | PunchGroup[];
|
|
8
|
+
statusCode: number;
|
|
9
|
+
}
|
|
10
|
+
declare function TagHistoryGroup({ groups, emptyText, workItemType, statusCode, }: Props): JSX.Element;
|
|
11
|
+
export { TagHistoryGroup };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NotificationGroup, PunchGroup, WorkOrderGroup } from '../../../types';
|
|
3
3
|
interface HorizontalTagHistoryProps {
|
|
4
|
-
notificationGroups:
|
|
5
|
-
workOrderGroups:
|
|
6
|
-
punchGroups:
|
|
4
|
+
notificationGroups: NotificationGroup[];
|
|
5
|
+
workOrderGroups: WorkOrderGroup[];
|
|
6
|
+
punchGroups: PunchGroup[];
|
|
7
7
|
}
|
|
8
8
|
declare const HorizontalTagHistory: React.FC<HorizontalTagHistoryProps>;
|
|
9
9
|
export { HorizontalTagHistory };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { HistoricNotificationItem, HistoricWorkOrderItem, HistoricPunchItem } from '../../../types';
|
|
3
3
|
import { WorkItemType } from '../../../utils';
|
|
4
|
-
type Items = Array<
|
|
4
|
+
type Items = Array<HistoricNotificationItem | HistoricWorkOrderItem | HistoricPunchItem>;
|
|
5
5
|
export interface ItemProps {
|
|
6
6
|
itemType: WorkItemType;
|
|
7
7
|
subType: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { HistoricPunchItem } from '../../../types';
|
|
3
3
|
interface PunchProps {
|
|
4
|
-
punch:
|
|
4
|
+
punch: HistoricPunchItem;
|
|
5
5
|
}
|
|
6
6
|
declare const PunchItem: React.FC<PunchProps>;
|
|
7
7
|
export { PunchItem };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ObjectDto } from '../../types';
|
|
2
1
|
interface Props {
|
|
3
|
-
|
|
2
|
+
workOrderId: string;
|
|
4
3
|
}
|
|
5
|
-
declare function ObjectsPanel({
|
|
4
|
+
declare function ObjectsPanel({ workOrderId }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export { ObjectsPanel };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { PrepviewOperation } from '../../types';
|
|
2
1
|
interface Props {
|
|
3
|
-
operations: PrepviewOperation[];
|
|
4
2
|
workOrderId: string;
|
|
5
3
|
}
|
|
6
|
-
declare function OperationsPanel({
|
|
4
|
+
declare function OperationsPanel({ workOrderId }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
5
|
export { OperationsPanel };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PrepviewSafety } from '../../types';
|
|
2
1
|
interface RiskTabProps {
|
|
3
|
-
|
|
2
|
+
itemId: string;
|
|
3
|
+
isWorkOrder?: boolean;
|
|
4
4
|
}
|
|
5
|
-
declare function RiskPanel({
|
|
5
|
+
declare function RiskPanel({ itemId, isWorkOrder }: RiskTabProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export { RiskPanel };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { PrepviewDocumentGroup } from '../../types';
|
|
2
1
|
interface Props {
|
|
3
|
-
|
|
2
|
+
itemId: string;
|
|
4
3
|
tagNo: string;
|
|
4
|
+
isWorkOrder?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare function TagDocumentRefsPanel({
|
|
6
|
+
declare function TagDocumentRefsPanel({ itemId, tagNo, isWorkOrder }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { TagDocumentRefsPanel };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { PrepviewTagInformation } from '../../types';
|
|
2
1
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
itemId: string;
|
|
3
|
+
isWorkOrder?: boolean;
|
|
5
4
|
}
|
|
6
5
|
/**
|
|
7
6
|
* TagInformationPanel
|
|
8
7
|
* this panel requires the user to have maintenance access to show data.
|
|
9
8
|
*/
|
|
10
|
-
declare function TagInformationPanel({
|
|
9
|
+
declare function TagInformationPanel({ itemId, isWorkOrder }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export { TagInformationPanel };
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './common';
|
|
3
|
-
export * from './document';
|
|
4
|
-
export * from './notification';
|
|
5
|
-
export * from './operation';
|
|
1
|
+
export * from './shared';
|
|
6
2
|
export * from './punch';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './tag';
|
|
3
|
+
export * from './notification';
|
|
9
4
|
export * from './workorder';
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FetchStatus } from './common';
|
|
3
|
-
import { PrepviewDocumentGroup } from './document';
|
|
4
|
-
import { PrepviewPunch } from './punch';
|
|
5
|
-
import { PrepviewSafety } from './safety';
|
|
6
|
-
import { PrepviewTagInformation } from './tag';
|
|
7
|
-
import { PrepviewTagHistoryGroup, PrepviewWorkOrder } from './workorder';
|
|
8
|
-
export type PrepviewNotificationDto = {
|
|
9
|
-
details: NotificationDetails;
|
|
10
|
-
additionalDetails?: NotificationAdditionalDetails;
|
|
11
|
-
};
|
|
1
|
+
import { FetchStatus } from './shared';
|
|
12
2
|
export type NotificationDetails = FetchStatus & {
|
|
13
3
|
id: string;
|
|
14
|
-
isActive:
|
|
4
|
+
isActive: true;
|
|
15
5
|
type: string;
|
|
16
6
|
title: string;
|
|
17
7
|
tagPlantId: string;
|
|
@@ -19,13 +9,13 @@ export type NotificationDetails = FetchStatus & {
|
|
|
19
9
|
tagCategory: string;
|
|
20
10
|
tagCategoryId: string;
|
|
21
11
|
plantId: string;
|
|
12
|
+
planningPlant: string;
|
|
22
13
|
createdDateTime: Date;
|
|
23
14
|
requiredEndDateTime: Date;
|
|
24
15
|
requiredEndDateStatus: string;
|
|
25
16
|
requiredEndDateStatusDescription: string;
|
|
26
|
-
maintenancePlant: string;
|
|
27
|
-
planningPlant: string;
|
|
28
17
|
activeStatusIds: string;
|
|
18
|
+
maintenancePlant: string;
|
|
29
19
|
unsafeFailureMode: string;
|
|
30
20
|
plannerGroup: string;
|
|
31
21
|
mainWorkCenter: string;
|
|
@@ -38,40 +28,3 @@ export type NotificationDetails = FetchStatus & {
|
|
|
38
28
|
longText: string;
|
|
39
29
|
instCode: string;
|
|
40
30
|
};
|
|
41
|
-
export type NotificationAdditionalDetails = {
|
|
42
|
-
attachments: FetchStatus & {
|
|
43
|
-
attachments: Array<PrepviewAttachment>;
|
|
44
|
-
};
|
|
45
|
-
documents: FetchStatus & {
|
|
46
|
-
documentGroups: Array<PrepviewDocumentGroup>;
|
|
47
|
-
};
|
|
48
|
-
history: FetchStatus & {
|
|
49
|
-
notificationGroups: FetchStatus & {
|
|
50
|
-
groups: PrepviewTagHistoryGroup<PrepviewNotification>[];
|
|
51
|
-
};
|
|
52
|
-
punchGroups: FetchStatus & {
|
|
53
|
-
groups: PrepviewTagHistoryGroup<PrepviewPunch>[];
|
|
54
|
-
};
|
|
55
|
-
workOrderGroups: FetchStatus & {
|
|
56
|
-
groups: PrepviewTagHistoryGroup<PrepviewWorkOrder>[];
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
safetyCards: FetchStatus & {
|
|
60
|
-
safetyCards: Array<PrepviewSafety>;
|
|
61
|
-
};
|
|
62
|
-
tagInformation: FetchStatus & PrepviewTagInformation;
|
|
63
|
-
};
|
|
64
|
-
export type PrepviewNotification = {
|
|
65
|
-
id: string;
|
|
66
|
-
type: string;
|
|
67
|
-
title: string;
|
|
68
|
-
isActive?: boolean;
|
|
69
|
-
planningPlant: string;
|
|
70
|
-
requiredEndDateTime: Date;
|
|
71
|
-
mainWorkCenter?: string;
|
|
72
|
-
requiredEndDateStatus?: string;
|
|
73
|
-
activeStatusIds: string;
|
|
74
|
-
mainWorkCenterId: string;
|
|
75
|
-
changedDateTime?: Date;
|
|
76
|
-
createdDateTime: Date;
|
|
77
|
-
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FetchStatus } from './
|
|
1
|
+
import { FetchStatus } from './shared';
|
|
2
2
|
export type PunchDetails = FetchStatus & {
|
|
3
|
-
id:
|
|
3
|
+
id: number;
|
|
4
4
|
tagNo: string;
|
|
5
5
|
tagDescription: string;
|
|
6
6
|
tagArea: string;
|
|
@@ -14,14 +14,4 @@ export type PunchDetails = FetchStatus & {
|
|
|
14
14
|
typeDescription: string;
|
|
15
15
|
priorityId: string;
|
|
16
16
|
projectName: string;
|
|
17
|
-
statusCode: number;
|
|
18
|
-
};
|
|
19
|
-
export type PrepviewPunch = {
|
|
20
|
-
id: string;
|
|
21
|
-
type: string;
|
|
22
|
-
statusId: string;
|
|
23
|
-
tagNo: string;
|
|
24
|
-
tagArea: string;
|
|
25
|
-
description: string;
|
|
26
|
-
updatedAt?: Date;
|
|
27
17
|
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FileDto } from "@equinor/echo-search";
|
|
3
|
+
export type FetchStatus = {
|
|
4
|
+
statusCode?: 'Forbidden' | number;
|
|
5
|
+
};
|
|
6
|
+
export type ContentPickerGroup = {
|
|
7
|
+
title?: string;
|
|
8
|
+
items: ContentPickerItem[];
|
|
9
|
+
};
|
|
10
|
+
export type ContentPickerItem = {
|
|
11
|
+
id: string;
|
|
12
|
+
title: string;
|
|
13
|
+
content: React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export type PrepviewTagInformation = {
|
|
16
|
+
id: string;
|
|
17
|
+
functionalLocation: string;
|
|
18
|
+
location: string;
|
|
19
|
+
area: string;
|
|
20
|
+
overallCriticality: string;
|
|
21
|
+
abcIndicator: string;
|
|
22
|
+
redundancy: string;
|
|
23
|
+
consequenceHse: string;
|
|
24
|
+
consequenceProd: string;
|
|
25
|
+
consequenceCost: string;
|
|
26
|
+
consequenceFail: string;
|
|
27
|
+
repairStrategy: string;
|
|
28
|
+
criticalSparePartDemandTime: string;
|
|
29
|
+
unsafeFailure: string[];
|
|
30
|
+
};
|
|
31
|
+
export type PrepviewAttachment = {
|
|
32
|
+
id: string;
|
|
33
|
+
fileName: string;
|
|
34
|
+
fileSize: number;
|
|
35
|
+
createdDateTime: Date;
|
|
36
|
+
};
|
|
37
|
+
export type PrepviewDocumentGroup = {
|
|
38
|
+
type: string;
|
|
39
|
+
documents: Array<PrepviewDocument>;
|
|
40
|
+
};
|
|
41
|
+
export type PrepviewDocument = {
|
|
42
|
+
docNo: string;
|
|
43
|
+
docTitle: string;
|
|
44
|
+
revStatus: string;
|
|
45
|
+
revNo: string;
|
|
46
|
+
revDate: Date;
|
|
47
|
+
files: Array<FileDto>;
|
|
48
|
+
};
|
|
49
|
+
export type PrepviewSafety = {
|
|
50
|
+
title: string;
|
|
51
|
+
description: string;
|
|
52
|
+
caseDate: Date;
|
|
53
|
+
country: string;
|
|
54
|
+
url: string;
|
|
55
|
+
severity: number;
|
|
56
|
+
};
|
|
57
|
+
export type PrepviewHistory = {
|
|
58
|
+
notificationGroups: {
|
|
59
|
+
groups: NotificationGroup[];
|
|
60
|
+
statusCode: number;
|
|
61
|
+
};
|
|
62
|
+
workOrderGroups: {
|
|
63
|
+
groups: WorkOrderGroup[];
|
|
64
|
+
statusCode: number;
|
|
65
|
+
};
|
|
66
|
+
punchGroups: {
|
|
67
|
+
groups: PunchGroup[];
|
|
68
|
+
statusCode: number;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export type NotificationGroup = {
|
|
72
|
+
type: string;
|
|
73
|
+
items: HistoricNotificationItem[];
|
|
74
|
+
};
|
|
75
|
+
export type HistoricNotificationItem = {
|
|
76
|
+
id: string;
|
|
77
|
+
type: string;
|
|
78
|
+
title: string;
|
|
79
|
+
planningPlant: string;
|
|
80
|
+
isActive: true;
|
|
81
|
+
mainWorkCenter: string;
|
|
82
|
+
requiredEndDateTime: Date;
|
|
83
|
+
requiredEndDateStatus: string;
|
|
84
|
+
mainWorkCenterId: string;
|
|
85
|
+
activeStatusIds: string;
|
|
86
|
+
createdDateTime: Date;
|
|
87
|
+
changedDateTime: Date;
|
|
88
|
+
};
|
|
89
|
+
export type WorkOrderGroup = {
|
|
90
|
+
type: string;
|
|
91
|
+
items: HistoricWorkOrderItem[];
|
|
92
|
+
};
|
|
93
|
+
export type HistoricWorkOrderItem = {
|
|
94
|
+
id: string;
|
|
95
|
+
orderType: string;
|
|
96
|
+
isActive: true;
|
|
97
|
+
maintenancePlanDate: Date;
|
|
98
|
+
planningPlant: string;
|
|
99
|
+
description: string;
|
|
100
|
+
workCenterId: string;
|
|
101
|
+
type: string;
|
|
102
|
+
activeStatusIds: string;
|
|
103
|
+
title: string;
|
|
104
|
+
mainWorkCenterId: string;
|
|
105
|
+
createdDateTime: Date;
|
|
106
|
+
changedDateTime: Date;
|
|
107
|
+
};
|
|
108
|
+
export type PunchGroup = {
|
|
109
|
+
type: string;
|
|
110
|
+
items: [
|
|
111
|
+
{
|
|
112
|
+
id: string;
|
|
113
|
+
type: string;
|
|
114
|
+
statusId: string;
|
|
115
|
+
tagNo: string;
|
|
116
|
+
tagArea: string;
|
|
117
|
+
description: string;
|
|
118
|
+
updatedAt: Date;
|
|
119
|
+
}
|
|
120
|
+
];
|
|
121
|
+
};
|
|
122
|
+
export type HistoricPunchItem = {
|
|
123
|
+
id: string;
|
|
124
|
+
type: string;
|
|
125
|
+
statusId: string;
|
|
126
|
+
tagNo: string;
|
|
127
|
+
tagArea: string;
|
|
128
|
+
description: string;
|
|
129
|
+
updatedAt: Date;
|
|
130
|
+
};
|