@equinor/echo-framework 0.25.2 → 0.25.4
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 +3 -3
- package/package.json +7 -7
- package/src/lib/feature/workOrder/components/WorkOrderPanelObjects/WorkOrderPanelObjects.d.ts +5 -0
- package/src/lib/feature/workOrder/components/WorkOrderPanelObjects/api/api-prepview-workOrder-objects.d.ts +6 -0
- package/src/lib/feature/workOrder/components/WorkOrderPanelObjects/components/WorkOrderObjectItem.d.ts +6 -0
- package/src/lib/feature/workOrder/components/WorkOrderPanelObjects/hooks/usePrepviewWorkOrderObjects.d.ts +6 -0
- package/src/lib/feature/workOrder/components/WorkOrderPanelObjects/types/workOrder-objects.d.ts +24 -0
- package/src/lib/feature/workOrder/components/WorkOrderPanelOperations/WorkOrderPanelOperations.d.ts +5 -0
- package/src/lib/feature/workOrder/components/WorkOrderPanelOperations/api/api-prepview-workOrder-operations.d.ts +6 -0
- package/src/lib/feature/workOrder/components/WorkOrderPanelOperations/components/WorkOrderOperationItem.d.ts +6 -0
- package/src/lib/feature/workOrder/components/WorkOrderPanelOperations/components/WorkOrderOperationItemHeader.d.ts +11 -0
- package/src/lib/feature/workOrder/components/WorkOrderPanelOperations/hooks/usePrepviewWorkOrderOperations.d.ts +6 -0
- package/src/lib/feature/workOrder/components/WorkOrderPanelOperations/types/workOrder-operations.d.ts +39 -0
- package/src/lib/utils/asyncUtils.d.ts +11 -0
- package/src/lib/utils/index.d.ts +1 -0
- package/src/lib/utils/startup.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@equinor/echo-base": ">= 0.7.
|
|
5
|
+
"@equinor/echo-base": ">= 0.7.6 < 0.8.0",
|
|
6
6
|
"@equinor/echo-components": ">= 0.12.4 < 0.13.0",
|
|
7
|
-
"@equinor/echo-core": ">= 0.9.
|
|
7
|
+
"@equinor/echo-core": ">= 0.9.20 < 0.10.0",
|
|
8
8
|
"@equinor/echo-search": ">= 0.15.7 < 0.16.0",
|
|
9
|
-
"@equinor/echo-utils": ">= 0.4.
|
|
9
|
+
"@equinor/echo-utils": ">= 0.4.16 < 0.5.0",
|
|
10
10
|
"@equinor/eds-core-react": "0.43.0",
|
|
11
11
|
"@equinor/eds-icons": "0.22.0",
|
|
12
12
|
"react": ">= 17.0.2",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"react-router-dom": "5.3.4",
|
|
20
20
|
"zustand": ">= 4.4.7 < 5",
|
|
21
21
|
"immer": "10.1.1",
|
|
22
|
-
"ag-charts-enterprise": "11.2
|
|
22
|
+
"ag-charts-enterprise": "11.3.2"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"dexie": "4.0.11",
|
|
26
26
|
"mark.js": "8.11.1",
|
|
27
|
-
"ag-charts-community": "11.2
|
|
28
|
-
"ag-charts-react": "11.2
|
|
27
|
+
"ag-charts-community": "11.3.2",
|
|
28
|
+
"ag-charts-react": "11.3.2"
|
|
29
29
|
},
|
|
30
30
|
"main": "./index.cjs.js",
|
|
31
31
|
"type": "commonjs",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PrepviewWorkOrderObject } from '../types/workOrder-objects';
|
|
2
|
+
interface PrepviewWorkOrderObjectsRequest {
|
|
3
|
+
readonly workOrderId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function getPrepviewWorkOrderObjects(args: PrepviewWorkOrderObjectsRequest): Promise<PrepviewWorkOrderObject[]>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PrepviewWorkOrderObject } from '../types/workOrder-objects';
|
|
2
|
+
interface WorkOrderObjectItemProps {
|
|
3
|
+
object: PrepviewWorkOrderObject;
|
|
4
|
+
}
|
|
5
|
+
export declare const WorkOrderObjectItem: (props: WorkOrderObjectItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
package/src/lib/feature/workOrder/components/WorkOrderPanelObjects/types/workOrder-objects.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type MaintenanceRecordType = 'M1' | 'M2' | 'M3' | 'M4' | 'M5' | 'M6' | 'M9';
|
|
2
|
+
export interface PrepviewWorkOrderObjectDto {
|
|
3
|
+
functionalLocationId?: string | null;
|
|
4
|
+
tagId?: string | null;
|
|
5
|
+
tag?: string | null;
|
|
6
|
+
tagPlantId?: string | null;
|
|
7
|
+
notificationId?: string | null;
|
|
8
|
+
notificationTypeId?: MaintenanceRecordType;
|
|
9
|
+
notificationIsActive?: boolean | null;
|
|
10
|
+
notificationDescription?: string | null;
|
|
11
|
+
equipment?: string | null;
|
|
12
|
+
equipmentId?: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface PrepviewWorkOrderObject {
|
|
15
|
+
tagId?: string;
|
|
16
|
+
tag?: string;
|
|
17
|
+
tagPlantId?: string;
|
|
18
|
+
notificationId?: string;
|
|
19
|
+
equipmentId?: string;
|
|
20
|
+
equipment?: string;
|
|
21
|
+
notificationTypeId?: MaintenanceRecordType;
|
|
22
|
+
functionalLocationId: string;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PrepviewWorkOrderOperation } from '../types/workOrder-operations';
|
|
2
|
+
interface PrepviewWorkOrderOperationsRequest {
|
|
3
|
+
readonly workOrderId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const getPrepviewWorkOrderOperations: (args: PrepviewWorkOrderOperationsRequest) => Promise<PrepviewWorkOrderOperation[]>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PrepviewWorkOrderOperation } from '../types/workOrder-operations';
|
|
2
|
+
interface WorkOrderOperationItemProps {
|
|
3
|
+
readonly operation: PrepviewWorkOrderOperation;
|
|
4
|
+
}
|
|
5
|
+
export declare const WorkOrderOperationItem: (props: WorkOrderOperationItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface WorkOrderOperationItemHeaderProps {
|
|
2
|
+
operationNumber: string;
|
|
3
|
+
isCompleted?: boolean;
|
|
4
|
+
hasPrts?: boolean;
|
|
5
|
+
title?: string;
|
|
6
|
+
plantName?: string;
|
|
7
|
+
earliestStartDateTime?: Date;
|
|
8
|
+
earliestFinishDateTime?: Date;
|
|
9
|
+
}
|
|
10
|
+
export declare const WorkOrderOperationItemHeader: (props: WorkOrderOperationItemHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
type MapLocationDtoReadable = {
|
|
2
|
+
id?: string | null;
|
|
3
|
+
};
|
|
4
|
+
export interface PrepviewWorkOrderOperationDto {
|
|
5
|
+
operationNumber: string;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
hasPrts?: boolean | null;
|
|
8
|
+
title?: string | null;
|
|
9
|
+
plantId?: string | null;
|
|
10
|
+
plantName?: string | null;
|
|
11
|
+
workCenterId?: string | null;
|
|
12
|
+
earliestStartDateTime?: string | null;
|
|
13
|
+
earliestFinishDateTime?: string | null;
|
|
14
|
+
longText?: string | null;
|
|
15
|
+
activeStatusIds?: string | null;
|
|
16
|
+
plannedDuration?: string | null;
|
|
17
|
+
plannedWorkHours?: string | null;
|
|
18
|
+
actualWorkHours?: string | null;
|
|
19
|
+
actualPercentageComplete?: number | null;
|
|
20
|
+
capacityCount?: number | null;
|
|
21
|
+
mapLocation?: MapLocationDtoReadable | null;
|
|
22
|
+
}
|
|
23
|
+
export interface PrepviewWorkOrderOperation {
|
|
24
|
+
activeStatusIds?: string;
|
|
25
|
+
title?: string;
|
|
26
|
+
workCenterId?: string;
|
|
27
|
+
plantName?: string;
|
|
28
|
+
earliestStartDateTime?: Date;
|
|
29
|
+
earliestFinishDateTime?: Date;
|
|
30
|
+
plannedDuration?: string;
|
|
31
|
+
plannedWorkHours?: string;
|
|
32
|
+
actualWorkHours?: string;
|
|
33
|
+
actualPercentageComplete?: number;
|
|
34
|
+
operationNumber: string;
|
|
35
|
+
capacityCount?: number;
|
|
36
|
+
hasPrts?: boolean;
|
|
37
|
+
longText?: string;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Function which fires an async function without 'await'.
|
|
3
|
+
* This makes it clear that we do not wish to use 'await' for this particular
|
|
4
|
+
* async function.
|
|
5
|
+
* @param asyncFunc the async function to be executed
|
|
6
|
+
* @param options user friendly error message if error is thrown, and whether to display a toast
|
|
7
|
+
*/
|
|
8
|
+
export declare function fireAndForget(asyncFunc: () => Promise<void>, options: {
|
|
9
|
+
userFriendlyErrorMessage: string;
|
|
10
|
+
displayToast?: boolean;
|
|
11
|
+
}): void;
|
package/src/lib/utils/index.d.ts
CHANGED