@geolens/sdk 1.30.0 → 1.31.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.
@@ -2146,6 +2146,23 @@ export type CapabilitiesBasemap = {
2146
2146
  */
2147
2147
  name: string;
2148
2148
  };
2149
+ /**
2150
+ * CapabilitiesDatabaseConnection
2151
+ */
2152
+ export type CapabilitiesDatabaseConnection = {
2153
+ /**
2154
+ * Name
2155
+ *
2156
+ * Connection name to list and import tables from.
2157
+ */
2158
+ name: string;
2159
+ /**
2160
+ * Database
2161
+ *
2162
+ * Database the connection reads.
2163
+ */
2164
+ database: string;
2165
+ };
2149
2166
  /**
2150
2167
  * CapabilitiesKey
2151
2168
  */
@@ -2189,6 +2206,12 @@ export type CapabilitiesMe = {
2189
2206
  * Datasets the account can still create, or null when uncapped.
2190
2207
  */
2191
2208
  remaining_dataset_quota: number | null;
2209
+ /**
2210
+ * Database Connections
2211
+ *
2212
+ * Database connections the deployment configures, listed only for an account that can create datasets.
2213
+ */
2214
+ database_connections?: Array<CapabilitiesDatabaseConnection>;
2192
2215
  };
2193
2216
  /**
2194
2217
  * CapabilitiesRateLimits
@@ -3780,6 +3803,152 @@ export type DashboardConfigInput = {
3780
3803
  */
3781
3804
  widgets?: Array<MarkdownWidget | IndicatorWidget | BarChartWidget | PieChartWidget | FeatureListWidget | TableWidget | HistogramWidget | CategorySelectorWidget>;
3782
3805
  };
3806
+ /**
3807
+ * DatabaseImportRequest
3808
+ */
3809
+ export type DatabaseImportRequest = {
3810
+ /**
3811
+ * Schema Name
3812
+ *
3813
+ * Schema of the table, as listed.
3814
+ */
3815
+ schema_name: string;
3816
+ /**
3817
+ * Table Name
3818
+ *
3819
+ * Table or view name, as listed.
3820
+ */
3821
+ table_name: string;
3822
+ /**
3823
+ * Title
3824
+ *
3825
+ * Dataset title. Defaults to the table name.
3826
+ */
3827
+ title?: string | null;
3828
+ /**
3829
+ * Summary
3830
+ *
3831
+ * Optional dataset description shown in the catalog.
3832
+ */
3833
+ summary?: string | null;
3834
+ /**
3835
+ * Visibility
3836
+ *
3837
+ * Dataset visibility: private, restricted, internal or public.
3838
+ */
3839
+ visibility?: 'private' | 'restricted' | 'internal' | 'public';
3840
+ /**
3841
+ * Srid Override
3842
+ *
3843
+ * EPSG code the table's coordinates are read under when the table has no SRID of its own: its geometries have SRID 0 or it has no rows. A table with an SRID is always read under that SRID.
3844
+ */
3845
+ srid_override?: number | null;
3846
+ };
3847
+ /**
3848
+ * DatabaseImportResponse
3849
+ */
3850
+ export type DatabaseImportResponse = {
3851
+ /**
3852
+ * Job Id
3853
+ *
3854
+ * Ingest job that copies the table.
3855
+ */
3856
+ job_id: string;
3857
+ /**
3858
+ * Status
3859
+ *
3860
+ * Status of the new job.
3861
+ */
3862
+ status: 'pending';
3863
+ /**
3864
+ * Message
3865
+ *
3866
+ * What happened.
3867
+ */
3868
+ message: string;
3869
+ };
3870
+ /**
3871
+ * DatabaseTable
3872
+ */
3873
+ export type DatabaseTable = {
3874
+ /**
3875
+ * Schema Name
3876
+ *
3877
+ * Schema that holds the table or view.
3878
+ */
3879
+ schema_name: string;
3880
+ /**
3881
+ * Table Name
3882
+ *
3883
+ * Table or view name.
3884
+ */
3885
+ table_name: string;
3886
+ /**
3887
+ * Object Type
3888
+ *
3889
+ * Table or view.
3890
+ */
3891
+ object_type: 'table' | 'view';
3892
+ /**
3893
+ * Geometry Column
3894
+ *
3895
+ * Spatial column.
3896
+ */
3897
+ geometry_column: string;
3898
+ /**
3899
+ * Column Type
3900
+ *
3901
+ * SQL Server spatial type of the column.
3902
+ */
3903
+ column_type: 'geometry' | 'geography';
3904
+ /**
3905
+ * Srid
3906
+ *
3907
+ * SRID of the column's first non-null value, or null when it is 0, the table has no rows, or it couldn't be read.
3908
+ */
3909
+ srid: number | null;
3910
+ /**
3911
+ * Importable
3912
+ *
3913
+ * False when the schema or table name has characters an import refuses; such an entry is listed but can't be imported.
3914
+ */
3915
+ importable: boolean;
3916
+ };
3917
+ /**
3918
+ * DatabaseTableListResponse
3919
+ */
3920
+ export type DatabaseTableListResponse = {
3921
+ /**
3922
+ * Connection
3923
+ *
3924
+ * Connection name from the deployment.
3925
+ */
3926
+ connection: string;
3927
+ /**
3928
+ * Database
3929
+ *
3930
+ * Database the connection reads.
3931
+ */
3932
+ database: string;
3933
+ /**
3934
+ * Tables
3935
+ *
3936
+ * One entry per table or view, ordered by schema and name, with the spatial column an import reads: the first by column order.
3937
+ */
3938
+ tables: Array<DatabaseTable>;
3939
+ /**
3940
+ * Limit
3941
+ *
3942
+ * Most entries one listing returns.
3943
+ */
3944
+ limit: number;
3945
+ /**
3946
+ * Truncated
3947
+ *
3948
+ * True when the connection has more tables than `limit`.
3949
+ */
3950
+ truncated: boolean;
3951
+ };
3783
3952
  /**
3784
3953
  * DatasetApiKeyCreateRequest
3785
3954
  */
