@equinor/echo-framework 0.19.1 → 0.19.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 +1 -1
- package/package.json +1 -1
- package/src/lib/feature/equipment/components/equipmentItemHeader/NavigateToSapDialog.d.ts +8 -0
- package/src/lib/feature/equipment/components/equipmentItemHeader/equipmentItemSubHeader.d.ts +8 -0
- package/src/lib/feature/equipment/components/equipmentItemHeader/linkToSapEquipment.d.ts +7 -0
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.d.ts +2 -160
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts +3 -34
- package/src/lib/feature/measuringPoint/components/measuringPointDetails/labelledImageList.d.ts +2 -1
- package/src/lib/feature/measuringPoint/components/measuringPointDetails/mediaItemView/MeasuringPointImageViewFooter.d.ts +1 -1
- package/src/lib/feature/measuringPoint/types/documentRelationships.d.ts +2 -4
package/package.json
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface NavigateToSapDialogProps {
|
|
3
|
+
isDialogOpen: boolean;
|
|
4
|
+
setIsDialogOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
+
urlToSap: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const NavigateToSapDialog: React.FC<NavigateToSapDialogProps>;
|
|
8
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GlobalSelectionStore } from './globalSelectionStore.types';
|
|
2
2
|
export declare const useGlobalSelectionStore: import("zustand").UseBoundStore<Omit<Omit<Omit<import("zustand").StoreApi<GlobalSelectionStore>, "setState"> & {
|
|
3
3
|
setState<A extends string | {
|
|
4
4
|
type: string;
|
|
@@ -12,165 +12,7 @@ export declare const useGlobalSelectionStore: import("zustand").UseBoundStore<Om
|
|
|
12
12
|
} | undefined): () => void;
|
|
13
13
|
};
|
|
14
14
|
}, "setState"> & {
|
|
15
|
-
setState(nextStateOrUpdater: GlobalSelectionStore | Partial<GlobalSelectionStore> | ((state: {
|
|
16
|
-
lists: ({
|
|
17
|
-
label: string;
|
|
18
|
-
key: string;
|
|
19
|
-
type: GlobalSelectionItemType.WorkOrder;
|
|
20
|
-
items: {
|
|
21
|
-
id: string;
|
|
22
|
-
type: GlobalSelectionItemType.WorkOrder;
|
|
23
|
-
data: {
|
|
24
|
-
workOrderId: string;
|
|
25
|
-
tagId?: string | undefined;
|
|
26
|
-
tagPlantId: string;
|
|
27
|
-
workCenterId?: string | undefined;
|
|
28
|
-
workCenterPlantId: string;
|
|
29
|
-
plannerGroupId: string;
|
|
30
|
-
workOrderTypeId: string;
|
|
31
|
-
revisionCodeId: string;
|
|
32
|
-
systemId?: string | undefined;
|
|
33
|
-
isOpen: boolean;
|
|
34
|
-
hasStatusTECO: boolean;
|
|
35
|
-
hasStatusRDOP: boolean;
|
|
36
|
-
hasStatusCANC: boolean;
|
|
37
|
-
hasStatusSTRT: boolean;
|
|
38
|
-
hasStatusRDEX: boolean;
|
|
39
|
-
hasStatusPREP: boolean;
|
|
40
|
-
hasStatusPRCO: boolean;
|
|
41
|
-
title: string;
|
|
42
|
-
plantId: string;
|
|
43
|
-
planningPlantId: string;
|
|
44
|
-
sortField: string;
|
|
45
|
-
locationId: string;
|
|
46
|
-
revisionId: string;
|
|
47
|
-
basicStartDateTime?: string | null | undefined;
|
|
48
|
-
basicEndDateTime?: string | null | undefined;
|
|
49
|
-
createdDateTime?: string | null | undefined;
|
|
50
|
-
maintenanceRecord?: {
|
|
51
|
-
activeStatusIds: string;
|
|
52
|
-
completedDateTime?: string | null | undefined;
|
|
53
|
-
correctiveWorkOrderExist?: boolean | undefined;
|
|
54
|
-
correctiveWorkOrderId?: string | undefined;
|
|
55
|
-
createdDateTime: string;
|
|
56
|
-
detectionMethodGroupId?: string | undefined;
|
|
57
|
-
detectionMethodId?: string | undefined;
|
|
58
|
-
equipmentId: string;
|
|
59
|
-
failureEndDateTime?: string | null | undefined;
|
|
60
|
-
failureImpactId?: string | undefined;
|
|
61
|
-
failureMechanismGroupId?: string | undefined;
|
|
62
|
-
failureMechanismId?: string | undefined;
|
|
63
|
-
failureModeGroupId?: string | undefined;
|
|
64
|
-
failureModeId?: string | undefined;
|
|
65
|
-
failureStartDateTime?: string | null | undefined;
|
|
66
|
-
hasUnsafeFailureMode?: boolean | undefined;
|
|
67
|
-
isBreakdown?: boolean | undefined;
|
|
68
|
-
isOpen?: boolean | undefined;
|
|
69
|
-
locationId?: string | undefined;
|
|
70
|
-
maintenanceRecordTypeId?: string | undefined;
|
|
71
|
-
recordId: string;
|
|
72
|
-
requiredEndDate?: string | null | undefined;
|
|
73
|
-
systemId?: string | undefined;
|
|
74
|
-
tagId: string;
|
|
75
|
-
tagPlantId: string;
|
|
76
|
-
title: string;
|
|
77
|
-
unsafeFailureModeStatus?: string | null | undefined;
|
|
78
|
-
workCenterId?: string | undefined;
|
|
79
|
-
} | null | undefined;
|
|
80
|
-
_links: {
|
|
81
|
-
related: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
metaData: {
|
|
85
|
-
color: string;
|
|
86
|
-
isHiddenByUser: boolean;
|
|
87
|
-
errorStatuses: GlobalSelectionItemErrorStatuses[];
|
|
88
|
-
};
|
|
89
|
-
}[];
|
|
90
|
-
} | {
|
|
91
|
-
label: string;
|
|
92
|
-
key: string;
|
|
93
|
-
type: GlobalSelectionItemType.Tag;
|
|
94
|
-
items: {
|
|
95
|
-
id: string;
|
|
96
|
-
type: GlobalSelectionItemType.Tag;
|
|
97
|
-
data: {
|
|
98
|
-
tagCategoryDescription: string;
|
|
99
|
-
tagCategory: number;
|
|
100
|
-
tagStatus: import("@equinor/echo-search").TagStatus;
|
|
101
|
-
tagType: string;
|
|
102
|
-
updatedDate: Date;
|
|
103
|
-
locationCode: string;
|
|
104
|
-
contrCode: string;
|
|
105
|
-
plantNo: string;
|
|
106
|
-
poNo: string;
|
|
107
|
-
xCoordinate?: number | undefined;
|
|
108
|
-
yCoordinate?: number | undefined;
|
|
109
|
-
zCoordinate?: number | undefined;
|
|
110
|
-
additionalFields: {
|
|
111
|
-
type: string;
|
|
112
|
-
value: string;
|
|
113
|
-
}[];
|
|
114
|
-
tagNo: string;
|
|
115
|
-
description: string;
|
|
116
|
-
projectCode: string;
|
|
117
|
-
system: string;
|
|
118
|
-
};
|
|
119
|
-
metaData: {
|
|
120
|
-
color: string;
|
|
121
|
-
isHiddenByUser: boolean;
|
|
122
|
-
errorStatuses: GlobalSelectionItemErrorStatuses[];
|
|
123
|
-
};
|
|
124
|
-
}[];
|
|
125
|
-
} | {
|
|
126
|
-
label: string;
|
|
127
|
-
key: string;
|
|
128
|
-
type: GlobalSelectionItemType.Equipment;
|
|
129
|
-
items: {
|
|
130
|
-
id: string;
|
|
131
|
-
type: GlobalSelectionItemType.Equipment;
|
|
132
|
-
data: {
|
|
133
|
-
equipmentId: string;
|
|
134
|
-
equipmentDescription: string;
|
|
135
|
-
maintenancePlantId: string;
|
|
136
|
-
functionalLocationId: string;
|
|
137
|
-
manufacturer: string;
|
|
138
|
-
materialNo: string;
|
|
139
|
-
modelNo: string;
|
|
140
|
-
partNo: string;
|
|
141
|
-
serialNo: string;
|
|
142
|
-
tagPlantId?: string | undefined;
|
|
143
|
-
tagId?: string | undefined;
|
|
144
|
-
locationId: string;
|
|
145
|
-
area?: string | undefined;
|
|
146
|
-
categoryId?: string | undefined;
|
|
147
|
-
activeStatusIds: string[];
|
|
148
|
-
systemStatusIds: string[];
|
|
149
|
-
userStatusIds: string[];
|
|
150
|
-
equipmentsStatus: string[];
|
|
151
|
-
changedDate?: string | undefined;
|
|
152
|
-
createdDate?: string | undefined;
|
|
153
|
-
e3DRef?: string | undefined;
|
|
154
|
-
};
|
|
155
|
-
metaData: {
|
|
156
|
-
color: string;
|
|
157
|
-
isHiddenByUser: boolean;
|
|
158
|
-
errorStatuses: GlobalSelectionItemErrorStatuses[];
|
|
159
|
-
};
|
|
160
|
-
}[];
|
|
161
|
-
})[];
|
|
162
|
-
addWorkOrderToSelection: (args: {
|
|
163
|
-
workOrder: OptimizedWorkOrderDto;
|
|
164
|
-
}) => void;
|
|
165
|
-
replaceWorkOrderSelection: (args: {
|
|
166
|
-
workOrders: OptimizedWorkOrderDto[];
|
|
167
|
-
}) => void;
|
|
168
|
-
setNotFoundItems: (args: {
|
|
169
|
-
itemIds: string[];
|
|
170
|
-
}) => void;
|
|
171
|
-
resetItemNotFoundStates: () => void;
|
|
172
|
-
resetState: () => void;
|
|
173
|
-
}) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
15
|
+
setState(nextStateOrUpdater: GlobalSelectionStore | Partial<GlobalSelectionStore> | ((state: import("immer").WritableDraft<GlobalSelectionStore>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
174
16
|
type: string;
|
|
175
17
|
} | undefined): void;
|
|
176
18
|
}>;
|
package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ export declare enum GlobalSelectionItemType {
|
|
|
6
6
|
Equipment = "Equipment"
|
|
7
7
|
}
|
|
8
8
|
interface ItemTypeToDataMap {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
WorkOrder: OptimizedWorkOrderDto;
|
|
10
|
+
Tag: TagSummaryDto;
|
|
11
|
+
Equipment: Equipment;
|
|
12
12
|
}
|
|
13
13
|
type GlobalSelectionList<T extends GlobalSelectionItemType> = {
|
|
14
14
|
label: string;
|
|
@@ -79,39 +79,8 @@ export type OptimizedWorkOrderDto = {
|
|
|
79
79
|
basicStartDateTime?: string | null;
|
|
80
80
|
basicEndDateTime?: string | null;
|
|
81
81
|
createdDateTime?: string | null;
|
|
82
|
-
maintenanceRecord?: WorkOrderMaintenanceRecord | null;
|
|
83
82
|
_links: {
|
|
84
83
|
related: string;
|
|
85
84
|
};
|
|
86
85
|
};
|
|
87
|
-
type WorkOrderMaintenanceRecord = {
|
|
88
|
-
activeStatusIds: string;
|
|
89
|
-
completedDateTime?: string | null;
|
|
90
|
-
correctiveWorkOrderExist?: boolean;
|
|
91
|
-
correctiveWorkOrderId?: string;
|
|
92
|
-
createdDateTime: string;
|
|
93
|
-
detectionMethodGroupId?: string;
|
|
94
|
-
detectionMethodId?: string;
|
|
95
|
-
equipmentId: string;
|
|
96
|
-
failureEndDateTime?: string | null;
|
|
97
|
-
failureImpactId?: string;
|
|
98
|
-
failureMechanismGroupId?: string;
|
|
99
|
-
failureMechanismId?: string;
|
|
100
|
-
failureModeGroupId?: string;
|
|
101
|
-
failureModeId?: string;
|
|
102
|
-
failureStartDateTime?: string | null;
|
|
103
|
-
hasUnsafeFailureMode?: boolean;
|
|
104
|
-
isBreakdown?: boolean;
|
|
105
|
-
isOpen?: boolean;
|
|
106
|
-
locationId?: string;
|
|
107
|
-
maintenanceRecordTypeId?: string;
|
|
108
|
-
recordId: string;
|
|
109
|
-
requiredEndDate?: string | null;
|
|
110
|
-
systemId?: string;
|
|
111
|
-
tagId: string;
|
|
112
|
-
tagPlantId: string;
|
|
113
|
-
title: string;
|
|
114
|
-
unsafeFailureModeStatus?: string | null;
|
|
115
|
-
workCenterId?: string;
|
|
116
|
-
};
|
|
117
86
|
export {};
|
package/src/lib/feature/measuringPoint/components/measuringPointDetails/labelledImageList.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ import { DocumentRelationships } from '../../types/documentRelationships';
|
|
|
2
2
|
interface LabelledImageListProps {
|
|
3
3
|
documentId: string;
|
|
4
4
|
createdDateTime: string;
|
|
5
|
+
reportedCondition: string;
|
|
5
6
|
imageSrc: string;
|
|
6
7
|
documentRelationships: DocumentRelationships[];
|
|
7
8
|
imageIndex: number;
|
|
8
9
|
}
|
|
9
|
-
export declare const LabelledImageList: ({ documentId, createdDateTime, imageSrc, documentRelationships, imageIndex }: LabelledImageListProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const LabelledImageList: ({ documentId, createdDateTime, reportedCondition, imageSrc, documentRelationships, imageIndex }: LabelledImageListProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -7,12 +7,10 @@ interface DocumentRelationshipsAttachment {
|
|
|
7
7
|
readonly attachmentId: string;
|
|
8
8
|
readonly attachmentImageUri?: string;
|
|
9
9
|
readonly createdDateTime?: string;
|
|
10
|
-
readonly
|
|
10
|
+
readonly quantitativeReading: string;
|
|
11
|
+
readonly quantitativeReadingUnitId: string;
|
|
11
12
|
}
|
|
12
13
|
interface DocumentRelationshipsCharacteristics {
|
|
13
14
|
readonly valueId?: string;
|
|
14
15
|
}
|
|
15
|
-
interface DocumentRelationshipsLinks {
|
|
16
|
-
readonly enclosure?: string;
|
|
17
|
-
}
|
|
18
16
|
export {};
|