@equinor/echo-framework 0.25.2 → 0.25.3
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 +1 -1
- 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/package.json
CHANGED
|
@@ -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 {};
|