@equinor/echo-framework 0.25.0 → 0.25.2
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 +8 -8
- package/package.json +2 -2
- package/src/index.d.ts +5 -4
- package/src/lib/components/contextualAppLinks/hooks/useContextualAppLinksContext.d.ts +1 -1
- package/src/lib/components/notificationListItem/types/types.d.ts +1 -0
- package/src/lib/feature/globalSelection/OpenGlobalSelectionIn3DButton.utils.d.ts +14 -0
- package/src/lib/feature/globalSelection/globalSelection.api.d.ts +6 -6
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStoreHelpers.d.ts +0 -14
- package/src/lib/feature/globalSelection/index.d.ts +0 -2
- package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/actions/selectionTree.action.types.d.ts +6 -3
- package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/selectionTree.store.types.d.ts +1 -1
- package/src/lib/feature/legend/legendFacade.d.ts +53 -0
- package/src/lib/feature/legend/legendStore.d.ts +12 -3
- package/src/lib/feature/legend/legendVisibleDataAsTagsStore.d.ts +41 -0
- package/src/lib/feature/legend/legendVisibleDataAsTagsStore.logic.d.ts +3 -0
- package/src/lib/feature/legend/legendVisibleDataAsTagsStore.type.d.ts +7 -0
- package/src/lib/feature/legend/legendVisibleDataStore.d.ts +15 -1
- package/src/lib/feature/legend/logic/isLegendDataIdEqualWithTag.d.ts +12 -0
- package/src/lib/feature/legend/types/legendStrategy.type.d.ts +0 -5
- package/src/lib/feature/measuringPoint/index.d.ts +1 -0
- package/src/lib/feature/workOrder/api/api-prepview-workOrder.d.ts +7 -0
- package/src/lib/feature/workOrder/components/PanelTagInfo/PanelTagInfo.d.ts +5 -0
- package/src/lib/feature/workOrder/components/PanelTagInfo/api/api-prepview-workOrder-tagInfo.d.ts +6 -0
- package/src/lib/feature/workOrder/components/PanelTagInfo/hooks/usePrepviewWorkOrderTagInfo.d.ts +6 -0
- package/src/lib/feature/workOrder/components/PanelTagInfo/types/tagInfo.d.ts +32 -0
- package/src/lib/feature/workOrder/components/WorkOrderItemDetails.d.ts +2 -2
- package/src/lib/feature/workOrder/components/WorkOrderItemHeader.d.ts +2 -6
- package/src/lib/feature/workOrder/components/WorkOrderItemHeader.types.d.ts +2 -0
- package/src/lib/feature/workOrder/components/WorkOrderItemTabInfo/WorkOrderItemTabInfo.d.ts +7 -0
- package/src/lib/feature/workOrder/hooks/usePrepviewWorkOrder.d.ts +2 -2
- package/src/lib/feature/workOrder/types/workOrder.d.ts +80 -43
- package/src/lib/feature/workOrder/utils/workOrderUtils.d.ts +2 -2
- package/src/lib/hooks/index.d.ts +1 -1
- package/src/lib/utils/handleErrors.d.ts +2 -1
- package/src/lib/feature/legend/legendUpdater.d.ts +0 -3
- package/src/lib/feature/workOrder/api/api-preview-workOrder.d.ts +0 -6
- /package/{index.cjs.d.ts → index.d.ts} +0 -0
|
@@ -1,48 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
/**
|
|
2
|
+
* TODO: This should be a common type/enum,
|
|
3
|
+
* See endDateStatus.ts in echo-components.
|
|
4
|
+
* They are the same but with different case
|
|
5
|
+
*/
|
|
6
|
+
type ExpirationStatus = 'Completed' | 'Expired' | 'WithinSevenDays' | 'EightDaysToOneMonth' | 'OneToThreeMonths' | 'ThreeToSixMonths' | 'SixToTwelveMonths' | 'InMoreThanOneYear' | 'Unknown';
|
|
7
|
+
type WorkOrderUserStatus = 'PREP' | 'PRCO' | 'RDEX' | 'STRT' | 'RDOP' | 'Other';
|
|
8
|
+
interface ContentReferencesDto {
|
|
9
|
+
label?: string | null;
|
|
10
|
+
typeLabel?: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface PrepViewWorkOrderDto {
|
|
9
13
|
id: string;
|
|
10
|
-
plantId
|
|
11
|
-
tagId
|
|
12
|
-
tagPlantId
|
|
13
|
-
tagCategory
|
|
14
|
-
tagCategoryId
|
|
14
|
+
plantId?: string | null;
|
|
15
|
+
tagId?: string | null;
|
|
16
|
+
tagPlantId?: string | null;
|
|
17
|
+
tagCategory?: string | null;
|
|
18
|
+
tagCategoryId?: string | null;
|
|
15
19
|
orderType: string;
|
|
16
20
|
activeStatusIds: string;
|
|
17
|
-
userStatus:
|
|
18
|
-
isActive:
|
|
19
|
-
personResponsible
|
|
20
|
-
plannerGroupId
|
|
21
|
-
workCenterId
|
|
22
|
-
locationId
|
|
23
|
-
changedDateTime
|
|
24
|
-
createdDateTime
|
|
25
|
-
requiredEndDateTime
|
|
26
|
-
requiredEndDateStatus:
|
|
21
|
+
userStatus: WorkOrderUserStatus;
|
|
22
|
+
isActive: boolean;
|
|
23
|
+
personResponsible?: string | null;
|
|
24
|
+
plannerGroupId?: string | null;
|
|
25
|
+
workCenterId?: string | null;
|
|
26
|
+
locationId?: string | null;
|
|
27
|
+
changedDateTime?: string | null;
|
|
28
|
+
createdDateTime?: string | null;
|
|
29
|
+
requiredEndDateTime?: string | null;
|
|
30
|
+
requiredEndDateStatus: ExpirationStatus;
|
|
27
31
|
requiredEndDateStatusDescription: string;
|
|
28
|
-
basicStartDateTime
|
|
29
|
-
basicFinishDateTime
|
|
30
|
-
basicFinishDateStatus
|
|
31
|
-
basicFinishDateStatusDescription
|
|
32
|
-
maintenancePlanDate
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
basicStartDateTime?: string | null;
|
|
33
|
+
basicFinishDateTime?: string | null;
|
|
34
|
+
basicFinishDateStatus?: ExpirationStatus;
|
|
35
|
+
basicFinishDateStatusDescription?: string | null;
|
|
36
|
+
maintenancePlanDate?: string | null;
|
|
37
|
+
maintenancePlantId?: string | null;
|
|
38
|
+
maintenancePlant?: string | null;
|
|
39
|
+
planningPlantId?: string | null;
|
|
40
|
+
planningPlant?: string | null;
|
|
41
|
+
priorityId?: string | null;
|
|
42
|
+
priority?: string | null;
|
|
43
|
+
revisionId?: string | null;
|
|
44
|
+
equipmentId?: string | null;
|
|
45
|
+
systemId?: string | null;
|
|
46
|
+
system?: string | null;
|
|
47
|
+
description?: string | null;
|
|
48
|
+
longText?: string | null;
|
|
49
|
+
instCode?: string | null;
|
|
50
|
+
sortField?: string | null;
|
|
51
|
+
maintenancePlantReference?: ContentReferencesDto;
|
|
52
|
+
planningPlantReference?: ContentReferencesDto;
|
|
53
|
+
}
|
|
54
|
+
export interface PrepViewWorkOrder {
|
|
55
|
+
id: string;
|
|
42
56
|
description: string;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
57
|
+
orderType: string;
|
|
58
|
+
isActive: boolean;
|
|
59
|
+
workCenterId: string;
|
|
60
|
+
basicFinishDateStatus?: ExpirationStatus;
|
|
61
|
+
requiredEndDateTime?: string;
|
|
62
|
+
requiredEndDateStatus?: ExpirationStatus;
|
|
63
|
+
maintenancePlanDate?: string;
|
|
64
|
+
basicFinishDateTime?: string;
|
|
65
|
+
basicStartDateTime?: string;
|
|
66
|
+
planningPlant?: string;
|
|
67
|
+
maintenancePlant?: string;
|
|
68
|
+
plantId?: string;
|
|
69
|
+
instCode?: string;
|
|
70
|
+
tagId?: string;
|
|
71
|
+
tagCategory?: string;
|
|
72
|
+
activeStatusIds?: string;
|
|
73
|
+
personResponsible?: string;
|
|
74
|
+
locationId?: string;
|
|
75
|
+
plannerGroupId?: string;
|
|
76
|
+
system?: string;
|
|
77
|
+
systemId?: string;
|
|
78
|
+
createdDateTime?: string;
|
|
79
|
+
changedDateTime?: string;
|
|
80
|
+
priority?: string;
|
|
81
|
+
revisionId?: string;
|
|
82
|
+
equipmentId?: string;
|
|
83
|
+
longText?: string;
|
|
84
|
+
}
|
|
85
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { WorkOrderListItemData } from '../../../components/workOrderListItem/types/types';
|
|
2
|
-
import {
|
|
3
|
-
export declare function
|
|
2
|
+
import { WorkOrderItemHeaderData } from '../components/WorkOrderItemHeader.types';
|
|
3
|
+
export declare function mapHeaderDataToListItemData(headerData: WorkOrderItemHeaderData): WorkOrderListItemData;
|
package/src/lib/hooks/index.d.ts
CHANGED
|
File without changes
|