@equinor/echo-framework 0.18.2 → 0.18.4-beta-0
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/{47deeba42768c5d1.svg → 063009f06499d102.svg} +8 -8
- package/README.md +28 -28
- package/{1bd97dd2170d0f64.svg → f4c85313e79b1662.svg} +850 -850
- package/index.cjs.d.ts +2 -2
- package/index.cjs.js +1 -1
- package/package.json +3 -3
- package/src/lib/components/prepview/panels/objects/Objects.d.ts +3 -3
- package/src/lib/components/prepview/types/common.d.ts +2 -2
- package/src/lib/components/prepview/types/tag.d.ts +10 -6
- package/src/lib/components/prepview/types/workorder.d.ts +2 -2
- package/src/lib/services/api/api-stid-tags.d.ts +0 -1
- package/src/lib/services/api/api-manager.d.ts +0 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.4-beta-0",
|
|
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",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"react": ">= 17.0.2",
|
|
13
13
|
"react-dom": ">= 17.0.2",
|
|
14
14
|
"@tanstack/react-query": ">= 5.14.2 < 6",
|
|
15
|
-
"@microsoft/signalr": "
|
|
16
|
-
"classnames": "2.
|
|
15
|
+
"@microsoft/signalr": "8.0.0",
|
|
16
|
+
"classnames": "2.5.1",
|
|
17
17
|
"history": "5.3.0",
|
|
18
18
|
"lodash": "4.17.21",
|
|
19
19
|
"react-router-dom": "5.3.4",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ObjectDto } from '../../types';
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
3
|
+
objectDtos: ObjectDto[];
|
|
4
4
|
}
|
|
5
|
-
declare function ObjectsPanel({
|
|
5
|
+
declare function ObjectsPanel({ objectDtos }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export { ObjectsPanel };
|
|
@@ -5,7 +5,7 @@ import { PrepviewNotification } from './notification';
|
|
|
5
5
|
import { PrepviewOperation } from './operation';
|
|
6
6
|
import { PrepviewPunch } from './punch';
|
|
7
7
|
import { PrepviewSafety } from './safety';
|
|
8
|
-
import {
|
|
8
|
+
import { ObjectDto, PrepviewTagInformation } from './tag';
|
|
9
9
|
import { PrepviewTagHistoryGroup, PrepviewWorkOrder } from './workorder';
|
|
10
10
|
export type FetchStatus = {
|
|
11
11
|
statusCode?: 'Forbidden' | number;
|
|
@@ -38,7 +38,7 @@ export type AdditionalDetailsDto = {
|
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
objects: FetchStatus & {
|
|
41
|
-
objects: Array<
|
|
41
|
+
objects: Array<ObjectDto>;
|
|
42
42
|
};
|
|
43
43
|
operations: FetchStatus & {
|
|
44
44
|
operations: Array<PrepviewOperation>;
|
|
@@ -14,11 +14,15 @@ export type PrepviewTagInformation = {
|
|
|
14
14
|
repairStrategy: string;
|
|
15
15
|
unsafeFailure: string[];
|
|
16
16
|
};
|
|
17
|
-
export type
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
tag
|
|
21
|
-
|
|
17
|
+
export type ObjectDto = {
|
|
18
|
+
functionalLocationId?: string;
|
|
19
|
+
tagId?: string;
|
|
20
|
+
tag?: string;
|
|
21
|
+
tagPlantId?: string;
|
|
22
|
+
notificationId?: string;
|
|
23
|
+
notificationTypeId?: string;
|
|
24
|
+
notificationIsActive?: boolean;
|
|
25
|
+
notificationDescription?: string;
|
|
22
26
|
equipment?: string;
|
|
23
|
-
|
|
27
|
+
equipmentId?: string;
|
|
24
28
|
};
|
|
@@ -5,7 +5,7 @@ import { PrepviewNotification } from './notification';
|
|
|
5
5
|
import { PrepviewOperation } from './operation';
|
|
6
6
|
import { PrepviewPunch } from './punch';
|
|
7
7
|
import { PrepviewSafety } from './safety';
|
|
8
|
-
import {
|
|
8
|
+
import { ObjectDto, PrepviewTagInformation } from './tag';
|
|
9
9
|
export type PrepviewWorkOrderDto = {
|
|
10
10
|
details: WorkOrderDetails;
|
|
11
11
|
additionalDetails?: WorkOrderAdditionalDetails;
|
|
@@ -62,7 +62,7 @@ export type WorkOrderAdditionalDetails = {
|
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
64
|
objects: FetchStatus & {
|
|
65
|
-
objects: Array<
|
|
65
|
+
objects: Array<ObjectDto>;
|
|
66
66
|
};
|
|
67
67
|
operations: FetchStatus & {
|
|
68
68
|
operations: Array<PrepviewOperation>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare const baseApiUrl: string;
|
|
2
|
-
type ResponseParser<T> = (response: Response) => Promise<T>;
|
|
3
|
-
interface RequestOptions<T> {
|
|
4
|
-
/**
|
|
5
|
-
* Optional response parsing function
|
|
6
|
-
*/
|
|
7
|
-
successResponseParser?: ResponseParser<T>;
|
|
8
|
-
}
|
|
9
|
-
interface Request<T> {
|
|
10
|
-
url: string;
|
|
11
|
-
abortSignal?: AbortSignal;
|
|
12
|
-
cache: {
|
|
13
|
-
isEnabled: boolean;
|
|
14
|
-
timeToLiveMilliseconds?: number;
|
|
15
|
-
};
|
|
16
|
-
method?: string;
|
|
17
|
-
body?: BodyInit;
|
|
18
|
-
headerOptions?: Record<string, unknown>;
|
|
19
|
-
options?: RequestOptions<T>;
|
|
20
|
-
}
|
|
21
|
-
export declare function request<T>({ cache, url, abortSignal, options, headerOptions, method, body }: Request<T>): Promise<T | undefined>;
|
|
22
|
-
export {};
|