@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-framework",
3
- "version": "0.19.1",
3
+ "version": "0.19.2",
4
4
  "peerDependencies": {
5
5
  "@equinor/echo-base": ">= 0.7.0 < 0.8.0",
6
6
  "@equinor/echo-components": ">= 0.11.0 < 0.12.0",
@@ -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 {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface EquipmentItemSubHeaderProps {
3
+ equipmentId: string;
4
+ tagNo: string;
5
+ plantNo: string;
6
+ }
7
+ export declare const EquipmentItemSubHeader: React.FC<EquipmentItemSubHeaderProps>;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface LinkToSapEquipmentProps {
3
+ plantNo: string;
4
+ tagNo: string;
5
+ }
6
+ export declare const LinkToSapEquipment: React.FC<React.PropsWithChildren<LinkToSapEquipmentProps>>;
7
+ export {};
@@ -1,4 +1,4 @@
1
- import { GlobalSelectionItemErrorStatuses, GlobalSelectionItemType, GlobalSelectionStore, OptimizedWorkOrderDto } from './globalSelectionStore.types';
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
  }>;
@@ -6,9 +6,9 @@ export declare enum GlobalSelectionItemType {
6
6
  Equipment = "Equipment"
7
7
  }
8
8
  interface ItemTypeToDataMap {
9
- 'WorkOrder': OptimizedWorkOrderDto;
10
- 'Tag': TagSummaryDto;
11
- 'Equipment': Equipment;
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 {};
@@ -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 {};
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  interface MeasuringPointImageViewFooterProps {
3
- date: string;
4
3
  description?: string;
4
+ date: string;
5
5
  }
6
6
  export declare const MeasuringPointImageViewFooter: React.FC<MeasuringPointImageViewFooterProps>;
7
7
  export {};
@@ -7,12 +7,10 @@ interface DocumentRelationshipsAttachment {
7
7
  readonly attachmentId: string;
8
8
  readonly attachmentImageUri?: string;
9
9
  readonly createdDateTime?: string;
10
- readonly _links?: DocumentRelationshipsLinks;
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 {};