Skip to content

Commit ad372e8

Browse files
update api
1 parent ac694fd commit ad372e8

File tree

1 file changed

+32
-30
lines changed

1 file changed

+32
-30
lines changed

frontend/src/api/autogen/types.gen.ts

+32-30
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ export type DatedFlowNetwork_api = {
9595
export type EnsembleDetails_api = {
9696
name: string;
9797
field_identifier: string;
98-
stratigraphic_column_identifier: string;
9998
case_name: string;
10099
case_uuid: string;
101100
realizations: Array<number>;
101+
stratigraphic_column_identifier: string;
102102
};
103103

104104
export type EnsembleInfo_api = {
@@ -114,16 +114,16 @@ export type EnsembleParameter_api = {
114114
is_logarithmic: boolean;
115115
is_discrete: boolean;
116116
is_constant: boolean;
117-
group_name: string | null;
118-
descriptive_name: string | null;
117+
group_name?: string | null;
118+
descriptive_name?: string | null;
119119
realizations: Array<number>;
120120
values: Array<number> | Array<number> | Array<string>;
121121
};
122122

123123
export type EnsembleParameterDescription_api = {
124124
name: string;
125-
group_name: string | null;
126-
descriptive_name: string | null;
125+
group_name?: string | null;
126+
descriptive_name?: string | null;
127127
is_discrete: boolean;
128128
};
129129

@@ -133,8 +133,8 @@ export type EnsembleParameterDescription_api = {
133133
export type EnsembleScalarResponse_api = {
134134
realizations: Array<number>;
135135
values: Array<number>;
136-
name: string | null;
137-
unit: string | null;
136+
name?: string | null;
137+
unit?: string | null;
138138
};
139139

140140
/**
@@ -212,7 +212,7 @@ export enum Gfr_api {
212212
}
213213

214214
export type GraphUserPhoto_api = {
215-
avatar_b64str: string | null;
215+
avatar_b64str?: string | null;
216216
};
217217

218218
/**
@@ -260,7 +260,7 @@ export type Grid3dMappedProperty_api = {
260260
*/
261261
export type Grid3dPropertyInfo_api = {
262262
property_name: string;
263-
iso_date_or_interval: string | null;
263+
iso_date_or_interval?: string | null;
264264
};
265265

266266
/**
@@ -405,8 +405,8 @@ export enum NodeType_api {
405405
* A collection of observations associated with a field/case/ensemble
406406
*/
407407
export type Observations_api = {
408-
summary: Array<SummaryVectorObservations_api>;
409-
rft: Array<RftObservations_api>;
408+
summary?: Array<SummaryVectorObservations_api>;
409+
rft?: Array<RftObservations_api>;
410410
};
411411

412412
export type PointSetXy_api = {
@@ -442,9 +442,9 @@ export enum PolygonsAttributeType_api {
442442
export type PolygonsMeta_api = {
443443
name: string;
444444
name_is_stratigraphic_offical: boolean;
445-
stratigraphic_identifier: string | null;
446-
relative_stratigraphic_level: number | null;
447-
parent_stratigraphic_identifier: string | null;
445+
stratigraphic_identifier?: string | null;
446+
relative_stratigraphic_level?: number | null;
447+
parent_stratigraphic_identifier?: string | null;
448448
attribute_name: string;
449449
attribute_type: PolygonsAttributeType_api;
450450
};
@@ -501,7 +501,7 @@ export type RepeatedTableColumnData_api = {
501501
*/
502502
export type RftObservation_api = {
503503
value: number;
504-
comment: string | null;
504+
comment?: string | null;
505505
error: number;
506506
zone: string;
507507
md_msl: number;
@@ -522,7 +522,7 @@ export type RftObservation_api = {
522522
export type RftObservations_api = {
523523
well: string;
524524
date: string;
525-
comment: string | null;
525+
comment?: string | null;
526526
observations: Array<RftObservation_api>;
527527
};
528528

@@ -636,15 +636,15 @@ export type StratigraphicUnit_api = {
636636
colorR: number;
637637
colorG: number;
638638
colorB: number;
639-
lithologyType: number | number | string;
639+
lithologyType?: number | number | string;
640640
};
641641

642642
/**
643643
* A single observation of a summary vector at a specific date.
644644
*/
645645
export type SummaryVectorDateObservation_api = {
646646
date: string;
647-
comment: string | null;
647+
comment?: string | null;
648648
value: number;
649649
error: number;
650650
label: string;
@@ -655,7 +655,7 @@ export type SummaryVectorDateObservation_api = {
655655
*/
656656
export type SummaryVectorObservations_api = {
657657
vector_name: string;
658-
comment: string | null;
658+
comment?: string | null;
659659
observations: Array<SummaryVectorDateObservation_api>;
660660
};
661661

@@ -685,7 +685,7 @@ export enum SurfaceAttributeType_api {
685685
}
686686

687687
export type SurfaceDataFloat_api = {
688-
format: "float";
688+
format?: "float";
689689
surface_def: SurfaceDef_api;
690690
transformed_bbox_utm: BoundingBox2D_api;
691691
value_min: number;
@@ -694,7 +694,7 @@ export type SurfaceDataFloat_api = {
694694
};
695695

696696
export type SurfaceDataPng_api = {
697-
format: "png";
697+
format?: "png";
698698
surface_def: SurfaceDef_api;
699699
transformed_bbox_utm: BoundingBox2D_api;
700700
value_min: number;
@@ -786,7 +786,9 @@ export enum SurfaceTimeType_api {
786786
INTERVAL = "INTERVAL",
787787
}
788788

789-
export type Thp_api = "THP";
789+
export enum Thp_api {
790+
THP = "THP",
791+
}
790792

791793
export enum TabType_api {
792794
BHP = "BHP",
@@ -825,8 +827,8 @@ export enum UnitType_api {
825827

826828
export type UserInfo_api = {
827829
username: string;
828-
display_name: string | null;
829-
avatar_b64str: string | null;
830+
display_name?: string | null;
831+
avatar_b64str?: string | null;
830832
has_sumo_access: boolean;
831833
has_smda_access: boolean;
832834
};
@@ -877,7 +879,7 @@ export type VectorStatisticSensitivityData_api = {
877879
};
878880

879881
export type VfpInjTable_api = {
880-
isInjTable: boolean;
882+
isInjTable?: boolean;
881883
tableNumber: number;
882884
datum: number;
883885
flowRateType: FlowRateType_api;
@@ -892,7 +894,7 @@ export type VfpInjTable_api = {
892894
};
893895

894896
export type VfpProdTable_api = {
895-
isProdTable: boolean;
897+
isProdTable?: boolean;
896898
tableNumber: number;
897899
datum: number;
898900
thpType: Thp_api;
@@ -956,15 +958,15 @@ export type WellCompletionsWell_api = {
956958

957959
export type WellCompletionsZone_api = {
958960
name: string;
959-
subzones: Array<WellCompletionsZone_api> | null;
961+
subzones?: Array<WellCompletionsZone_api> | null;
960962
};
961963

962964
export type WellboreCasing_api = {
963965
itemType: string;
964966
diameterNumeric: number;
965967
diameterInner: number;
966-
description: string | null;
967-
remark: string | null;
968+
description?: string | null;
969+
remark?: string | null;
968970
depthTopMd: number;
969971
depthBottomMd: number;
970972
totalDepthMd: number;
@@ -1040,7 +1042,7 @@ export type WellborePick_api = {
10401042
uniqueWellboreIdentifier: string;
10411043
wellboreUuid: string;
10421044
pickIdentifier: string;
1043-
confidence: string | null;
1045+
confidence?: string | null;
10441046
depthReferencePoint: string;
10451047
mdUnit: string;
10461048
};

0 commit comments

Comments
 (0)