@equinor/echo-framework 0.10.1 → 0.10.3

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 (100) hide show
  1. package/dist/__tests__/prepviewUtils.test.d.ts +1 -0
  2. package/dist/components/containers/layouts.d.ts +1 -1
  3. package/dist/components/index.d.ts +1 -0
  4. package/dist/components/prepview/Prepview.d.ts +10 -0
  5. package/dist/components/prepview/api/api.d.ts +4 -0
  6. package/dist/components/prepview/api/index.d.ts +1 -0
  7. package/dist/components/prepview/api/resources.d.ts +2 -0
  8. package/dist/components/prepview/api/workorder.d.ts +2 -0
  9. package/dist/components/prepview/common/access/handler/StatusHandler.d.ts +8 -0
  10. package/dist/components/prepview/common/access/handler/index.d.ts +1 -0
  11. package/dist/components/prepview/common/access/index.d.ts +2 -0
  12. package/dist/components/prepview/common/access/request/RequestAccess.d.ts +6 -0
  13. package/dist/components/prepview/common/access/request/index.d.ts +1 -0
  14. package/dist/components/prepview/common/collapsiblePanel/CollapsiblePanel.d.ts +10 -0
  15. package/dist/components/prepview/common/collapsiblePanel/index.d.ts +1 -0
  16. package/dist/components/prepview/common/details/accordion/DetailsAccordion.d.ts +8 -0
  17. package/dist/components/prepview/common/details/accordion/index.d.ts +1 -0
  18. package/dist/components/prepview/common/details/index.d.ts +3 -0
  19. package/dist/components/prepview/common/details/loader/DetailsLoader.d.ts +3 -0
  20. package/dist/components/prepview/common/details/loader/index.d.ts +1 -0
  21. package/dist/components/prepview/common/details/panel/DetailsPanel.d.ts +9 -0
  22. package/dist/components/prepview/common/details/panel/EmptyDetailsPanel.d.ts +6 -0
  23. package/dist/components/prepview/common/details/panel/description/PanelDescription.d.ts +6 -0
  24. package/dist/components/prepview/common/details/panel/description/index.d.ts +1 -0
  25. package/dist/components/prepview/common/details/panel/index.d.ts +3 -0
  26. package/dist/components/prepview/common/fileSizeDisplay/FileSizeDisplay.d.ts +11 -0
  27. package/dist/components/prepview/common/fileSizeDisplay/index.d.ts +1 -0
  28. package/dist/components/prepview/common/index.d.ts +5 -0
  29. package/dist/components/prepview/common/info/block/InfoBlock.d.ts +8 -0
  30. package/dist/components/prepview/common/info/block/index.d.ts +1 -0
  31. package/dist/components/prepview/common/info/index.d.ts +2 -0
  32. package/dist/components/prepview/common/info/section/InfoSection.d.ts +6 -0
  33. package/dist/components/prepview/common/info/section/index.d.ts +2 -0
  34. package/dist/components/prepview/common/info/section/longText/LongTextSection.d.ts +6 -0
  35. package/dist/components/prepview/common/info/section/longText/index.d.ts +1 -0
  36. package/dist/components/prepview/hooks/index.d.ts +2 -0
  37. package/dist/components/prepview/hooks/useFetch.d.ts +4 -0
  38. package/dist/components/prepview/hooks/useOnClickDownload.d.ts +9 -0
  39. package/dist/components/prepview/index.d.ts +1 -0
  40. package/dist/components/prepview/panels/attachments/Attachments.d.ts +9 -0
  41. package/dist/components/prepview/panels/attachments/index.d.ts +1 -0
  42. package/dist/components/prepview/panels/history/TagHistory.d.ts +9 -0
  43. package/dist/components/prepview/panels/history/group/TagHistoryGroup.d.ts +10 -0
  44. package/dist/components/prepview/panels/history/group/index.d.ts +1 -0
  45. package/dist/components/prepview/panels/history/index.d.ts +1 -0
  46. package/dist/components/prepview/panels/history/items/Items.d.ts +11 -0
  47. package/dist/components/prepview/panels/history/items/NotificationItem.d.ts +7 -0
  48. package/dist/components/prepview/panels/history/items/PunchItem.d.ts +7 -0
  49. package/dist/components/prepview/panels/history/items/WorkOrderItem.d.ts +7 -0
  50. package/dist/components/prepview/panels/history/items/index.d.ts +1 -0
  51. package/dist/components/prepview/panels/index.d.ts +7 -0
  52. package/dist/components/prepview/panels/objects/Objects.d.ts +7 -0
  53. package/dist/components/prepview/panels/objects/index.d.ts +1 -0
  54. package/dist/components/prepview/panels/operations/Operations.d.ts +7 -0
  55. package/dist/components/prepview/panels/operations/index.d.ts +1 -0
  56. package/dist/components/prepview/panels/risk/Risk.d.ts +8 -0
  57. package/dist/components/prepview/panels/risk/actions/RiskActions.d.ts +6 -0
  58. package/dist/components/prepview/panels/risk/actions/index.d.ts +1 -0
  59. package/dist/components/prepview/panels/risk/index.d.ts +1 -0
  60. package/dist/components/prepview/panels/risk/item/RiskItem.d.ts +7 -0
  61. package/dist/components/prepview/panels/risk/item/index.d.ts +1 -0
  62. package/dist/components/prepview/panels/risk/trafficLight/TrafficLight.d.ts +7 -0
  63. package/dist/components/prepview/panels/risk/trafficLight/index.d.ts +1 -0
  64. package/dist/components/prepview/panels/tagDocumentRefs/TagDocumentGroup.d.ts +10 -0
  65. package/dist/components/prepview/panels/tagDocumentRefs/TagDocumentItem.d.ts +9 -0
  66. package/dist/components/prepview/panels/tagDocumentRefs/TagDocumentRefs.d.ts +9 -0
  67. package/dist/components/prepview/panels/tagDocumentRefs/index.d.ts +1 -0
  68. package/dist/components/prepview/panels/tagInformation/TagInformation.d.ts +11 -0
  69. package/dist/components/prepview/panels/tagInformation/UnsafeFailure.d.ts +7 -0
  70. package/dist/components/prepview/panels/tagInformation/index.d.ts +1 -0
  71. package/dist/components/prepview/types/attachment.d.ts +7 -0
  72. package/dist/components/prepview/types/document.d.ts +13 -0
  73. package/dist/components/prepview/types/index.d.ts +8 -0
  74. package/dist/components/prepview/types/notification.d.ts +10 -0
  75. package/dist/components/prepview/types/operation.d.ts +12 -0
  76. package/dist/components/prepview/types/punch.d.ts +8 -0
  77. package/dist/components/prepview/types/safety.d.ts +21 -0
  78. package/dist/components/prepview/types/tag.d.ts +24 -0
  79. package/dist/components/prepview/types/workorder.d.ts +80 -0
  80. package/dist/components/prepview/utils/date.d.ts +5 -0
  81. package/dist/components/prepview/utils/documents.d.ts +1 -0
  82. package/dist/components/prepview/utils/dom.d.ts +1 -0
  83. package/dist/components/prepview/utils/enums/documents.d.ts +14 -0
  84. package/dist/components/prepview/utils/enums/index.d.ts +2 -0
  85. package/dist/components/prepview/utils/enums/tagHistoryItem.d.ts +5 -0
  86. package/dist/components/prepview/utils/index.d.ts +8 -0
  87. package/dist/components/prepview/utils/logger.d.ts +71 -0
  88. package/dist/components/prepview/utils/object.d.ts +1 -0
  89. package/dist/components/prepview/utils/url.d.ts +8 -0
  90. package/dist/components/prepview/utils/workorder.d.ts +1 -0
  91. package/dist/components/prepview/workorder/additionalDetails/AdditionalDetails.d.ts +9 -0
  92. package/dist/components/prepview/workorder/additionalDetails/index.d.ts +1 -0
  93. package/dist/components/prepview/workorder/details/Details.d.ts +9 -0
  94. package/dist/components/prepview/workorder/details/index.d.ts +1 -0
  95. package/dist/components/prepview/workorder/index.d.ts +8 -0
  96. package/dist/index.js +3 -3
  97. package/dist/services/api/api-manager.d.ts +10 -2
  98. package/dist/utils/index.d.ts +1 -0
  99. package/dist/utils/searchUtil.d.ts +1 -0
  100. package/package.json +3 -2
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type LayoutKey = 'main' | 'nativePdf' | 'colorLayout' | undefined;
2
+ export declare type LayoutKey = 'main' | 'nativePdf' | 'colorLayout' | '3dweb' | undefined;
3
3
  export interface LayoutProps {
4
4
  layoutKey?: string;
5
5
  children: React.ReactNode;
@@ -14,6 +14,7 @@ export * from './panelButton';
14
14
  export * from './plantSelector';
15
15
  export * from './projectSelector';
16
16
  export * from './realTimeData';
17
+ export * from './prepview';
17
18
  export * from './router';
18
19
  export * from './searchMenu';
19
20
  export * from './tagNumber';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ interface PrepviewProps {
3
+ instCode: string;
4
+ workOrder?: string;
5
+ notification?: string;
6
+ punch?: string;
7
+ }
8
+ declare function Prepview(props: PrepviewProps): JSX.Element | null;
9
+ export { Prepview };
10
+ export { MaintenanceApiNameForWorkOrders } from './utils';
@@ -0,0 +1,4 @@
1
+ import { PrepviewWorkOrderDto } from '../types';
2
+ import * as workOrderApi from './workorder';
3
+ export { workOrderApi };
4
+ export declare function getWorkOrder(instCode: string, workOrderId: string): Promise<PrepviewWorkOrderDto>;
@@ -0,0 +1 @@
1
+ export * from './api';
@@ -0,0 +1,2 @@
1
+ export declare function getWorkOrder(instCode: string, workOrderId: string): string;
2
+ export declare function getWorkorderAttachmentFile(orderTypeId: string, workorderId: string, attachmentId: string): string;
@@ -0,0 +1,2 @@
1
+ import { WorkOrderDetails, PrepviewAttachment } from '../types';
2
+ export declare function getAttachmentFile(workorder: WorkOrderDetails, attachment: PrepviewAttachment): Promise<Blob>;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { FetchStatus } from '../../../types';
3
+ interface Props {
4
+ statusCode: FetchStatus['statusCode'];
5
+ children: React.ReactNode;
6
+ }
7
+ declare function StatusHandler({ statusCode, children }: Props): JSX.Element;
8
+ export { StatusHandler };
@@ -0,0 +1 @@
1
+ export * from './StatusHandler';
@@ -0,0 +1,2 @@
1
+ export * from './handler';
2
+ export * from './request';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare type RequestAccessProps = {
3
+ padding?: boolean;
4
+ };
5
+ declare const RequestAccess: React.FC<RequestAccessProps>;
6
+ export { RequestAccess };
@@ -0,0 +1 @@
1
+ export * from './RequestAccess';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ interface CollapsablePanelType {
3
+ label?: string;
4
+ maxHeightCollapsed?: number;
5
+ noPadding?: boolean;
6
+ isExpandedDefault?: boolean;
7
+ children: JSX.Element | string[] | string;
8
+ }
9
+ declare function CollapsiblePanel({ label, maxHeightCollapsed, noPadding, isExpandedDefault, children }: CollapsablePanelType): JSX.Element;
10
+ export { CollapsiblePanel };
@@ -0,0 +1 @@
1
+ export * from './CollapsiblePanel';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { AccordionProps } from '@equinor/eds-core-react';
3
+ interface DetailsAccordionProps {
4
+ headerLevel?: AccordionProps['headerLevel'];
5
+ children: React.ReactNode[];
6
+ }
7
+ declare function DetailsAccordion({ headerLevel, children }: DetailsAccordionProps): JSX.Element;
8
+ export { DetailsAccordion };
@@ -0,0 +1 @@
1
+ export * from './DetailsAccordion';
@@ -0,0 +1,3 @@
1
+ export * from './accordion';
2
+ export * from './loader';
3
+ export * from './panel';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare function DetailsLoader(): JSX.Element | null;
3
+ export { DetailsLoader };
@@ -0,0 +1 @@
1
+ export * from './DetailsLoader';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ title: string;
4
+ children: React.ReactNode;
5
+ isLoading?: boolean;
6
+ buttonBar?: React.ReactNode;
7
+ }
8
+ declare function DetailsPanel({ title, isLoading, buttonBar, children }: Props): JSX.Element;
9
+ export { DetailsPanel };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface EmptyDetailsPanelProps {
3
+ text: string;
4
+ }
5
+ declare function EmptyDetailsPanel({ text }: EmptyDetailsPanelProps): JSX.Element;
6
+ export { EmptyDetailsPanel };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface PanelDescriptionProps {
3
+ children?: React.ReactNode;
4
+ }
5
+ declare function PanelDescription({ children }: PanelDescriptionProps): JSX.Element;
6
+ export { PanelDescription };
@@ -0,0 +1 @@
1
+ export * from './PanelDescription';
@@ -0,0 +1,3 @@
1
+ export * from './DetailsPanel';
2
+ export * from './EmptyDetailsPanel';
3
+ export * from './description';
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { FileDto } from '@equinor/echo-search';
3
+ interface FileSizeDisplayProps {
4
+ files: FileDto[];
5
+ fileType?: 'pdf';
6
+ viewCode?: 'v';
7
+ className?: string;
8
+ }
9
+ declare function FileSizeDisplay({ files, fileType, viewCode, className }: FileSizeDisplayProps): JSX.Element | null;
10
+ declare function formatBytes(bytes: number, decimals?: number): string;
11
+ export { FileSizeDisplay, formatBytes };
@@ -0,0 +1 @@
1
+ export * from './FileSizeDisplay';
@@ -0,0 +1,5 @@
1
+ export * from './access';
2
+ export * from './collapsiblePanel';
3
+ export * from './details';
4
+ export * from './fileSizeDisplay';
5
+ export * from './info';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface InfoBlockType {
3
+ label: string;
4
+ stretched?: boolean;
5
+ children: JSX.Element | string[] | string | number;
6
+ }
7
+ declare function InfoBlock({ label, stretched, children }: InfoBlockType): JSX.Element;
8
+ export { InfoBlock };
@@ -0,0 +1 @@
1
+ export * from './InfoBlock';
@@ -0,0 +1,2 @@
1
+ export * from './block';
2
+ export * from './section';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface InfoSectionProps {
3
+ children?: React.ReactNode;
4
+ }
5
+ declare function InfoSection({ children }: InfoSectionProps): JSX.Element;
6
+ export { InfoSection };
@@ -0,0 +1,2 @@
1
+ export * from './InfoSection';
2
+ export * from './longText';
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ text: string;
4
+ }
5
+ declare function LongTextSection({ text }: Props): JSX.Element;
6
+ export { LongTextSection };
@@ -0,0 +1 @@
1
+ export * from './LongTextSection';
@@ -0,0 +1,2 @@
1
+ export * from './useFetch';
2
+ export * from './useOnClickDownload';
@@ -0,0 +1,4 @@
1
+ import { DependencyList } from 'react';
2
+ declare type FetchCallback<T> = () => Promise<T> | undefined;
3
+ export declare function useFetch<TError = unknown, T = unknown>(callback: FetchCallback<T>, deps?: DependencyList): [data: T | undefined, isLoading: boolean, error: TError | unknown];
4
+ export {};
@@ -0,0 +1,9 @@
1
+ declare type DownloadPromise = () => Promise<Blob>;
2
+ interface DownloadOnClick {
3
+ isLoading: boolean;
4
+ objectUrl?: string;
5
+ error?: unknown;
6
+ downloadOnClick: () => Promise<void>;
7
+ }
8
+ declare function useOnClickDownload(downloadBlob: DownloadPromise, fileName?: string): DownloadOnClick;
9
+ export { useOnClickDownload };
@@ -0,0 +1 @@
1
+ export * from './Prepview';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { PrepviewAttachment, WorkOrderDetails } from '../../types';
3
+ interface Props {
4
+ workorder: WorkOrderDetails;
5
+ attachments: PrepviewAttachment[];
6
+ isLoading?: boolean;
7
+ }
8
+ declare function AttachmentsPanel({ workorder, attachments, isLoading }: Props): JSX.Element;
9
+ export { AttachmentsPanel };
@@ -0,0 +1 @@
1
+ export * from './Attachments';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { PrepviewNotification, PrepviewPunch, PrepviewTagHistoryGroup, PrepviewWorkOrder } from '../../types';
3
+ interface HistoryProps {
4
+ notificationGroups: PrepviewTagHistoryGroup<PrepviewNotification>[];
5
+ workOrderGroups: PrepviewTagHistoryGroup<PrepviewWorkOrder>[];
6
+ punchGroups: PrepviewTagHistoryGroup<PrepviewPunch>[];
7
+ }
8
+ declare function TagHistoryPanel({ notificationGroups, workOrderGroups, punchGroups }: HistoryProps): JSX.Element;
9
+ export { TagHistoryPanel };
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { PrepviewNotification, PrepviewPunch, PrepviewTagHistoryGroup, PrepviewWorkOrder } from '../../../types';
3
+ import { WorkItemType } from '../../../utils';
4
+ interface Props {
5
+ emptyText: string;
6
+ workItemType: WorkItemType;
7
+ groups: PrepviewTagHistoryGroup<PrepviewNotification | PrepviewWorkOrder | PrepviewPunch>[];
8
+ }
9
+ declare function TagHistoryGroup({ groups, emptyText, workItemType }: Props): JSX.Element;
10
+ export { TagHistoryGroup };
@@ -0,0 +1 @@
1
+ export * from './TagHistoryGroup';
@@ -0,0 +1 @@
1
+ export * from './TagHistory';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { WorkItemType } from '../../../utils';
3
+ import { PrepviewNotification, PrepviewWorkOrder, PrepviewPunch } from '../../../types';
4
+ declare type Items = Array<PrepviewNotification | PrepviewWorkOrder | PrepviewPunch>;
5
+ export interface ItemProps {
6
+ itemType: WorkItemType;
7
+ subType: string;
8
+ items: Items;
9
+ }
10
+ declare const Items: React.FC<ItemProps>;
11
+ export { Items };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { PrepviewNotification } from '../../../types';
3
+ interface NotificationItemProps {
4
+ notification: PrepviewNotification;
5
+ }
6
+ declare const NotificationItem: React.FC<NotificationItemProps>;
7
+ export { NotificationItem };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { PrepviewPunch } from '../../../types';
3
+ interface PunchProps {
4
+ punch: PrepviewPunch;
5
+ }
6
+ declare const PunchItem: React.FC<PunchProps>;
7
+ export { PunchItem };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { PrepviewWorkOrder } from '../../../types';
3
+ interface WorkOrderItemProps {
4
+ workOrder: PrepviewWorkOrder;
5
+ }
6
+ declare const WorkOrderItem: React.FC<WorkOrderItemProps>;
7
+ export { WorkOrderItem };
@@ -0,0 +1 @@
1
+ export * from './Items';
@@ -0,0 +1,7 @@
1
+ export * from './attachments';
2
+ export * from './operations';
3
+ export * from './tagDocumentRefs';
4
+ export * from './tagInformation';
5
+ export * from './objects';
6
+ export * from './risk';
7
+ export * from './history';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { PrepviewRelatedTag } from '../../types';
3
+ interface Props {
4
+ relatedTags: PrepviewRelatedTag[];
5
+ }
6
+ declare function ObjectsPanel({ relatedTags }: Props): JSX.Element;
7
+ export { ObjectsPanel };
@@ -0,0 +1 @@
1
+ export * from './Objects';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { PrepviewOperation } from '../../types';
3
+ interface Props {
4
+ operations: PrepviewOperation[];
5
+ }
6
+ declare function OperationsPanel({ operations }: Props): JSX.Element;
7
+ export { OperationsPanel };
@@ -0,0 +1 @@
1
+ export * from './Operations';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { PrepviewSafety } from '../../types';
3
+ interface RiskTabProps {
4
+ safetyCards: PrepviewSafety[];
5
+ searchValue?: string;
6
+ }
7
+ declare function RiskPanel({ safetyCards, searchValue }: RiskTabProps): JSX.Element;
8
+ export { RiskPanel };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface RiskActionProps {
3
+ searchValue?: string;
4
+ }
5
+ declare function RiskActions({ searchValue }: RiskActionProps): JSX.Element;
6
+ export { RiskActions };
@@ -0,0 +1 @@
1
+ export * from './RiskActions';
@@ -0,0 +1 @@
1
+ export * from './Risk';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { PrepviewSafety } from '../../../types';
3
+ interface RiskItemProps {
4
+ data: PrepviewSafety;
5
+ }
6
+ declare function RiskItem({ data }: RiskItemProps): JSX.Element;
7
+ export { RiskItem };
@@ -0,0 +1 @@
1
+ export * from './RiskItem';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface TrafficLightProps {
3
+ severity: number;
4
+ children?: React.ReactNode;
5
+ }
6
+ declare function TrafficLight({ severity, children }: TrafficLightProps): JSX.Element;
7
+ export { TrafficLight };
@@ -0,0 +1 @@
1
+ export * from './TrafficLight';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { PrepviewDocument } from '../../types';
3
+ interface TagDocumentGroupProps {
4
+ instCode: string;
5
+ docType: string;
6
+ documents: PrepviewDocument[];
7
+ tagNo: string;
8
+ }
9
+ declare function TagDocumentGroup({ instCode, docType, documents, tagNo }: TagDocumentGroupProps): JSX.Element;
10
+ export { TagDocumentGroup };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { PrepviewDocument } from '../../types';
3
+ interface TagDocumentItemProps {
4
+ instCode: string;
5
+ document: PrepviewDocument;
6
+ tagNo: string;
7
+ }
8
+ declare function TagDocumentItem({ instCode, document, tagNo }: TagDocumentItemProps): JSX.Element;
9
+ export { TagDocumentItem };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { PrepviewDocumentGroup } from '../../types';
3
+ interface Props {
4
+ instCode: string;
5
+ documentGroups: Array<PrepviewDocumentGroup>;
6
+ tagNo: string;
7
+ }
8
+ declare function TagDocumentRefsPanel({ documentGroups, instCode, tagNo }: Props): JSX.Element;
9
+ export { TagDocumentRefsPanel };
@@ -0,0 +1 @@
1
+ export * from './TagDocumentRefs';
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { PrepviewTagInformation } from '../../types';
3
+ interface Props {
4
+ tagInformation: PrepviewTagInformation;
5
+ }
6
+ /**
7
+ * TagInformationPanel
8
+ * this panel requires the user to have maintenance access to show data.
9
+ */
10
+ declare function TagInformationPanel({ tagInformation }: Props): JSX.Element;
11
+ export { TagInformationPanel };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { PrepviewTagInformation } from '../../types';
3
+ interface UnsafeFailureProps {
4
+ unsafeFailure: PrepviewTagInformation['unsafeFailure'];
5
+ }
6
+ declare function UnsafeFailure({ unsafeFailure }: UnsafeFailureProps): JSX.Element;
7
+ export { UnsafeFailure };
@@ -0,0 +1 @@
1
+ export * from './TagInformation';
@@ -0,0 +1,7 @@
1
+ export declare type PrepviewAttachment = {
2
+ createdAt: Date;
3
+ fileName: string;
4
+ fileSize: number;
5
+ id: string;
6
+ statusCode?: string;
7
+ };
@@ -0,0 +1,13 @@
1
+ import { FileDto } from '@equinor/echo-search';
2
+ export declare type PrepviewDocumentGroup = {
3
+ type: string;
4
+ documents: Array<PrepviewDocument>;
5
+ };
6
+ export declare type PrepviewDocument = {
7
+ docNo: string;
8
+ docTitle: string;
9
+ files: Array<FileDto>;
10
+ revDate: Date;
11
+ revNo: string;
12
+ revStatus: string;
13
+ };
@@ -0,0 +1,8 @@
1
+ export * from './attachment';
2
+ export * from './document';
3
+ export * from './notification';
4
+ export * from './operation';
5
+ export * from './punch';
6
+ export * from './safety';
7
+ export * from './tag';
8
+ export * from './workorder';
@@ -0,0 +1,10 @@
1
+ export declare type PrepviewNotification = {
2
+ id: string;
3
+ activeStatusIds: string;
4
+ changedDateTime?: Date;
5
+ createdDateTime: Date;
6
+ mainWorkCenterId: string;
7
+ requiredEndDateTime: Date;
8
+ title: string;
9
+ type: string;
10
+ };
@@ -0,0 +1,12 @@
1
+ export declare type PrepviewOperation = {
2
+ actualPercentageComplete: number;
3
+ actualWorkHours: string;
4
+ capacityCount: number;
5
+ earliestFinishDateTime: Date;
6
+ earliestStartDateTime: Date;
7
+ operationNumber: string;
8
+ plannedDuration: string;
9
+ plannedWorkHours: string;
10
+ title: string;
11
+ workCenterId: string;
12
+ };
@@ -0,0 +1,8 @@
1
+ export declare type PrepviewPunch = {
2
+ id: string;
3
+ type: string;
4
+ tagNo: string;
5
+ tagArea: string;
6
+ description: string;
7
+ updatedAt?: Date;
8
+ };
@@ -0,0 +1,21 @@
1
+ export declare type PrepviewSafety = {
2
+ title: string;
3
+ description: string;
4
+ caseDate: string;
5
+ country: string;
6
+ url: string;
7
+ severity: number;
8
+ };
9
+ export interface SafetyDataParams {
10
+ dateFrom: string;
11
+ dateTo: string;
12
+ filters: SafetyDataFilter[];
13
+ query: string;
14
+ sortByDate: boolean;
15
+ top: number;
16
+ }
17
+ interface SafetyDataFilter {
18
+ fieldName: string;
19
+ values: string[];
20
+ }
21
+ export {};
@@ -0,0 +1,24 @@
1
+ export declare type PrepviewTagInformation = {
2
+ abcIndicator: string;
3
+ area: string;
4
+ consequenceCost: string;
5
+ consequenceFail: string;
6
+ consequenceHse: string;
7
+ consequenceProd: string;
8
+ criticalSparepartDemandTime?: Date;
9
+ functionalLocation: string;
10
+ id: string;
11
+ location: string;
12
+ overallCriticality: string;
13
+ redundancy: string;
14
+ repairStrategy: string;
15
+ unsafeFailure: string[];
16
+ };
17
+ export declare type PrepviewRelatedTag = {
18
+ tagId: string;
19
+ tagPlantId: string;
20
+ tag: string;
21
+ notification?: string;
22
+ equipment?: string;
23
+ description?: string;
24
+ };