@@ -6215,6 +6384,12 @@ export type GroupByRequest = {
6215
6384
  * Limit
6216
6385
  */
6217
6386
  limit?: number;
6387
+ /**
6388
+ * Blank Text As Null
6389
+ *
6390
+ * Count a text column's empty strings with its NULLs, as one `null` key, before the groups are limited. Whitespace-only text keeps its own key.
6391
+ */
6392
+ blank_text_as_null?: boolean;
6218
6393
  };
6219
6394
  /**
6220
6395
  * GroupByResponse
@@ -10979,7 +11154,7 @@ export type ReuploadCommitRequest = {
10979
11154
  *
10980
11155
  * The dataset origin the client saw when it staged this replacement. When set, the commit is refused with 409 `origin_changed` if the dataset's origin no longer matches, so a service, STAC or registered-table binding established after the upload is not silently rebound to an upload. A client may omit the field to skip this concurrency check.
10981
11156
  */
10982
- expected_origin_kind?: 'upload' | 'postgis' | 'service' | 'stac' | 'created' | null;
11157
+ expected_origin_kind?: 'upload' | 'postgis' | 'service' | 'stac' | 'created' | 'database' | null;
10983
11158
  /**
10984
11159
  * Token
10985
11160
  *
@@ -14710,6 +14885,12 @@ export type ValueCountsRequest = {
14710
14885
  * Limit
14711
14886
  */
14712
14887
  limit?: number;
14888
+ /**
14889
+ * Blank Text As Null
14890
+ *
14891
+ * Count a text column's empty strings with its NULLs, as one `null` key, before the groups are limited. Whitespace-only text keeps its own key.
14892
+ */
14893
+ blank_text_as_null?: boolean;
14713
14894
  };
