@equinor/echo-framework 0.11.2 → 0.11.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/dist/components/homePage/HomePage.d.ts +0 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -6
- package/dist/services/api/api-tag-list-for-3D.d.ts +25 -0
- package/dist/services/api/api-tag-list-for-3D.test.d.ts +1 -0
- package/dist/services/api/index.d.ts +1 -0
- package/dist/types/api-echohub.d.ts +36 -0
- package/package.json +2 -2
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TemporaryEchoHubListDto, TemporaryHubListCreatedResponse } from '../../types/api-echohub';
|
|
2
|
+
/**
|
|
3
|
+
* Method for creating a temporarily hub list, method will return urls to open this list in 3D App and 3D web
|
|
4
|
+
* List is valid for 1 month when using this method
|
|
5
|
+
* Will throw error if api call goes wrong
|
|
6
|
+
*
|
|
7
|
+
* @param {string} instCode the users instCode
|
|
8
|
+
* @param {TemporaryEchoHubListDto} request the request used to create the list. See type description
|
|
9
|
+
* @param {(AbortSignal | undefined)} [abortSignal] the abort signal
|
|
10
|
+
* @return {*} returns urls to open created list in 3D app and 3D web.
|
|
11
|
+
*/
|
|
12
|
+
export declare const getTemporarilyEchoHubListFor3D: (instCode: string, request: TemporaryEchoHubListDto, abortSignal?: AbortSignal | undefined) => Promise<{
|
|
13
|
+
app3dUrl: string;
|
|
14
|
+
web3dUrl: string;
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* Method for creating a temporarily hub list, method will return urls to open this list in 3D App and the lists ID
|
|
18
|
+
* Use getTemporarilyEchoHubListFor3D method for getting url for both 3D App and 3D web
|
|
19
|
+
* Will throw error if api call goes wrong
|
|
20
|
+
*
|
|
21
|
+
* @param {TemporaryEchoHubListDto} request the request used to create the list. See type description
|
|
22
|
+
* @param {(AbortSignal | undefined)} [abortSignal] the abort signal
|
|
23
|
+
* @return {*} {(Promise<TemporaryHubListCreatedResponse>)} returns url to open created list in 3D app and lists ID.
|
|
24
|
+
*/
|
|
25
|
+
export declare const createTemporarilyEchoHubListFor3D: (request: TemporaryEchoHubListDto, abortSignal?: AbortSignal | undefined) => Promise<TemporaryHubListCreatedResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface TemporaryEchoHubListDto {
|
|
2
|
+
/** The main name of the list */
|
|
3
|
+
name: string;
|
|
4
|
+
/** The description for the list */
|
|
5
|
+
description: string;
|
|
6
|
+
/** The user name that created this list */
|
|
7
|
+
createdBy: string;
|
|
8
|
+
/** Sender ID, used for identify the sender for diagnostics and logging.*/
|
|
9
|
+
source: string;
|
|
10
|
+
/** Which plant the list and its tags belong to */
|
|
11
|
+
plant: string;
|
|
12
|
+
/** Ideally could be used for plant section id */
|
|
13
|
+
section?: string;
|
|
14
|
+
/** The list of tags in the Echo hub list, can be multiple lists */
|
|
15
|
+
results: TemporaryHubResultsList[];
|
|
16
|
+
/** How long the list is valid, timeToLiveSeconds is -1 it will never be removed, if its Zero (0) or Undefined then the api will fail the request */
|
|
17
|
+
timeToLiveSeconds?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface TemporaryHubResultsList {
|
|
20
|
+
/** The display name for this list of tags */
|
|
21
|
+
name: string;
|
|
22
|
+
/** The list of tag no's to highlight */
|
|
23
|
+
tags: string[];
|
|
24
|
+
/** The color that should be applied to the highlighted tags */
|
|
25
|
+
color: string;
|
|
26
|
+
/** properties that can be added to a list */
|
|
27
|
+
properties?: {
|
|
28
|
+
[key: string]: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export interface TemporaryHubListCreatedResponse {
|
|
32
|
+
/** The id of the list created */
|
|
33
|
+
id: string;
|
|
34
|
+
/** The url to the 3D App */
|
|
35
|
+
url: string;
|
|
36
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"description": "Modules and components for EchoWeb, utilizing EchoCore",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@babel/preset-env": "^7.20.2",
|
|
53
53
|
"@babel/preset-react": "^7.18.6",
|
|
54
54
|
"@equinor/echo-base": "^0.6.22",
|
|
55
|
-
"@equinor/echo-components": "^0.5.
|
|
55
|
+
"@equinor/echo-components": "^0.5.26",
|
|
56
56
|
"@equinor/echo-core": "^0.7.5",
|
|
57
57
|
"@equinor/echo-scripts": "^0.1.5",
|
|
58
58
|
"@equinor/echo-search": "^0.13.13",
|