@geode/opengeodeweb-back 7.1.1 → 7.1.2-rc.1
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": "@geode/opengeodeweb-back",
|
|
3
|
-
"version": "7.1.1",
|
|
3
|
+
"version": "7.1.2-rc.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Back",
|
|
6
6
|
"bugs": {
|
|
@@ -19,7 +19,10 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"opengeodeweb_back_schemas.json",
|
|
21
21
|
"opengeodeweb_back_typed_schemas.js",
|
|
22
|
-
"opengeodeweb_back_typed_schemas.d.ts"
|
|
22
|
+
"opengeodeweb_back_typed_schemas.d.ts",
|
|
23
|
+
"src/opengeodeweb_back/schema_types.json",
|
|
24
|
+
"src/opengeodeweb_back/schema_types.d.ts",
|
|
25
|
+
"src/opengeodeweb_back/schema_types.py"
|
|
23
26
|
],
|
|
24
27
|
"exports": {
|
|
25
28
|
"./opengeodeweb_back_schemas.json": {
|
|
@@ -29,6 +32,9 @@
|
|
|
29
32
|
"./opengeodeweb_back_typed_schemas.js": {
|
|
30
33
|
"types": "./opengeodeweb_back_typed_schemas.d.ts",
|
|
31
34
|
"default": "./opengeodeweb_back_typed_schemas.js"
|
|
35
|
+
},
|
|
36
|
+
"./schema_types": {
|
|
37
|
+
"types": "./src/opengeodeweb_back/schema_types.d.ts"
|
|
32
38
|
}
|
|
33
39
|
},
|
|
34
40
|
"publishConfig": {
|
|
@@ -40,6 +46,6 @@
|
|
|
40
46
|
"build": "npm run json"
|
|
41
47
|
},
|
|
42
48
|
"dependencies": {
|
|
43
|
-
"@geode/opengeodeweb-microservice": "
|
|
49
|
+
"@geode/opengeodeweb-microservice": "next"
|
|
44
50
|
}
|
|
45
51
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Generated by generate_schema_types.js from schema_types.json: do not edit
|
|
2
|
+
|
|
3
|
+
export type ViewerId = number;
|
|
4
|
+
export type AttributeName = string;
|
|
5
|
+
export type Filename = string;
|
|
6
|
+
|
|
7
|
+
import type { GeodeId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
8
|
+
|
|
9
|
+
export interface Point3D {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
z: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface AttributeInfo {
|
|
16
|
+
attribute_id: string;
|
|
17
|
+
attribute_name: AttributeName;
|
|
18
|
+
nb_items: number;
|
|
19
|
+
time_steps: number[];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface CRS {
|
|
23
|
+
authority: string;
|
|
24
|
+
code: string;
|
|
25
|
+
name: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface MeshComponent {
|
|
29
|
+
boundaries: GeodeId[];
|
|
30
|
+
geode_id: GeodeId;
|
|
31
|
+
internals: GeodeId[];
|
|
32
|
+
is_active: boolean;
|
|
33
|
+
name: string;
|
|
34
|
+
type: string;
|
|
35
|
+
viewer_id: ViewerId;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface CollectionComponent {
|
|
39
|
+
geode_id: GeodeId;
|
|
40
|
+
is_active: boolean;
|
|
41
|
+
items: GeodeId[];
|
|
42
|
+
name: string;
|
|
43
|
+
type: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ViewerId": {
|
|
3
|
+
"type": "integer"
|
|
4
|
+
},
|
|
5
|
+
"AttributeName": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1
|
|
8
|
+
},
|
|
9
|
+
"Filename": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1
|
|
12
|
+
},
|
|
13
|
+
"Point3D": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"x": {
|
|
17
|
+
"type": "number"
|
|
18
|
+
},
|
|
19
|
+
"y": {
|
|
20
|
+
"type": "number"
|
|
21
|
+
},
|
|
22
|
+
"z": {
|
|
23
|
+
"type": "number"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"x",
|
|
28
|
+
"y",
|
|
29
|
+
"z"
|
|
30
|
+
],
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
},
|
|
33
|
+
"AttributeInfo": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"attribute_name": {
|
|
37
|
+
"title": "AttributeName"
|
|
38
|
+
},
|
|
39
|
+
"attribute_id": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"nb_items": {
|
|
43
|
+
"type": "integer"
|
|
44
|
+
},
|
|
45
|
+
"time_steps": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "number"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": [
|
|
53
|
+
"attribute_name",
|
|
54
|
+
"attribute_id",
|
|
55
|
+
"nb_items",
|
|
56
|
+
"time_steps"
|
|
57
|
+
],
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
},
|
|
60
|
+
"CRS": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"authority": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"minLength": 1
|
|
66
|
+
},
|
|
67
|
+
"code": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"minLength": 1
|
|
70
|
+
},
|
|
71
|
+
"name": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"minLength": 1
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"required": [
|
|
77
|
+
"authority",
|
|
78
|
+
"code",
|
|
79
|
+
"name"
|
|
80
|
+
],
|
|
81
|
+
"additionalProperties": false
|
|
82
|
+
},
|
|
83
|
+
"MeshComponent": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"properties": {
|
|
86
|
+
"viewer_id": {
|
|
87
|
+
"title": "ViewerId"
|
|
88
|
+
},
|
|
89
|
+
"geode_id": {
|
|
90
|
+
"title": "GeodeId"
|
|
91
|
+
},
|
|
92
|
+
"name": {
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"type": {
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
"boundaries": {
|
|
99
|
+
"type": "array",
|
|
100
|
+
"items": {
|
|
101
|
+
"title": "GeodeId"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"internals": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"items": {
|
|
107
|
+
"title": "GeodeId"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"is_active": {
|
|
111
|
+
"type": "boolean"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"required": [
|
|
115
|
+
"viewer_id",
|
|
116
|
+
"geode_id",
|
|
117
|
+
"name",
|
|
118
|
+
"type",
|
|
119
|
+
"boundaries",
|
|
120
|
+
"internals",
|
|
121
|
+
"is_active"
|
|
122
|
+
],
|
|
123
|
+
"additionalProperties": false
|
|
124
|
+
},
|
|
125
|
+
"CollectionComponent": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"properties": {
|
|
128
|
+
"geode_id": {
|
|
129
|
+
"title": "GeodeId"
|
|
130
|
+
},
|
|
131
|
+
"name": {
|
|
132
|
+
"type": "string"
|
|
133
|
+
},
|
|
134
|
+
"type": {
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"items": {
|
|
138
|
+
"type": "array",
|
|
139
|
+
"items": {
|
|
140
|
+
"title": "GeodeId"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"is_active": {
|
|
144
|
+
"type": "boolean"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"required": [
|
|
148
|
+
"geode_id",
|
|
149
|
+
"name",
|
|
150
|
+
"type",
|
|
151
|
+
"items",
|
|
152
|
+
"is_active"
|
|
153
|
+
],
|
|
154
|
+
"additionalProperties": false
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""Generated by generate_schema_types.js from schema_types.json: do not edit"""
|
|
2
|
+
|
|
3
|
+
# ruff: noqa: TC002
|
|
4
|
+
|
|
5
|
+
from dataclasses import dataclass
|
|
6
|
+
|
|
7
|
+
from dataclasses_json import DataClassJsonMixin
|
|
8
|
+
from opengeodeweb_microservice.schema_types import GeodeId
|
|
9
|
+
from opengeodeweb_microservice.schemas import print_dataclass
|
|
10
|
+
|
|
11
|
+
ViewerId = int
|
|
12
|
+
AttributeName = str
|
|
13
|
+
Filename = str
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@dataclass
|
|
17
|
+
class Point3D(DataClassJsonMixin):
|
|
18
|
+
def __post_init__(self) -> None:
|
|
19
|
+
print_dataclass(self)
|
|
20
|
+
|
|
21
|
+
x: float
|
|
22
|
+
y: float
|
|
23
|
+
z: float
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@dataclass
|
|
27
|
+
class AttributeInfo(DataClassJsonMixin):
|
|
28
|
+
def __post_init__(self) -> None:
|
|
29
|
+
print_dataclass(self)
|
|
30
|
+
|
|
31
|
+
attribute_id: str
|
|
32
|
+
attribute_name: AttributeName
|
|
33
|
+
nb_items: int
|
|
34
|
+
time_steps: list[float]
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@dataclass
|
|
38
|
+
class CRS(DataClassJsonMixin):
|
|
39
|
+
def __post_init__(self) -> None:
|
|
40
|
+
print_dataclass(self)
|
|
41
|
+
|
|
42
|
+
authority: str
|
|
43
|
+
code: str
|
|
44
|
+
name: str
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@dataclass
|
|
48
|
+
class MeshComponent(DataClassJsonMixin):
|
|
49
|
+
def __post_init__(self) -> None:
|
|
50
|
+
print_dataclass(self)
|
|
51
|
+
|
|
52
|
+
boundaries: list[GeodeId]
|
|
53
|
+
geode_id: GeodeId
|
|
54
|
+
internals: list[GeodeId]
|
|
55
|
+
is_active: bool
|
|
56
|
+
name: str
|
|
57
|
+
type: str
|
|
58
|
+
viewer_id: ViewerId
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
@dataclass
|
|
62
|
+
class CollectionComponent(DataClassJsonMixin):
|
|
63
|
+
def __post_init__(self) -> None:
|
|
64
|
+
print_dataclass(self)
|
|
65
|
+
|
|
66
|
+
geode_id: GeodeId
|
|
67
|
+
is_active: bool
|
|
68
|
+
items: list[GeodeId]
|
|
69
|
+
name: str
|
|
70
|
+
type: str
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
__all__ = [
|
|
74
|
+
"CRS",
|
|
75
|
+
"AttributeInfo",
|
|
76
|
+
"AttributeName",
|
|
77
|
+
"CollectionComponent",
|
|
78
|
+
"Filename",
|
|
79
|
+
"MeshComponent",
|
|
80
|
+
"Point3D",
|
|
81
|
+
"ViewerId",
|
|
82
|
+
]
|