14714
14895
  /**
14715
14896
  * ValueCountsResponse
@@ -30795,6 +30976,132 @@ export type DispatchConnectorIngestEndpointServicesConnectorsConnectorNameIngest
30795
30976
  202: ConnectorIngestResponse;
30796
30977
  };
30797
30978
  export type DispatchConnectorIngestEndpointServicesConnectorsConnectorNameIngestPostResponse = DispatchConnectorIngestEndpointServicesConnectorsConnectorNameIngestPostResponses[keyof DispatchConnectorIngestEndpointServicesConnectorsConnectorNameIngestPostResponses];
30979
+ export type ImportDatabaseTableServicesDatabasesConnectionImportsPostData = {
30980
+ body: DatabaseImportRequest;
30981
+ path: {
30982
+ /**
30983
+ * Connection
30984
+ *
30985
+ * Connection name.
30986
+ */
30987
+ connection: string;
30988
+ };
30989
+ query?: never;
30990
+ url: '/services/databases/{connection}/imports/';
30991
+ };
30992
+ export type ImportDatabaseTableServicesDatabasesConnectionImportsPostErrors = {
30993
+ /**
30994
+ * Bad request — invalid payload
30995
+ */
30996
+ 400: ProblemDetail;
30997
+ /**
30998
+ * Unauthorized — missing or invalid credentials
30999
+ */
31000
+ 401: ProblemDetail;
31001
+ /**
31002
+ * Forbidden — caller lacks write access
31003
+ */
31004
+ 403: ProblemDetail;
31005
+ /**
31006
+ * Not found
31007
+ */
31008
+ 404: ProblemDetail;
31009
+ /**
31010
+ * Conflict — resource state prevents the operation
31011
+ */
31012
+ 409: ProblemDetail;
31013
+ /**
31014
+ * Validation error
31015
+ */
31016
+ 422: ProblemDetail;
31017
+ /**
31018
+ * Too many requests — retry after the advertised interval
31019
+ */
31020
+ 429: ProblemDetail;
31021
+ /**
31022
+ * Internal server error
31023
+ */
31024
+ 500: ProblemDetail;
31025
+ /**
31026
+ * Bad gateway — an upstream provider failed
31027
+ */
31028
+ 502: ProblemDetail;
31029
+ /**
31030
+ * Service unavailable — the database could not serve the request
31031
+ */
31032
+ 503: ProblemDetail;
31033
+ };
31034
+ export type ImportDatabaseTableServicesDatabasesConnectionImportsPostError = ImportDatabaseTableServicesDatabasesConnectionImportsPostErrors[keyof ImportDatabaseTableServicesDatabasesConnectionImportsPostErrors];
31035
+ export type ImportDatabaseTableServicesDatabasesConnectionImportsPostResponses = {
31036
+ /**
31037
+ * Successful Response
31038
+ */
31039
+ 202: DatabaseImportResponse;
31040
+ };
31041
+ export type ImportDatabaseTableServicesDatabasesConnectionImportsPostResponse = ImportDatabaseTableServicesDatabasesConnectionImportsPostResponses[keyof ImportDatabaseTableServicesDatabasesConnectionImportsPostResponses];
31042
+ export type ListDatabaseTablesServicesDatabasesConnectionTablesGetData = {
31043
+ body?: never;
31044
+ path: {
31045
+ /**
31046
+ * Connection
31047
+ *
31048
+ * Connection name.
31049
+ */
31050
+ connection: string;
31051
+ };
31052
+ query?: never;
31053
+ url: '/services/databases/{connection}/tables/';
31054
+ };
31055
+ export type ListDatabaseTablesServicesDatabasesConnectionTablesGetErrors = {
31056
+ /**
31057
+ * Bad request — invalid payload
31058
+ */
31059
+ 400: ProblemDetail;
31060
+ /**
31061
+ * Unauthorized — missing or invalid credentials
31062
+ */
31063
+ 401: ProblemDetail;
31064
+ /**
31065
+ * Forbidden — caller lacks write access
31066
+ */
31067
+ 403: ProblemDetail;
31068
+ /**
31069
+ * Not found
31070
+ */
31071
+ 404: ProblemDetail;
31072
+ /**
31073
+ * Conflict — resource state prevents the operation
31074
+ */
31075
+ 409: ProblemDetail;
31076
+ /**
31077
+ * Validation error
31078
+ */
31079
+ 422: ProblemDetail;
31080
+ /**
31081
+ * Too many requests — retry after the advertised interval
31082
+ */
31083
+ 429: ProblemDetail;
31084
+ /**
31085
+ * Internal server error
31086
+ */
31087
+ 500: ProblemDetail;
31088
+ /**
31089
+ * Bad gateway — an upstream provider failed
31090
+ */
31091
+ 502: ProblemDetail;
31092
+ /**
31093
+ * Service unavailable — the database could not serve the request
31094
+ */
31095
+ 503: ProblemDetail;
31096
+ };
31097
+ export type ListDatabaseTablesServicesDatabasesConnectionTablesGetError = ListDatabaseTablesServicesDatabasesConnectionTablesGetErrors[keyof ListDatabaseTablesServicesDatabasesConnectionTablesGetErrors];
31098
+ export type ListDatabaseTablesServicesDatabasesConnectionTablesGetResponses = {
31099
+ /**
31100
+ * Successful Response
31101
+ */
31102
+ 200: DatabaseTableListResponse;
31103
+ };
31104
+ export type ListDatabaseTablesServicesDatabasesConnectionTablesGetResponse = ListDatabaseTablesServicesDatabasesConnectionTablesGetResponses[keyof ListDatabaseTablesServicesDatabasesConnectionTablesGetResponses];
30798
31105
  export type PreviewServiceLayerServicesPreviewPostData = {
30799
31106
  body: ServicePreviewRequest;
30800
31107
  path?: never;