@equinor/echo-framework 0.10.18 → 0.10.20

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 (72) hide show
  1. package/dist/components/containers/layouts.d.ts +1 -1
  2. package/dist/components/contextualAppLinks/contextualAppLinks.context.d.ts +1 -1
  3. package/dist/components/contextualAppLinks/contextualAppLinks.d.ts +1 -1
  4. package/dist/components/contextualAppLinks/externalAppsMenu.d.ts +1 -1
  5. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.d.ts +2 -2
  6. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToCommApp.d.ts +1 -1
  7. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToConditionAdviser.d.ts +1 -1
  8. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToMcApp.d.ts +1 -1
  9. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToProCoSys.d.ts +1 -1
  10. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSafeX.d.ts +1 -1
  11. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSap.d.ts +1 -1
  12. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSemiDoc.d.ts +1 -1
  13. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToStid.d.ts +1 -1
  14. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTr2000.d.ts +1 -1
  15. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTrendingApp.d.ts +1 -1
  16. package/dist/components/contextualAppLinks/externalLinkButtons/iconButtonSpinner.d.ts +1 -1
  17. package/dist/components/contextualAppLinks/hooks/useContextualAppLinks.d.ts +1 -1
  18. package/dist/components/contextualAppLinks/index.d.ts +1 -1
  19. package/dist/components/contextualAppLinks/internalAppLinks.d.ts +1 -1
  20. package/dist/components/contextualAppLinks/linkButton.d.ts +2 -2
  21. package/dist/components/externalLinkButton/externalLinkButton.d.ts +4 -4
  22. package/dist/components/homePage/HomePage.d.ts +1 -2
  23. package/dist/components/pageMenu/defaultAccordionItem.d.ts +1 -1
  24. package/dist/components/prepview/Prepview.d.ts +2 -1
  25. package/dist/components/prepview/api/attachment.d.ts +1 -1
  26. package/dist/components/prepview/api/resources.d.ts +1 -0
  27. package/dist/components/prepview/common/access/request/RequestAccess.d.ts +1 -1
  28. package/dist/components/prepview/common/additionalInformation/AdditionalDetails.d.ts +11 -0
  29. package/dist/components/prepview/common/additionalInformation/tabsPanels/TabsPanels.d.ts +15 -0
  30. package/dist/components/prepview/common/additionalInformation/tabsPanels/index.d.ts +1 -0
  31. package/dist/components/prepview/context/PrepviewContext.d.ts +1 -0
  32. package/dist/components/prepview/hooks/useFetch.d.ts +1 -1
  33. package/dist/components/prepview/hooks/useOnClickDownload.d.ts +1 -1
  34. package/dist/components/prepview/hooks/useSetActiveSearchItem.d.ts +2 -2
  35. package/dist/components/prepview/notification/details/{Details.d.ts → DetailsNotification.d.ts} +2 -2
  36. package/dist/components/prepview/notification/details/index.d.ts +1 -1
  37. package/dist/components/prepview/panels/history/items/Items.d.ts +1 -1
  38. package/dist/components/prepview/types/attachment.d.ts +1 -1
  39. package/dist/components/prepview/types/common.d.ts +40 -3
  40. package/dist/components/prepview/types/document.d.ts +2 -2
  41. package/dist/components/prepview/types/notification.d.ts +4 -4
  42. package/dist/components/prepview/types/operation.d.ts +1 -1
  43. package/dist/components/prepview/types/punch.d.ts +2 -2
  44. package/dist/components/prepview/types/safety.d.ts +1 -1
  45. package/dist/components/prepview/types/tag.d.ts +2 -2
  46. package/dist/components/prepview/types/workorder.d.ts +5 -5
  47. package/dist/components/prepview/utils/index.d.ts +1 -1
  48. package/dist/components/prepview/utils/logger.d.ts +10 -10
  49. package/dist/components/prepview/utils/notification.d.ts +2 -0
  50. package/dist/components/prepview/utils/punch.d.ts +1 -1
  51. package/dist/components/prepview/utils/url.d.ts +1 -1
  52. package/dist/components/prepview/workorder/details/{Details.d.ts → DetailsWorkOrder.d.ts} +2 -2
  53. package/dist/components/prepview/workorder/details/index.d.ts +1 -1
  54. package/dist/components/prepview/workorder/header/Header.d.ts +2 -1
  55. package/dist/components/prepview/workorder/index.d.ts +2 -1
  56. package/dist/components/realTimeData/hooks/useRealTimeHub.d.ts +1 -1
  57. package/dist/components/realTimeData/hooks/useSignalRListener.d.ts +1 -1
  58. package/dist/coreApplication/EchoSetup.d.ts +1 -1
  59. package/dist/hooks/useEchoHistory.d.ts +2 -2
  60. package/dist/hooks/useScreenValues.d.ts +1 -1
  61. package/dist/hooks/useSemi.d.ts +1 -1
  62. package/dist/index.js +2 -2
  63. package/dist/services/api/api-manager.d.ts +1 -1
  64. package/dist/services/componentRegistry/componentRegistry.d.ts +1 -1
  65. package/dist/types/api-proCoSysTagResponse.d.ts +1 -1
  66. package/dist/types/hookLibrary.d.ts +5 -5
  67. package/package.json +23 -23
  68. package/dist/components/prepview/notification/additionalDetails/AdditionalDetails.d.ts +0 -10
  69. package/dist/components/prepview/notification/additionalDetails/index.d.ts +0 -1
  70. package/dist/components/prepview/utils/status.d.ts +0 -3
  71. package/dist/components/prepview/workorder/additionalDetails/AdditionalDetails.d.ts +0 -10
  72. package/dist/components/prepview/workorder/additionalDetails/index.d.ts +0 -1
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type LayoutKey = 'main' | 'nativePdf' | 'colorLayout' | '3dweb' | undefined;
2
+ export type LayoutKey = 'main' | 'nativePdf' | 'colorLayout' | '3dweb' | undefined;
3
3
  export interface LayoutProps {
4
4
  layoutKey?: string;
5
5
  children: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import { TagSummaryDto } from '@equinor/echo-search';
2
2
  import React from 'react';
3
- export declare type ContextualAppLinksContextType = {
3
+ export type ContextualAppLinksContextType = {
4
4
  tag: TagSummaryDto;
5
5
  instCode: string;
6
6
  } | undefined;
@@ -1,6 +1,6 @@
1
1
  import { TagSummaryDto } from '@equinor/echo-search';
2
2
  import React from 'react';
3
- declare type ContextualAppLinksProps = {
3
+ type ContextualAppLinksProps = {
4
4
  children: React.ReactNode;
5
5
  tag: TagSummaryDto;
6
6
  instCode: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalAppsMenuProp = {
2
+ type ExternalAppsMenuProp = {
3
3
  children?: React.ReactNode;
4
4
  classNames?: {
5
5
  button?: string;
@@ -1,6 +1,6 @@
1
1
  import { TagDetailsDto } from '@equinor/echo-search';
2
2
  import { ProCoSysApiTag } from '../../../types/api-proCoSysTagResponse';
3
- declare type GetTagDetailsAndProCoSysDataResult = {
3
+ type GetTagDetailsAndProCoSysDataResult = {
4
4
  tagDetails: TagDetailsDto | undefined;
5
5
  proCoSysTag: ProCoSysApiTag | undefined;
6
6
  hasError: boolean;
@@ -21,7 +21,7 @@ export declare function getTagDetailsAndProCoSysData({ tagNo, instCode }: {
21
21
  tagNo: any;
22
22
  instCode: any;
23
23
  }): Promise<GetTagDetailsAndProCoSysDataResult>;
24
- declare type getTagDetailsWithErrorHandlingResponse = {
24
+ type getTagDetailsWithErrorHandlingResponse = {
25
25
  tagDetails: TagDetailsDto | undefined;
26
26
  hasError: boolean;
27
27
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToCommAppProps = {
2
+ type ExternalLinkToCommAppProps = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToConditionAdviserProps = {
2
+ type ExternalLinkToConditionAdviserProps = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  loadingStatusCallback?: (isLoading: boolean) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToMcAppProps = {
2
+ type ExternalLinkToMcAppProps = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToProCoSysProps = {
2
+ type ExternalLinkToProCoSysProps = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { TagSummaryDto } from '@equinor/echo-search';
2
2
  import React from 'react';
3
- declare type ExternalLinkToSafeXProps = {
3
+ type ExternalLinkToSafeXProps = {
4
4
  tag: TagSummaryDto;
5
5
  };
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToSapProps = {
2
+ type ExternalLinkToSapProps = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  loadingStatusCallback?: (isLoading: boolean) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToSemiDocProps = {
2
+ type ExternalLinkToSemiDocProps = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  loadingStatusCallback?: (isLoading: boolean) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToStidProps = {
2
+ type ExternalLinkToStidProps = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToTr2000Props = {
2
+ type ExternalLinkToTr2000Props = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  loadingStatusCallback?: (isLoading: boolean) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToTrendingAppProps = {
2
+ type ExternalLinkToTrendingAppProps = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  loadingStatusCallback?: (isLoading: boolean) => void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type SpinnerProps = {
2
+ type SpinnerProps = {
3
3
  size?: 16 | 24 | 32 | 40 | 48;
4
4
  customClassNames?: {
5
5
  spinner?: string;
@@ -1,5 +1,5 @@
1
1
  import { ContextualAppLinkRegistration } from '../../../types/extensions';
2
- declare type UseContextualAppLinksOptions = {
2
+ type UseContextualAppLinksOptions = {
3
3
  onlyExternalLinks?: boolean;
4
4
  onlyInternalLinks?: never;
5
5
  } | {
@@ -3,7 +3,7 @@ import { ExternalAppsMenu } from './externalAppsMenu';
3
3
  import { AllExternalLinks } from './externalLinkButtons/allExternalLinks';
4
4
  import { InternalAppLinks } from './internalAppLinks';
5
5
  import { LinkButton } from './linkButton';
6
- declare type ContextualAppLinksCompoundProps = typeof LinksWrapper & {
6
+ type ContextualAppLinksCompoundProps = typeof LinksWrapper & {
7
7
  InternalApps: typeof InternalAppLinks;
8
8
  ExternalAppsMenu: typeof ExternalAppsMenu;
9
9
  AllExternalApps: typeof AllExternalLinks;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type InternalAppLinksProps = {
2
+ type InternalAppLinksProps = {
3
3
  options?: {
4
4
  hiddenAppKeys: string[];
5
5
  };
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- declare type LinkButtonProps = {
2
+ type LinkButtonProps = {
3
3
  label?: string;
4
4
  iconName: string;
5
5
  onClick: OnClickHandler;
6
6
  };
7
- declare type OnClickHandler = (event: React.MouseEvent<HTMLButtonElement>) => void;
7
+ type OnClickHandler = (event: React.MouseEvent<HTMLButtonElement>) => void;
8
8
  /**
9
9
  * Link button to be used in contextual app link component.
10
10
  * Displays an EDS icon with a EDS tooltip. The tooltip will be rendered only if a 'label' is passed.
@@ -1,14 +1,14 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkButtonProps = AsyncButtonProps | SyncButtonProps;
3
- declare type AsyncButtonProps = BaseProps & {
2
+ type ExternalLinkButtonProps = AsyncButtonProps | SyncButtonProps;
3
+ type AsyncButtonProps = BaseProps & {
4
4
  linkTo?: never;
5
5
  getUrlToOpen: (...args: any[]) => Promise<string | undefined>;
6
6
  };
7
- declare type SyncButtonProps = BaseProps & {
7
+ type SyncButtonProps = BaseProps & {
8
8
  linkTo: string;
9
9
  getUrlToOpen?: never;
10
10
  };
11
- declare type BaseProps = {
11
+ type BaseProps = {
12
12
  buttonName: string;
13
13
  buttonIcon: string;
14
14
  hideText?: boolean;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const HomePage: React.ReactNode;
1
+ export declare const HomePage: () => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type DefaultAccordionItemProps = {
2
+ type DefaultAccordionItemProps = {
3
3
  isExpanded: boolean;
4
4
  handleClick: () => void;
5
5
  title: string;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { SideSheetOrientation } from '@equinor/echo-components';
3
3
  interface PrepviewProps {
4
4
  instCode: string;
@@ -7,6 +7,7 @@ interface PrepviewProps {
7
7
  notificationId?: string;
8
8
  punchId?: string;
9
9
  closePanel: () => void;
10
+ workOrderHeaderAction?: React.ReactNode;
10
11
  }
11
12
  declare function Prepview(props: PrepviewProps): JSX.Element | null;
12
13
  export { MaintenanceApiNameForWorkOrders } from './utils';
@@ -1,2 +1,2 @@
1
1
  import { PrepviewAttachment } from '../types';
2
- export declare function getAttachmentFile(recordType: string, recordId: string, attachment: PrepviewAttachment): Promise<Blob>;
2
+ export declare function getAttachmentFile(type: string, id: string, attachment: PrepviewAttachment, isWorkOrder: boolean): Promise<Blob>;
@@ -3,3 +3,4 @@ export declare function getNotification(instCode: string, notificationId: string
3
3
  export declare function getPunch(instCode: string, punchId: string): string;
4
4
  export declare function getWorkTypeUrl(instCode: string, workOrderId: string): string;
5
5
  export declare function getWorkorderAttachmentFile(orderTypeId: string, workorderId: string, attachmentId: string): string;
6
+ export declare function getNotificationAttachmentFile(maintenanceRecordTypeId: string, maintenanceRecordId: string, attachmentId: string): string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type RequestAccessProps = {
2
+ type RequestAccessProps = {
3
3
  padding?: boolean;
4
4
  };
5
5
  declare const RequestAccess: React.FC<RequestAccessProps>;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { AdditionalDetailsDto, NotificationDetails, WorkOrderDetails } from '../../types';
3
+ interface Props {
4
+ instCode: string;
5
+ workOrderDetails?: WorkOrderDetails;
6
+ notificationDetails?: NotificationDetails;
7
+ additionalDetails: AdditionalDetailsDto;
8
+ closePanel: () => void;
9
+ }
10
+ declare function AdditionalDetails({ instCode, workOrderDetails, notificationDetails, additionalDetails, closePanel }: Props): JSX.Element;
11
+ export { AdditionalDetails };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { AdditionalDetailsDto, NotificationDetails, WorkOrderDetails } from '../../../types';
3
+ interface Props {
4
+ instCode: string;
5
+ workOrderDetails?: WorkOrderDetails;
6
+ notificationDetails?: NotificationDetails;
7
+ additionalDetails: AdditionalDetailsDto;
8
+ closePanel: () => void;
9
+ }
10
+ declare function TabsPanels({ instCode, workOrderDetails, notificationDetails, additionalDetails, closePanel }: Props): JSX.Element | null;
11
+ interface TabsListProps {
12
+ tabListRef: React.RefObject<HTMLDivElement>;
13
+ }
14
+ declare function TabsList({ tabListRef }: TabsListProps): JSX.Element | null;
15
+ export { TabsPanels, TabsList };
@@ -0,0 +1 @@
1
+ export * from './TabsPanels';
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { SideSheetOrientation } from '@equinor/echo-components';
3
3
  interface PrepviewContext {
4
4
  orientation: SideSheetOrientation;
5
+ isWorkOrder: boolean;
5
6
  }
6
7
  export declare const PrepviewContext: React.Context<PrepviewContext>;
7
8
  export declare const usePrepviewContext: () => PrepviewContext;
@@ -1,4 +1,4 @@
1
1
  import { DependencyList } from 'react';
2
- declare type FetchCallback<T> = () => Promise<T> | undefined;
2
+ type FetchCallback<T> = () => Promise<T> | undefined;
3
3
  export declare function useFetch<TError = unknown, T = unknown>(callback: FetchCallback<T>, deps?: DependencyList): [data: T | undefined, isLoading: boolean, error: TError | unknown];
4
4
  export {};
@@ -1,4 +1,4 @@
1
- declare type DownloadPromise = () => Promise<Blob>;
1
+ type DownloadPromise = () => Promise<Blob>;
2
2
  interface DownloadOnClick {
3
3
  isLoading: boolean;
4
4
  objectUrl?: string;
@@ -3,8 +3,8 @@ export declare enum ItemTypes {
3
3
  mcPack = "mcPack",
4
4
  commPack = "commPack"
5
5
  }
6
- declare type ActiveSearchFunction = (type: ItemTypes, itemNumber: string, instCode: string) => void;
7
- declare type ActivePackageSearchFunction = (type: ItemTypes, itemNumber: string, projectNumber: string) => void;
6
+ type ActiveSearchFunction = (type: ItemTypes, itemNumber: string, instCode: string) => void;
7
+ type ActivePackageSearchFunction = (type: ItemTypes, itemNumber: string, projectNumber: string) => void;
8
8
  export declare function useSetActiveSearchItem(): ActiveSearchFunction;
9
9
  export declare function useSetActivePackageItemInState(): ActivePackageSearchFunction;
10
10
  export {};
@@ -6,5 +6,5 @@ export interface Props {
6
6
  isLoading?: boolean;
7
7
  closePanel: () => void;
8
8
  }
9
- declare function Details({ details, instCode, closePanel }: Props): JSX.Element;
10
- export { Details };
9
+ declare function DetailsNotification({ details, instCode, closePanel }: Props): JSX.Element;
10
+ export { DetailsNotification };
@@ -1 +1 @@
1
- export * from './Details';
1
+ export * from './DetailsNotification';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { PrepviewNotification, PrepviewPunch, PrepviewWorkOrder } from '../../../types';
3
3
  import { WorkItemType } from '../../../utils';
4
- declare type Items = Array<PrepviewNotification | PrepviewWorkOrder | PrepviewPunch>;
4
+ type Items = Array<PrepviewNotification | PrepviewWorkOrder | PrepviewPunch>;
5
5
  export interface ItemProps {
6
6
  itemType: WorkItemType;
7
7
  subType: string;
@@ -1,4 +1,4 @@
1
- export declare type PrepviewAttachment = {
1
+ export type PrepviewAttachment = {
2
2
  createdDateTime: Date;
3
3
  fileName: string;
4
4
  fileSize: number;
@@ -1,13 +1,50 @@
1
1
  /// <reference types="react" />
2
- export declare type FetchStatus = {
2
+ import { PrepviewAttachment } from './attachment';
3
+ import { PrepviewDocumentGroup } from './document';
4
+ import { PrepviewNotification } from './notification';
5
+ import { PrepviewOperation } from './operation';
6
+ import { PrepviewPunch } from './punch';
7
+ import { PrepviewSafety } from './safety';
8
+ import { PrepviewRelatedTag, PrepviewTagInformation } from './tag';
9
+ import { PrepviewTagHistoryGroup, PrepviewWorkOrder } from './workorder';
10
+ export type FetchStatus = {
3
11
  statusCode?: 'Forbidden' | string;
4
12
  };
5
- export declare type ContentPickerGroup = {
13
+ export type ContentPickerGroup = {
6
14
  title?: string;
7
15
  items: ContentPickerItem[];
8
16
  };
9
- export declare type ContentPickerItem = {
17
+ export type ContentPickerItem = {
10
18
  id: string;
11
19
  title: string;
12
20
  content: React.ReactNode;
13
21
  };
22
+ export type AdditionalDetailsDto = {
23
+ attachments: FetchStatus & {
24
+ attachments: Array<PrepviewAttachment>;
25
+ };
26
+ documents: FetchStatus & {
27
+ documentGroups: Array<PrepviewDocumentGroup>;
28
+ };
29
+ history: FetchStatus & {
30
+ notificationGroups: FetchStatus & {
31
+ groups: PrepviewTagHistoryGroup<PrepviewNotification>[];
32
+ };
33
+ punchGroups: FetchStatus & {
34
+ groups: PrepviewTagHistoryGroup<PrepviewPunch>[];
35
+ };
36
+ workOrderGroups: FetchStatus & {
37
+ groups: PrepviewTagHistoryGroup<PrepviewWorkOrder>[];
38
+ };
39
+ };
40
+ objects: FetchStatus & {
41
+ objects: Array<PrepviewRelatedTag>;
42
+ };
43
+ operations: FetchStatus & {
44
+ operations: Array<PrepviewOperation>;
45
+ };
46
+ safetyCards: FetchStatus & {
47
+ safetyCards: Array<PrepviewSafety>;
48
+ };
49
+ tagInformation: FetchStatus & PrepviewTagInformation;
50
+ };
@@ -1,9 +1,9 @@
1
1
  import { FileDto } from '@equinor/echo-search';
2
- export declare type PrepviewDocumentGroup = {
2
+ export type PrepviewDocumentGroup = {
3
3
  type: string;
4
4
  documents: Array<PrepviewDocument>;
5
5
  };
6
- export declare type PrepviewDocument = {
6
+ export type PrepviewDocument = {
7
7
  docNo: string;
8
8
  docTitle: string;
9
9
  files: Array<FileDto>;
@@ -5,11 +5,11 @@ import { PrepviewPunch } from './punch';
5
5
  import { PrepviewSafety } from './safety';
6
6
  import { PrepviewTagInformation } from './tag';
7
7
  import { PrepviewTagHistoryGroup, PrepviewWorkOrder } from './workorder';
8
- export declare type PrepviewNotificationDto = {
8
+ export type PrepviewNotificationDto = {
9
9
  details: NotificationDetails;
10
10
  additionalDetails?: NotificationAdditionalDetails;
11
11
  };
12
- export declare type NotificationDetails = FetchStatus & {
12
+ export type NotificationDetails = FetchStatus & {
13
13
  id: string;
14
14
  type: string;
15
15
  title: string;
@@ -32,7 +32,7 @@ export declare type NotificationDetails = FetchStatus & {
32
32
  failureMechanism: string;
33
33
  longText: string;
34
34
  };
35
- export declare type NotificationAdditionalDetails = {
35
+ export type NotificationAdditionalDetails = {
36
36
  attachments: FetchStatus & {
37
37
  attachments: Array<PrepviewAttachment>;
38
38
  };
@@ -55,7 +55,7 @@ export declare type NotificationAdditionalDetails = {
55
55
  };
56
56
  tagInformation: FetchStatus & PrepviewTagInformation;
57
57
  };
58
- export declare type PrepviewNotification = {
58
+ export type PrepviewNotification = {
59
59
  id: string;
60
60
  activeStatusIds: string;
61
61
  changedDateTime?: Date;
@@ -1,4 +1,4 @@
1
- export declare type PrepviewOperation = {
1
+ export type PrepviewOperation = {
2
2
  actualPercentageComplete: number;
3
3
  actualWorkHours: string;
4
4
  capacityCount: number;
@@ -1,5 +1,5 @@
1
1
  import { FetchStatus } from './common';
2
- export declare type PunchDetails = FetchStatus & {
2
+ export type PunchDetails = FetchStatus & {
3
3
  id: string;
4
4
  tagNo: string;
5
5
  tagDescription: string;
@@ -16,7 +16,7 @@ export declare type PunchDetails = FetchStatus & {
16
16
  projectName: string;
17
17
  statusCode: number;
18
18
  };
19
- export declare type PrepviewPunch = {
19
+ export type PrepviewPunch = {
20
20
  id: string;
21
21
  type: string;
22
22
  statusId: string;
@@ -1,4 +1,4 @@
1
- export declare type PrepviewSafety = {
1
+ export type PrepviewSafety = {
2
2
  title: string;
3
3
  description: string;
4
4
  caseDate: string;
@@ -1,4 +1,4 @@
1
- export declare type PrepviewTagInformation = {
1
+ export type PrepviewTagInformation = {
2
2
  abcIndicator: string;
3
3
  area: string;
4
4
  consequenceCost: string;
@@ -14,7 +14,7 @@ export declare type PrepviewTagInformation = {
14
14
  repairStrategy: string;
15
15
  unsafeFailure: string[];
16
16
  };
17
- export declare type PrepviewRelatedTag = {
17
+ export type PrepviewRelatedTag = {
18
18
  tagId: string;
19
19
  tagPlantId: string;
20
20
  tag: string;
@@ -6,11 +6,11 @@ import { PrepviewOperation } from './operation';
6
6
  import { PrepviewPunch } from './punch';
7
7
  import { PrepviewSafety } from './safety';
8
8
  import { PrepviewRelatedTag, PrepviewTagInformation } from './tag';
9
- export declare type PrepviewWorkOrderDto = {
9
+ export type PrepviewWorkOrderDto = {
10
10
  details: WorkOrderDetails;
11
11
  additionalDetails?: WorkOrderAdditionalDetails;
12
12
  };
13
- export declare type WorkOrderDetails = FetchStatus & {
13
+ export type WorkOrderDetails = FetchStatus & {
14
14
  basicFinishDateTime: Date;
15
15
  basicStartDateTime: Date;
16
16
  changedDateTime: Date;
@@ -37,7 +37,7 @@ export declare type WorkOrderDetails = FetchStatus & {
37
37
  priorityId: string;
38
38
  plantId: string;
39
39
  };
40
- export declare type WorkOrderAdditionalDetails = {
40
+ export type WorkOrderAdditionalDetails = {
41
41
  attachments: FetchStatus & {
42
42
  attachments: Array<PrepviewAttachment>;
43
43
  };
@@ -66,11 +66,11 @@ export declare type WorkOrderAdditionalDetails = {
66
66
  };
67
67
  tagInformation: FetchStatus & PrepviewTagInformation;
68
68
  };
69
- export declare type PrepviewTagHistoryGroup<T = PrepviewNotification | PrepviewWorkOrder | PrepviewPunch> = {
69
+ export type PrepviewTagHistoryGroup<T = PrepviewNotification | PrepviewWorkOrder | PrepviewPunch> = {
70
70
  type: string;
71
71
  items: Array<T>;
72
72
  };
73
- export declare type PrepviewWorkOrder = {
73
+ export type PrepviewWorkOrder = {
74
74
  type: string;
75
75
  title: string;
76
76
  mainWorkCenterId?: string;
@@ -7,4 +7,4 @@ export * from './object';
7
7
  export * from './string';
8
8
  export * from './url';
9
9
  export * from './workorder';
10
- export * from './status';
10
+ export * from './notification';
@@ -4,26 +4,26 @@ export declare enum ObjectName {
4
4
  Synergi = "Synergi",
5
5
  SafeX = "SafeX"
6
6
  }
7
- declare type ActionNames = {
7
+ type ActionNames = {
8
8
  [ObjectName.Module]: ModuleActions;
9
9
  [ObjectName.Synergi]: SynergiActions;
10
10
  [ObjectName.SafeX]: SafeXActions;
11
11
  };
12
- declare type ActionProperties = {
12
+ type ActionProperties = {
13
13
  [ObjectName.Module]: ModuleActionProperties;
14
14
  [ObjectName.Synergi]: SynergiActionProperties;
15
15
  [ObjectName.SafeX]: SafeXActionProperties;
16
16
  };
17
- declare type ModuleActions = 'Started';
18
- declare type ModuleActionProperties = {
17
+ type ModuleActions = 'Started';
18
+ type ModuleActionProperties = {
19
19
  message?: string;
20
20
  };
21
- declare type SynergiActions = 'Application opened';
22
- declare type SynergiActionProperties = {
21
+ type SynergiActions = 'Application opened';
22
+ type SynergiActionProperties = {
23
23
  synergiUrl: string;
24
24
  };
25
- declare type SafeXActions = 'Application opened';
26
- declare type SafeXActionProperties = {
25
+ type SafeXActions = 'Application opened';
26
+ type SafeXActionProperties = {
27
27
  searchValue?: string;
28
28
  };
29
29
  declare enum LogLevel {
@@ -33,7 +33,7 @@ declare enum LogLevel {
33
33
  QA = 3,
34
34
  Prod = 4
35
35
  }
36
- declare type LogLevelKeys = keyof typeof LogLevel;
36
+ type LogLevelKeys = keyof typeof LogLevel;
37
37
  interface BaseLoggerProps {
38
38
  moduleName: string;
39
39
  analytics: AnalyticsModule;
@@ -59,7 +59,7 @@ declare class BaseLogger {
59
59
  */
60
60
  protected setInitialLogLevel(): LogLevel;
61
61
  }
62
- declare type PrepviewLoggerProps = BaseLoggerProps;
62
+ type PrepviewLoggerProps = BaseLoggerProps;
63
63
  declare class PrepviewLogger extends BaseLogger {
64
64
  constructor({ ...baseProps }: PrepviewLoggerProps);
65
65
  trackEvent<Name extends ObjectName = ObjectName, Action extends ActionNames[Name] = ActionNames[Name], Properties extends ActionProperties[Name] = ActionProperties[Name]>(objectName: Name, actionName: Action, properties: Properties): void;
@@ -1 +1,3 @@
1
1
  export declare function setNotificationIconName(type: string): "notifications_m1" | "notifications_m2" | "notifications_m3" | "notifications_m4" | "notifications_m5" | "notifications_m6" | "notifications_m9" | "notifications_main_group";
2
+ export declare function getStatusColor(statusIds: string): "#4bb748" | "#fbca36";
3
+ export declare function getStatusText(statusIds: string): "Completed" | "Active";
@@ -1 +1 @@
1
- export declare function setPunchIconName(type: string): string;
1
+ export declare function setPunchIconName(type: string): "punches_pa" | "punches_pb" | "punches_main_group";
@@ -1,5 +1,5 @@
1
1
  export declare function combineUrls(base: string, ...parts: string[]): string;
2
- export declare type Params = Record<string, string | number | boolean>;
2
+ export type Params = Record<string, string | number | boolean>;
3
3
  /**
4
4
  * Takes a url as input and adds the specified parameters to it.
5
5
  * @param url The url to extend.
@@ -6,5 +6,5 @@ export interface Props {
6
6
  isLoading?: boolean;
7
7
  closePanel: () => void;
8
8
  }
9
- declare function Details({ details, instCode, closePanel }: Props): JSX.Element;
10
- export { Details };
9
+ declare function DetailsWorkOrder({ details, instCode, closePanel }: Props): JSX.Element;
10
+ export { DetailsWorkOrder };
@@ -1 +1 @@
1
- export * from './Details';
1
+ export * from './DetailsWorkOrder';