@equinor/echo-framework 0.10.18 → 0.10.21
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/dist/components/containers/layouts.d.ts +1 -1
- package/dist/components/contextualAppLinks/contextualAppLinks.context.d.ts +1 -1
- package/dist/components/contextualAppLinks/contextualAppLinks.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalAppsMenu.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.d.ts +2 -2
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToCommApp.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToConditionAdviser.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToMcApp.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToProCoSys.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSafeX.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSap.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSemiDoc.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToStid.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTr2000.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTrendingApp.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/iconButtonSpinner.d.ts +1 -1
- package/dist/components/contextualAppLinks/hooks/useContextualAppLinks.d.ts +1 -1
- package/dist/components/contextualAppLinks/index.d.ts +1 -1
- package/dist/components/contextualAppLinks/internalAppLinks.d.ts +1 -1
- package/dist/components/contextualAppLinks/linkButton.d.ts +2 -2
- package/dist/components/externalLinkButton/externalLinkButton.d.ts +4 -4
- package/dist/components/homePage/HomePage.d.ts +1 -2
- package/dist/components/pageMenu/defaultAccordionItem.d.ts +1 -1
- package/dist/components/prepview/Prepview.d.ts +2 -1
- package/dist/components/prepview/api/attachment.d.ts +1 -1
- package/dist/components/prepview/api/resources.d.ts +1 -0
- package/dist/components/prepview/common/access/request/RequestAccess.d.ts +1 -1
- package/dist/components/prepview/common/additionalInformation/AdditionalDetails.d.ts +11 -0
- package/dist/components/prepview/common/additionalInformation/tabsPanels/TabsPanels.d.ts +15 -0
- package/dist/components/prepview/common/additionalInformation/tabsPanels/index.d.ts +1 -0
- package/dist/components/prepview/context/PrepviewContext.d.ts +1 -0
- package/dist/components/prepview/hooks/useFetch.d.ts +1 -1
- package/dist/components/prepview/hooks/useOnClickDownload.d.ts +1 -1
- package/dist/components/prepview/hooks/useSetActiveSearchItem.d.ts +2 -2
- package/dist/components/prepview/notification/details/{Details.d.ts → DetailsNotification.d.ts} +2 -2
- package/dist/components/prepview/notification/details/index.d.ts +1 -1
- package/dist/components/prepview/panels/history/items/Items.d.ts +1 -1
- package/dist/components/prepview/types/attachment.d.ts +1 -1
- package/dist/components/prepview/types/common.d.ts +40 -3
- package/dist/components/prepview/types/document.d.ts +2 -2
- package/dist/components/prepview/types/notification.d.ts +4 -4
- package/dist/components/prepview/types/operation.d.ts +1 -1
- package/dist/components/prepview/types/punch.d.ts +2 -2
- package/dist/components/prepview/types/safety.d.ts +1 -1
- package/dist/components/prepview/types/tag.d.ts +2 -2
- package/dist/components/prepview/types/workorder.d.ts +5 -5
- package/dist/components/prepview/utils/index.d.ts +1 -1
- package/dist/components/prepview/utils/logger.d.ts +10 -10
- package/dist/components/prepview/utils/notification.d.ts +2 -0
- package/dist/components/prepview/utils/punch.d.ts +1 -1
- package/dist/components/prepview/utils/url.d.ts +1 -1
- package/dist/components/prepview/workorder/details/{Details.d.ts → DetailsWorkOrder.d.ts} +2 -2
- package/dist/components/prepview/workorder/details/index.d.ts +1 -1
- package/dist/components/prepview/workorder/header/Header.d.ts +2 -1
- package/dist/components/prepview/workorder/index.d.ts +2 -1
- package/dist/components/realTimeData/hooks/useRealTimeHub.d.ts +1 -1
- package/dist/components/realTimeData/hooks/useSignalRListener.d.ts +1 -1
- package/dist/coreApplication/EchoSetup.d.ts +1 -1
- package/dist/hooks/useEchoHistory.d.ts +2 -2
- package/dist/hooks/useScreenValues.d.ts +1 -1
- package/dist/hooks/useSemi.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/services/api/api-manager.d.ts +1 -1
- package/dist/services/componentRegistry/componentRegistry.d.ts +1 -1
- package/dist/types/api-proCoSysTagResponse.d.ts +1 -1
- package/dist/types/hookLibrary.d.ts +5 -5
- package/package.json +23 -23
- package/dist/components/prepview/notification/additionalDetails/AdditionalDetails.d.ts +0 -10
- package/dist/components/prepview/notification/additionalDetails/index.d.ts +0 -1
- package/dist/components/prepview/utils/status.d.ts +0 -3
- package/dist/components/prepview/workorder/additionalDetails/AdditionalDetails.d.ts +0 -10
- package/dist/components/prepview/workorder/additionalDetails/index.d.ts +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type LayoutKey = 'main' | 'nativePdf' | 'colorLayout' | '3dweb' | undefined;
|
|
3
3
|
export interface LayoutProps {
|
|
4
4
|
layoutKey?: string;
|
|
5
5
|
children: React.ReactNode;
|
package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TagDetailsDto } from '@equinor/echo-search';
|
|
2
2
|
import { ProCoSysApiTag } from '../../../types/api-proCoSysTagResponse';
|
|
3
|
-
|
|
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
|
-
|
|
24
|
+
type getTagDetailsWithErrorHandlingResponse = {
|
|
25
25
|
tagDetails: TagDetailsDto | undefined;
|
|
26
26
|
hasError: boolean;
|
|
27
27
|
};
|
|
@@ -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
|
-
|
|
6
|
+
type ContextualAppLinksCompoundProps = typeof LinksWrapper & {
|
|
7
7
|
InternalApps: typeof InternalAppLinks;
|
|
8
8
|
ExternalAppsMenu: typeof ExternalAppsMenu;
|
|
9
9
|
AllExternalApps: typeof AllExternalLinks;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type LinkButtonProps = {
|
|
3
3
|
label?: string;
|
|
4
4
|
iconName: string;
|
|
5
5
|
onClick: OnClickHandler;
|
|
6
6
|
};
|
|
7
|
-
|
|
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
|
-
|
|
3
|
-
|
|
2
|
+
type ExternalLinkButtonProps = AsyncButtonProps | SyncButtonProps;
|
|
3
|
+
type AsyncButtonProps = BaseProps & {
|
|
4
4
|
linkTo?: never;
|
|
5
5
|
getUrlToOpen: (...args: any[]) => Promise<string | undefined>;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type SyncButtonProps = BaseProps & {
|
|
8
8
|
linkTo: string;
|
|
9
9
|
getUrlToOpen?: never;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type BaseProps = {
|
|
12
12
|
buttonName: string;
|
|
13
13
|
buttonIcon: string;
|
|
14
14
|
hideText?: boolean;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const HomePage: React.ReactNode;
|
|
1
|
+
export declare const HomePage: () => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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(
|
|
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;
|
|
@@ -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
|
-
|
|
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 {};
|
|
@@ -3,8 +3,8 @@ export declare enum ItemTypes {
|
|
|
3
3
|
mcPack = "mcPack",
|
|
4
4
|
commPack = "commPack"
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
|
|
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 {};
|
package/dist/components/prepview/notification/details/{Details.d.ts → DetailsNotification.d.ts}
RENAMED
|
@@ -6,5 +6,5 @@ export interface Props {
|
|
|
6
6
|
isLoading?: boolean;
|
|
7
7
|
closePanel: () => void;
|
|
8
8
|
}
|
|
9
|
-
declare function
|
|
10
|
-
export {
|
|
9
|
+
declare function DetailsNotification({ details, instCode, closePanel }: Props): JSX.Element;
|
|
10
|
+
export { DetailsNotification };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
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
|
-
|
|
4
|
+
type Items = Array<PrepviewNotification | PrepviewWorkOrder | PrepviewPunch>;
|
|
5
5
|
export interface ItemProps {
|
|
6
6
|
itemType: WorkItemType;
|
|
7
7
|
subType: string;
|
|
@@ -1,13 +1,50 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
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
|
|
13
|
+
export type ContentPickerGroup = {
|
|
6
14
|
title?: string;
|
|
7
15
|
items: ContentPickerItem[];
|
|
8
16
|
};
|
|
9
|
-
export
|
|
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
|
|
2
|
+
export type PrepviewDocumentGroup = {
|
|
3
3
|
type: string;
|
|
4
4
|
documents: Array<PrepviewDocument>;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
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
|
|
8
|
+
export type PrepviewNotificationDto = {
|
|
9
9
|
details: NotificationDetails;
|
|
10
10
|
additionalDetails?: NotificationAdditionalDetails;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
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
|
|
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
|
|
58
|
+
export type PrepviewNotification = {
|
|
59
59
|
id: string;
|
|
60
60
|
activeStatusIds: string;
|
|
61
61
|
changedDateTime?: Date;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchStatus } from './common';
|
|
2
|
-
export
|
|
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
|
|
19
|
+
export type PrepviewPunch = {
|
|
20
20
|
id: string;
|
|
21
21
|
type: string;
|
|
22
22
|
statusId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
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
|
|
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
|
|
9
|
+
export type PrepviewWorkOrderDto = {
|
|
10
10
|
details: WorkOrderDetails;
|
|
11
11
|
additionalDetails?: WorkOrderAdditionalDetails;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
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
|
|
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
|
|
69
|
+
export type PrepviewTagHistoryGroup<T = PrepviewNotification | PrepviewWorkOrder | PrepviewPunch> = {
|
|
70
70
|
type: string;
|
|
71
71
|
items: Array<T>;
|
|
72
72
|
};
|
|
73
|
-
export
|
|
73
|
+
export type PrepviewWorkOrder = {
|
|
74
74
|
type: string;
|
|
75
75
|
title: string;
|
|
76
76
|
mainWorkCenterId?: string;
|
|
@@ -4,26 +4,26 @@ export declare enum ObjectName {
|
|
|
4
4
|
Synergi = "Synergi",
|
|
5
5
|
SafeX = "SafeX"
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
type ActionNames = {
|
|
8
8
|
[ObjectName.Module]: ModuleActions;
|
|
9
9
|
[ObjectName.Synergi]: SynergiActions;
|
|
10
10
|
[ObjectName.SafeX]: SafeXActions;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type ActionProperties = {
|
|
13
13
|
[ObjectName.Module]: ModuleActionProperties;
|
|
14
14
|
[ObjectName.Synergi]: SynergiActionProperties;
|
|
15
15
|
[ObjectName.SafeX]: SafeXActionProperties;
|
|
16
16
|
};
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
type ModuleActions = 'Started';
|
|
18
|
+
type ModuleActionProperties = {
|
|
19
19
|
message?: string;
|
|
20
20
|
};
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
type SynergiActions = 'Application opened';
|
|
22
|
+
type SynergiActionProperties = {
|
|
23
23
|
synergiUrl: string;
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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):
|
|
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
|
|
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
|
|
10
|
-
export {
|
|
9
|
+
declare function DetailsWorkOrder({ details, instCode, closePanel }: Props): JSX.Element;
|
|
10
|
+
export { DetailsWorkOrder };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './DetailsWorkOrder';
|