@geode/opengeodeweb-back 6.17.0-rc.1 → 6.17.0-rc.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.
@@ -1,5 +1,267 @@
1
1
  {
2
2
  "opengeodeweb_back": {
3
+ "basemap": {
4
+ "delete": {
5
+ "$id": "opengeodeweb_back/basemap/delete",
6
+ "route": "/delete",
7
+ "methods": [
8
+ "POST"
9
+ ],
10
+ "type": "object",
11
+ "properties": {
12
+ "id": {
13
+ "type": "string",
14
+ "minLength": 32,
15
+ "maxLength": 32
16
+ }
17
+ },
18
+ "required": [
19
+ "id"
20
+ ],
21
+ "additionalProperties": false,
22
+ "response": {
23
+ "type": "object",
24
+ "properties": {
25
+ "id": {
26
+ "type": "string"
27
+ }
28
+ },
29
+ "required": [
30
+ "id"
31
+ ],
32
+ "additionalProperties": false
33
+ }
34
+ },
35
+ "build": {
36
+ "$id": "opengeodeweb_back/basemap/build",
37
+ "route": "/build",
38
+ "methods": [
39
+ "POST"
40
+ ],
41
+ "type": "object",
42
+ "properties": {
43
+ "maps": {
44
+ "type": "array",
45
+ "minItems": 1,
46
+ "uniqueItems": true,
47
+ "items": {
48
+ "type": "string",
49
+ "enum": [
50
+ "satellite",
51
+ "plan",
52
+ "routes"
53
+ ]
54
+ }
55
+ },
56
+ "bounds": {
57
+ "type": "object",
58
+ "properties": {
59
+ "x_min": {
60
+ "type": "number"
61
+ },
62
+ "y_min": {
63
+ "type": "number"
64
+ },
65
+ "x_max": {
66
+ "type": "number"
67
+ },
68
+ "y_max": {
69
+ "type": "number"
70
+ }
71
+ },
72
+ "required": [
73
+ "x_min",
74
+ "y_min",
75
+ "x_max",
76
+ "y_max"
77
+ ],
78
+ "additionalProperties": false
79
+ },
80
+ "crs": {
81
+ "title": "CRSParams",
82
+ "type": "object",
83
+ "properties": {
84
+ "authority": {
85
+ "type": "string",
86
+ "minLength": 1
87
+ },
88
+ "code": {
89
+ "type": "string",
90
+ "minLength": 1
91
+ },
92
+ "name": {
93
+ "type": "string",
94
+ "minLength": 1
95
+ }
96
+ },
97
+ "required": [
98
+ "authority",
99
+ "code",
100
+ "name"
101
+ ],
102
+ "additionalProperties": false
103
+ },
104
+ "z": {
105
+ "type": "number"
106
+ },
107
+ "margin": {
108
+ "type": "boolean",
109
+ "default": true
110
+ },
111
+ "max_pixels": {
112
+ "type": "integer",
113
+ "minimum": 256,
114
+ "maximum": 4096,
115
+ "default": 2048
116
+ }
117
+ },
118
+ "required": [
119
+ "maps",
120
+ "bounds",
121
+ "crs",
122
+ "z"
123
+ ],
124
+ "additionalProperties": false,
125
+ "response": {
126
+ "type": "object",
127
+ "properties": {
128
+ "native_file": {
129
+ "type": "string"
130
+ },
131
+ "id": {
132
+ "type": "string",
133
+ "minLength": 32,
134
+ "maxLength": 32
135
+ },
136
+ "name": {
137
+ "type": "string"
138
+ },
139
+ "viewer_type": {
140
+ "type": "string"
141
+ },
142
+ "is_viewable": {
143
+ "type": "boolean"
144
+ },
145
+ "geode_object_type": {
146
+ "type": "string"
147
+ },
148
+ "viewable_file": {
149
+ "type": "string"
150
+ },
151
+ "binary_light_viewable": {
152
+ "type": "string"
153
+ },
154
+ "nb_vertices": {
155
+ "type": "integer"
156
+ },
157
+ "geode_id": {
158
+ "type": "string",
159
+ "minLength": 36,
160
+ "maxLength": 36
161
+ },
162
+ "crs": {
163
+ "type": "object",
164
+ "properties": {
165
+ "authority": {
166
+ "type": "string"
167
+ },
168
+ "code": {
169
+ "type": "string"
170
+ },
171
+ "name": {
172
+ "type": "string"
173
+ }
174
+ },
175
+ "required": [
176
+ "authority",
177
+ "code",
178
+ "name"
179
+ ],
180
+ "additionalProperties": false
181
+ },
182
+ "columns": {
183
+ "type": "integer",
184
+ "minimum": 1
185
+ },
186
+ "rows": {
187
+ "type": "integer",
188
+ "minimum": 1
189
+ },
190
+ "attribution": {
191
+ "type": "string"
192
+ },
193
+ "zoom": {
194
+ "type": "integer",
195
+ "minimum": 0
196
+ },
197
+ "bounds": {
198
+ "title": "MeshBounds",
199
+ "type": "object",
200
+ "properties": {
201
+ "x_min": {
202
+ "type": "number"
203
+ },
204
+ "y_min": {
205
+ "type": "number"
206
+ },
207
+ "x_max": {
208
+ "type": "number"
209
+ },
210
+ "y_max": {
211
+ "type": "number"
212
+ }
213
+ },
214
+ "required": [
215
+ "x_min",
216
+ "y_min",
217
+ "x_max",
218
+ "y_max"
219
+ ],
220
+ "additionalProperties": false
221
+ },
222
+ "maps": {
223
+ "type": "array",
224
+ "items": {
225
+ "title": "MapElement",
226
+ "type": "object",
227
+ "properties": {
228
+ "map": {
229
+ "type": "string"
230
+ },
231
+ "sources": {
232
+ "type": "array",
233
+ "items": {
234
+ "type": "string"
235
+ }
236
+ }
237
+ },
238
+ "required": [
239
+ "map",
240
+ "sources"
241
+ ],
242
+ "additionalProperties": false
243
+ }
244
+ }
245
+ },
246
+ "required": [
247
+ "native_file",
248
+ "id",
249
+ "name",
250
+ "viewer_type",
251
+ "is_viewable",
252
+ "geode_object_type",
253
+ "geode_id",
254
+ "columns",
255
+ "rows",
256
+ "attribution",
257
+ "maps",
258
+ "zoom",
259
+ "bounds"
260
+ ],
261
+ "additionalProperties": false
262
+ }
263
+ }
264
+ },
3
265
  "create": {
4
266
  "polygonal_surface": {
5
267
  "$id": "opengeodeweb_back/create/polygonal_surface",
@@ -416,6 +678,199 @@
416
678
  "additionalProperties": false
417
679
  }
418
680
  },
681
+ "horizon_stack": {
682
+ "$id": "opengeodeweb_back/create/horizon_stack",
683
+ "route": "/horizon_stack",
684
+ "methods": [
685
+ "POST"
686
+ ],
687
+ "type": "object",
688
+ "properties": {
689
+ "name": {
690
+ "type": "string",
691
+ "minLength": 1
692
+ },
693
+ "horizons": {
694
+ "type": "array",
695
+ "items": {
696
+ "type": "string",
697
+ "minLength": 1
698
+ },
699
+ "minItems": 1,
700
+ "uniqueItems": true
701
+ },
702
+ "unit_names": {
703
+ "type": "array",
704
+ "items": {
705
+ "type": "string"
706
+ }
707
+ }
708
+ },
709
+ "required": [
710
+ "name",
711
+ "horizons",
712
+ "unit_names"
713
+ ],
714
+ "additionalProperties": false,
715
+ "response": {
716
+ "type": "object",
717
+ "properties": {
718
+ "native_file": {
719
+ "type": "string"
720
+ },
721
+ "id": {
722
+ "type": "string",
723
+ "minLength": 32,
724
+ "maxLength": 32
725
+ },
726
+ "name": {
727
+ "type": "string"
728
+ },
729
+ "viewer_type": {
730
+ "type": "string"
731
+ },
732
+ "is_viewable": {
733
+ "type": "boolean"
734
+ },
735
+ "geode_object_type": {
736
+ "type": "string"
737
+ },
738
+ "viewable_file": {
739
+ "type": "string"
740
+ },
741
+ "binary_light_viewable": {
742
+ "type": "string"
743
+ },
744
+ "nb_vertices": {
745
+ "type": "integer"
746
+ },
747
+ "mesh_components": {
748
+ "type": "array",
749
+ "items": {
750
+ "type": "object",
751
+ "properties": {
752
+ "viewer_id": {
753
+ "type": "integer"
754
+ },
755
+ "geode_id": {
756
+ "type": "string",
757
+ "minLength": 36,
758
+ "maxLength": 36
759
+ },
760
+ "name": {
761
+ "type": "string"
762
+ },
763
+ "type": {
764
+ "type": "string"
765
+ },
766
+ "boundaries": {
767
+ "type": "array",
768
+ "items": {
769
+ "type": "string",
770
+ "minLength": 36,
771
+ "maxLength": 36
772
+ }
773
+ },
774
+ "internals": {
775
+ "type": "array",
776
+ "items": {
777
+ "type": "string",
778
+ "minLength": 36,
779
+ "maxLength": 36
780
+ }
781
+ },
782
+ "is_active": {
783
+ "type": "boolean"
784
+ }
785
+ },
786
+ "required": [
787
+ "viewer_id",
788
+ "geode_id",
789
+ "name",
790
+ "type",
791
+ "boundaries",
792
+ "internals",
793
+ "is_active"
794
+ ],
795
+ "additionalProperties": false
796
+ }
797
+ },
798
+ "collection_components": {
799
+ "type": "array",
800
+ "items": {
801
+ "type": "object",
802
+ "properties": {
803
+ "geode_id": {
804
+ "type": "string",
805
+ "minLength": 36,
806
+ "maxLength": 36
807
+ },
808
+ "name": {
809
+ "type": "string"
810
+ },
811
+ "type": {
812
+ "type": "string"
813
+ },
814
+ "items": {
815
+ "type": "array",
816
+ "items": {
817
+ "type": "string",
818
+ "minLength": 36,
819
+ "maxLength": 36
820
+ }
821
+ },
822
+ "is_active": {
823
+ "type": "boolean"
824
+ }
825
+ },
826
+ "required": [
827
+ "geode_id",
828
+ "name",
829
+ "type",
830
+ "items",
831
+ "is_active"
832
+ ],
833
+ "additionalProperties": false
834
+ }
835
+ },
836
+ "geode_id": {
837
+ "type": "string",
838
+ "minLength": 36,
839
+ "maxLength": 36
840
+ },
841
+ "crs": {
842
+ "type": "object",
843
+ "properties": {
844
+ "authority": {
845
+ "type": "string"
846
+ },
847
+ "code": {
848
+ "type": "string"
849
+ },
850
+ "name": {
851
+ "type": "string"
852
+ }
853
+ },
854
+ "required": [
855
+ "authority",
856
+ "code",
857
+ "name"
858
+ ],
859
+ "additionalProperties": false
860
+ }
861
+ },
862
+ "required": [
863
+ "native_file",
864
+ "id",
865
+ "name",
866
+ "viewer_type",
867
+ "is_viewable",
868
+ "geode_object_type",
869
+ "geode_id"
870
+ ],
871
+ "additionalProperties": false
872
+ }
873
+ },
419
874
  "edged_curve": {
420
875
  "$id": "opengeodeweb_back/create/edged_curve",
421
876
  "route": "/edged_curve",
@@ -930,16 +1385,9 @@
930
1385
  },
931
1386
  "uniqueItems": true
932
1387
  },
933
- "mode": {
934
- "type": "string",
935
- "enum": [
936
- "similarity",
937
- "affine"
938
- ]
939
- },
940
1388
  "source_points": {
941
1389
  "type": "array",
942
- "minItems": 1,
1390
+ "minItems": 3,
943
1391
  "maxItems": 3,
944
1392
  "items": {
945
1393
  "type": "object",
@@ -964,7 +1412,7 @@
964
1412
  },
965
1413
  "target_points": {
966
1414
  "type": "array",
967
- "minItems": 1,
1415
+ "minItems": 3,
968
1416
  "maxItems": 3,
969
1417
  "items": {
970
1418
  "type": "object",
@@ -1031,12 +1479,6 @@
1031
1479
  ],
1032
1480
  "additionalProperties": false
1033
1481
  },
1034
- "scale": {
1035
- "type": "number"
1036
- },
1037
- "rotation": {
1038
- "type": "number"
1039
- },
1040
1482
  "linked": {
1041
1483
  "type": "array",
1042
1484
  "items": {
@@ -2399,6 +2841,77 @@
2399
2841
  "additionalProperties": false
2400
2842
  }
2401
2843
  },
2844
+ "horizon_stack_info": {
2845
+ "$id": "opengeodeweb_back/horizon_stack_info",
2846
+ "route": "/horizon_stack_info",
2847
+ "methods": [
2848
+ "POST"
2849
+ ],
2850
+ "type": "object",
2851
+ "properties": {
2852
+ "id": {
2853
+ "type": "string",
2854
+ "minLength": 32,
2855
+ "maxLength": 32
2856
+ }
2857
+ },
2858
+ "required": [
2859
+ "id"
2860
+ ],
2861
+ "additionalProperties": false,
2862
+ "response": {
2863
+ "type": "object",
2864
+ "properties": {
2865
+ "horizons": {
2866
+ "type": "array",
2867
+ "items": {
2868
+ "type": "object",
2869
+ "properties": {
2870
+ "id": {
2871
+ "type": "string",
2872
+ "minLength": 36,
2873
+ "maxLength": 36
2874
+ },
2875
+ "name": {
2876
+ "type": "string"
2877
+ }
2878
+ },
2879
+ "required": [
2880
+ "id",
2881
+ "name"
2882
+ ],
2883
+ "additionalProperties": false
2884
+ }
2885
+ },
2886
+ "units": {
2887
+ "type": "array",
2888
+ "items": {
2889
+ "type": "object",
2890
+ "properties": {
2891
+ "id": {
2892
+ "type": "string",
2893
+ "minLength": 36,
2894
+ "maxLength": 36
2895
+ },
2896
+ "name": {
2897
+ "type": "string"
2898
+ }
2899
+ },
2900
+ "required": [
2901
+ "id",
2902
+ "name"
2903
+ ],
2904
+ "additionalProperties": false
2905
+ }
2906
+ }
2907
+ },
2908
+ "required": [
2909
+ "horizons",
2910
+ "units"
2911
+ ],
2912
+ "additionalProperties": false
2913
+ }
2914
+ },
2402
2915
  "geode_objects_and_output_extensions": {
2403
2916
  "$id": "opengeodeweb_back/geode_objects_and_output_extensions",
2404
2917
  "route": "/geode_objects_and_output_extensions",
@@ -1,6 +1,76 @@
1
1
  // Generated by opengeodeweb-microservice-generate, do not edit.
2
2
  import type json from "./opengeodeweb_back_schemas.json";
3
3
 
4
+ export interface BasemapDeleteParams {
5
+ id: string;
6
+ }
7
+
8
+ export interface BasemapDeleteResponse {
9
+ id: string;
10
+ }
11
+
12
+ export interface BasemapBuildParams {
13
+ bounds: Bounds;
14
+ crs: CRSParams;
15
+ maps: Map[];
16
+ margin?: boolean;
17
+ max_pixels?: number;
18
+ z: number;
19
+ }
20
+
21
+ export interface Bounds {
22
+ x_max: number;
23
+ x_min: number;
24
+ y_max: number;
25
+ y_min: number;
26
+ }
27
+
28
+ export interface CRSParams {
29
+ authority: string;
30
+ code: string;
31
+ name: string;
32
+ }
33
+
34
+ export type Map = "satellite" | "plan" | "routes";
35
+
36
+ export interface BasemapBuildResponse {
37
+ attribution: string;
38
+ binary_light_viewable?: string;
39
+ bounds: MeshBounds;
40
+ columns: number;
41
+ crs?: BasemapBuildResponseCRS;
42
+ geode_id: string;
43
+ geode_object_type: string;
44
+ id: string;
45
+ is_viewable: boolean;
46
+ maps: MapElement[];
47
+ name: string;
48
+ native_file: string;
49
+ nb_vertices?: number;
50
+ rows: number;
51
+ viewable_file?: string;
52
+ viewer_type: string;
53
+ zoom: number;
54
+ }
55
+
56
+ export interface MeshBounds {
57
+ x_max: number;
58
+ x_min: number;
59
+ y_max: number;
60
+ y_min: number;
61
+ }
62
+
63
+ export interface BasemapBuildResponseCRS {
64
+ authority: string;
65
+ code: string;
66
+ name: string;
67
+ }
68
+
69
+ export interface MapElement {
70
+ map: string;
71
+ sources: string[];
72
+ }
73
+
4
74
  export interface CreatePolygonalSurfaceParams {
5
75
  name: string;
6
76
  points: PolygonalSurfacePoint[];
@@ -104,6 +174,52 @@ export interface CreatePointSetResponseMeshComponent {
104
174
  viewer_id: number;
105
175
  }
106
176
 
177
+ export interface CreateHorizonStackParams {
178
+ horizons: string[];
179
+ name: string;
180
+ unit_names: string[];
181
+ }
182
+
183
+ export interface CreateHorizonStackResponse {
184
+ binary_light_viewable?: string;
185
+ collection_components?: CreateHorizonStackResponseCollectionComponent[];
186
+ crs?: CreateHorizonStackResponseCRS;
187
+ geode_id: string;
188
+ geode_object_type: string;
189
+ id: string;
190
+ is_viewable: boolean;
191
+ mesh_components?: CreateHorizonStackResponseMeshComponent[];
192
+ name: string;
193
+ native_file: string;
194
+ nb_vertices?: number;
195
+ viewable_file?: string;
196
+ viewer_type: string;
197
+ }
198
+
199
+ export interface CreateHorizonStackResponseCollectionComponent {
200
+ geode_id: string;
201
+ is_active: boolean;
202
+ items: string[];
203
+ name: string;
204
+ type: string;
205
+ }
206
+
207
+ export interface CreateHorizonStackResponseCRS {
208
+ authority: string;
209
+ code: string;
210
+ name: string;
211
+ }
212
+
213
+ export interface CreateHorizonStackResponseMeshComponent {
214
+ boundaries: string[];
215
+ geode_id: string;
216
+ internals: string[];
217
+ is_active: boolean;
218
+ name: string;
219
+ type: string;
220
+ viewer_id: number;
221
+ }
222
+
107
223
  export interface CreateEdgedCurveParams {
108
224
  edges: Array<number[]>;
109
225
  name: string;
@@ -240,14 +356,11 @@ export interface CRSAlignParams {
240
356
  code: string;
241
357
  id: string;
242
358
  linked_ids?: string[];
243
- mode?: Mode;
244
359
  name: string;
245
360
  source_points: SourcePoint[];
246
361
  target_points: TargetPoint[];
247
362
  }
248
363
 
249
- export type Mode = "similarity" | "affine";
250
-
251
364
  export interface SourcePoint {
252
365
  picked?: boolean;
253
366
  x: number;
@@ -263,8 +376,6 @@ export interface CRSAlignResponse {
263
376
  binary_light_viewable?: string;
264
377
  crs?: CRSAlignResponseCRS;
265
378
  linked?: CRSAlignResponseLinked[];
266
- rotation?: number;
267
- scale?: number;
268
379
  }
269
380
 
270
381
  export interface CRSAlignResponseCRS {
@@ -600,6 +711,25 @@ export interface ImportProjectResponse {
600
711
  snapshot: { [key: string]: any };
601
712
  }
602
713
 
714
+ export interface HorizonStackInfoParams {
715
+ id: string;
716
+ }
717
+
718
+ export interface HorizonStackInfoResponse {
719
+ horizons: Horizon[];
720
+ units: Unit[];
721
+ }
722
+
723
+ export interface Horizon {
724
+ id: string;
725
+ name: string;
726
+ }
727
+
728
+ export interface Unit {
729
+ id: string;
730
+ name: string;
731
+ }
732
+
603
733
  export interface GeodeObjectsAndOutputExtensionsParams {
604
734
  filename: string;
605
735
  geode_object_type: string;
@@ -730,9 +860,14 @@ export type TypedSchema<Params, Response> = {
730
860
 
731
861
  export interface Schemas {
732
862
  readonly opengeodeweb_back: {
863
+ readonly basemap: {
864
+ readonly delete: (typeof json)["opengeodeweb_back"]["basemap"]["delete"] & TypedSchema<BasemapDeleteParams, BasemapDeleteResponse>;
865
+ readonly build: (typeof json)["opengeodeweb_back"]["basemap"]["build"] & TypedSchema<BasemapBuildParams, BasemapBuildResponse>;
866
+ };
733
867
  readonly create: {
734
868
  readonly polygonal_surface: (typeof json)["opengeodeweb_back"]["create"]["polygonal_surface"] & TypedSchema<CreatePolygonalSurfaceParams, CreatePolygonalSurfaceResponse>;
735
869
  readonly point_set: (typeof json)["opengeodeweb_back"]["create"]["point_set"] & TypedSchema<CreatePointSetParams, CreatePointSetResponse>;
870
+ readonly horizon_stack: (typeof json)["opengeodeweb_back"]["create"]["horizon_stack"] & TypedSchema<CreateHorizonStackParams, CreateHorizonStackResponse>;
736
871
  readonly edged_curve: (typeof json)["opengeodeweb_back"]["create"]["edged_curve"] & TypedSchema<CreateEdgedCurveParams, CreateEdgedCurveResponse>;
737
872
  };
738
873
  readonly crs: {
@@ -765,6 +900,7 @@ export interface Schemas {
765
900
  readonly model_component_edge_attribute_names: (typeof json)["opengeodeweb_back"]["model_component_edge_attribute_names"] & TypedSchema<ModelComponentEdgeAttributeNamesParams, ModelComponentEdgeAttributeNamesResponse>;
766
901
  readonly kill: (typeof json)["opengeodeweb_back"]["kill"] & TypedSchema<KillParams, KillResponse>;
767
902
  readonly import_project: (typeof json)["opengeodeweb_back"]["import_project"] & TypedSchema<ImportProjectParams, ImportProjectResponse>;
903
+ readonly horizon_stack_info: (typeof json)["opengeodeweb_back"]["horizon_stack_info"] & TypedSchema<HorizonStackInfoParams, HorizonStackInfoResponse>;
768
904
  readonly geode_objects_and_output_extensions: (typeof json)["opengeodeweb_back"]["geode_objects_and_output_extensions"] & TypedSchema<GeodeObjectsAndOutputExtensionsParams, GeodeObjectsAndOutputExtensionsResponse>;
769
905
  readonly geode_object_inheritance: (typeof json)["opengeodeweb_back"]["geode_object_inheritance"] & TypedSchema<GeodeObjectInheritanceParams, GeodeObjectInheritanceResponse>;
770
906
  readonly export_project: (typeof json)["opengeodeweb_back"]["export_project"] & TypedSchema<ExportProjectParams, Blob>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geode/opengeodeweb-back",
3
- "version": "6.17.0-rc.1",
3
+ "version": "6.17.0-rc.3",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Back",
6
6
  "bugs": {