@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-framework",
3
- "version": "0.25.2",
3
+ "version": "0.25.3",
4
4
  "peerDependencies": {
5
5
  "@equinor/echo-base": ">= 0.7.5 < 0.8.0",
6
6
  "@equinor/echo-components": ">= 0.12.4 < 0.13.0",
@@ -0,0 +1,5 @@
1
+ interface WorkOrderPanelObjectsProps {
2
+ readonly workOrderId: string;
3
+ }
4
+ export declare const WorkOrderPanelObjects: ({ workOrderId }: WorkOrderPanelObjectsProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -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 {};
@@ -0,0 +1,6 @@
1
+ import { PrepviewWorkOrderObject } from '../types/workOrder-objects';
2
+ export declare const usePrepviewWorkOrderObjects: (workOrderId: string) => {
3
+ isLoading: boolean;
4
+ error: Error | null;
5
+ objects?: PrepviewWorkOrderObject[];
6
+ };
@@ -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,5 @@
1
+ interface WorkOrderPanelOperationsProps {
2
+ readonly workOrderId: string;
3
+ }
4
+ export declare const WorkOrderPanelOperations: ({ workOrderId }: WorkOrderPanelOperationsProps) => import("react/jsx-runtime").JSX.Element;
5
+ 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,6 @@
1
+ import { PrepviewWorkOrderOperation } from '../types/workOrder-operations';
2
+ export declare const usePrepviewWorkOrderOperations: (workOrderId: string) => {
3
+ isLoading: boolean;
4
+ error: Error | null;
5
+ operations?: PrepviewWorkOrderOperation[];
6
+ };
@@ -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 {};