@equinor/echo-framework 0.16.3-beta-0 → 0.16.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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@equinor/echo-framework",
3
- "version": "0.16.3-beta-0",
3
+ "version": "0.16.4",
4
4
  "peerDependencies": {
5
5
  "@equinor/echo-base": ">= 0.7.0 < 0.8.0",
6
6
  "@equinor/echo-components": ">= 0.9.0 < 0.10.0",
7
- "@equinor/echo-core": "0.9.2-beta-0",
7
+ "@equinor/echo-core": ">= 0.9.0 < 0.10.0",
8
8
  "@equinor/echo-search": ">= 0.15.0 < 0.16.0",
9
9
  "@equinor/echo-utils": ">= 0.3.0 < 0.4.0",
10
10
  "@equinor/eds-core-react": "^0.25.0",
@@ -63,12 +63,15 @@ export type NotificationAdditionalDetails = {
63
63
  };
64
64
  export type PrepviewNotification = {
65
65
  id: string;
66
+ type: string;
67
+ title: string;
68
+ isActive?: boolean;
69
+ planningPlant: string;
70
+ requiredEndDateTime: Date;
71
+ mainWorkCenter?: string;
72
+ requiredEndDateStatus?: string;
66
73
  activeStatusIds: string;
74
+ mainWorkCenterId: string;
67
75
  changedDateTime?: Date;
68
76
  createdDateTime: Date;
69
- planningPlant: string;
70
- mainWorkCenterId: string;
71
- requiredEndDateTime: Date;
72
- title: string;
73
- type: string;
74
77
  };
@@ -77,12 +77,17 @@ export type PrepviewTagHistoryGroup<T = PrepviewNotification | PrepviewWorkOrder
77
77
  items: Array<T>;
78
78
  };
79
79
  export type PrepviewWorkOrder = {
80
+ id: string;
81
+ orderType?: string;
82
+ description?: string;
83
+ isActive?: boolean;
84
+ planningPlant?: string;
85
+ maintenancePlanDate?: Date;
86
+ workCenterId?: string;
80
87
  type: string;
81
88
  title: string;
82
- mainWorkCenterId?: string;
83
- id: string;
89
+ activeStatusIds: string;
90
+ mainWorkCenterId: string;
84
91
  createdDateTime: Date;
85
92
  changedDateTime: Date;
86
- activeStatusIds: string;
87
- tagNo: string;
88
93
  };
@@ -1 +1,4 @@
1
+ import { WorkOrderItem } from '@equinor/echo-components';
2
+ import { PrepviewWorkOrder } from '../types';
1
3
  export declare const MaintenanceApiNameForWorkOrders: Record<string, string>;
4
+ export declare function mapWorkOrder(prepviewWorkOrder: PrepviewWorkOrder): WorkOrderItem;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { PrepviewNotification } from '../../../types';
3
- interface NotificationItemProps {
4
- notification: PrepviewNotification;
5
- }
6
- declare const NotificationItem: React.FC<NotificationItemProps>;
7
- export { NotificationItem };
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { PrepviewWorkOrder } from '../../../types';
3
- interface WorkOrderItemProps {
4
- workOrder: PrepviewWorkOrder;
5
- }
6
- declare const WorkOrderItem: React.FC<WorkOrderItemProps>;
7
- export { WorkOrderItem };