@evergis/api 5.0.8 → 5.0.9-alpha.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/LICENSE +21 -21
- package/README.md +12 -12
- package/dist/__generated__/CatalogService.d.ts +12 -0
- package/dist/__generated__/EqlService.d.ts +2 -2
- package/dist/__generated__/LayersService.d.ts +2 -2
- package/dist/__generated__/SecurityService.d.ts +0 -24
- package/dist/__generated__/data-contracts.d.ts +183 -317
- package/dist/api.esm.js +2308 -2320
- package/dist/api.esm.js.map +1 -1
- package/dist/index.js +2307 -2319
- package/dist/index.js.map +1 -1
- package/dist/services/Layers.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1319,7 +1319,9 @@ class EqlService extends Service {
|
|
|
1319
1319
|
* @response `200` OK
|
|
1320
1320
|
*/
|
|
1321
1321
|
getQueryDescription(data) {
|
|
1322
|
-
return this.http
|
|
1322
|
+
return this.http
|
|
1323
|
+
.post(`/eql/description`, data)
|
|
1324
|
+
.json();
|
|
1323
1325
|
}
|
|
1324
1326
|
/**
|
|
1325
1327
|
* No description
|
|
@@ -1897,6 +1899,20 @@ class CatalogService extends Service {
|
|
|
1897
1899
|
getFile(resourceId) {
|
|
1898
1900
|
return this.http.get(`/resources/file/${resourceId}`).blob();
|
|
1899
1901
|
}
|
|
1902
|
+
/**
|
|
1903
|
+
* No description
|
|
1904
|
+
*
|
|
1905
|
+
* @tags Catalog
|
|
1906
|
+
* @name DownloadFile
|
|
1907
|
+
* @operationId CatalogController_DownloadFile
|
|
1908
|
+
* @summary Download file.
|
|
1909
|
+
* @request GET:/resources/download/{resourceId}
|
|
1910
|
+
* @secure
|
|
1911
|
+
* @response `200` OK
|
|
1912
|
+
*/
|
|
1913
|
+
downloadFile(resourceId) {
|
|
1914
|
+
return this.http.get(`/resources/download/${resourceId}`).blob();
|
|
1915
|
+
}
|
|
1900
1916
|
/**
|
|
1901
1917
|
* No description
|
|
1902
1918
|
*
|
|
@@ -3005,2172 +3021,197 @@ const stripUselessSlashes = (...strings) => strings
|
|
|
3005
3021
|
.filter(Boolean)
|
|
3006
3022
|
.join("/");
|
|
3007
3023
|
|
|
3008
|
-
/* eslint-disable */
|
|
3009
|
-
/* tslint:disable */
|
|
3010
|
-
/*
|
|
3011
|
-
* ---------------------------------------------------------------
|
|
3012
|
-
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
3013
|
-
* ## ##
|
|
3014
|
-
* ## AUTHOR: acacode ##
|
|
3015
|
-
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
3016
|
-
* ---------------------------------------------------------------
|
|
3017
|
-
*/
|
|
3018
3024
|
// @ts-nocheck
|
|
3019
3025
|
/**
|
|
3020
|
-
|
|
3021
|
-
* @version 1.5.1.0
|
|
3022
|
-
* @baseUrl /sp
|
|
3023
|
-
*/
|
|
3024
|
-
class LayersService extends Service {
|
|
3025
|
-
/**
|
|
3026
|
-
* No description
|
|
3027
|
-
*
|
|
3028
|
-
* @tags Layers
|
|
3029
|
-
* @name GetBulkFeatures
|
|
3030
|
-
* @operationId LayersController_GetBulkFeatures
|
|
3031
|
-
* @summary Returns list of the layer features.
|
|
3032
|
-
* @request POST:/bulk/layers/features/query
|
|
3033
|
-
* @secure
|
|
3034
|
-
* @response `200` OK
|
|
3035
|
-
*/
|
|
3036
|
-
getBulkFeatures(data) {
|
|
3037
|
-
return this.http.post(`/bulk/layers/features/query`, data).json();
|
|
3038
|
-
}
|
|
3039
|
-
/**
|
|
3040
|
-
* No description
|
|
3041
|
-
*
|
|
3042
|
-
* @tags Layers
|
|
3043
|
-
* @name GetBulkExtents
|
|
3044
|
-
* @operationId LayersController_GetBulkExtents
|
|
3045
|
-
* @summary Returns list of the layer extents with overall extent.
|
|
3046
|
-
* @request POST:/bulk/layers/extent
|
|
3047
|
-
* @secure
|
|
3048
|
-
* @response `200` OK
|
|
3049
|
-
*/
|
|
3050
|
-
getBulkExtents(query, data) {
|
|
3051
|
-
return this.http.post(`/bulk/layers/extent`, data, query).json();
|
|
3052
|
-
}
|
|
3053
|
-
/**
|
|
3054
|
-
* No description
|
|
3055
|
-
*
|
|
3056
|
-
* @tags Layers
|
|
3057
|
-
* @name GetFilteredFeaturesCount
|
|
3058
|
-
* @operationId LayersController_GetFilteredFeaturesCount
|
|
3059
|
-
* @summary Returns list of features count according layer filter.
|
|
3060
|
-
* @request POST:/bulk/layers/features/count
|
|
3061
|
-
* @secure
|
|
3062
|
-
* @response `200` OK
|
|
3063
|
-
*/
|
|
3064
|
-
getFilteredFeaturesCount(data) {
|
|
3065
|
-
return this.http.post(`/bulk/layers/features/count`, data).json();
|
|
3066
|
-
}
|
|
3067
|
-
/**
|
|
3068
|
-
* No description
|
|
3069
|
-
*
|
|
3070
|
-
* @tags Layers
|
|
3071
|
-
* @name GetLayerInfo
|
|
3072
|
-
* @operationId LayersController_GetLayerInfoAsync
|
|
3073
|
-
* @summary Returns the layer information.
|
|
3074
|
-
* @request GET:/layers/{name}
|
|
3075
|
-
* @secure
|
|
3076
|
-
* @response `200` OK
|
|
3077
|
-
*/
|
|
3078
|
-
getLayerInfo(name) {
|
|
3079
|
-
return this.http
|
|
3080
|
-
.get(`/layers/${name}`)
|
|
3081
|
-
.json();
|
|
3082
|
-
}
|
|
3083
|
-
/**
|
|
3084
|
-
* No description
|
|
3085
|
-
*
|
|
3086
|
-
* @tags Layers
|
|
3087
|
-
* @name PatchQueryLayerService
|
|
3088
|
-
* @operationId LayersController_PatchQueryLayerService
|
|
3089
|
-
* @summary Patch EQL-based Query Layer Service.
|
|
3090
|
-
* @request PATCH:/layers/{name}
|
|
3091
|
-
* @secure
|
|
3092
|
-
* @response `200` OK
|
|
3093
|
-
*/
|
|
3094
|
-
patchQueryLayerService(name, data) {
|
|
3095
|
-
return this.http
|
|
3096
|
-
.patch(`/layers/${name}`, data)
|
|
3097
|
-
.json();
|
|
3098
|
-
}
|
|
3099
|
-
/**
|
|
3100
|
-
* No description
|
|
3101
|
-
*
|
|
3102
|
-
* @tags Layers
|
|
3103
|
-
* @name GetLayersInfo
|
|
3104
|
-
* @operationId LayersController_GetLayersInfoAsync
|
|
3105
|
-
* @summary Returns the layers information.
|
|
3106
|
-
* @request GET:/layers/batchInfo
|
|
3107
|
-
* @secure
|
|
3108
|
-
* @response `200` OK
|
|
3109
|
-
*/
|
|
3110
|
-
getLayersInfo(query) {
|
|
3111
|
-
return this.http
|
|
3112
|
-
.get(`/layers/batchInfo`, query)
|
|
3113
|
-
.json();
|
|
3114
|
-
}
|
|
3115
|
-
/**
|
|
3116
|
-
* No description
|
|
3117
|
-
*
|
|
3118
|
-
* @tags Layers
|
|
3119
|
-
* @name PublishService
|
|
3120
|
-
* @operationId LayersController_PublishServiceAsync
|
|
3121
|
-
* @summary Publishes a service using the specified layer configuration parameters.
|
|
3122
|
-
* @request POST:/layers
|
|
3123
|
-
* @secure
|
|
3124
|
-
* @response `200` OK
|
|
3125
|
-
*/
|
|
3126
|
-
publishService(data) {
|
|
3127
|
-
return this.http
|
|
3128
|
-
.post(`/layers`, data)
|
|
3129
|
-
.json();
|
|
3130
|
-
}
|
|
3131
|
-
/**
|
|
3132
|
-
* No description
|
|
3133
|
-
*
|
|
3134
|
-
* @tags Layers
|
|
3135
|
-
* @name DeleteResources
|
|
3136
|
-
* @operationId LayersController_DeleteResources
|
|
3137
|
-
* @summary Bulk delete resources.
|
|
3138
|
-
* @request DELETE:/layers
|
|
3139
|
-
* @secure
|
|
3140
|
-
* @response `200` OK
|
|
3141
|
-
*/
|
|
3142
|
-
deleteResources(query) {
|
|
3143
|
-
return this.http.delete(`/layers`, null, query).json();
|
|
3144
|
-
}
|
|
3145
|
-
/**
|
|
3146
|
-
* No description
|
|
3147
|
-
*
|
|
3148
|
-
* @tags Layers
|
|
3149
|
-
* @name PatchQueryLayerService1
|
|
3150
|
-
* @operationId LayersController_PatchQueryLayerService_1
|
|
3151
|
-
* @summary Patch EQL-based Query Layer Service.
|
|
3152
|
-
* @request PATCH:/layers/{name}/v2
|
|
3153
|
-
* @secure
|
|
3154
|
-
* @response `200` OK
|
|
3155
|
-
*/
|
|
3156
|
-
patchQueryLayerService1(name, data) {
|
|
3157
|
-
return this.http.patch(`/layers/${name}/v2`, data).json();
|
|
3158
|
-
}
|
|
3159
|
-
/**
|
|
3160
|
-
* No description
|
|
3161
|
-
*
|
|
3162
|
-
* @tags Layers
|
|
3163
|
-
* @name ReloadService
|
|
3164
|
-
* @operationId LayersController_ReloadServiceAsync
|
|
3165
|
-
* @summary Initialize a new instance of service by given name.
|
|
3166
|
-
* @request GET:/layers/{name}/reload
|
|
3167
|
-
* @secure
|
|
3168
|
-
* @response `default` Error
|
|
3169
|
-
*/
|
|
3170
|
-
reloadService(name) {
|
|
3171
|
-
return this.http
|
|
3172
|
-
.get(`/layers/${name}/reload`)
|
|
3173
|
-
.json();
|
|
3174
|
-
}
|
|
3175
|
-
/**
|
|
3176
|
-
* No description
|
|
3177
|
-
*
|
|
3178
|
-
* @tags Layers
|
|
3179
|
-
* @name GetFeatures
|
|
3180
|
-
* @operationId LayersController_GetFeatures
|
|
3181
|
-
* @summary Returns list of the layer features.
|
|
3182
|
-
* @request POST:/layers/{name}/features/query
|
|
3183
|
-
* @secure
|
|
3184
|
-
* @response `200` OK
|
|
3185
|
-
*/
|
|
3186
|
-
getFeatures(name, data) {
|
|
3187
|
-
return this.http.post(`/layers/${name}/features/query`, data).json();
|
|
3188
|
-
}
|
|
3189
|
-
/**
|
|
3190
|
-
* No description
|
|
3191
|
-
*
|
|
3192
|
-
* @tags Layers
|
|
3193
|
-
* @name GetFeatures1
|
|
3194
|
-
* @operationId LayersController_GetFeatures_1
|
|
3195
|
-
* @summary Returns list of the layer features.
|
|
3196
|
-
* @request GET:/layers/{name}/features
|
|
3197
|
-
* @secure
|
|
3198
|
-
* @response `200` OK
|
|
3199
|
-
*/
|
|
3200
|
-
getFeatures1({ name, ...query }) {
|
|
3201
|
-
return this.http.get(`/layers/${name}/features`, query).json();
|
|
3202
|
-
}
|
|
3203
|
-
/**
|
|
3204
|
-
* No description
|
|
3205
|
-
*
|
|
3206
|
-
* @tags Layers
|
|
3207
|
-
* @name DeleteFeature
|
|
3208
|
-
* @operationId LayersController_DeleteFeature
|
|
3209
|
-
* @summary Deletes feature by id.
|
|
3210
|
-
* @request DELETE:/layers/{name}/features
|
|
3211
|
-
* @secure
|
|
3212
|
-
* @response `200` OK
|
|
3213
|
-
*/
|
|
3214
|
-
deleteFeature({ name, ...query }) {
|
|
3215
|
-
return this.http.delete(`/layers/${name}/features`, null, query).json();
|
|
3216
|
-
}
|
|
3217
|
-
/**
|
|
3218
|
-
* No description
|
|
3219
|
-
*
|
|
3220
|
-
* @tags Layers
|
|
3221
|
-
* @name CreateFeatures
|
|
3222
|
-
* @operationId LayersController_CreateFeatures
|
|
3223
|
-
* @summary Creates features list of type.SPCore.Connectors.Connectors.Base.Models.Features.FeatureDc.
|
|
3224
|
-
* @request POST:/layers/{name}/features
|
|
3225
|
-
* @secure
|
|
3226
|
-
* @response `200` OK
|
|
3227
|
-
*/
|
|
3228
|
-
createFeatures({ name, ...query }, data) {
|
|
3229
|
-
return this.http.post(`/layers/${name}/features`, data, query).json();
|
|
3230
|
-
}
|
|
3231
|
-
/**
|
|
3232
|
-
* No description
|
|
3233
|
-
*
|
|
3234
|
-
* @tags Layers
|
|
3235
|
-
* @name UpdateFeature
|
|
3236
|
-
* @operationId LayersController_UpdateFeature
|
|
3237
|
-
* @summary Updates features list SPCore.Connectors.Connectors.Base.Models.Features.FeatureDc.
|
|
3238
|
-
* @request PATCH:/layers/{name}/features
|
|
3239
|
-
* @secure
|
|
3240
|
-
* @response `200` OK
|
|
3241
|
-
*/
|
|
3242
|
-
updateFeature(name, data) {
|
|
3243
|
-
return this.http.patch(`/layers/${name}/features`, data).json();
|
|
3244
|
-
}
|
|
3245
|
-
/**
|
|
3246
|
-
* No description
|
|
3247
|
-
*
|
|
3248
|
-
* @tags Layers
|
|
3249
|
-
* @name GetById
|
|
3250
|
-
* @operationId LayersController_GetByIdAsync
|
|
3251
|
-
* @summary Gets feature by id.
|
|
3252
|
-
* @request GET:/layers/{name}/features/{id}
|
|
3253
|
-
* @secure
|
|
3254
|
-
* @response `200` OK
|
|
3255
|
-
*/
|
|
3256
|
-
getById({ name, id, ...query }) {
|
|
3257
|
-
return this.http.get(`/layers/${name}/features/${id}`, query).json();
|
|
3258
|
-
}
|
|
3259
|
-
/**
|
|
3260
|
-
* No description
|
|
3261
|
-
*
|
|
3262
|
-
* @tags Layers
|
|
3263
|
-
* @name GetTilesLayerImage
|
|
3264
|
-
* @operationId LayersController_GetTilesLayerImage
|
|
3265
|
-
* @summary Render tile with input indexes.
|
|
3266
|
-
* @request GET:/layers/{name}/tile/{z}/{x}/{y}
|
|
3267
|
-
* @secure
|
|
3268
|
-
* @response `200` OK
|
|
3269
|
-
*/
|
|
3270
|
-
getTilesLayerImage({ name, x, y, z, ...query }) {
|
|
3271
|
-
return this.http.createUrl(`/layers/${name}/tile/{z}/{x}/{y}`, query);
|
|
3272
|
-
}
|
|
3273
|
-
/**
|
|
3274
|
-
* No description
|
|
3275
|
-
*
|
|
3276
|
-
* @tags Layers
|
|
3277
|
-
* @name GetTilesLayerImage1
|
|
3278
|
-
* @operationId LayersController_GetTilesLayerImage_1
|
|
3279
|
-
* @summary Render tile with input indexes.
|
|
3280
|
-
* @request GET:/layers/{name}/tile/{z}/{x}/{y}.{format}
|
|
3281
|
-
* @secure
|
|
3282
|
-
* @response `200` OK
|
|
3283
|
-
*/
|
|
3284
|
-
getTilesLayerImage1({ name, x, y, z, format, ...query }) {
|
|
3285
|
-
return this.http.createUrl(`/layers/${name}/tile/{z}/{x}/{y}.${format}`, query);
|
|
3286
|
-
}
|
|
3287
|
-
/**
|
|
3288
|
-
* No description
|
|
3289
|
-
*
|
|
3290
|
-
* @tags Layers
|
|
3291
|
-
* @name GetTilesLayerImageWithFormatAndDpi
|
|
3292
|
-
* @operationId LayersController_GetTilesLayerImageWithFormatAndDpi
|
|
3293
|
-
* @summary Render tile with input indexes.
|
|
3294
|
-
* @request GET:/layers/{name}/tile/{z}/{x}/{y}@{dpi}x.{format}
|
|
3295
|
-
* @secure
|
|
3296
|
-
* @response `200` OK
|
|
3297
|
-
*/
|
|
3298
|
-
getTilesLayerImageWithFormatAndDpi({ name, x, y, z, dpi, format, ...query }) {
|
|
3299
|
-
return this.http.createUrl(`/layers/${name}/tile/{z}/{x}/{y}@${dpi}x.${format}`, query);
|
|
3300
|
-
}
|
|
3301
|
-
/**
|
|
3302
|
-
* No description
|
|
3303
|
-
*
|
|
3304
|
-
* @tags Layers
|
|
3305
|
-
* @name GetLayerExtent
|
|
3306
|
-
* @operationId LayersController_GetLayerExtent
|
|
3307
|
-
* @summary Returns the extent of the layer.
|
|
3308
|
-
* @request GET:/layers/{name}/extent
|
|
3309
|
-
* @secure
|
|
3310
|
-
* @response `200` OK
|
|
3311
|
-
*/
|
|
3312
|
-
getLayerExtent({ name, ...query }) {
|
|
3313
|
-
return this.http.get(`/layers/${name}/extent`, query).json();
|
|
3314
|
-
}
|
|
3315
|
-
/**
|
|
3316
|
-
* No description
|
|
3317
|
-
*
|
|
3318
|
-
* @tags Layers
|
|
3319
|
-
* @name DeleteFeatures
|
|
3320
|
-
* @operationId LayersController_DeleteFeatures
|
|
3321
|
-
* @summary Delete a list of features by given ids. Example: ids=1,2,3.
|
|
3322
|
-
* @request DELETE:/layers/{name}/features/deleteByIds
|
|
3323
|
-
* @secure
|
|
3324
|
-
* @response `200` OK
|
|
3325
|
-
*/
|
|
3326
|
-
deleteFeatures({ name, ...query }) {
|
|
3327
|
-
return this.http.delete(`/layers/${name}/features/deleteByIds`, null, query).json();
|
|
3328
|
-
}
|
|
3329
|
-
/**
|
|
3330
|
-
* No description
|
|
3331
|
-
*
|
|
3332
|
-
* @tags Layers
|
|
3333
|
-
* @name DeleteByCondition
|
|
3334
|
-
* @operationId LayersController_DeleteByCondition
|
|
3335
|
-
* @summary Delete a list of features by condition with exclude given ids.
|
|
3336
|
-
* @request DELETE:/layers/{name}/features/deleteByCondition
|
|
3337
|
-
* @secure
|
|
3338
|
-
* @response `200` OK
|
|
3339
|
-
*/
|
|
3340
|
-
deleteByCondition({ name, ...query }) {
|
|
3341
|
-
return this.http.delete(`/layers/${name}/features/deleteByCondition`, null, query).json();
|
|
3342
|
-
}
|
|
3343
|
-
/**
|
|
3344
|
-
* No description
|
|
3345
|
-
*
|
|
3346
|
-
* @tags Layers
|
|
3347
|
-
* @name Classify
|
|
3348
|
-
* @operationId LayersController_Classify
|
|
3349
|
-
* @summary Returns the classified attribute values that correspond to the given number of classes.
|
|
3350
|
-
* @request GET:/layers/{name}/classify
|
|
3351
|
-
* @secure
|
|
3352
|
-
* @response `200` OK
|
|
3353
|
-
*/
|
|
3354
|
-
classify({ name, ...query }) {
|
|
3355
|
-
return this.http.get(`/layers/${name}/classify`, query).json();
|
|
3356
|
-
}
|
|
3357
|
-
/**
|
|
3358
|
-
* No description
|
|
3359
|
-
*
|
|
3360
|
-
* @tags Layers
|
|
3361
|
-
* @name Distincts
|
|
3362
|
-
* @operationId LayersController_Distincts
|
|
3363
|
-
* @summary Returns distinct attribute values and their count.
|
|
3364
|
-
* @request GET:/layers/{name}/distincts
|
|
3365
|
-
* @secure
|
|
3366
|
-
* @response `200` OK
|
|
3367
|
-
*/
|
|
3368
|
-
distincts({ name, ...query }) {
|
|
3369
|
-
return this.http.get(`/layers/${name}/distincts`, query).json();
|
|
3370
|
-
}
|
|
3371
|
-
/**
|
|
3372
|
-
* No description
|
|
3373
|
-
*
|
|
3374
|
-
* @tags Layers
|
|
3375
|
-
* @name AggregateAttribute
|
|
3376
|
-
* @operationId LayersController_AggregateAttribute
|
|
3377
|
-
* @summary Returns aggregated value of given attribute aggregationAttributeName within a given groups groups.
|
|
3378
|
-
* @request GET:/layers/{name}/aggregate-values
|
|
3379
|
-
* @secure
|
|
3380
|
-
* @response `200` OK
|
|
3381
|
-
*/
|
|
3382
|
-
aggregateAttribute({ name, ...query }) {
|
|
3383
|
-
return this.http.get(`/layers/${name}/aggregate-values`, query).json();
|
|
3384
|
-
}
|
|
3385
|
-
/**
|
|
3386
|
-
* No description
|
|
3387
|
-
*
|
|
3388
|
-
* @tags Layers
|
|
3389
|
-
* @name GetFilteredFeaturesCount1
|
|
3390
|
-
* @operationId LayersController_GetFilteredFeaturesCount_1
|
|
3391
|
-
* @summary Get features count according layer filter of the given name.
|
|
3392
|
-
* @request GET:/layers/{name}/features/count
|
|
3393
|
-
* @secure
|
|
3394
|
-
* @response `200` OK
|
|
3395
|
-
*/
|
|
3396
|
-
getFilteredFeaturesCount1({ name, ...query }) {
|
|
3397
|
-
return this.http.get(`/layers/${name}/features/count`, query).json();
|
|
3398
|
-
}
|
|
3399
|
-
/**
|
|
3400
|
-
* No description
|
|
3401
|
-
*
|
|
3402
|
-
* @tags Layers
|
|
3403
|
-
* @name GetFilteredFeaturesCount2
|
|
3404
|
-
* @operationId LayersController_GetFilteredFeaturesCount_2
|
|
3405
|
-
* @summary Get features count according layer filter of the given name.
|
|
3406
|
-
* @request POST:/layers/{name}/features/count
|
|
3407
|
-
* @secure
|
|
3408
|
-
* @response `200` OK
|
|
3409
|
-
*/
|
|
3410
|
-
getFilteredFeaturesCount2(name, data) {
|
|
3411
|
-
return this.http.post(`/layers/${name}/features/count`, data).json();
|
|
3412
|
-
}
|
|
3413
|
-
/**
|
|
3414
|
-
* No description
|
|
3415
|
-
*
|
|
3416
|
-
* @tags Layers
|
|
3417
|
-
* @name EditAttributes
|
|
3418
|
-
* @operationId LayersController_EditAttributes
|
|
3419
|
-
* @summary Edit attributes with editInfo.
|
|
3420
|
-
* @request POST:/layers/{name}/features/edit-attributes
|
|
3421
|
-
* @secure
|
|
3422
|
-
* @response `200` OK
|
|
3423
|
-
*/
|
|
3424
|
-
editAttributes(name, data) {
|
|
3425
|
-
return this.http.post(`/layers/${name}/features/edit-attributes`, data).json();
|
|
3426
|
-
}
|
|
3427
|
-
/**
|
|
3428
|
-
* No description
|
|
3429
|
-
*
|
|
3430
|
-
* @tags Layers
|
|
3431
|
-
* @name ValidateExpression
|
|
3432
|
-
* @operationId LayersController_ValidateExpression
|
|
3433
|
-
* @summary Validates the given EQL expression against the requested layer. If the expression is valid, it can be executed on the features in the layer to produce a value of some type. The type of the resulting value will be also returned in the validation result.
|
|
3434
|
-
* @request GET:/layers/{layerName}/validateExpression
|
|
3435
|
-
* @secure
|
|
3436
|
-
* @response `200` OK
|
|
3437
|
-
*/
|
|
3438
|
-
validateExpression({ layerName, ...query }) {
|
|
3439
|
-
return this.http.get(`/layers/${layerName}/validateExpression`, query).json();
|
|
3440
|
-
}
|
|
3441
|
-
/**
|
|
3442
|
-
* No description
|
|
3443
|
-
*
|
|
3444
|
-
* @tags Layers
|
|
3445
|
-
* @name GetRasterMeta
|
|
3446
|
-
* @operationId LayersController_GetRasterMeta
|
|
3447
|
-
* @summary Get raster metadata.
|
|
3448
|
-
* @request GET:/layers/{name}/{id}/metadata
|
|
3449
|
-
* @secure
|
|
3450
|
-
* @response `200` OK
|
|
3451
|
-
*/
|
|
3452
|
-
getRasterMeta({ name, id, ...query }) {
|
|
3453
|
-
return this.http.get(`/layers/${name}/${id}/metadata`, query).json();
|
|
3454
|
-
}
|
|
3455
|
-
/**
|
|
3456
|
-
* No description
|
|
3457
|
-
*
|
|
3458
|
-
* @tags Layers
|
|
3459
|
-
* @name IsExists
|
|
3460
|
-
* @operationId LayersController_IsExistsAsync
|
|
3461
|
-
* @summary Check is resource exists.
|
|
3462
|
-
* @request GET:/layers/{name}/exists
|
|
3463
|
-
* @secure
|
|
3464
|
-
* @response `200` OK
|
|
3465
|
-
*/
|
|
3466
|
-
isExists(name) {
|
|
3467
|
-
return this.http.get(`/layers/${name}/exists`).then(() => { });
|
|
3468
|
-
}
|
|
3469
|
-
/**
|
|
3470
|
-
* No description
|
|
3471
|
-
*
|
|
3472
|
-
* @tags Layers
|
|
3473
|
-
* @name GetResourceDependencies
|
|
3474
|
-
* @operationId LayersController_GetResourceDependencies
|
|
3475
|
-
* @summary Get resource dependencies.
|
|
3476
|
-
* @request GET:/layers/{name}/dependencies
|
|
3477
|
-
* @secure
|
|
3478
|
-
* @response `200` OK
|
|
3479
|
-
*/
|
|
3480
|
-
getResourceDependencies(name) {
|
|
3481
|
-
return this.http.get(`/layers/${name}/dependencies`).json();
|
|
3482
|
-
}
|
|
3483
|
-
/**
|
|
3484
|
-
* No description
|
|
3485
|
-
*
|
|
3486
|
-
* @tags Layers
|
|
3487
|
-
* @name GetResourceReferences
|
|
3488
|
-
* @operationId LayersController_GetResourceReferences
|
|
3489
|
-
* @summary Returns the resource dependency information.
|
|
3490
|
-
* @request GET:/layers/{name}/references
|
|
3491
|
-
* @secure
|
|
3492
|
-
* @response `200` OK
|
|
3493
|
-
*/
|
|
3494
|
-
getResourceReferences(name) {
|
|
3495
|
-
return this.http.get(`/layers/${name}/references`).json();
|
|
3496
|
-
}
|
|
3497
|
-
}
|
|
3026
|
+
*
|
|
3498
3027
|
|
|
3499
|
-
|
|
3500
|
-
getLayerInfos(layers) {
|
|
3501
|
-
return promiseAllIgnoreErrors(layers.map(layer => this.getLayerInfo(layer)));
|
|
3502
|
-
}
|
|
3503
|
-
getLayersDeps(layers) {
|
|
3504
|
-
return promiseAllIgnoreErrors(layers.map(layer => this.getResourceDependencies(layer)));
|
|
3505
|
-
}
|
|
3506
|
-
findOne(name) {
|
|
3507
|
-
return this.getLayerInfo(name);
|
|
3508
|
-
}
|
|
3509
|
-
findMany(layerNames, projectNames) {
|
|
3510
|
-
return this.getLayersInfo({ layerNames, projectNames });
|
|
3511
|
-
}
|
|
3512
|
-
createLayer(configuration) {
|
|
3513
|
-
return this.publishService(configuration);
|
|
3514
|
-
}
|
|
3515
|
-
updateQueryLayer(configuration) {
|
|
3516
|
-
return this.patchQueryLayerService(configuration.name, configuration);
|
|
3517
|
-
}
|
|
3518
|
-
async remove(name) {
|
|
3519
|
-
await this.deleteResources({ names: [name] });
|
|
3520
|
-
return name;
|
|
3521
|
-
}
|
|
3522
|
-
}
|
|
3523
|
-
function isTileLayerService(layer) {
|
|
3524
|
-
return layer.type && /TileService/.test(layer.type);
|
|
3525
|
-
}
|
|
3028
|
+
Shared
|
|
3526
3029
|
|
|
3527
|
-
|
|
3528
|
-
exports.ResourceSeparator = void 0;
|
|
3529
|
-
(function (ResourceSeparator) {
|
|
3530
|
-
ResourceSeparator["Server"] = ".";
|
|
3531
|
-
})(exports.ResourceSeparator || (exports.ResourceSeparator = {}));
|
|
3532
|
-
class Names {
|
|
3533
|
-
account;
|
|
3534
|
-
constructor({ account }) {
|
|
3535
|
-
this.account = account;
|
|
3536
|
-
}
|
|
3537
|
-
/** Generates unique identifier */
|
|
3538
|
-
createId() {
|
|
3539
|
-
return generateId();
|
|
3540
|
-
}
|
|
3541
|
-
/** Generates new resource name using for client\server interactions */
|
|
3542
|
-
createResourceName(params = {}) {
|
|
3543
|
-
const workspace = params.workspace ||
|
|
3544
|
-
(this.account.user && this.account.user.namespace) ||
|
|
3545
|
-
"";
|
|
3546
|
-
const name = params.name || this.createId();
|
|
3547
|
-
const separator = params.separator || exports.ResourceSeparator.Server;
|
|
3548
|
-
if (!workspace) {
|
|
3549
|
-
console.warn("Resource should have workspace. Check account api");
|
|
3550
|
-
}
|
|
3551
|
-
return `${workspace}${separator}${name}`;
|
|
3552
|
-
}
|
|
3553
|
-
/** Generates temporary resource name using for client\server interactions */
|
|
3554
|
-
createTempResourceName(params = {}) {
|
|
3555
|
-
return this.createResourceName({
|
|
3556
|
-
workspace: RESOURCE_TEMP_WORKSPACE,
|
|
3557
|
-
...params,
|
|
3558
|
-
});
|
|
3559
|
-
}
|
|
3560
|
-
/** Extract resource information (workspace, name) */
|
|
3561
|
-
extractResource(resourceName) {
|
|
3562
|
-
if (resourceName) {
|
|
3563
|
-
if (resourceName.includes(exports.ResourceSeparator.Server)) {
|
|
3564
|
-
const matches = resourceName.split(exports.ResourceSeparator.Server);
|
|
3565
|
-
const name = matches.pop();
|
|
3566
|
-
const workspace = matches.join(exports.ResourceSeparator.Server);
|
|
3567
|
-
return { workspace, name };
|
|
3568
|
-
}
|
|
3569
|
-
}
|
|
3570
|
-
return {
|
|
3571
|
-
name: "",
|
|
3572
|
-
workspace: "",
|
|
3573
|
-
};
|
|
3574
|
-
}
|
|
3575
|
-
/** Extract resource name */
|
|
3576
|
-
extractResourceName(resourceName) {
|
|
3577
|
-
return this.extractResource(resourceName).name || resourceName || "";
|
|
3578
|
-
}
|
|
3579
|
-
/** Extract resource workspace */
|
|
3580
|
-
extractResourceWorkspace(resourceName) {
|
|
3581
|
-
return this.extractResource(resourceName).workspace || "";
|
|
3582
|
-
}
|
|
3583
|
-
}
|
|
3030
|
+
Public
|
|
3584
3031
|
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
* ---------------------------------------------------------------
|
|
3594
|
-
*/
|
|
3595
|
-
// @ts-nocheck
|
|
3032
|
+
My
|
|
3033
|
+
*/
|
|
3034
|
+
exports.AccessMode = void 0;
|
|
3035
|
+
(function (AccessMode) {
|
|
3036
|
+
AccessMode["Shared"] = "Shared";
|
|
3037
|
+
AccessMode["Public"] = "Public";
|
|
3038
|
+
AccessMode["My"] = "My";
|
|
3039
|
+
})(exports.AccessMode || (exports.AccessMode = {}));
|
|
3596
3040
|
/**
|
|
3597
|
-
|
|
3598
|
-
* @version 1.5.1.0
|
|
3599
|
-
* @baseUrl /sp
|
|
3600
|
-
*/
|
|
3601
|
-
class NotificationService extends Service {
|
|
3602
|
-
/**
|
|
3603
|
-
* No description
|
|
3604
|
-
*
|
|
3605
|
-
* @tags NotificationService
|
|
3606
|
-
* @name GetSubscriptionList
|
|
3607
|
-
* @operationId NotificationServiceController_GetSubscriptionList
|
|
3608
|
-
* @summary Returns a list of notification tags that the current session is subscribed to.
|
|
3609
|
-
* @request GET:/notifications/subscribes
|
|
3610
|
-
* @secure
|
|
3611
|
-
* @response `200` OK
|
|
3612
|
-
*/
|
|
3613
|
-
getSubscriptionList() {
|
|
3614
|
-
return this.http.get(`/notifications/subscribes`).json();
|
|
3615
|
-
}
|
|
3616
|
-
/**
|
|
3617
|
-
* No description
|
|
3618
|
-
*
|
|
3619
|
-
* @tags NotificationService
|
|
3620
|
-
* @name SubscribeOperation
|
|
3621
|
-
* @operationId NotificationServiceController_SubscribeOperation
|
|
3622
|
-
* @summary Subscribe current session by subscribe tag. A subscribed session will receive all notifications added for the specified tag.
|
|
3623
|
-
* @request POST:/notifications/subscribes
|
|
3624
|
-
* @secure
|
|
3625
|
-
* @response `200` OK
|
|
3626
|
-
*/
|
|
3627
|
-
subscribeOperation(query) {
|
|
3628
|
-
return this.http.post(`/notifications/subscribes`, null, query).then(() => { });
|
|
3629
|
-
}
|
|
3630
|
-
/**
|
|
3631
|
-
* No description
|
|
3632
|
-
*
|
|
3633
|
-
* @tags NotificationService
|
|
3634
|
-
* @name UnsubscribeOperation
|
|
3635
|
-
* @operationId NotificationServiceController_UnsubscribeOperation
|
|
3636
|
-
* @summary Unsubscribe from receiving notifications that come for the specified tag.
|
|
3637
|
-
* @request DELETE:/notifications/subscribes
|
|
3638
|
-
* @secure
|
|
3639
|
-
* @response `200` OK
|
|
3640
|
-
*/
|
|
3641
|
-
unsubscribeOperation(query) {
|
|
3642
|
-
return this.http.delete(`/notifications/subscribes`, null, query).then(() => { });
|
|
3643
|
-
}
|
|
3644
|
-
/**
|
|
3645
|
-
* No description
|
|
3646
|
-
*
|
|
3647
|
-
* @tags NotificationService
|
|
3648
|
-
* @name SubscribeListOperation
|
|
3649
|
-
* @operationId NotificationServiceController_SubscribeListOperation
|
|
3650
|
-
* @summary Subscribe current session by subscribe tags. A subscribed session will receive all notifications added for the specified tags.
|
|
3651
|
-
* @request POST:/notifications/subscribe-list
|
|
3652
|
-
* @secure
|
|
3653
|
-
* @response `200` OK
|
|
3654
|
-
*/
|
|
3655
|
-
subscribeListOperation(data) {
|
|
3656
|
-
return this.http.post(`/notifications/subscribe-list`, data).then(() => { });
|
|
3657
|
-
}
|
|
3658
|
-
/**
|
|
3659
|
-
* No description
|
|
3660
|
-
*
|
|
3661
|
-
* @tags NotificationService
|
|
3662
|
-
* @name UnsubscribeListOperation
|
|
3663
|
-
* @operationId NotificationServiceController_UnsubscribeListOperation
|
|
3664
|
-
* @summary Unsubscribe from receiving notifications that come for the specified tags.
|
|
3665
|
-
* @request POST:/notifications/unsubscribe-list
|
|
3666
|
-
* @secure
|
|
3667
|
-
* @response `200` OK
|
|
3668
|
-
*/
|
|
3669
|
-
unsubscribeListOperation(data) {
|
|
3670
|
-
return this.http.post(`/notifications/unsubscribe-list`, data).then(() => { });
|
|
3671
|
-
}
|
|
3672
|
-
}
|
|
3041
|
+
*
|
|
3673
3042
|
|
|
3674
|
-
|
|
3675
|
-
(function (ConnectionStatus) {
|
|
3676
|
-
ConnectionStatus["Initialized"] = "Initialized";
|
|
3677
|
-
ConnectionStatus["Connected"] = "Connected";
|
|
3678
|
-
ConnectionStatus["Break"] = "Break";
|
|
3679
|
-
ConnectionStatus["Lost"] = "Lost";
|
|
3680
|
-
ConnectionStatus["SessionClosed"] = "SessionClosed";
|
|
3681
|
-
})(exports.ConnectionStatus || (exports.ConnectionStatus = {}));
|
|
3682
|
-
const SUBSCRIPTION_DELAY = 500;
|
|
3683
|
-
const KEEP_ALIVE_INTERVAL = 5 * 1000;
|
|
3684
|
-
class Notification extends NotificationService {
|
|
3685
|
-
api;
|
|
3686
|
-
MAX_WS_RECONNECT_TRIES = 10;
|
|
3687
|
-
emitter;
|
|
3688
|
-
keepAlive = false;
|
|
3689
|
-
ws;
|
|
3690
|
-
wsUrl;
|
|
3691
|
-
reconnectTries = 0;
|
|
3692
|
-
subscriptions = [];
|
|
3693
|
-
keepAliveTimeout;
|
|
3694
|
-
_connectStatus = exports.ConnectionStatus.Initialized;
|
|
3695
|
-
// @ts-ignore
|
|
3696
|
-
get connectStatus() {
|
|
3697
|
-
return this._connectStatus;
|
|
3698
|
-
}
|
|
3699
|
-
// @ts-ignore
|
|
3700
|
-
set connectStatus(connectStatus) {
|
|
3701
|
-
this.emitter.emit("ConnectionStatus" /* NotificationTag.ConnectionStatus */, new NotificationEvent(connectStatus));
|
|
3702
|
-
this._connectStatus = connectStatus;
|
|
3703
|
-
}
|
|
3704
|
-
get currentWs() {
|
|
3705
|
-
return this.ws;
|
|
3706
|
-
}
|
|
3707
|
-
constructor(http, api, keepAlive = false) {
|
|
3708
|
-
super(http);
|
|
3709
|
-
this.api = api;
|
|
3710
|
-
this.emitter = new EventEmitter();
|
|
3711
|
-
this.keepAlive = keepAlive;
|
|
3712
|
-
}
|
|
3713
|
-
on(tag, handler) {
|
|
3714
|
-
this.emitter.on(tag, handler);
|
|
3715
|
-
}
|
|
3716
|
-
off(tag, handler) {
|
|
3717
|
-
this.emitter.off(tag, handler);
|
|
3718
|
-
}
|
|
3719
|
-
async subscribe(tag) {
|
|
3720
|
-
this.subscriptions.push(tag);
|
|
3721
|
-
setTimeout(() => {
|
|
3722
|
-
if (!this.api.isShared && !this.api.isPresentation && this.subscriptions.length) {
|
|
3723
|
-
this.subscribeListOperation(this.subscriptions);
|
|
3724
|
-
}
|
|
3725
|
-
this.subscriptions = [];
|
|
3726
|
-
}, SUBSCRIPTION_DELAY);
|
|
3727
|
-
}
|
|
3728
|
-
async unsubscribe(tag) {
|
|
3729
|
-
const subscriptions = await this.getSubscriptionList();
|
|
3730
|
-
if (subscriptions.includes(tag)) {
|
|
3731
|
-
return this.unsubscribeOperation({ tag });
|
|
3732
|
-
}
|
|
3733
|
-
}
|
|
3734
|
-
connectWs(url) {
|
|
3735
|
-
const urlWithWsScheme = url
|
|
3736
|
-
.replace("http://", "ws://")
|
|
3737
|
-
.replace("https://", "wss://");
|
|
3738
|
-
this.wsUrl = urlWithWsScheme;
|
|
3739
|
-
this.connect();
|
|
3740
|
-
}
|
|
3741
|
-
connect() {
|
|
3742
|
-
if (this.wsUrl) {
|
|
3743
|
-
this.ws = new WebSocket(this.wsUrl);
|
|
3744
|
-
this.ws.onopen = this.onWsConnected;
|
|
3745
|
-
this.ws.onclose = this.onWsClosed;
|
|
3746
|
-
this.ws.onmessage = this.onWsMessage;
|
|
3747
|
-
}
|
|
3748
|
-
else {
|
|
3749
|
-
console.warn("Connection to WebSocket not allowed. wsUrl not provided");
|
|
3750
|
-
}
|
|
3751
|
-
}
|
|
3752
|
-
onWsConnected = () => {
|
|
3753
|
-
this.connectStatus = exports.ConnectionStatus.Connected;
|
|
3754
|
-
if (this.keepAlive) {
|
|
3755
|
-
this.keepAliveTimeout = setInterval(() => {
|
|
3756
|
-
if (this.ws) {
|
|
3757
|
-
this.ws.send(JSON.stringify({ keepAlive: true }));
|
|
3758
|
-
}
|
|
3759
|
-
}, KEEP_ALIVE_INTERVAL);
|
|
3760
|
-
}
|
|
3761
|
-
// TODO: comment for now. it launch endless flow of reconnections
|
|
3762
|
-
// this.reconnectTries = 0;
|
|
3763
|
-
};
|
|
3764
|
-
onWsClosed = (event) => {
|
|
3765
|
-
if (event.code === 4001 /* WsCloseStatusCode.SessionClosed */ ||
|
|
3766
|
-
event.code === 4002 /* WsCloseStatusCode.InvalidSession */) {
|
|
3767
|
-
this.connectStatus = exports.ConnectionStatus.SessionClosed;
|
|
3768
|
-
}
|
|
3769
|
-
else if (this.reconnectTries < this.MAX_WS_RECONNECT_TRIES) {
|
|
3770
|
-
this.connectStatus = exports.ConnectionStatus.Break;
|
|
3771
|
-
this.reconnectTries++;
|
|
3772
|
-
if (this.ws) {
|
|
3773
|
-
this.ws.onopen = null;
|
|
3774
|
-
this.ws.onclose = null;
|
|
3775
|
-
this.ws.onmessage = null;
|
|
3776
|
-
this.ws = void 0;
|
|
3777
|
-
}
|
|
3778
|
-
this.keepAliveTimeout && clearInterval(this.keepAliveTimeout);
|
|
3779
|
-
setTimeout(() => {
|
|
3780
|
-
this.connect();
|
|
3781
|
-
}, 0);
|
|
3782
|
-
}
|
|
3783
|
-
else {
|
|
3784
|
-
this.connectStatus = exports.ConnectionStatus.Lost;
|
|
3785
|
-
}
|
|
3786
|
-
};
|
|
3787
|
-
onWsMessage = (event) => {
|
|
3788
|
-
let message = {};
|
|
3789
|
-
try {
|
|
3790
|
-
message = JSON.parse(event.data);
|
|
3791
|
-
}
|
|
3792
|
-
catch (e) {
|
|
3793
|
-
console.debug("Failed to parse ws message from sp.");
|
|
3794
|
-
// ignore
|
|
3795
|
-
}
|
|
3796
|
-
if (message.type === "notification" && message.data) {
|
|
3797
|
-
const { tag, data } = message.data;
|
|
3798
|
-
tag && this.emitter.emit(tag, new NotificationEvent(data));
|
|
3799
|
-
}
|
|
3800
|
-
};
|
|
3801
|
-
}
|
|
3802
|
-
class NotificationEvent {
|
|
3803
|
-
data;
|
|
3804
|
-
constructor(data) {
|
|
3805
|
-
this.data = data;
|
|
3806
|
-
}
|
|
3807
|
-
}
|
|
3043
|
+
None
|
|
3808
3044
|
|
|
3809
|
-
|
|
3810
|
-
config = null;
|
|
3811
|
-
async fetchPortalSettings(query) {
|
|
3812
|
-
this.config = JSON.parse(await this.getConfiguration(query));
|
|
3813
|
-
return this.config;
|
|
3814
|
-
}
|
|
3815
|
-
}
|
|
3045
|
+
Array
|
|
3816
3046
|
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3047
|
+
Min
|
|
3048
|
+
|
|
3049
|
+
Max
|
|
3050
|
+
|
|
3051
|
+
Avg
|
|
3052
|
+
|
|
3053
|
+
Sum
|
|
3054
|
+
|
|
3055
|
+
Extent
|
|
3056
|
+
|
|
3057
|
+
H3
|
|
3058
|
+
|
|
3059
|
+
Count
|
|
3060
|
+
|
|
3061
|
+
TotalCount
|
|
3062
|
+
|
|
3063
|
+
DistinctCount
|
|
3064
|
+
|
|
3065
|
+
First
|
|
3066
|
+
|
|
3067
|
+
Last
|
|
3068
|
+
|
|
3069
|
+
Median
|
|
3070
|
+
|
|
3071
|
+
Mod
|
|
3072
|
+
|
|
3073
|
+
StdDeviation
|
|
3074
|
+
|
|
3075
|
+
SumOfProduct
|
|
3076
|
+
|
|
3077
|
+
OnlyValue
|
|
3078
|
+
|
|
3079
|
+
WeightedAvg
|
|
3080
|
+
|
|
3081
|
+
DensityIndicators
|
|
3082
|
+
|
|
3083
|
+
DividedSum
|
|
3084
|
+
*/
|
|
3085
|
+
exports.AggregationFunction = void 0;
|
|
3086
|
+
(function (AggregationFunction) {
|
|
3087
|
+
AggregationFunction["None"] = "None";
|
|
3088
|
+
AggregationFunction["Array"] = "Array";
|
|
3089
|
+
AggregationFunction["Min"] = "Min";
|
|
3090
|
+
AggregationFunction["Max"] = "Max";
|
|
3091
|
+
AggregationFunction["Avg"] = "Avg";
|
|
3092
|
+
AggregationFunction["Sum"] = "Sum";
|
|
3093
|
+
AggregationFunction["Extent"] = "Extent";
|
|
3094
|
+
AggregationFunction["H3"] = "H3";
|
|
3095
|
+
AggregationFunction["Count"] = "Count";
|
|
3096
|
+
AggregationFunction["TotalCount"] = "TotalCount";
|
|
3097
|
+
AggregationFunction["DistinctCount"] = "DistinctCount";
|
|
3098
|
+
AggregationFunction["First"] = "First";
|
|
3099
|
+
AggregationFunction["Last"] = "Last";
|
|
3100
|
+
AggregationFunction["Median"] = "Median";
|
|
3101
|
+
AggregationFunction["Mod"] = "Mod";
|
|
3102
|
+
AggregationFunction["StdDeviation"] = "StdDeviation";
|
|
3103
|
+
AggregationFunction["SumOfProduct"] = "SumOfProduct";
|
|
3104
|
+
AggregationFunction["OnlyValue"] = "OnlyValue";
|
|
3105
|
+
AggregationFunction["WeightedAvg"] = "WeightedAvg";
|
|
3106
|
+
AggregationFunction["DensityIndicators"] = "DensityIndicators";
|
|
3107
|
+
AggregationFunction["DividedSum"] = "DividedSum";
|
|
3108
|
+
})(exports.AggregationFunction || (exports.AggregationFunction = {}));
|
|
3828
3109
|
/**
|
|
3829
|
-
|
|
3830
|
-
* @version 1.5.1.0
|
|
3831
|
-
* @baseUrl /sp
|
|
3832
|
-
*/
|
|
3833
|
-
class ProjectsService extends Service {
|
|
3834
|
-
/**
|
|
3835
|
-
* No description
|
|
3836
|
-
*
|
|
3837
|
-
* @tags Projects
|
|
3838
|
-
* @name CreateProject
|
|
3839
|
-
* @operationId ProjectsController_CreateProject
|
|
3840
|
-
* @summary Creates a new project.
|
|
3841
|
-
* @request POST:/projects
|
|
3842
|
-
* @secure
|
|
3843
|
-
* @response `200` OK
|
|
3844
|
-
*/
|
|
3845
|
-
createProject(data) {
|
|
3846
|
-
return this.http.post(`/projects`, data).json();
|
|
3847
|
-
}
|
|
3848
|
-
/**
|
|
3849
|
-
* No description
|
|
3850
|
-
*
|
|
3851
|
-
* @tags Projects
|
|
3852
|
-
* @name DeleteResources
|
|
3853
|
-
* @operationId ProjectsController_DeleteResources
|
|
3854
|
-
* @summary Bulk delete resources.
|
|
3855
|
-
* @request DELETE:/projects
|
|
3856
|
-
* @secure
|
|
3857
|
-
* @response `200` OK
|
|
3858
|
-
*/
|
|
3859
|
-
deleteResources(query) {
|
|
3860
|
-
return this.http.delete(`/projects`, null, query).json();
|
|
3861
|
-
}
|
|
3862
|
-
/**
|
|
3863
|
-
* No description
|
|
3864
|
-
*
|
|
3865
|
-
* @tags Projects
|
|
3866
|
-
* @name UpdateProject
|
|
3867
|
-
* @operationId ProjectsController_UpdateProject
|
|
3868
|
-
* @summary Update table.
|
|
3869
|
-
* @request PATCH:/projects/{name}
|
|
3870
|
-
* @secure
|
|
3871
|
-
* @response `200` OK
|
|
3872
|
-
*/
|
|
3873
|
-
updateProject(name, data) {
|
|
3874
|
-
return this.http.patch(`/projects/${name}`, data).json();
|
|
3875
|
-
}
|
|
3876
|
-
/**
|
|
3877
|
-
* No description
|
|
3878
|
-
*
|
|
3879
|
-
* @tags Projects
|
|
3880
|
-
* @name GetProjectInfo
|
|
3881
|
-
* @operationId ProjectsController_GetProjectInfo
|
|
3882
|
-
* @summary Returns the project and it's content information.
|
|
3883
|
-
* @request GET:/projects/{name}
|
|
3884
|
-
* @secure
|
|
3885
|
-
* @response `200` OK
|
|
3886
|
-
*/
|
|
3887
|
-
getProjectInfo(name) {
|
|
3888
|
-
return this.http.get(`/projects/${name}`).json();
|
|
3889
|
-
}
|
|
3890
|
-
/**
|
|
3891
|
-
* No description
|
|
3892
|
-
*
|
|
3893
|
-
* @tags Projects
|
|
3894
|
-
* @name UpdateProjectV2
|
|
3895
|
-
* @operationId ProjectsController_UpdateProjectV2
|
|
3896
|
-
* @summary Update table.
|
|
3897
|
-
* @request PATCH:/projects/{name}/v2
|
|
3898
|
-
* @secure
|
|
3899
|
-
* @response `200` OK
|
|
3900
|
-
*/
|
|
3901
|
-
updateProjectV2(name, data) {
|
|
3902
|
-
return this.http.patch(`/projects/${name}/v2`, data).json();
|
|
3903
|
-
}
|
|
3904
|
-
/**
|
|
3905
|
-
* No description
|
|
3906
|
-
*
|
|
3907
|
-
* @tags Projects
|
|
3908
|
-
* @name GetProjectsInfo
|
|
3909
|
-
* @operationId ProjectsController_GetProjectsInfoAsync
|
|
3910
|
-
* @summary Returns the projects information.
|
|
3911
|
-
* @request GET:/projects/batchInfo
|
|
3912
|
-
* @secure
|
|
3913
|
-
* @response `200` OK
|
|
3914
|
-
*/
|
|
3915
|
-
getProjectsInfo(query) {
|
|
3916
|
-
return this.http.get(`/projects/batchInfo`, query).json();
|
|
3917
|
-
}
|
|
3918
|
-
/**
|
|
3919
|
-
* No description
|
|
3920
|
-
*
|
|
3921
|
-
* @tags Projects
|
|
3922
|
-
* @name GetProjectEnvelope
|
|
3923
|
-
* @operationId ProjectsController_GetProjectEnvelope
|
|
3924
|
-
* @summary Get project extent.
|
|
3925
|
-
* @request GET:/projects/{name}/extent
|
|
3926
|
-
* @secure
|
|
3927
|
-
* @response `200` OK
|
|
3928
|
-
*/
|
|
3929
|
-
getProjectEnvelope({ name, ...query }) {
|
|
3930
|
-
return this.http.get(`/projects/${name}/extent`, query).json();
|
|
3931
|
-
}
|
|
3932
|
-
/**
|
|
3933
|
-
* No description
|
|
3934
|
-
*
|
|
3935
|
-
* @tags Projects
|
|
3936
|
-
* @name GetProjectLayersExtendedInfo
|
|
3937
|
-
* @operationId ProjectsController_GetProjectLayersExtendedInfo
|
|
3938
|
-
* @summary Gets extended project info with layers info.
|
|
3939
|
-
* @request GET:/projects/{name}/extended-info
|
|
3940
|
-
* @secure
|
|
3941
|
-
* @response `200` OK
|
|
3942
|
-
*/
|
|
3943
|
-
getProjectLayersExtendedInfo(name) {
|
|
3944
|
-
return this.http.get(`/projects/${name}/extended-info`).json();
|
|
3945
|
-
}
|
|
3946
|
-
/**
|
|
3947
|
-
* No description
|
|
3948
|
-
*
|
|
3949
|
-
* @tags Projects
|
|
3950
|
-
* @name GetTilesLayerImage
|
|
3951
|
-
* @operationId ProjectsController_GetTilesLayerImage
|
|
3952
|
-
* @summary Render tile.
|
|
3953
|
-
* @request GET:/projects/{name}/tile/{z}/{x}/{y}
|
|
3954
|
-
* @secure
|
|
3955
|
-
* @response `200` OK
|
|
3956
|
-
*/
|
|
3957
|
-
getTilesLayerImage(name, x, y, z) {
|
|
3958
|
-
return this.http.createUrl(`/projects/${name}/tile/{z}/{x}/{y}`);
|
|
3959
|
-
}
|
|
3960
|
-
/**
|
|
3961
|
-
* No description
|
|
3962
|
-
*
|
|
3963
|
-
* @tags Projects
|
|
3964
|
-
* @name GetTilesLayerImageWithFormat
|
|
3965
|
-
* @operationId ProjectsController_GetTilesLayerImageWithFormat
|
|
3966
|
-
* @summary Render tile.
|
|
3967
|
-
* @request GET:/projects/{name}/tile/{z}/{x}/{y}.{format}
|
|
3968
|
-
* @secure
|
|
3969
|
-
* @response `200` OK
|
|
3970
|
-
*/
|
|
3971
|
-
getTilesLayerImageWithFormat(name, x, y, z, format) {
|
|
3972
|
-
return this.http.createUrl(`/projects/${name}/tile/{z}/{x}/{y}.${format}`);
|
|
3973
|
-
}
|
|
3974
|
-
/**
|
|
3975
|
-
* No description
|
|
3976
|
-
*
|
|
3977
|
-
* @tags Projects
|
|
3978
|
-
* @name GetTilesLayerImageWithFormatAndDpi
|
|
3979
|
-
* @operationId ProjectsController_GetTilesLayerImageWithFormatAndDpi
|
|
3980
|
-
* @summary Render tile.
|
|
3981
|
-
* @request GET:/projects/{name}/tile/{z}/{x}/{y}@{dpi}x.{format}
|
|
3982
|
-
* @secure
|
|
3983
|
-
* @response `200` OK
|
|
3984
|
-
*/
|
|
3985
|
-
getTilesLayerImageWithFormatAndDpi(name, x, y, z, dpi, format) {
|
|
3986
|
-
return this.http.createUrl(`/projects/${name}/tile/{z}/{x}/{y}@${dpi}x.${format}`);
|
|
3987
|
-
}
|
|
3988
|
-
/**
|
|
3989
|
-
* No description
|
|
3990
|
-
*
|
|
3991
|
-
* @tags Projects
|
|
3992
|
-
* @name IsExists
|
|
3993
|
-
* @operationId ProjectsController_IsExistsAsync
|
|
3994
|
-
* @summary Check is resource exists.
|
|
3995
|
-
* @request GET:/projects/{name}/exists
|
|
3996
|
-
* @secure
|
|
3997
|
-
* @response `200` OK
|
|
3998
|
-
*/
|
|
3999
|
-
isExists(name) {
|
|
4000
|
-
return this.http.get(`/projects/${name}/exists`).then(() => { });
|
|
4001
|
-
}
|
|
4002
|
-
/**
|
|
4003
|
-
* No description
|
|
4004
|
-
*
|
|
4005
|
-
* @tags Projects
|
|
4006
|
-
* @name GetResourceDependencies
|
|
4007
|
-
* @operationId ProjectsController_GetResourceDependencies
|
|
4008
|
-
* @summary Get resource dependencies.
|
|
4009
|
-
* @request GET:/projects/{name}/dependencies
|
|
4010
|
-
* @secure
|
|
4011
|
-
* @response `200` OK
|
|
4012
|
-
*/
|
|
4013
|
-
getResourceDependencies(name) {
|
|
4014
|
-
return this.http.get(`/projects/${name}/dependencies`).json();
|
|
4015
|
-
}
|
|
4016
|
-
/**
|
|
4017
|
-
* No description
|
|
4018
|
-
*
|
|
4019
|
-
* @tags Projects
|
|
4020
|
-
* @name GetResourceReferences
|
|
4021
|
-
* @operationId ProjectsController_GetResourceReferences
|
|
4022
|
-
* @summary Returns the resource dependency information.
|
|
4023
|
-
* @request GET:/projects/{name}/references
|
|
4024
|
-
* @secure
|
|
4025
|
-
* @response `200` OK
|
|
4026
|
-
*/
|
|
4027
|
-
getResourceReferences(name) {
|
|
4028
|
-
return this.http.get(`/projects/${name}/references`).json();
|
|
4029
|
-
}
|
|
4030
|
-
}
|
|
3110
|
+
* Attribute configuration type.
|
|
4031
3111
|
|
|
4032
|
-
|
|
4033
|
-
getProjectInfos(projects) {
|
|
4034
|
-
return promiseAllIgnoreErrors(projects.map(project => this.getProjectInfo(project)));
|
|
4035
|
-
}
|
|
4036
|
-
getProjectsDeps(proejcts) {
|
|
4037
|
-
return promiseAllIgnoreErrors(proejcts.map(project => this.getResourceDependencies(project)));
|
|
4038
|
-
}
|
|
4039
|
-
findOne(name) {
|
|
4040
|
-
return this.getProjectInfo(name);
|
|
4041
|
-
}
|
|
4042
|
-
create(resource) {
|
|
4043
|
-
return this.createProject(resource);
|
|
4044
|
-
}
|
|
4045
|
-
update(resource) {
|
|
4046
|
-
return this.updateProject(resource.name, resource);
|
|
4047
|
-
}
|
|
4048
|
-
async remove(name) {
|
|
4049
|
-
await this.deleteResources({ names: [name] });
|
|
4050
|
-
return name;
|
|
4051
|
-
}
|
|
4052
|
-
}
|
|
4053
|
-
function isProjectContentItems(v) {
|
|
4054
|
-
return v !== null && v !== undefined;
|
|
4055
|
-
}
|
|
3112
|
+
Default
|
|
4056
3113
|
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
3114
|
+
String
|
|
3115
|
+
|
|
3116
|
+
Geometry
|
|
3117
|
+
|
|
3118
|
+
Calculated
|
|
3119
|
+
*/
|
|
3120
|
+
exports.AttributeConfigurationType = void 0;
|
|
3121
|
+
(function (AttributeConfigurationType) {
|
|
3122
|
+
AttributeConfigurationType["Default"] = "Default";
|
|
3123
|
+
AttributeConfigurationType["String"] = "String";
|
|
3124
|
+
AttributeConfigurationType["Geometry"] = "Geometry";
|
|
3125
|
+
AttributeConfigurationType["Calculated"] = "Calculated";
|
|
3126
|
+
})(exports.AttributeConfigurationType || (exports.AttributeConfigurationType = {}));
|
|
4068
3127
|
/**
|
|
4069
|
-
|
|
4070
|
-
* @version 1.5.1.0
|
|
4071
|
-
* @baseUrl /sp
|
|
4072
|
-
*/
|
|
4073
|
-
class RemoteTaskManagerService extends Service {
|
|
4074
|
-
/**
|
|
4075
|
-
* No description
|
|
4076
|
-
*
|
|
4077
|
-
* @tags RemoteTaskManager
|
|
4078
|
-
* @name Get
|
|
4079
|
-
* @operationId RemoteTaskManagerController_Get
|
|
4080
|
-
* @summary Shows SubTask in Task.
|
|
4081
|
-
* @request GET:/scheduler/task/{id}/subtasks
|
|
4082
|
-
* @secure
|
|
4083
|
-
* @response `200` OK
|
|
4084
|
-
*/
|
|
4085
|
-
get(id) {
|
|
4086
|
-
return this.http.get(`/scheduler/task/${id}/subtasks`).json();
|
|
4087
|
-
}
|
|
4088
|
-
/**
|
|
4089
|
-
* No description
|
|
4090
|
-
*
|
|
4091
|
-
* @tags RemoteTaskManager
|
|
4092
|
-
* @name Stop
|
|
4093
|
-
* @operationId RemoteTaskManagerController_Stop
|
|
4094
|
-
* @summary Stop the task.
|
|
4095
|
-
* @request POST:/scheduler/task/{id}/stop
|
|
4096
|
-
* @secure
|
|
4097
|
-
* @response `200` OK
|
|
4098
|
-
*/
|
|
4099
|
-
stop(id) {
|
|
4100
|
-
return this.http.post(`/scheduler/task/${id}/stop`, null).text();
|
|
4101
|
-
}
|
|
4102
|
-
/**
|
|
4103
|
-
* No description
|
|
4104
|
-
*
|
|
4105
|
-
* @tags RemoteTaskManager
|
|
4106
|
-
* @name CreateTaskPrototype
|
|
4107
|
-
* @operationId RemoteTaskManagerController_CreateTaskPrototype
|
|
4108
|
-
* @summary Creates TaskPrototype.
|
|
4109
|
-
* @request POST:/scheduler
|
|
4110
|
-
* @secure
|
|
4111
|
-
* @response `200` OK
|
|
4112
|
-
*/
|
|
4113
|
-
createTaskPrototype(data) {
|
|
4114
|
-
return this.http.post(`/scheduler`, data).text();
|
|
4115
|
-
}
|
|
4116
|
-
/**
|
|
4117
|
-
* No description
|
|
4118
|
-
*
|
|
4119
|
-
* @tags RemoteTaskManager
|
|
4120
|
-
* @name GetTaskPrototypes
|
|
4121
|
-
* @operationId RemoteTaskManagerController_GetTaskPrototypes
|
|
4122
|
-
* @summary Show TaskPrototypes for user.
|
|
4123
|
-
* @request GET:/scheduler
|
|
4124
|
-
* @secure
|
|
4125
|
-
* @response `200` OK
|
|
4126
|
-
*/
|
|
4127
|
-
getTaskPrototypes(query) {
|
|
4128
|
-
return this.http.get(`/scheduler`, query).json();
|
|
4129
|
-
}
|
|
4130
|
-
/**
|
|
4131
|
-
* No description
|
|
4132
|
-
*
|
|
4133
|
-
* @tags RemoteTaskManager
|
|
4134
|
-
* @name UpdateTaskPrototype
|
|
4135
|
-
* @operationId RemoteTaskManagerController_UpdateTaskPrototype
|
|
4136
|
-
* @summary Updates task prototype.
|
|
4137
|
-
* @request PUT:/scheduler/{id}
|
|
4138
|
-
* @secure
|
|
4139
|
-
* @response `200` OK
|
|
4140
|
-
*/
|
|
4141
|
-
updateTaskPrototype(id, data) {
|
|
4142
|
-
return this.http.put(`/scheduler/${id}`, data).text();
|
|
4143
|
-
}
|
|
4144
|
-
/**
|
|
4145
|
-
* No description
|
|
4146
|
-
*
|
|
4147
|
-
* @tags RemoteTaskManager
|
|
4148
|
-
* @name Delete
|
|
4149
|
-
* @operationId RemoteTaskManagerController_Delete
|
|
4150
|
-
* @summary Delete task prototype.
|
|
4151
|
-
* @request DELETE:/scheduler/{id}
|
|
4152
|
-
* @secure
|
|
4153
|
-
* @response `200` OK
|
|
4154
|
-
*/
|
|
4155
|
-
delete(id) {
|
|
4156
|
-
return this.http.delete(`/scheduler/${id}`, null).text();
|
|
4157
|
-
}
|
|
4158
|
-
/**
|
|
4159
|
-
* No description
|
|
4160
|
-
*
|
|
4161
|
-
* @tags RemoteTaskManager
|
|
4162
|
-
* @name SetEnable
|
|
4163
|
-
* @operationId RemoteTaskManagerController_SetEnable
|
|
4164
|
-
* @summary Enables task prototype.
|
|
4165
|
-
* @request POST:/scheduler/{id}/enable/{enable}
|
|
4166
|
-
* @secure
|
|
4167
|
-
* @response `200` OK
|
|
4168
|
-
*/
|
|
4169
|
-
setEnable(id, enable) {
|
|
4170
|
-
return this.http.post(`/scheduler/${id}/enable/${enable}`, null).text();
|
|
4171
|
-
}
|
|
4172
|
-
/**
|
|
4173
|
-
* No description
|
|
4174
|
-
*
|
|
4175
|
-
* @tags RemoteTaskManager
|
|
4176
|
-
* @name GetTasksForPrototype
|
|
4177
|
-
* @operationId RemoteTaskManagerController_GetTasksForPrototype
|
|
4178
|
-
* @summary Shows Tasks that created for TaskPrototype.
|
|
4179
|
-
* @request GET:/scheduler/{id}/tasks
|
|
4180
|
-
* @secure
|
|
4181
|
-
* @response `200` OK
|
|
4182
|
-
*/
|
|
4183
|
-
getTasksForPrototype({ id, ...query }) {
|
|
4184
|
-
return this.http.get(`/scheduler/${id}/tasks`, query).json();
|
|
4185
|
-
}
|
|
4186
|
-
/**
|
|
4187
|
-
* No description
|
|
4188
|
-
*
|
|
4189
|
-
* @tags RemoteTaskManager
|
|
4190
|
-
* @name StartTask
|
|
4191
|
-
* @operationId RemoteTaskManagerController_StartTask
|
|
4192
|
-
* @summary Starts new Task for TaskPrototype with task id definition.
|
|
4193
|
-
* @request POST:/scheduler/{id}/start/{taskId}
|
|
4194
|
-
* @secure
|
|
4195
|
-
* @response `200` OK
|
|
4196
|
-
*/
|
|
4197
|
-
startTask(id, taskId) {
|
|
4198
|
-
return this.http.post(`/scheduler/${id}/start/${taskId}`, null).json();
|
|
4199
|
-
}
|
|
4200
|
-
/**
|
|
4201
|
-
* No description
|
|
4202
|
-
*
|
|
4203
|
-
* @tags RemoteTaskManager
|
|
4204
|
-
* @name StartTask1
|
|
4205
|
-
* @operationId RemoteTaskManagerController_StartTask_1
|
|
4206
|
-
* @summary Starts new Task for TaskPrototype .
|
|
4207
|
-
* @request POST:/scheduler/{id}/start
|
|
4208
|
-
* @secure
|
|
4209
|
-
* @response `200` OK
|
|
4210
|
-
*/
|
|
4211
|
-
startTask1(id) {
|
|
4212
|
-
return this.http.post(`/scheduler/${id}/start`, null).json();
|
|
4213
|
-
}
|
|
4214
|
-
/**
|
|
4215
|
-
* No description
|
|
4216
|
-
*
|
|
4217
|
-
* @tags RemoteTaskManager
|
|
4218
|
-
* @name GetTaskResource
|
|
4219
|
-
* @operationId RemoteTaskManagerController_GetTaskResource
|
|
4220
|
-
* @summary Shows SubTask in Task.
|
|
4221
|
-
* @request GET:/scheduler/taskresource/{id}
|
|
4222
|
-
* @secure
|
|
4223
|
-
* @response `200` OK
|
|
4224
|
-
*/
|
|
4225
|
-
getTaskResource({ id, ...query }) {
|
|
4226
|
-
return this.http.get(`/scheduler/taskresource/${id}`, query).json();
|
|
4227
|
-
}
|
|
4228
|
-
/**
|
|
4229
|
-
* No description
|
|
4230
|
-
*
|
|
4231
|
-
* @tags RemoteTaskManager
|
|
4232
|
-
* @name UpdatePythonTaskResource
|
|
4233
|
-
* @operationId RemoteTaskManagerController_UpdatePythonTaskResource
|
|
4234
|
-
* @summary Update task resource.
|
|
4235
|
-
* @request PATCH:/scheduler/taskresource/{id}
|
|
4236
|
-
* @secure
|
|
4237
|
-
* @response `200` OK
|
|
4238
|
-
*/
|
|
4239
|
-
updatePythonTaskResource(id, data) {
|
|
4240
|
-
return this.http.patch(`/scheduler/taskresource/${id}`, data).then(() => { });
|
|
4241
|
-
}
|
|
4242
|
-
/**
|
|
4243
|
-
* No description
|
|
4244
|
-
*
|
|
4245
|
-
* @tags RemoteTaskManager
|
|
4246
|
-
* @name CreateTaskResource
|
|
4247
|
-
* @operationId RemoteTaskManagerController_CreateTaskResource
|
|
4248
|
-
* @summary Create task resource.
|
|
4249
|
-
* @request POST:/scheduler/taskresource
|
|
4250
|
-
* @secure
|
|
4251
|
-
* @response `200` OK
|
|
4252
|
-
*/
|
|
4253
|
-
createTaskResource(data) {
|
|
4254
|
-
return this.http.post(`/scheduler/taskresource`, data).text();
|
|
4255
|
-
}
|
|
4256
|
-
/**
|
|
4257
|
-
* No description
|
|
4258
|
-
*
|
|
4259
|
-
* @tags RemoteTaskManager
|
|
4260
|
-
* @name Get1
|
|
4261
|
-
* @operationId RemoteTaskManagerController_Get_1
|
|
4262
|
-
* @summary Shows active workers.
|
|
4263
|
-
* @request GET:/scheduler/worker
|
|
4264
|
-
* @secure
|
|
4265
|
-
* @response `200` OK
|
|
4266
|
-
*/
|
|
4267
|
-
get1() {
|
|
4268
|
-
return this.http.get(`/scheduler/worker`).json();
|
|
4269
|
-
}
|
|
4270
|
-
/**
|
|
4271
|
-
* No description
|
|
4272
|
-
*
|
|
4273
|
-
* @tags RemoteTaskManager
|
|
4274
|
-
* @name Post
|
|
4275
|
-
* @operationId RemoteTaskManagerController_Post
|
|
4276
|
-
* @summary Run method by HttpPost.
|
|
4277
|
-
* @request POST:/scheduler/worker
|
|
4278
|
-
* @secure
|
|
4279
|
-
* @response `200` OK
|
|
4280
|
-
*/
|
|
4281
|
-
post(data) {
|
|
4282
|
-
return this.http.post(`/scheduler/worker`, data).json();
|
|
4283
|
-
}
|
|
4284
|
-
/**
|
|
4285
|
-
* No description
|
|
4286
|
-
*
|
|
4287
|
-
* @tags RemoteTaskManager
|
|
4288
|
-
* @name GetWorker
|
|
4289
|
-
* @operationId RemoteTaskManagerController_GetWorker
|
|
4290
|
-
* @summary Get worker info by type.
|
|
4291
|
-
* @request GET:/scheduler/worker/{type}
|
|
4292
|
-
* @secure
|
|
4293
|
-
* @response `200` OK
|
|
4294
|
-
*/
|
|
4295
|
-
getWorker(type) {
|
|
4296
|
-
return this.http.get(`/scheduler/worker/${type}`).json();
|
|
4297
|
-
}
|
|
4298
|
-
}
|
|
3128
|
+
*
|
|
4299
3129
|
|
|
4300
|
-
|
|
4301
|
-
}
|
|
3130
|
+
Unknown
|
|
4302
3131
|
|
|
4303
|
-
|
|
4304
|
-
(function (DependencyType) {
|
|
4305
|
-
DependencyType["Layer"] = "Layer";
|
|
4306
|
-
DependencyType["Table"] = "Table";
|
|
4307
|
-
DependencyType["Project"] = "Project";
|
|
4308
|
-
})(exports.DependencyType || (exports.DependencyType = {}));
|
|
4309
|
-
class Resources {
|
|
4310
|
-
projects;
|
|
4311
|
-
layers;
|
|
4312
|
-
tables;
|
|
4313
|
-
constructor(projects, layers, tables) {
|
|
4314
|
-
this.projects = projects;
|
|
4315
|
-
this.layers = layers;
|
|
4316
|
-
this.tables = tables;
|
|
4317
|
-
}
|
|
4318
|
-
async getProjectInfosWithDeps(projects) {
|
|
4319
|
-
const projectInfos = await this.projects.getProjectInfos(projects);
|
|
4320
|
-
const projectDeps = await this.projects.getProjectsDeps(projects);
|
|
4321
|
-
const { layers, tables } = await this.getDependencies(projectDeps, true, true);
|
|
4322
|
-
return {
|
|
4323
|
-
projects: projectInfos,
|
|
4324
|
-
deps: {
|
|
4325
|
-
layers,
|
|
4326
|
-
tables,
|
|
4327
|
-
},
|
|
4328
|
-
};
|
|
4329
|
-
}
|
|
4330
|
-
async getLayerInfosWithDeps(layers) {
|
|
4331
|
-
const layerInfos = await this.layers.getLayerInfos(layers);
|
|
4332
|
-
const layersDeps = await this.layers.getLayersDeps(layers);
|
|
4333
|
-
const { tables } = await this.getDependencies(layersDeps, false, true);
|
|
4334
|
-
return {
|
|
4335
|
-
layers: layerInfos,
|
|
4336
|
-
deps: {
|
|
4337
|
-
tables,
|
|
4338
|
-
},
|
|
4339
|
-
};
|
|
4340
|
-
}
|
|
4341
|
-
async getDependencies(resourceDeps, pickLayers, pickTables) {
|
|
4342
|
-
const { tables, layers } = resourceDeps.reduce((acc, layerDep) => {
|
|
4343
|
-
const deps = layerDep.dependencies || [];
|
|
4344
|
-
if (pickLayers) {
|
|
4345
|
-
const layerNames = this.getDependentNames(deps, exports.DependencyType.Layer);
|
|
4346
|
-
acc.layers.push(...layerNames);
|
|
4347
|
-
}
|
|
4348
|
-
if (pickTables) {
|
|
4349
|
-
const tableNames = this.getDependentNames(deps, exports.DependencyType.Table);
|
|
4350
|
-
acc.tables.push(...tableNames);
|
|
4351
|
-
}
|
|
4352
|
-
return acc;
|
|
4353
|
-
}, {
|
|
4354
|
-
tables: [],
|
|
4355
|
-
layers: [],
|
|
4356
|
-
});
|
|
4357
|
-
return {
|
|
4358
|
-
tables: await this.tables.getTableInfos(tables.filter(unique)),
|
|
4359
|
-
layers: await this.layers.getLayerInfos(layers.filter(unique)),
|
|
4360
|
-
};
|
|
4361
|
-
}
|
|
4362
|
-
getDependentNames(deps, depType) {
|
|
4363
|
-
return deps
|
|
4364
|
-
.filter(({ type }) => type === depType)
|
|
4365
|
-
.map(({ name }) => name)
|
|
4366
|
-
.filter(isString);
|
|
4367
|
-
}
|
|
4368
|
-
}
|
|
3132
|
+
Icon
|
|
4369
3133
|
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
3134
|
+
PNG
|
|
3135
|
+
|
|
3136
|
+
SVG
|
|
3137
|
+
*/
|
|
3138
|
+
exports.AttributeIconType = void 0;
|
|
3139
|
+
(function (AttributeIconType) {
|
|
3140
|
+
AttributeIconType["Unknown"] = "Unknown";
|
|
3141
|
+
AttributeIconType["Icon"] = "Icon";
|
|
3142
|
+
AttributeIconType["PNG"] = "PNG";
|
|
3143
|
+
AttributeIconType["SVG"] = "SVG";
|
|
3144
|
+
})(exports.AttributeIconType || (exports.AttributeIconType = {}));
|
|
4381
3145
|
/**
|
|
4382
|
-
|
|
4383
|
-
* @version 1.5.1.0
|
|
4384
|
-
* @baseUrl /sp
|
|
4385
|
-
*/
|
|
4386
|
-
class SecurityService extends Service {
|
|
4387
|
-
/**
|
|
4388
|
-
* @description This method requires superuser permission.
|
|
4389
|
-
*
|
|
4390
|
-
* @tags SecurityService
|
|
4391
|
-
* @name SetPolicies
|
|
4392
|
-
* @operationId SecurityServiceController_SetPolicies
|
|
4393
|
-
* @summary Adds the given policies to the server policy list. If a policy with the same type and user role already exists, it replaces the existing policy with the new one.
|
|
4394
|
-
* @request POST:/bulk/security/policies
|
|
4395
|
-
* @secure
|
|
4396
|
-
* @response `200` OK
|
|
4397
|
-
*/
|
|
4398
|
-
setPolicies(data) {
|
|
4399
|
-
return this.http.post(`/bulk/security/policies`, data).then(() => { });
|
|
4400
|
-
}
|
|
4401
|
-
/**
|
|
4402
|
-
* No description
|
|
4403
|
-
*
|
|
4404
|
-
* @tags SecurityService
|
|
4405
|
-
* @name FindUserByNameByRoles
|
|
4406
|
-
* @operationId SecurityServiceController_FindUserByNameByRoles
|
|
4407
|
-
* @summary Get users list with given roles list.
|
|
4408
|
-
* @request GET:/security/findUsersWithRoles
|
|
4409
|
-
* @secure
|
|
4410
|
-
* @response `200` OK
|
|
4411
|
-
*/
|
|
4412
|
-
findUserByNameByRoles(query) {
|
|
4413
|
-
return this.http.get(`/security/findUsersWithRoles`, query).json();
|
|
4414
|
-
}
|
|
4415
|
-
/**
|
|
4416
|
-
* No description
|
|
4417
|
-
*
|
|
4418
|
-
* @tags SecurityService
|
|
4419
|
-
* @name GetUsersAndRoles
|
|
4420
|
-
* @operationId SecurityServiceController_GetUsersAndRoles
|
|
4421
|
-
* @summary Get users and roles list by filter.
|
|
4422
|
-
* @request GET:/security/usersandroles
|
|
4423
|
-
* @secure
|
|
4424
|
-
* @response `200` OK
|
|
4425
|
-
*/
|
|
4426
|
-
getUsersAndRoles(query) {
|
|
4427
|
-
return this.http.get(`/security/usersandroles`, query).json();
|
|
4428
|
-
}
|
|
4429
|
-
/**
|
|
4430
|
-
* No description
|
|
4431
|
-
*
|
|
4432
|
-
* @tags SecurityService
|
|
4433
|
-
* @name FindUserByName
|
|
4434
|
-
* @operationId SecurityServiceController_FindUserByName
|
|
4435
|
-
* @summary Returns the list of users found by username.
|
|
4436
|
-
* @request GET:/security/users
|
|
4437
|
-
* @secure
|
|
4438
|
-
* @response `200` OK
|
|
4439
|
-
*/
|
|
4440
|
-
findUserByName(query) {
|
|
4441
|
-
return this.http.get(`/security/users`, query).json();
|
|
4442
|
-
}
|
|
4443
|
-
/**
|
|
4444
|
-
* @description This method requires superuser permission.
|
|
4445
|
-
*
|
|
4446
|
-
* @tags SecurityService
|
|
4447
|
-
* @name GetPolicyList
|
|
4448
|
-
* @operationId SecurityServiceController_GetPolicyList
|
|
4449
|
-
* @summary Returns the list of server authorization policies of the given type.
|
|
4450
|
-
* @request GET:/security/policies
|
|
4451
|
-
* @secure
|
|
4452
|
-
* @response `200` OK
|
|
4453
|
-
*/
|
|
4454
|
-
getPolicyList(query) {
|
|
4455
|
-
return this.http.get(`/security/policies`, query).json();
|
|
4456
|
-
}
|
|
4457
|
-
/**
|
|
4458
|
-
* @description This method requires superuser permission.
|
|
4459
|
-
*
|
|
4460
|
-
* @tags SecurityService
|
|
4461
|
-
* @name RemovePolicy
|
|
4462
|
-
* @operationId SecurityServiceController_RemovePolicy
|
|
4463
|
-
* @summary Removes the policy of the given type with the given role. If no such policy is found, nothing is done, and OK response is returned.
|
|
4464
|
-
* @request DELETE:/security/policies
|
|
4465
|
-
* @secure
|
|
4466
|
-
* @response `200` OK
|
|
4467
|
-
*/
|
|
4468
|
-
removePolicy(query) {
|
|
4469
|
-
return this.http.delete(`/security/policies`, null, query).then(() => { });
|
|
4470
|
-
}
|
|
4471
|
-
/**
|
|
4472
|
-
* @description This method requires superuser permission.
|
|
4473
|
-
*
|
|
4474
|
-
* @tags SecurityService
|
|
4475
|
-
* @name SetPolicy
|
|
4476
|
-
* @operationId SecurityServiceController_SetPolicy
|
|
4477
|
-
* @summary Adds the given policy to the server policy list. If a policy with the same type and user role already exists, it replaces the existing policy with the new one.
|
|
4478
|
-
* @request POST:/security/policies
|
|
4479
|
-
* @secure
|
|
4480
|
-
* @response `200` OK
|
|
4481
|
-
*/
|
|
4482
|
-
setPolicy(data) {
|
|
4483
|
-
return this.http.post(`/security/policies`, data).then(() => { });
|
|
4484
|
-
}
|
|
4485
|
-
/**
|
|
4486
|
-
* No description
|
|
4487
|
-
*
|
|
4488
|
-
* @tags SecurityService
|
|
4489
|
-
* @name OldCheckLimits
|
|
4490
|
-
* @operationId SecurityServiceController_OldCheckLimits
|
|
4491
|
-
* @summary Get limits of workspace.
|
|
4492
|
-
* @request GET:/resources/checkLimits
|
|
4493
|
-
* @secure
|
|
4494
|
-
* @response `200` OK
|
|
4495
|
-
*/
|
|
4496
|
-
oldCheckLimits() {
|
|
4497
|
-
return this.http.get(`/resources/checkLimits`).json();
|
|
4498
|
-
}
|
|
4499
|
-
/**
|
|
4500
|
-
* No description
|
|
4501
|
-
*
|
|
4502
|
-
* @tags SecurityService
|
|
4503
|
-
* @name OldCheckLimits1
|
|
4504
|
-
* @operationId SecurityServiceController_OldCheckLimits_1
|
|
4505
|
-
* @summary Get limits of workspace.
|
|
4506
|
-
* @request GET:/resources/checkLimits/{userName}
|
|
4507
|
-
* @secure
|
|
4508
|
-
* @response `200` OK
|
|
4509
|
-
*/
|
|
4510
|
-
oldCheckLimits1(userName) {
|
|
4511
|
-
return this.http.get(`/resources/checkLimits/${userName}`).json();
|
|
4512
|
-
}
|
|
4513
|
-
/**
|
|
4514
|
-
* No description
|
|
4515
|
-
*
|
|
4516
|
-
* @tags SecurityService
|
|
4517
|
-
* @name CheckLimitsForUser
|
|
4518
|
-
* @operationId SecurityServiceController_CheckLimitsForUser
|
|
4519
|
-
* @summary Get limits of workspace.
|
|
4520
|
-
* @request GET:/security/limits/user
|
|
4521
|
-
* @secure
|
|
4522
|
-
* @response `200` OK
|
|
4523
|
-
*/
|
|
4524
|
-
checkLimitsForUser() {
|
|
4525
|
-
return this.http.get(`/security/limits/user`).json();
|
|
4526
|
-
}
|
|
4527
|
-
/**
|
|
4528
|
-
* No description
|
|
4529
|
-
*
|
|
4530
|
-
* @tags SecurityService
|
|
4531
|
-
* @name CheckLimitsForUser1
|
|
4532
|
-
* @operationId SecurityServiceController_CheckLimitsForUser_1
|
|
4533
|
-
* @summary Get limits of workspace.
|
|
4534
|
-
* @request GET:/security/limits/user/{userName}
|
|
4535
|
-
* @secure
|
|
4536
|
-
* @response `200` OK
|
|
4537
|
-
*/
|
|
4538
|
-
checkLimitsForUser1(userName) {
|
|
4539
|
-
return this.http.get(`/security/limits/user/${userName}`).json();
|
|
4540
|
-
}
|
|
4541
|
-
/**
|
|
4542
|
-
* No description
|
|
4543
|
-
*
|
|
4544
|
-
* @tags SecurityService
|
|
4545
|
-
* @name CheckLimitsForRole
|
|
4546
|
-
* @operationId SecurityServiceController_CheckLimitsForRole
|
|
4547
|
-
* @summary Get limits of workspace.
|
|
4548
|
-
* @request GET:/security/limits/role/{roleName}
|
|
4549
|
-
* @secure
|
|
4550
|
-
* @response `200` OK
|
|
4551
|
-
*/
|
|
4552
|
-
checkLimitsForRole(roleName) {
|
|
4553
|
-
return this.http.get(`/security/limits/role/${roleName}`).json();
|
|
4554
|
-
}
|
|
4555
|
-
/**
|
|
4556
|
-
* No description
|
|
4557
|
-
*
|
|
4558
|
-
* @tags SecurityService
|
|
4559
|
-
* @name GetDefaultLimits
|
|
4560
|
-
* @operationId SecurityServiceController_GetDefaultLimits
|
|
4561
|
-
* @summary Get default limits of workspace.
|
|
4562
|
-
* @request GET:/security/limits/default
|
|
4563
|
-
* @secure
|
|
4564
|
-
* @response `200` OK
|
|
4565
|
-
*/
|
|
4566
|
-
getDefaultLimits() {
|
|
4567
|
-
return this.http.get(`/security/limits/default`).json();
|
|
4568
|
-
}
|
|
4569
|
-
}
|
|
3146
|
+
*
|
|
4570
3147
|
|
|
4571
|
-
|
|
4572
|
-
ownerName = "";
|
|
4573
|
-
ownerRoles = [];
|
|
4574
|
-
constructor(http, { username, roles }) {
|
|
4575
|
-
super(http);
|
|
4576
|
-
this.ownerName = username;
|
|
4577
|
-
this.ownerRoles = roles;
|
|
4578
|
-
}
|
|
4579
|
-
reset() {
|
|
4580
|
-
this.ownerName = "";
|
|
4581
|
-
this.ownerRoles = [];
|
|
4582
|
-
}
|
|
4583
|
-
}
|
|
3148
|
+
Unknown
|
|
4584
3149
|
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
3150
|
+
String
|
|
3151
|
+
|
|
3152
|
+
Int32
|
|
3153
|
+
|
|
3154
|
+
Int64
|
|
3155
|
+
|
|
3156
|
+
Double
|
|
3157
|
+
|
|
3158
|
+
DateTime
|
|
3159
|
+
|
|
3160
|
+
Boolean
|
|
3161
|
+
|
|
3162
|
+
Point
|
|
3163
|
+
|
|
3164
|
+
LineString
|
|
3165
|
+
|
|
3166
|
+
Polygon
|
|
3167
|
+
|
|
3168
|
+
MultiPoint
|
|
3169
|
+
|
|
3170
|
+
MultiLineString
|
|
3171
|
+
|
|
3172
|
+
H3Index
|
|
3173
|
+
|
|
3174
|
+
Json
|
|
3175
|
+
|
|
3176
|
+
MultiPolygon
|
|
3177
|
+
|
|
3178
|
+
GeometryCollection
|
|
3179
|
+
*/
|
|
3180
|
+
exports.AttributeType = void 0;
|
|
3181
|
+
(function (AttributeType) {
|
|
3182
|
+
AttributeType["Unknown"] = "Unknown";
|
|
3183
|
+
AttributeType["String"] = "String";
|
|
3184
|
+
AttributeType["Int32"] = "Int32";
|
|
3185
|
+
AttributeType["Int64"] = "Int64";
|
|
3186
|
+
AttributeType["Double"] = "Double";
|
|
3187
|
+
AttributeType["DateTime"] = "DateTime";
|
|
3188
|
+
AttributeType["Boolean"] = "Boolean";
|
|
3189
|
+
AttributeType["Point"] = "Point";
|
|
3190
|
+
AttributeType["LineString"] = "LineString";
|
|
3191
|
+
AttributeType["Polygon"] = "Polygon";
|
|
3192
|
+
AttributeType["MultiPoint"] = "MultiPoint";
|
|
3193
|
+
AttributeType["MultiLineString"] = "MultiLineString";
|
|
3194
|
+
AttributeType["H3Index"] = "H3Index";
|
|
3195
|
+
AttributeType["Json"] = "Json";
|
|
3196
|
+
AttributeType["MultiPolygon"] = "MultiPolygon";
|
|
3197
|
+
AttributeType["GeometryCollection"] = "GeometryCollection";
|
|
3198
|
+
})(exports.AttributeType || (exports.AttributeType = {}));
|
|
4596
3199
|
/**
|
|
4597
|
-
|
|
4598
|
-
* @version 1.5.1.0
|
|
4599
|
-
* @baseUrl /sp
|
|
4600
|
-
*/
|
|
4601
|
-
class StatisticService extends Service {
|
|
4602
|
-
/**
|
|
4603
|
-
* No description
|
|
4604
|
-
*
|
|
4605
|
-
* @tags Statistic
|
|
4606
|
-
* @name StatisticsDb
|
|
4607
|
-
* @operationId StatisticController_StatisticsDb
|
|
4608
|
-
* @summary Calculates statistics for layer attribute.
|
|
4609
|
-
* @request POST:/statistics
|
|
4610
|
-
* @secure
|
|
4611
|
-
* @response `200` OK
|
|
4612
|
-
*/
|
|
4613
|
-
statisticsDb(data) {
|
|
4614
|
-
return this.http.post(`/statistics`, data).json();
|
|
4615
|
-
}
|
|
4616
|
-
/**
|
|
4617
|
-
* No description
|
|
4618
|
-
*
|
|
4619
|
-
* @tags Statistic
|
|
4620
|
-
* @name Classify
|
|
4621
|
-
* @operationId StatisticController_Classify
|
|
4622
|
-
* @summary Returns the classified attribute values that correspond to the given number of classes and given condition.
|
|
4623
|
-
* @request POST:/statistics/classify
|
|
4624
|
-
* @secure
|
|
4625
|
-
* @response `200` OK
|
|
4626
|
-
*/
|
|
4627
|
-
classify(data) {
|
|
4628
|
-
return this.http.post(`/statistics/classify`, data).json();
|
|
4629
|
-
}
|
|
4630
|
-
/**
|
|
4631
|
-
* No description
|
|
4632
|
-
*
|
|
4633
|
-
* @tags Statistic
|
|
4634
|
-
* @name SumOfProduct
|
|
4635
|
-
* @operationId StatisticController_SumOfProduct
|
|
4636
|
-
* @summary Sum of product.
|
|
4637
|
-
* @request POST:/statistics/sumOfProduct
|
|
4638
|
-
* @secure
|
|
4639
|
-
* @response `200` OK
|
|
4640
|
-
*/
|
|
4641
|
-
sumOfProduct(data) {
|
|
4642
|
-
return this.http.post(`/statistics/sumOfProduct`, data).json();
|
|
4643
|
-
}
|
|
4644
|
-
}
|
|
3200
|
+
*
|
|
4645
3201
|
|
|
4646
|
-
|
|
4647
|
-
}
|
|
3202
|
+
authorization_code
|
|
4648
3203
|
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
4657
|
-
* ---------------------------------------------------------------
|
|
4658
|
-
*/
|
|
4659
|
-
// @ts-nocheck
|
|
3204
|
+
refresh_token
|
|
3205
|
+
*/
|
|
3206
|
+
exports.AuthorizationGrant = void 0;
|
|
3207
|
+
(function (AuthorizationGrant) {
|
|
3208
|
+
AuthorizationGrant["AuthorizationCode"] = "authorization_code";
|
|
3209
|
+
AuthorizationGrant["RefreshToken"] = "refresh_token";
|
|
3210
|
+
})(exports.AuthorizationGrant || (exports.AuthorizationGrant = {}));
|
|
4660
3211
|
/**
|
|
4661
|
-
|
|
4662
|
-
* @version 1.5.1.0
|
|
4663
|
-
* @baseUrl /sp
|
|
4664
|
-
*/
|
|
4665
|
-
class TablesService extends Service {
|
|
4666
|
-
/**
|
|
4667
|
-
* No description
|
|
4668
|
-
*
|
|
4669
|
-
* @tags Tables
|
|
4670
|
-
* @name CreateTable
|
|
4671
|
-
* @operationId TablesController_CreateTable
|
|
4672
|
-
* @summary Creates a new table.
|
|
4673
|
-
* @request POST:/tables
|
|
4674
|
-
* @secure
|
|
4675
|
-
* @response `200` OK
|
|
4676
|
-
*/
|
|
4677
|
-
createTable(data) {
|
|
4678
|
-
return this.http.post(`/tables`, data).json();
|
|
4679
|
-
}
|
|
4680
|
-
/**
|
|
4681
|
-
* No description
|
|
4682
|
-
*
|
|
4683
|
-
* @tags Tables
|
|
4684
|
-
* @name DeleteResources
|
|
4685
|
-
* @operationId TablesController_DeleteResources
|
|
4686
|
-
* @summary Bulk delete resources.
|
|
4687
|
-
* @request DELETE:/tables
|
|
4688
|
-
* @secure
|
|
4689
|
-
* @response `200` OK
|
|
4690
|
-
*/
|
|
4691
|
-
deleteResources(query) {
|
|
4692
|
-
return this.http.delete(`/tables`, null, query).json();
|
|
4693
|
-
}
|
|
4694
|
-
/**
|
|
4695
|
-
* No description
|
|
4696
|
-
*
|
|
4697
|
-
* @tags Tables
|
|
4698
|
-
* @name UpdateTable
|
|
4699
|
-
* @operationId TablesController_UpdateTable
|
|
4700
|
-
* @summary Update exists table.
|
|
4701
|
-
* @request PATCH:/tables/{name}
|
|
4702
|
-
* @secure
|
|
4703
|
-
* @response `200` OK
|
|
4704
|
-
*/
|
|
4705
|
-
updateTable(name, data) {
|
|
4706
|
-
return this.http.patch(`/tables/${name}`, data).json();
|
|
4707
|
-
}
|
|
4708
|
-
/**
|
|
4709
|
-
* No description
|
|
4710
|
-
*
|
|
4711
|
-
* @tags Tables
|
|
4712
|
-
* @name PutTable
|
|
4713
|
-
* @operationId TablesController_PutTable
|
|
4714
|
-
* @summary Override exists table.
|
|
4715
|
-
* @request PUT:/tables/{name}
|
|
4716
|
-
* @secure
|
|
4717
|
-
* @response `200` OK
|
|
4718
|
-
*/
|
|
4719
|
-
putTable(name, data) {
|
|
4720
|
-
return this.http.put(`/tables/${name}`, data).json();
|
|
4721
|
-
}
|
|
4722
|
-
/**
|
|
4723
|
-
* No description
|
|
4724
|
-
*
|
|
4725
|
-
* @tags Tables
|
|
4726
|
-
* @name GetTableInfo
|
|
4727
|
-
* @operationId TablesController_GetTableInfo
|
|
4728
|
-
* @summary Returns the table information and schema.
|
|
4729
|
-
* @request GET:/tables/{name}
|
|
4730
|
-
* @secure
|
|
4731
|
-
* @response `200` OK
|
|
4732
|
-
*/
|
|
4733
|
-
getTableInfo(name) {
|
|
4734
|
-
return this.http.get(`/tables/${name}`).json();
|
|
4735
|
-
}
|
|
4736
|
-
/**
|
|
4737
|
-
* No description
|
|
4738
|
-
*
|
|
4739
|
-
* @tags Tables
|
|
4740
|
-
* @name GetTablesInfo
|
|
4741
|
-
* @operationId TablesController_GetTablesInfoAsync
|
|
4742
|
-
* @summary Returns the tables information.
|
|
4743
|
-
* @request GET:/tables/batchInfo
|
|
4744
|
-
* @secure
|
|
4745
|
-
* @response `200` OK
|
|
4746
|
-
*/
|
|
4747
|
-
getTablesInfo(query) {
|
|
4748
|
-
return this.http.get(`/tables/batchInfo`, query).json();
|
|
4749
|
-
}
|
|
4750
|
-
/**
|
|
4751
|
-
* No description
|
|
4752
|
-
*
|
|
4753
|
-
* @tags Tables
|
|
4754
|
-
* @name GetTableData
|
|
4755
|
-
* @operationId TablesController_GetTableData
|
|
4756
|
-
* @summary Retrieves the data from the table.
|
|
4757
|
-
* @request GET:/tables/{name}/data
|
|
4758
|
-
* @secure
|
|
4759
|
-
* @response `200` OK
|
|
4760
|
-
*/
|
|
4761
|
-
getTableData({ name, ...query }) {
|
|
4762
|
-
return this.http.get(`/tables/${name}/data`, query).json();
|
|
4763
|
-
}
|
|
4764
|
-
/**
|
|
4765
|
-
* No description
|
|
4766
|
-
*
|
|
4767
|
-
* @tags Tables
|
|
4768
|
-
* @name WriteTableData
|
|
4769
|
-
* @operationId TablesController_WriteTableData
|
|
4770
|
-
* @summary Adds the data to the table.
|
|
4771
|
-
* @request POST:/tables/{name}/data
|
|
4772
|
-
* @secure
|
|
4773
|
-
* @response `200` OK
|
|
4774
|
-
*/
|
|
4775
|
-
writeTableData(name, data) {
|
|
4776
|
-
return this.http.post(`/tables/${name}/data`, data).then(() => { });
|
|
4777
|
-
}
|
|
4778
|
-
/**
|
|
4779
|
-
* No description
|
|
4780
|
-
*
|
|
4781
|
-
* @tags Tables
|
|
4782
|
-
* @name UpdateTableData
|
|
4783
|
-
* @operationId TablesController_UpdateTableData
|
|
4784
|
-
* @summary Updates the data in the table.
|
|
4785
|
-
* @request PATCH:/tables/{name}/data
|
|
4786
|
-
* @secure
|
|
4787
|
-
* @response `200` OK
|
|
4788
|
-
*/
|
|
4789
|
-
updateTableData({ name, ...query }, data) {
|
|
4790
|
-
return this.http.patch(`/tables/${name}/data`, data, query).then(() => { });
|
|
4791
|
-
}
|
|
4792
|
-
/**
|
|
4793
|
-
* No description
|
|
4794
|
-
*
|
|
4795
|
-
* @tags Tables
|
|
4796
|
-
* @name DeleteTableData
|
|
4797
|
-
* @operationId TablesController_DeleteTableData
|
|
4798
|
-
* @summary Delete data rows from the table.
|
|
4799
|
-
* @request DELETE:/tables/{name}/data
|
|
4800
|
-
* @secure
|
|
4801
|
-
* @response `200` OK
|
|
4802
|
-
*/
|
|
4803
|
-
deleteTableData({ name, ...query }) {
|
|
4804
|
-
return this.http.delete(`/tables/${name}/data`, null, query).then(() => { });
|
|
4805
|
-
}
|
|
4806
|
-
/**
|
|
4807
|
-
* No description
|
|
4808
|
-
*
|
|
4809
|
-
* @tags Tables
|
|
4810
|
-
* @name MapTable
|
|
4811
|
-
* @operationId TablesController_MapTable
|
|
4812
|
-
* @summary Map table to exists table.
|
|
4813
|
-
* @request POST:/tables/map-table
|
|
4814
|
-
* @secure
|
|
4815
|
-
* @response `200` OK
|
|
4816
|
-
*/
|
|
4817
|
-
mapTable(query, data) {
|
|
4818
|
-
return this.http.post(`/tables/map-table`, data, query).json();
|
|
4819
|
-
}
|
|
4820
|
-
/**
|
|
4821
|
-
* No description
|
|
4822
|
-
*
|
|
4823
|
-
* @tags Tables
|
|
4824
|
-
* @name UnmapTable
|
|
4825
|
-
* @operationId TablesController_UnmapTableAsync
|
|
4826
|
-
* @summary Unmap datasource from table.
|
|
4827
|
-
* @request DELETE:/tables/map-table/{name}
|
|
4828
|
-
* @secure
|
|
4829
|
-
* @response `200` OK
|
|
4830
|
-
*/
|
|
4831
|
-
unmapTable(name) {
|
|
4832
|
-
return this.http.delete(`/tables/map-table/${name}`, null).then(() => { });
|
|
4833
|
-
}
|
|
4834
|
-
/**
|
|
4835
|
-
* No description
|
|
4836
|
-
*
|
|
4837
|
-
* @tags Tables
|
|
4838
|
-
* @name CreateViewFromQueryLayer
|
|
4839
|
-
* @operationId TablesController_CreateViewFromQueryLayer
|
|
4840
|
-
* @summary Creates a new view from query layer.
|
|
4841
|
-
* @request POST:/tables/fromLayer
|
|
4842
|
-
* @secure
|
|
4843
|
-
* @response `200` OK
|
|
4844
|
-
*/
|
|
4845
|
-
createViewFromQueryLayer(data) {
|
|
4846
|
-
return this.http.post(`/tables/fromLayer`, data).json();
|
|
4847
|
-
}
|
|
4848
|
-
/**
|
|
4849
|
-
* No description
|
|
4850
|
-
*
|
|
4851
|
-
* @tags Tables
|
|
4852
|
-
* @name CreateViewFromQuery
|
|
4853
|
-
* @operationId TablesController_CreateViewFromQuery
|
|
4854
|
-
* @summary Creates a new view from query.
|
|
4855
|
-
* @request POST:/tables/fromQuery
|
|
4856
|
-
* @secure
|
|
4857
|
-
* @response `200` OK
|
|
4858
|
-
*/
|
|
4859
|
-
createViewFromQuery(data) {
|
|
4860
|
-
return this.http.post(`/tables/fromQuery`, data).json();
|
|
4861
|
-
}
|
|
4862
|
-
/**
|
|
4863
|
-
* No description
|
|
4864
|
-
*
|
|
4865
|
-
* @tags Tables
|
|
4866
|
-
* @name IsExists
|
|
4867
|
-
* @operationId TablesController_IsExistsAsync
|
|
4868
|
-
* @summary Check is resource exists.
|
|
4869
|
-
* @request GET:/tables/{name}/exists
|
|
4870
|
-
* @secure
|
|
4871
|
-
* @response `200` OK
|
|
4872
|
-
*/
|
|
4873
|
-
isExists(name) {
|
|
4874
|
-
return this.http.get(`/tables/${name}/exists`).then(() => { });
|
|
4875
|
-
}
|
|
4876
|
-
/**
|
|
4877
|
-
* No description
|
|
4878
|
-
*
|
|
4879
|
-
* @tags Tables
|
|
4880
|
-
* @name GetResourceDependencies
|
|
4881
|
-
* @operationId TablesController_GetResourceDependencies
|
|
4882
|
-
* @summary Get resource dependencies.
|
|
4883
|
-
* @request GET:/tables/{name}/dependencies
|
|
4884
|
-
* @secure
|
|
4885
|
-
* @response `200` OK
|
|
4886
|
-
*/
|
|
4887
|
-
getResourceDependencies(name) {
|
|
4888
|
-
return this.http.get(`/tables/${name}/dependencies`).json();
|
|
4889
|
-
}
|
|
4890
|
-
/**
|
|
4891
|
-
* No description
|
|
4892
|
-
*
|
|
4893
|
-
* @tags Tables
|
|
4894
|
-
* @name GetResourceReferences
|
|
4895
|
-
* @operationId TablesController_GetResourceReferences
|
|
4896
|
-
* @summary Returns the resource dependency information.
|
|
4897
|
-
* @request GET:/tables/{name}/references
|
|
4898
|
-
* @secure
|
|
4899
|
-
* @response `200` OK
|
|
4900
|
-
*/
|
|
4901
|
-
getResourceReferences(name) {
|
|
4902
|
-
return this.http.get(`/tables/${name}/references`).json();
|
|
4903
|
-
}
|
|
4904
|
-
}
|
|
3212
|
+
*
|
|
4905
3213
|
|
|
4906
|
-
|
|
4907
|
-
getTableInfos(tables) {
|
|
4908
|
-
return promiseAllIgnoreErrors(tables.map(table => this.getTableInfo(table)));
|
|
4909
|
-
}
|
|
4910
|
-
findOne(name) {
|
|
4911
|
-
return this.getTableInfo(name);
|
|
4912
|
-
}
|
|
4913
|
-
create(resource) {
|
|
4914
|
-
return this.createTable(resource);
|
|
4915
|
-
}
|
|
4916
|
-
update(table) {
|
|
4917
|
-
return this.updateTable(table.name, table);
|
|
4918
|
-
}
|
|
4919
|
-
async remove(name) {
|
|
4920
|
-
await this.deleteResources({ names: [name] });
|
|
4921
|
-
return name;
|
|
4922
|
-
}
|
|
4923
|
-
}
|
|
4924
|
-
|
|
4925
|
-
/* eslint-disable */
|
|
4926
|
-
/* tslint:disable */
|
|
4927
|
-
/*
|
|
4928
|
-
* ---------------------------------------------------------------
|
|
4929
|
-
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
4930
|
-
* ## ##
|
|
4931
|
-
* ## AUTHOR: acacode ##
|
|
4932
|
-
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
4933
|
-
* ---------------------------------------------------------------
|
|
4934
|
-
*/
|
|
4935
|
-
// @ts-nocheck
|
|
4936
|
-
/**
|
|
4937
|
-
* @title Spatial Processing Core API
|
|
4938
|
-
* @version 1.5.1.0
|
|
4939
|
-
* @baseUrl /sp
|
|
4940
|
-
*/
|
|
4941
|
-
class ToolsService extends Service {
|
|
4942
|
-
}
|
|
4943
|
-
|
|
4944
|
-
class Tools extends ToolsService {
|
|
4945
|
-
}
|
|
4946
|
-
|
|
4947
|
-
/* eslint-disable */
|
|
4948
|
-
/* tslint:disable */
|
|
4949
|
-
/*
|
|
4950
|
-
* ---------------------------------------------------------------
|
|
4951
|
-
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
4952
|
-
* ## ##
|
|
4953
|
-
* ## AUTHOR: acacode ##
|
|
4954
|
-
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
4955
|
-
* ---------------------------------------------------------------
|
|
4956
|
-
*/
|
|
4957
|
-
// @ts-nocheck
|
|
4958
|
-
/**
|
|
4959
|
-
* @title Spatial Processing Core API
|
|
4960
|
-
* @version 1.5.1.0
|
|
4961
|
-
* @baseUrl /sp
|
|
4962
|
-
*/
|
|
4963
|
-
class VectorTileService extends Service {
|
|
4964
|
-
/**
|
|
4965
|
-
* No description
|
|
4966
|
-
*
|
|
4967
|
-
* @tags VectorTileService
|
|
4968
|
-
* @name GetVectorTile
|
|
4969
|
-
* @operationId VectorTileServiceController_GetVectorTile
|
|
4970
|
-
* @summary Get vector tile from visible project layers or single layer.
|
|
4971
|
-
* @request GET:/vt/{name}/{z}/{x}/{y}.pbf
|
|
4972
|
-
* @secure
|
|
4973
|
-
* @response `200` OK
|
|
4974
|
-
*/
|
|
4975
|
-
getVectorTile({ name, z, x, y, ...query }) {
|
|
4976
|
-
return this.http.get(`/vt/${name}/{z}/{x}/{y}.pbf`, query).then(() => { });
|
|
4977
|
-
}
|
|
4978
|
-
}
|
|
4979
|
-
|
|
4980
|
-
class VectorTiles extends VectorTileService {
|
|
4981
|
-
}
|
|
4982
|
-
|
|
4983
|
-
// @ts-nocheck
|
|
4984
|
-
/**
|
|
4985
|
-
*
|
|
4986
|
-
|
|
4987
|
-
Shared
|
|
4988
|
-
|
|
4989
|
-
Public
|
|
4990
|
-
|
|
4991
|
-
My
|
|
4992
|
-
*/
|
|
4993
|
-
exports.AccessMode = void 0;
|
|
4994
|
-
(function (AccessMode) {
|
|
4995
|
-
AccessMode["Shared"] = "Shared";
|
|
4996
|
-
AccessMode["Public"] = "Public";
|
|
4997
|
-
AccessMode["My"] = "My";
|
|
4998
|
-
})(exports.AccessMode || (exports.AccessMode = {}));
|
|
4999
|
-
/**
|
|
5000
|
-
*
|
|
5001
|
-
|
|
5002
|
-
None
|
|
5003
|
-
|
|
5004
|
-
Array
|
|
5005
|
-
|
|
5006
|
-
Min
|
|
5007
|
-
|
|
5008
|
-
Max
|
|
5009
|
-
|
|
5010
|
-
Avg
|
|
5011
|
-
|
|
5012
|
-
Sum
|
|
5013
|
-
|
|
5014
|
-
Extent
|
|
5015
|
-
|
|
5016
|
-
H3
|
|
5017
|
-
|
|
5018
|
-
Count
|
|
5019
|
-
|
|
5020
|
-
TotalCount
|
|
5021
|
-
|
|
5022
|
-
DistinctCount
|
|
5023
|
-
|
|
5024
|
-
First
|
|
5025
|
-
|
|
5026
|
-
Last
|
|
5027
|
-
|
|
5028
|
-
Median
|
|
5029
|
-
|
|
5030
|
-
Mod
|
|
5031
|
-
|
|
5032
|
-
StdDeviation
|
|
5033
|
-
|
|
5034
|
-
SumOfProduct
|
|
5035
|
-
|
|
5036
|
-
OnlyValue
|
|
5037
|
-
|
|
5038
|
-
WeightedAvg
|
|
5039
|
-
|
|
5040
|
-
DensityIndicators
|
|
5041
|
-
|
|
5042
|
-
DividedSum
|
|
5043
|
-
*/
|
|
5044
|
-
exports.AggregationFunction = void 0;
|
|
5045
|
-
(function (AggregationFunction) {
|
|
5046
|
-
AggregationFunction["None"] = "None";
|
|
5047
|
-
AggregationFunction["Array"] = "Array";
|
|
5048
|
-
AggregationFunction["Min"] = "Min";
|
|
5049
|
-
AggregationFunction["Max"] = "Max";
|
|
5050
|
-
AggregationFunction["Avg"] = "Avg";
|
|
5051
|
-
AggregationFunction["Sum"] = "Sum";
|
|
5052
|
-
AggregationFunction["Extent"] = "Extent";
|
|
5053
|
-
AggregationFunction["H3"] = "H3";
|
|
5054
|
-
AggregationFunction["Count"] = "Count";
|
|
5055
|
-
AggregationFunction["TotalCount"] = "TotalCount";
|
|
5056
|
-
AggregationFunction["DistinctCount"] = "DistinctCount";
|
|
5057
|
-
AggregationFunction["First"] = "First";
|
|
5058
|
-
AggregationFunction["Last"] = "Last";
|
|
5059
|
-
AggregationFunction["Median"] = "Median";
|
|
5060
|
-
AggregationFunction["Mod"] = "Mod";
|
|
5061
|
-
AggregationFunction["StdDeviation"] = "StdDeviation";
|
|
5062
|
-
AggregationFunction["SumOfProduct"] = "SumOfProduct";
|
|
5063
|
-
AggregationFunction["OnlyValue"] = "OnlyValue";
|
|
5064
|
-
AggregationFunction["WeightedAvg"] = "WeightedAvg";
|
|
5065
|
-
AggregationFunction["DensityIndicators"] = "DensityIndicators";
|
|
5066
|
-
AggregationFunction["DividedSum"] = "DividedSum";
|
|
5067
|
-
})(exports.AggregationFunction || (exports.AggregationFunction = {}));
|
|
5068
|
-
/**
|
|
5069
|
-
*
|
|
5070
|
-
|
|
5071
|
-
Unknown
|
|
5072
|
-
|
|
5073
|
-
Icon
|
|
5074
|
-
|
|
5075
|
-
PNG
|
|
5076
|
-
|
|
5077
|
-
SVG
|
|
5078
|
-
*/
|
|
5079
|
-
exports.AttributeIconType = void 0;
|
|
5080
|
-
(function (AttributeIconType) {
|
|
5081
|
-
AttributeIconType["Unknown"] = "Unknown";
|
|
5082
|
-
AttributeIconType["Icon"] = "Icon";
|
|
5083
|
-
AttributeIconType["PNG"] = "PNG";
|
|
5084
|
-
AttributeIconType["SVG"] = "SVG";
|
|
5085
|
-
})(exports.AttributeIconType || (exports.AttributeIconType = {}));
|
|
5086
|
-
/**
|
|
5087
|
-
*
|
|
5088
|
-
|
|
5089
|
-
None
|
|
5090
|
-
|
|
5091
|
-
SelectFromHandBook
|
|
5092
|
-
|
|
5093
|
-
SelectFromRange
|
|
5094
|
-
|
|
5095
|
-
ViewHandBook
|
|
5096
|
-
*/
|
|
5097
|
-
exports.AttributeSelectorType = void 0;
|
|
5098
|
-
(function (AttributeSelectorType) {
|
|
5099
|
-
AttributeSelectorType["None"] = "None";
|
|
5100
|
-
AttributeSelectorType["SelectFromHandBook"] = "SelectFromHandBook";
|
|
5101
|
-
AttributeSelectorType["SelectFromRange"] = "SelectFromRange";
|
|
5102
|
-
AttributeSelectorType["ViewHandBook"] = "ViewHandBook";
|
|
5103
|
-
})(exports.AttributeSelectorType || (exports.AttributeSelectorType = {}));
|
|
5104
|
-
/**
|
|
5105
|
-
*
|
|
5106
|
-
|
|
5107
|
-
Unknown
|
|
5108
|
-
|
|
5109
|
-
String
|
|
5110
|
-
|
|
5111
|
-
Int32
|
|
5112
|
-
|
|
5113
|
-
Int64
|
|
5114
|
-
|
|
5115
|
-
Double
|
|
5116
|
-
|
|
5117
|
-
DateTime
|
|
5118
|
-
|
|
5119
|
-
Boolean
|
|
5120
|
-
|
|
5121
|
-
Point
|
|
5122
|
-
|
|
5123
|
-
LineString
|
|
5124
|
-
|
|
5125
|
-
Polygon
|
|
5126
|
-
|
|
5127
|
-
MultiPoint
|
|
5128
|
-
|
|
5129
|
-
MultiLineString
|
|
5130
|
-
|
|
5131
|
-
H3Index
|
|
5132
|
-
|
|
5133
|
-
Json
|
|
5134
|
-
|
|
5135
|
-
MultiPolygon
|
|
5136
|
-
|
|
5137
|
-
GeometryCollection
|
|
5138
|
-
*/
|
|
5139
|
-
exports.AttributeType = void 0;
|
|
5140
|
-
(function (AttributeType) {
|
|
5141
|
-
AttributeType["Unknown"] = "Unknown";
|
|
5142
|
-
AttributeType["String"] = "String";
|
|
5143
|
-
AttributeType["Int32"] = "Int32";
|
|
5144
|
-
AttributeType["Int64"] = "Int64";
|
|
5145
|
-
AttributeType["Double"] = "Double";
|
|
5146
|
-
AttributeType["DateTime"] = "DateTime";
|
|
5147
|
-
AttributeType["Boolean"] = "Boolean";
|
|
5148
|
-
AttributeType["Point"] = "Point";
|
|
5149
|
-
AttributeType["LineString"] = "LineString";
|
|
5150
|
-
AttributeType["Polygon"] = "Polygon";
|
|
5151
|
-
AttributeType["MultiPoint"] = "MultiPoint";
|
|
5152
|
-
AttributeType["MultiLineString"] = "MultiLineString";
|
|
5153
|
-
AttributeType["H3Index"] = "H3Index";
|
|
5154
|
-
AttributeType["Json"] = "Json";
|
|
5155
|
-
AttributeType["MultiPolygon"] = "MultiPolygon";
|
|
5156
|
-
AttributeType["GeometryCollection"] = "GeometryCollection";
|
|
5157
|
-
})(exports.AttributeType || (exports.AttributeType = {}));
|
|
5158
|
-
/**
|
|
5159
|
-
*
|
|
5160
|
-
|
|
5161
|
-
authorization_code
|
|
5162
|
-
|
|
5163
|
-
refresh_token
|
|
5164
|
-
*/
|
|
5165
|
-
exports.AuthorizationGrant = void 0;
|
|
5166
|
-
(function (AuthorizationGrant) {
|
|
5167
|
-
AuthorizationGrant["AuthorizationCode"] = "authorization_code";
|
|
5168
|
-
AuthorizationGrant["RefreshToken"] = "refresh_token";
|
|
5169
|
-
})(exports.AuthorizationGrant || (exports.AuthorizationGrant = {}));
|
|
5170
|
-
/**
|
|
5171
|
-
*
|
|
5172
|
-
|
|
5173
|
-
Directory
|
|
3214
|
+
Directory
|
|
5174
3215
|
|
|
5175
3216
|
Map
|
|
5176
3217
|
|
|
@@ -5685,208 +3726,2155 @@ RemoteTileService
|
|
|
5685
3726
|
|
|
5686
3727
|
File
|
|
5687
3728
|
|
|
5688
|
-
DataSource
|
|
3729
|
+
DataSource
|
|
3730
|
+
|
|
3731
|
+
TaskPrototype
|
|
3732
|
+
|
|
3733
|
+
Directory
|
|
3734
|
+
*/
|
|
3735
|
+
exports.ResourceTypeFilter = void 0;
|
|
3736
|
+
(function (ResourceTypeFilter) {
|
|
3737
|
+
ResourceTypeFilter["Map"] = "Map";
|
|
3738
|
+
ResourceTypeFilter["Layer"] = "Layer";
|
|
3739
|
+
ResourceTypeFilter["Table"] = "Table";
|
|
3740
|
+
ResourceTypeFilter["RasterCatalog"] = "RasterCatalog";
|
|
3741
|
+
ResourceTypeFilter["ProxyService"] = "ProxyService";
|
|
3742
|
+
ResourceTypeFilter["RemoteTileService"] = "RemoteTileService";
|
|
3743
|
+
ResourceTypeFilter["File"] = "File";
|
|
3744
|
+
ResourceTypeFilter["DataSource"] = "DataSource";
|
|
3745
|
+
ResourceTypeFilter["TaskPrototype"] = "TaskPrototype";
|
|
3746
|
+
ResourceTypeFilter["Directory"] = "Directory";
|
|
3747
|
+
})(exports.ResourceTypeFilter || (exports.ResourceTypeFilter = {}));
|
|
3748
|
+
exports.ResourceTypeLink = void 0;
|
|
3749
|
+
(function (ResourceTypeLink) {
|
|
3750
|
+
ResourceTypeLink["Table"] = "tables";
|
|
3751
|
+
ResourceTypeLink["Layer"] = "layers";
|
|
3752
|
+
ResourceTypeLink["Project"] = "projects";
|
|
3753
|
+
})(exports.ResourceTypeLink || (exports.ResourceTypeLink = {}));
|
|
3754
|
+
/**
|
|
3755
|
+
*
|
|
3756
|
+
|
|
3757
|
+
code
|
|
3758
|
+
|
|
3759
|
+
token
|
|
3760
|
+
*/
|
|
3761
|
+
exports.ResponseType = void 0;
|
|
3762
|
+
(function (ResponseType) {
|
|
3763
|
+
ResponseType["Code"] = "code";
|
|
3764
|
+
ResponseType["Token"] = "token";
|
|
3765
|
+
})(exports.ResponseType || (exports.ResponseType = {}));
|
|
3766
|
+
/**
|
|
3767
|
+
*
|
|
3768
|
+
|
|
3769
|
+
Basic
|
|
3770
|
+
|
|
3771
|
+
PreserveTopology
|
|
3772
|
+
|
|
3773
|
+
VW
|
|
3774
|
+
*/
|
|
3775
|
+
exports.SimplifyType = void 0;
|
|
3776
|
+
(function (SimplifyType) {
|
|
3777
|
+
SimplifyType["Basic"] = "Basic";
|
|
3778
|
+
SimplifyType["PreserveTopology"] = "PreserveTopology";
|
|
3779
|
+
SimplifyType["VW"] = "VW";
|
|
3780
|
+
})(exports.SimplifyType || (exports.SimplifyType = {}));
|
|
3781
|
+
/**
|
|
3782
|
+
*
|
|
3783
|
+
|
|
3784
|
+
None
|
|
3785
|
+
|
|
3786
|
+
Image
|
|
3787
|
+
|
|
3788
|
+
PkkCode
|
|
3789
|
+
|
|
3790
|
+
Attachments
|
|
3791
|
+
*/
|
|
3792
|
+
exports.StringSubType = void 0;
|
|
3793
|
+
(function (StringSubType) {
|
|
3794
|
+
StringSubType["None"] = "None";
|
|
3795
|
+
StringSubType["Image"] = "Image";
|
|
3796
|
+
StringSubType["PkkCode"] = "PkkCode";
|
|
3797
|
+
StringSubType["Attachments"] = "Attachments";
|
|
3798
|
+
})(exports.StringSubType || (exports.StringSubType = {}));
|
|
3799
|
+
/**
|
|
3800
|
+
* Specifies the available types of table configurations that can be used within the application.
|
|
3801
|
+
|
|
3802
|
+
DefaultTableConfiguration
|
|
3803
|
+
|
|
3804
|
+
TileCatalogTableConfiguration
|
|
3805
|
+
|
|
3806
|
+
ViewConfiguration
|
|
3807
|
+
|
|
3808
|
+
MaterializedViewConfiguration
|
|
3809
|
+
|
|
3810
|
+
RouteTableConfiguration
|
|
3811
|
+
*/
|
|
3812
|
+
exports.TableConfigurationType = void 0;
|
|
3813
|
+
(function (TableConfigurationType) {
|
|
3814
|
+
TableConfigurationType["DefaultTableConfiguration"] = "DefaultTableConfiguration";
|
|
3815
|
+
TableConfigurationType["TileCatalogTableConfiguration"] = "TileCatalogTableConfiguration";
|
|
3816
|
+
TableConfigurationType["ViewConfiguration"] = "ViewConfiguration";
|
|
3817
|
+
TableConfigurationType["MaterializedViewConfiguration"] = "MaterializedViewConfiguration";
|
|
3818
|
+
TableConfigurationType["RouteTableConfiguration"] = "RouteTableConfiguration";
|
|
3819
|
+
})(exports.TableConfigurationType || (exports.TableConfigurationType = {}));
|
|
3820
|
+
/**
|
|
3821
|
+
* TaskPrototypeSubType.
|
|
3822
|
+
|
|
3823
|
+
SpTask
|
|
3824
|
+
|
|
3825
|
+
PythonTask
|
|
3826
|
+
*/
|
|
3827
|
+
exports.TaskResourceSubType = void 0;
|
|
3828
|
+
(function (TaskResourceSubType) {
|
|
3829
|
+
TaskResourceSubType["SpTask"] = "SpTask";
|
|
3830
|
+
TaskResourceSubType["PythonTask"] = "PythonTask";
|
|
3831
|
+
})(exports.TaskResourceSubType || (exports.TaskResourceSubType = {}));
|
|
3832
|
+
/**
|
|
3833
|
+
* Specifies the types of task resources that can be updated within the system.
|
|
3834
|
+
|
|
3835
|
+
SpTask
|
|
3836
|
+
|
|
3837
|
+
PythonTask
|
|
3838
|
+
*/
|
|
3839
|
+
exports.TaskResourceUpdateType = void 0;
|
|
3840
|
+
(function (TaskResourceUpdateType) {
|
|
3841
|
+
TaskResourceUpdateType["SpTask"] = "SpTask";
|
|
3842
|
+
TaskResourceUpdateType["PythonTask"] = "PythonTask";
|
|
3843
|
+
})(exports.TaskResourceUpdateType || (exports.TaskResourceUpdateType = {}));
|
|
3844
|
+
/**
|
|
3845
|
+
*
|
|
3846
|
+
|
|
3847
|
+
Task
|
|
3848
|
+
|
|
3849
|
+
Rest
|
|
3850
|
+
|
|
3851
|
+
Both
|
|
3852
|
+
*/
|
|
3853
|
+
exports.WorkerMethodType = void 0;
|
|
3854
|
+
(function (WorkerMethodType) {
|
|
3855
|
+
WorkerMethodType["Task"] = "Task";
|
|
3856
|
+
WorkerMethodType["Rest"] = "Rest";
|
|
3857
|
+
WorkerMethodType["Both"] = "Both";
|
|
3858
|
+
})(exports.WorkerMethodType || (exports.WorkerMethodType = {}));
|
|
3859
|
+
/**
|
|
3860
|
+
*
|
|
3861
|
+
|
|
3862
|
+
Int32
|
|
3863
|
+
|
|
3864
|
+
Int64
|
|
3865
|
+
|
|
3866
|
+
Double
|
|
3867
|
+
|
|
3868
|
+
String
|
|
3869
|
+
|
|
3870
|
+
Boolean
|
|
3871
|
+
|
|
3872
|
+
DateTime
|
|
3873
|
+
|
|
3874
|
+
Point
|
|
3875
|
+
|
|
3876
|
+
Geometry
|
|
3877
|
+
|
|
3878
|
+
Polyline
|
|
3879
|
+
|
|
3880
|
+
MultiPolygon
|
|
3881
|
+
|
|
3882
|
+
Polygon
|
|
3883
|
+
|
|
3884
|
+
Multipoint
|
|
3885
|
+
|
|
3886
|
+
IntergerArray
|
|
3887
|
+
|
|
3888
|
+
DoubleArray
|
|
3889
|
+
|
|
3890
|
+
StringArray
|
|
3891
|
+
|
|
3892
|
+
SourceEql
|
|
3893
|
+
|
|
3894
|
+
Layer
|
|
3895
|
+
|
|
3896
|
+
Table
|
|
3897
|
+
|
|
3898
|
+
Folder
|
|
3899
|
+
|
|
3900
|
+
Json
|
|
3901
|
+
|
|
3902
|
+
Attribute
|
|
3903
|
+
|
|
3904
|
+
AttributeArray
|
|
3905
|
+
*/
|
|
3906
|
+
exports.WorkerSettingsFieldType = void 0;
|
|
3907
|
+
(function (WorkerSettingsFieldType) {
|
|
3908
|
+
WorkerSettingsFieldType["Int32"] = "Int32";
|
|
3909
|
+
WorkerSettingsFieldType["Int64"] = "Int64";
|
|
3910
|
+
WorkerSettingsFieldType["Double"] = "Double";
|
|
3911
|
+
WorkerSettingsFieldType["String"] = "String";
|
|
3912
|
+
WorkerSettingsFieldType["Boolean"] = "Boolean";
|
|
3913
|
+
WorkerSettingsFieldType["DateTime"] = "DateTime";
|
|
3914
|
+
WorkerSettingsFieldType["Point"] = "Point";
|
|
3915
|
+
WorkerSettingsFieldType["Geometry"] = "Geometry";
|
|
3916
|
+
WorkerSettingsFieldType["Polyline"] = "Polyline";
|
|
3917
|
+
WorkerSettingsFieldType["MultiPolygon"] = "MultiPolygon";
|
|
3918
|
+
WorkerSettingsFieldType["Polygon"] = "Polygon";
|
|
3919
|
+
WorkerSettingsFieldType["Multipoint"] = "Multipoint";
|
|
3920
|
+
WorkerSettingsFieldType["IntergerArray"] = "IntergerArray";
|
|
3921
|
+
WorkerSettingsFieldType["DoubleArray"] = "DoubleArray";
|
|
3922
|
+
WorkerSettingsFieldType["StringArray"] = "StringArray";
|
|
3923
|
+
WorkerSettingsFieldType["SourceEql"] = "SourceEql";
|
|
3924
|
+
WorkerSettingsFieldType["Layer"] = "Layer";
|
|
3925
|
+
WorkerSettingsFieldType["Table"] = "Table";
|
|
3926
|
+
WorkerSettingsFieldType["Folder"] = "Folder";
|
|
3927
|
+
WorkerSettingsFieldType["Json"] = "Json";
|
|
3928
|
+
WorkerSettingsFieldType["Attribute"] = "Attribute";
|
|
3929
|
+
WorkerSettingsFieldType["AttributeArray"] = "AttributeArray";
|
|
3930
|
+
})(exports.WorkerSettingsFieldType || (exports.WorkerSettingsFieldType = {}));
|
|
3931
|
+
|
|
3932
|
+
/* eslint-disable */
|
|
3933
|
+
/* tslint:disable */
|
|
3934
|
+
/*
|
|
3935
|
+
* ---------------------------------------------------------------
|
|
3936
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
3937
|
+
* ## ##
|
|
3938
|
+
* ## AUTHOR: acacode ##
|
|
3939
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
3940
|
+
* ---------------------------------------------------------------
|
|
3941
|
+
*/
|
|
3942
|
+
// @ts-nocheck
|
|
3943
|
+
/**
|
|
3944
|
+
* @title Spatial Processing Core API
|
|
3945
|
+
* @version 1.5.1.0
|
|
3946
|
+
* @baseUrl /sp
|
|
3947
|
+
*/
|
|
3948
|
+
class LayersService extends Service {
|
|
3949
|
+
/**
|
|
3950
|
+
* No description
|
|
3951
|
+
*
|
|
3952
|
+
* @tags Layers
|
|
3953
|
+
* @name GetBulkFeatures
|
|
3954
|
+
* @operationId LayersController_GetBulkFeatures
|
|
3955
|
+
* @summary Returns list of the layer features.
|
|
3956
|
+
* @request POST:/bulk/layers/features/query
|
|
3957
|
+
* @secure
|
|
3958
|
+
* @response `200` OK
|
|
3959
|
+
*/
|
|
3960
|
+
getBulkFeatures(data) {
|
|
3961
|
+
return this.http.post(`/bulk/layers/features/query`, data).json();
|
|
3962
|
+
}
|
|
3963
|
+
/**
|
|
3964
|
+
* No description
|
|
3965
|
+
*
|
|
3966
|
+
* @tags Layers
|
|
3967
|
+
* @name GetBulkExtents
|
|
3968
|
+
* @operationId LayersController_GetBulkExtents
|
|
3969
|
+
* @summary Returns list of the layer extents with overall extent.
|
|
3970
|
+
* @request POST:/bulk/layers/extent
|
|
3971
|
+
* @secure
|
|
3972
|
+
* @response `200` OK
|
|
3973
|
+
*/
|
|
3974
|
+
getBulkExtents(query, data) {
|
|
3975
|
+
return this.http.post(`/bulk/layers/extent`, data, query).json();
|
|
3976
|
+
}
|
|
3977
|
+
/**
|
|
3978
|
+
* No description
|
|
3979
|
+
*
|
|
3980
|
+
* @tags Layers
|
|
3981
|
+
* @name GetFilteredFeaturesCount
|
|
3982
|
+
* @operationId LayersController_GetFilteredFeaturesCount
|
|
3983
|
+
* @summary Returns list of features count according layer filter.
|
|
3984
|
+
* @request POST:/bulk/layers/features/count
|
|
3985
|
+
* @secure
|
|
3986
|
+
* @response `200` OK
|
|
3987
|
+
*/
|
|
3988
|
+
getFilteredFeaturesCount(data) {
|
|
3989
|
+
return this.http.post(`/bulk/layers/features/count`, data).json();
|
|
3990
|
+
}
|
|
3991
|
+
/**
|
|
3992
|
+
* No description
|
|
3993
|
+
*
|
|
3994
|
+
* @tags Layers
|
|
3995
|
+
* @name GetLayerInfo
|
|
3996
|
+
* @operationId LayersController_GetLayerInfoAsync
|
|
3997
|
+
* @summary Returns the layer information.
|
|
3998
|
+
* @request GET:/layers/{name}
|
|
3999
|
+
* @secure
|
|
4000
|
+
* @response `200` OK
|
|
4001
|
+
*/
|
|
4002
|
+
getLayerInfo(name) {
|
|
4003
|
+
return this.http
|
|
4004
|
+
.get(`/layers/${name}`)
|
|
4005
|
+
.json();
|
|
4006
|
+
}
|
|
4007
|
+
/**
|
|
4008
|
+
* No description
|
|
4009
|
+
*
|
|
4010
|
+
* @tags Layers
|
|
4011
|
+
* @name PatchQueryLayerService
|
|
4012
|
+
* @operationId LayersController_PatchQueryLayerService
|
|
4013
|
+
* @summary Patch EQL-based Query Layer Service.
|
|
4014
|
+
* @request PATCH:/layers/{name}
|
|
4015
|
+
* @secure
|
|
4016
|
+
* @response `200` OK
|
|
4017
|
+
*/
|
|
4018
|
+
patchQueryLayerService(name, data) {
|
|
4019
|
+
return this.http
|
|
4020
|
+
.patch(`/layers/${name}`, data)
|
|
4021
|
+
.json();
|
|
4022
|
+
}
|
|
4023
|
+
/**
|
|
4024
|
+
* No description
|
|
4025
|
+
*
|
|
4026
|
+
* @tags Layers
|
|
4027
|
+
* @name GetLayersInfo
|
|
4028
|
+
* @operationId LayersController_GetLayersInfoAsync
|
|
4029
|
+
* @summary Returns the layers information.
|
|
4030
|
+
* @request GET:/layers/batchInfo
|
|
4031
|
+
* @secure
|
|
4032
|
+
* @response `200` OK
|
|
4033
|
+
*/
|
|
4034
|
+
getLayersInfo(query) {
|
|
4035
|
+
return this.http
|
|
4036
|
+
.get(`/layers/batchInfo`, query)
|
|
4037
|
+
.json();
|
|
4038
|
+
}
|
|
4039
|
+
/**
|
|
4040
|
+
* No description
|
|
4041
|
+
*
|
|
4042
|
+
* @tags Layers
|
|
4043
|
+
* @name PublishService
|
|
4044
|
+
* @operationId LayersController_PublishServiceAsync
|
|
4045
|
+
* @summary Publishes a service using the specified layer configuration parameters.
|
|
4046
|
+
* @request POST:/layers
|
|
4047
|
+
* @secure
|
|
4048
|
+
* @response `200` OK
|
|
4049
|
+
*/
|
|
4050
|
+
publishService(data) {
|
|
4051
|
+
return this.http
|
|
4052
|
+
.post(`/layers`, data)
|
|
4053
|
+
.json();
|
|
4054
|
+
}
|
|
4055
|
+
/**
|
|
4056
|
+
* No description
|
|
4057
|
+
*
|
|
4058
|
+
* @tags Layers
|
|
4059
|
+
* @name DeleteResources
|
|
4060
|
+
* @operationId LayersController_DeleteResources
|
|
4061
|
+
* @summary Bulk delete resources.
|
|
4062
|
+
* @request DELETE:/layers
|
|
4063
|
+
* @secure
|
|
4064
|
+
* @response `200` OK
|
|
4065
|
+
*/
|
|
4066
|
+
deleteResources(query) {
|
|
4067
|
+
return this.http.delete(`/layers`, null, query).json();
|
|
4068
|
+
}
|
|
4069
|
+
/**
|
|
4070
|
+
* No description
|
|
4071
|
+
*
|
|
4072
|
+
* @tags Layers
|
|
4073
|
+
* @name PatchQueryLayerService1
|
|
4074
|
+
* @operationId LayersController_PatchQueryLayerService_1
|
|
4075
|
+
* @summary Patch EQL-based Query Layer Service.
|
|
4076
|
+
* @request PATCH:/layers/{name}/v2
|
|
4077
|
+
* @secure
|
|
4078
|
+
* @response `200` OK
|
|
4079
|
+
*/
|
|
4080
|
+
patchQueryLayerService1(name, data) {
|
|
4081
|
+
return this.http.patch(`/layers/${name}/v2`, data).json();
|
|
4082
|
+
}
|
|
4083
|
+
/**
|
|
4084
|
+
* No description
|
|
4085
|
+
*
|
|
4086
|
+
* @tags Layers
|
|
4087
|
+
* @name ReloadService
|
|
4088
|
+
* @operationId LayersController_ReloadServiceAsync
|
|
4089
|
+
* @summary Initialize a new instance of service by given name.
|
|
4090
|
+
* @request GET:/layers/{name}/reload
|
|
4091
|
+
* @secure
|
|
4092
|
+
* @response `200` OK
|
|
4093
|
+
*/
|
|
4094
|
+
reloadService(name) {
|
|
4095
|
+
return this.http
|
|
4096
|
+
.get(`/layers/${name}/reload`)
|
|
4097
|
+
.json();
|
|
4098
|
+
}
|
|
4099
|
+
/**
|
|
4100
|
+
* No description
|
|
4101
|
+
*
|
|
4102
|
+
* @tags Layers
|
|
4103
|
+
* @name GetFeatures
|
|
4104
|
+
* @operationId LayersController_GetFeatures
|
|
4105
|
+
* @summary Returns list of the layer features.
|
|
4106
|
+
* @request POST:/layers/{name}/features/query
|
|
4107
|
+
* @secure
|
|
4108
|
+
* @response `200` OK
|
|
4109
|
+
*/
|
|
4110
|
+
getFeatures(name, data) {
|
|
4111
|
+
return this.http.post(`/layers/${name}/features/query`, data).json();
|
|
4112
|
+
}
|
|
4113
|
+
/**
|
|
4114
|
+
* No description
|
|
4115
|
+
*
|
|
4116
|
+
* @tags Layers
|
|
4117
|
+
* @name GetFeatures1
|
|
4118
|
+
* @operationId LayersController_GetFeatures_1
|
|
4119
|
+
* @summary Returns list of the layer features.
|
|
4120
|
+
* @request GET:/layers/{name}/features
|
|
4121
|
+
* @secure
|
|
4122
|
+
* @response `200` OK
|
|
4123
|
+
*/
|
|
4124
|
+
getFeatures1({ name, ...query }) {
|
|
4125
|
+
return this.http.get(`/layers/${name}/features`, query).json();
|
|
4126
|
+
}
|
|
4127
|
+
/**
|
|
4128
|
+
* No description
|
|
4129
|
+
*
|
|
4130
|
+
* @tags Layers
|
|
4131
|
+
* @name DeleteFeature
|
|
4132
|
+
* @operationId LayersController_DeleteFeature
|
|
4133
|
+
* @summary Deletes feature by id.
|
|
4134
|
+
* @request DELETE:/layers/{name}/features
|
|
4135
|
+
* @secure
|
|
4136
|
+
* @response `200` OK
|
|
4137
|
+
*/
|
|
4138
|
+
deleteFeature({ name, ...query }) {
|
|
4139
|
+
return this.http.delete(`/layers/${name}/features`, null, query).json();
|
|
4140
|
+
}
|
|
4141
|
+
/**
|
|
4142
|
+
* No description
|
|
4143
|
+
*
|
|
4144
|
+
* @tags Layers
|
|
4145
|
+
* @name CreateFeatures
|
|
4146
|
+
* @operationId LayersController_CreateFeatures
|
|
4147
|
+
* @summary Creates features list of type.SPCore.Connectors.Connectors.Base.Models.Features.FeatureDc.
|
|
4148
|
+
* @request POST:/layers/{name}/features
|
|
4149
|
+
* @secure
|
|
4150
|
+
* @response `200` OK
|
|
4151
|
+
*/
|
|
4152
|
+
createFeatures({ name, ...query }, data) {
|
|
4153
|
+
return this.http.post(`/layers/${name}/features`, data, query).json();
|
|
4154
|
+
}
|
|
4155
|
+
/**
|
|
4156
|
+
* No description
|
|
4157
|
+
*
|
|
4158
|
+
* @tags Layers
|
|
4159
|
+
* @name UpdateFeature
|
|
4160
|
+
* @operationId LayersController_UpdateFeature
|
|
4161
|
+
* @summary Updates features list SPCore.Connectors.Connectors.Base.Models.Features.FeatureDc.
|
|
4162
|
+
* @request PATCH:/layers/{name}/features
|
|
4163
|
+
* @secure
|
|
4164
|
+
* @response `200` OK
|
|
4165
|
+
*/
|
|
4166
|
+
updateFeature(name, data) {
|
|
4167
|
+
return this.http.patch(`/layers/${name}/features`, data).json();
|
|
4168
|
+
}
|
|
4169
|
+
/**
|
|
4170
|
+
* No description
|
|
4171
|
+
*
|
|
4172
|
+
* @tags Layers
|
|
4173
|
+
* @name GetById
|
|
4174
|
+
* @operationId LayersController_GetByIdAsync
|
|
4175
|
+
* @summary Gets feature by id.
|
|
4176
|
+
* @request GET:/layers/{name}/features/{id}
|
|
4177
|
+
* @secure
|
|
4178
|
+
* @response `200` OK
|
|
4179
|
+
*/
|
|
4180
|
+
getById({ name, id, ...query }) {
|
|
4181
|
+
return this.http.get(`/layers/${name}/features/${id}`, query).json();
|
|
4182
|
+
}
|
|
4183
|
+
/**
|
|
4184
|
+
* No description
|
|
4185
|
+
*
|
|
4186
|
+
* @tags Layers
|
|
4187
|
+
* @name GetTilesLayerImage
|
|
4188
|
+
* @operationId LayersController_GetTilesLayerImage
|
|
4189
|
+
* @summary Render tile with input indexes.
|
|
4190
|
+
* @request GET:/layers/{name}/tile/{z}/{x}/{y}
|
|
4191
|
+
* @secure
|
|
4192
|
+
* @response `200` OK
|
|
4193
|
+
*/
|
|
4194
|
+
getTilesLayerImage({ name, x, y, z, ...query }) {
|
|
4195
|
+
return this.http.createUrl(`/layers/${name}/tile/{z}/{x}/{y}`, query);
|
|
4196
|
+
}
|
|
4197
|
+
/**
|
|
4198
|
+
* No description
|
|
4199
|
+
*
|
|
4200
|
+
* @tags Layers
|
|
4201
|
+
* @name GetTilesLayerImage1
|
|
4202
|
+
* @operationId LayersController_GetTilesLayerImage_1
|
|
4203
|
+
* @summary Render tile with input indexes.
|
|
4204
|
+
* @request GET:/layers/{name}/tile/{z}/{x}/{y}.{format}
|
|
4205
|
+
* @secure
|
|
4206
|
+
* @response `200` OK
|
|
4207
|
+
*/
|
|
4208
|
+
getTilesLayerImage1({ name, x, y, z, format, ...query }) {
|
|
4209
|
+
return this.http.createUrl(`/layers/${name}/tile/{z}/{x}/{y}.${format}`, query);
|
|
4210
|
+
}
|
|
4211
|
+
/**
|
|
4212
|
+
* No description
|
|
4213
|
+
*
|
|
4214
|
+
* @tags Layers
|
|
4215
|
+
* @name GetTilesLayerImageWithFormatAndDpi
|
|
4216
|
+
* @operationId LayersController_GetTilesLayerImageWithFormatAndDpi
|
|
4217
|
+
* @summary Render tile with input indexes.
|
|
4218
|
+
* @request GET:/layers/{name}/tile/{z}/{x}/{y}@{dpi}x.{format}
|
|
4219
|
+
* @secure
|
|
4220
|
+
* @response `200` OK
|
|
4221
|
+
*/
|
|
4222
|
+
getTilesLayerImageWithFormatAndDpi({ name, x, y, z, dpi, format, ...query }) {
|
|
4223
|
+
return this.http.createUrl(`/layers/${name}/tile/{z}/{x}/{y}@${dpi}x.${format}`, query);
|
|
4224
|
+
}
|
|
4225
|
+
/**
|
|
4226
|
+
* No description
|
|
4227
|
+
*
|
|
4228
|
+
* @tags Layers
|
|
4229
|
+
* @name GetLayerExtent
|
|
4230
|
+
* @operationId LayersController_GetLayerExtent
|
|
4231
|
+
* @summary Returns the extent of the layer.
|
|
4232
|
+
* @request GET:/layers/{name}/extent
|
|
4233
|
+
* @secure
|
|
4234
|
+
* @response `200` OK
|
|
4235
|
+
*/
|
|
4236
|
+
getLayerExtent({ name, ...query }) {
|
|
4237
|
+
return this.http.get(`/layers/${name}/extent`, query).json();
|
|
4238
|
+
}
|
|
4239
|
+
/**
|
|
4240
|
+
* No description
|
|
4241
|
+
*
|
|
4242
|
+
* @tags Layers
|
|
4243
|
+
* @name DeleteFeatures
|
|
4244
|
+
* @operationId LayersController_DeleteFeatures
|
|
4245
|
+
* @summary Delete a list of features by given ids. Example: ids=1,2,3.
|
|
4246
|
+
* @request DELETE:/layers/{name}/features/deleteByIds
|
|
4247
|
+
* @secure
|
|
4248
|
+
* @response `200` OK
|
|
4249
|
+
*/
|
|
4250
|
+
deleteFeatures({ name, ...query }) {
|
|
4251
|
+
return this.http.delete(`/layers/${name}/features/deleteByIds`, null, query).json();
|
|
4252
|
+
}
|
|
4253
|
+
/**
|
|
4254
|
+
* No description
|
|
4255
|
+
*
|
|
4256
|
+
* @tags Layers
|
|
4257
|
+
* @name DeleteByCondition
|
|
4258
|
+
* @operationId LayersController_DeleteByCondition
|
|
4259
|
+
* @summary Delete a list of features by condition with exclude given ids.
|
|
4260
|
+
* @request DELETE:/layers/{name}/features/deleteByCondition
|
|
4261
|
+
* @secure
|
|
4262
|
+
* @response `200` OK
|
|
4263
|
+
*/
|
|
4264
|
+
deleteByCondition({ name, ...query }) {
|
|
4265
|
+
return this.http.delete(`/layers/${name}/features/deleteByCondition`, null, query).json();
|
|
4266
|
+
}
|
|
4267
|
+
/**
|
|
4268
|
+
* No description
|
|
4269
|
+
*
|
|
4270
|
+
* @tags Layers
|
|
4271
|
+
* @name Classify
|
|
4272
|
+
* @operationId LayersController_Classify
|
|
4273
|
+
* @summary Returns the classified attribute values that correspond to the given number of classes.
|
|
4274
|
+
* @request GET:/layers/{name}/classify
|
|
4275
|
+
* @secure
|
|
4276
|
+
* @response `200` OK
|
|
4277
|
+
*/
|
|
4278
|
+
classify({ name, ...query }) {
|
|
4279
|
+
return this.http.get(`/layers/${name}/classify`, query).json();
|
|
4280
|
+
}
|
|
4281
|
+
/**
|
|
4282
|
+
* No description
|
|
4283
|
+
*
|
|
4284
|
+
* @tags Layers
|
|
4285
|
+
* @name Distincts
|
|
4286
|
+
* @operationId LayersController_Distincts
|
|
4287
|
+
* @summary Returns distinct attribute values and their count.
|
|
4288
|
+
* @request GET:/layers/{name}/distincts
|
|
4289
|
+
* @secure
|
|
4290
|
+
* @response `200` OK
|
|
4291
|
+
*/
|
|
4292
|
+
distincts({ name, ...query }) {
|
|
4293
|
+
return this.http.get(`/layers/${name}/distincts`, query).json();
|
|
4294
|
+
}
|
|
4295
|
+
/**
|
|
4296
|
+
* No description
|
|
4297
|
+
*
|
|
4298
|
+
* @tags Layers
|
|
4299
|
+
* @name AggregateAttribute
|
|
4300
|
+
* @operationId LayersController_AggregateAttribute
|
|
4301
|
+
* @summary Returns aggregated value of given attribute aggregationAttributeName within a given groups groups.
|
|
4302
|
+
* @request GET:/layers/{name}/aggregate-values
|
|
4303
|
+
* @secure
|
|
4304
|
+
* @response `200` OK
|
|
4305
|
+
*/
|
|
4306
|
+
aggregateAttribute({ name, ...query }) {
|
|
4307
|
+
return this.http.get(`/layers/${name}/aggregate-values`, query).json();
|
|
4308
|
+
}
|
|
4309
|
+
/**
|
|
4310
|
+
* No description
|
|
4311
|
+
*
|
|
4312
|
+
* @tags Layers
|
|
4313
|
+
* @name GetFilteredFeaturesCount1
|
|
4314
|
+
* @operationId LayersController_GetFilteredFeaturesCount_1
|
|
4315
|
+
* @summary Get features count according layer filter of the given name.
|
|
4316
|
+
* @request GET:/layers/{name}/features/count
|
|
4317
|
+
* @secure
|
|
4318
|
+
* @response `200` OK
|
|
4319
|
+
*/
|
|
4320
|
+
getFilteredFeaturesCount1({ name, ...query }) {
|
|
4321
|
+
return this.http.get(`/layers/${name}/features/count`, query).json();
|
|
4322
|
+
}
|
|
4323
|
+
/**
|
|
4324
|
+
* No description
|
|
4325
|
+
*
|
|
4326
|
+
* @tags Layers
|
|
4327
|
+
* @name GetFilteredFeaturesCount2
|
|
4328
|
+
* @operationId LayersController_GetFilteredFeaturesCount_2
|
|
4329
|
+
* @summary Get features count according layer filter of the given name.
|
|
4330
|
+
* @request POST:/layers/{name}/features/count
|
|
4331
|
+
* @secure
|
|
4332
|
+
* @response `200` OK
|
|
4333
|
+
*/
|
|
4334
|
+
getFilteredFeaturesCount2(name, data) {
|
|
4335
|
+
return this.http.post(`/layers/${name}/features/count`, data).json();
|
|
4336
|
+
}
|
|
4337
|
+
/**
|
|
4338
|
+
* No description
|
|
4339
|
+
*
|
|
4340
|
+
* @tags Layers
|
|
4341
|
+
* @name EditAttributes
|
|
4342
|
+
* @operationId LayersController_EditAttributes
|
|
4343
|
+
* @summary Edit attributes with editInfo.
|
|
4344
|
+
* @request POST:/layers/{name}/features/edit-attributes
|
|
4345
|
+
* @secure
|
|
4346
|
+
* @response `200` OK
|
|
4347
|
+
*/
|
|
4348
|
+
editAttributes(name, data) {
|
|
4349
|
+
return this.http.post(`/layers/${name}/features/edit-attributes`, data).json();
|
|
4350
|
+
}
|
|
4351
|
+
/**
|
|
4352
|
+
* No description
|
|
4353
|
+
*
|
|
4354
|
+
* @tags Layers
|
|
4355
|
+
* @name ValidateExpression
|
|
4356
|
+
* @operationId LayersController_ValidateExpression
|
|
4357
|
+
* @summary Validates the given EQL expression against the requested layer. If the expression is valid, it can be executed on the features in the layer to produce a value of some type. The type of the resulting value will be also returned in the validation result.
|
|
4358
|
+
* @request GET:/layers/{layerName}/validateExpression
|
|
4359
|
+
* @secure
|
|
4360
|
+
* @response `200` OK
|
|
4361
|
+
*/
|
|
4362
|
+
validateExpression({ layerName, ...query }) {
|
|
4363
|
+
return this.http.get(`/layers/${layerName}/validateExpression`, query).json();
|
|
4364
|
+
}
|
|
4365
|
+
/**
|
|
4366
|
+
* No description
|
|
4367
|
+
*
|
|
4368
|
+
* @tags Layers
|
|
4369
|
+
* @name GetRasterMeta
|
|
4370
|
+
* @operationId LayersController_GetRasterMeta
|
|
4371
|
+
* @summary Get raster metadata.
|
|
4372
|
+
* @request GET:/layers/{name}/{id}/metadata
|
|
4373
|
+
* @secure
|
|
4374
|
+
* @response `200` OK
|
|
4375
|
+
*/
|
|
4376
|
+
getRasterMeta({ name, id, ...query }) {
|
|
4377
|
+
return this.http.get(`/layers/${name}/${id}/metadata`, query).json();
|
|
4378
|
+
}
|
|
4379
|
+
/**
|
|
4380
|
+
* No description
|
|
4381
|
+
*
|
|
4382
|
+
* @tags Layers
|
|
4383
|
+
* @name IsExists
|
|
4384
|
+
* @operationId LayersController_IsExistsAsync
|
|
4385
|
+
* @summary Check is resource exists.
|
|
4386
|
+
* @request GET:/layers/{name}/exists
|
|
4387
|
+
* @secure
|
|
4388
|
+
* @response `200` OK
|
|
4389
|
+
*/
|
|
4390
|
+
isExists(name) {
|
|
4391
|
+
return this.http.get(`/layers/${name}/exists`).then(() => { });
|
|
4392
|
+
}
|
|
4393
|
+
/**
|
|
4394
|
+
* No description
|
|
4395
|
+
*
|
|
4396
|
+
* @tags Layers
|
|
4397
|
+
* @name GetResourceDependencies
|
|
4398
|
+
* @operationId LayersController_GetResourceDependencies
|
|
4399
|
+
* @summary Get resource dependencies.
|
|
4400
|
+
* @request GET:/layers/{name}/dependencies
|
|
4401
|
+
* @secure
|
|
4402
|
+
* @response `200` OK
|
|
4403
|
+
*/
|
|
4404
|
+
getResourceDependencies(name) {
|
|
4405
|
+
return this.http.get(`/layers/${name}/dependencies`).json();
|
|
4406
|
+
}
|
|
4407
|
+
/**
|
|
4408
|
+
* No description
|
|
4409
|
+
*
|
|
4410
|
+
* @tags Layers
|
|
4411
|
+
* @name GetResourceReferences
|
|
4412
|
+
* @operationId LayersController_GetResourceReferences
|
|
4413
|
+
* @summary Returns the resource dependency information.
|
|
4414
|
+
* @request GET:/layers/{name}/references
|
|
4415
|
+
* @secure
|
|
4416
|
+
* @response `200` OK
|
|
4417
|
+
*/
|
|
4418
|
+
getResourceReferences(name) {
|
|
4419
|
+
return this.http.get(`/layers/${name}/references`).json();
|
|
4420
|
+
}
|
|
4421
|
+
}
|
|
4422
|
+
|
|
4423
|
+
class Layers extends LayersService {
|
|
4424
|
+
getLayerInfos(layers) {
|
|
4425
|
+
return promiseAllIgnoreErrors(layers.map(layer => this.getLayerInfo(layer)));
|
|
4426
|
+
}
|
|
4427
|
+
getLayersDeps(layers) {
|
|
4428
|
+
return promiseAllIgnoreErrors(layers.map(layer => this.getResourceDependencies(layer)));
|
|
4429
|
+
}
|
|
4430
|
+
findOne(name) {
|
|
4431
|
+
return this.getLayerInfo(name);
|
|
4432
|
+
}
|
|
4433
|
+
findMany(layerNames, projectNames) {
|
|
4434
|
+
return this.getLayersInfo({ layerNames, projectNames });
|
|
4435
|
+
}
|
|
4436
|
+
createLayer(configuration) {
|
|
4437
|
+
return this.publishService(configuration);
|
|
4438
|
+
}
|
|
4439
|
+
updateQueryLayer(configuration) {
|
|
4440
|
+
return this.patchQueryLayerService(configuration.name, configuration);
|
|
4441
|
+
}
|
|
4442
|
+
async remove(name) {
|
|
4443
|
+
await this.deleteResources({ names: [name] });
|
|
4444
|
+
return name;
|
|
4445
|
+
}
|
|
4446
|
+
}
|
|
4447
|
+
function isTileLayerService(layer) {
|
|
4448
|
+
return [exports.LayerServiceType.PostgresTileLayerService, exports.LayerServiceType.RemoteTileLayerService].includes(layer.configuration?.layerType);
|
|
4449
|
+
}
|
|
5689
4450
|
|
|
5690
|
-
|
|
4451
|
+
const RESOURCE_TEMP_WORKSPACE = "temp";
|
|
4452
|
+
exports.ResourceSeparator = void 0;
|
|
4453
|
+
(function (ResourceSeparator) {
|
|
4454
|
+
ResourceSeparator["Server"] = ".";
|
|
4455
|
+
})(exports.ResourceSeparator || (exports.ResourceSeparator = {}));
|
|
4456
|
+
class Names {
|
|
4457
|
+
account;
|
|
4458
|
+
constructor({ account }) {
|
|
4459
|
+
this.account = account;
|
|
4460
|
+
}
|
|
4461
|
+
/** Generates unique identifier */
|
|
4462
|
+
createId() {
|
|
4463
|
+
return generateId();
|
|
4464
|
+
}
|
|
4465
|
+
/** Generates new resource name using for client\server interactions */
|
|
4466
|
+
createResourceName(params = {}) {
|
|
4467
|
+
const workspace = params.workspace ||
|
|
4468
|
+
(this.account.user && this.account.user.namespace) ||
|
|
4469
|
+
"";
|
|
4470
|
+
const name = params.name || this.createId();
|
|
4471
|
+
const separator = params.separator || exports.ResourceSeparator.Server;
|
|
4472
|
+
if (!workspace) {
|
|
4473
|
+
console.warn("Resource should have workspace. Check account api");
|
|
4474
|
+
}
|
|
4475
|
+
return `${workspace}${separator}${name}`;
|
|
4476
|
+
}
|
|
4477
|
+
/** Generates temporary resource name using for client\server interactions */
|
|
4478
|
+
createTempResourceName(params = {}) {
|
|
4479
|
+
return this.createResourceName({
|
|
4480
|
+
workspace: RESOURCE_TEMP_WORKSPACE,
|
|
4481
|
+
...params,
|
|
4482
|
+
});
|
|
4483
|
+
}
|
|
4484
|
+
/** Extract resource information (workspace, name) */
|
|
4485
|
+
extractResource(resourceName) {
|
|
4486
|
+
if (resourceName) {
|
|
4487
|
+
if (resourceName.includes(exports.ResourceSeparator.Server)) {
|
|
4488
|
+
const matches = resourceName.split(exports.ResourceSeparator.Server);
|
|
4489
|
+
const name = matches.pop();
|
|
4490
|
+
const workspace = matches.join(exports.ResourceSeparator.Server);
|
|
4491
|
+
return { workspace, name };
|
|
4492
|
+
}
|
|
4493
|
+
}
|
|
4494
|
+
return {
|
|
4495
|
+
name: "",
|
|
4496
|
+
workspace: "",
|
|
4497
|
+
};
|
|
4498
|
+
}
|
|
4499
|
+
/** Extract resource name */
|
|
4500
|
+
extractResourceName(resourceName) {
|
|
4501
|
+
return this.extractResource(resourceName).name || resourceName || "";
|
|
4502
|
+
}
|
|
4503
|
+
/** Extract resource workspace */
|
|
4504
|
+
extractResourceWorkspace(resourceName) {
|
|
4505
|
+
return this.extractResource(resourceName).workspace || "";
|
|
4506
|
+
}
|
|
4507
|
+
}
|
|
5691
4508
|
|
|
5692
|
-
|
|
5693
|
-
*/
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
ResourceTypeFilter["DataSource"] = "DataSource";
|
|
5704
|
-
ResourceTypeFilter["TaskPrototype"] = "TaskPrototype";
|
|
5705
|
-
ResourceTypeFilter["Directory"] = "Directory";
|
|
5706
|
-
})(exports.ResourceTypeFilter || (exports.ResourceTypeFilter = {}));
|
|
5707
|
-
exports.ResourceTypeLink = void 0;
|
|
5708
|
-
(function (ResourceTypeLink) {
|
|
5709
|
-
ResourceTypeLink["Table"] = "tables";
|
|
5710
|
-
ResourceTypeLink["Layer"] = "layers";
|
|
5711
|
-
ResourceTypeLink["Project"] = "projects";
|
|
5712
|
-
})(exports.ResourceTypeLink || (exports.ResourceTypeLink = {}));
|
|
4509
|
+
/* eslint-disable */
|
|
4510
|
+
/* tslint:disable */
|
|
4511
|
+
/*
|
|
4512
|
+
* ---------------------------------------------------------------
|
|
4513
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
4514
|
+
* ## ##
|
|
4515
|
+
* ## AUTHOR: acacode ##
|
|
4516
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
4517
|
+
* ---------------------------------------------------------------
|
|
4518
|
+
*/
|
|
4519
|
+
// @ts-nocheck
|
|
5713
4520
|
/**
|
|
5714
|
-
*
|
|
4521
|
+
* @title Spatial Processing Core API
|
|
4522
|
+
* @version 1.5.1.0
|
|
4523
|
+
* @baseUrl /sp
|
|
4524
|
+
*/
|
|
4525
|
+
class NotificationService extends Service {
|
|
4526
|
+
/**
|
|
4527
|
+
* No description
|
|
4528
|
+
*
|
|
4529
|
+
* @tags NotificationService
|
|
4530
|
+
* @name GetSubscriptionList
|
|
4531
|
+
* @operationId NotificationServiceController_GetSubscriptionList
|
|
4532
|
+
* @summary Returns a list of notification tags that the current session is subscribed to.
|
|
4533
|
+
* @request GET:/notifications/subscribes
|
|
4534
|
+
* @secure
|
|
4535
|
+
* @response `200` OK
|
|
4536
|
+
*/
|
|
4537
|
+
getSubscriptionList() {
|
|
4538
|
+
return this.http.get(`/notifications/subscribes`).json();
|
|
4539
|
+
}
|
|
4540
|
+
/**
|
|
4541
|
+
* No description
|
|
4542
|
+
*
|
|
4543
|
+
* @tags NotificationService
|
|
4544
|
+
* @name SubscribeOperation
|
|
4545
|
+
* @operationId NotificationServiceController_SubscribeOperation
|
|
4546
|
+
* @summary Subscribe current session by subscribe tag. A subscribed session will receive all notifications added for the specified tag.
|
|
4547
|
+
* @request POST:/notifications/subscribes
|
|
4548
|
+
* @secure
|
|
4549
|
+
* @response `200` OK
|
|
4550
|
+
*/
|
|
4551
|
+
subscribeOperation(query) {
|
|
4552
|
+
return this.http.post(`/notifications/subscribes`, null, query).then(() => { });
|
|
4553
|
+
}
|
|
4554
|
+
/**
|
|
4555
|
+
* No description
|
|
4556
|
+
*
|
|
4557
|
+
* @tags NotificationService
|
|
4558
|
+
* @name UnsubscribeOperation
|
|
4559
|
+
* @operationId NotificationServiceController_UnsubscribeOperation
|
|
4560
|
+
* @summary Unsubscribe from receiving notifications that come for the specified tag.
|
|
4561
|
+
* @request DELETE:/notifications/subscribes
|
|
4562
|
+
* @secure
|
|
4563
|
+
* @response `200` OK
|
|
4564
|
+
*/
|
|
4565
|
+
unsubscribeOperation(query) {
|
|
4566
|
+
return this.http.delete(`/notifications/subscribes`, null, query).then(() => { });
|
|
4567
|
+
}
|
|
4568
|
+
/**
|
|
4569
|
+
* No description
|
|
4570
|
+
*
|
|
4571
|
+
* @tags NotificationService
|
|
4572
|
+
* @name SubscribeListOperation
|
|
4573
|
+
* @operationId NotificationServiceController_SubscribeListOperation
|
|
4574
|
+
* @summary Subscribe current session by subscribe tags. A subscribed session will receive all notifications added for the specified tags.
|
|
4575
|
+
* @request POST:/notifications/subscribe-list
|
|
4576
|
+
* @secure
|
|
4577
|
+
* @response `200` OK
|
|
4578
|
+
*/
|
|
4579
|
+
subscribeListOperation(data) {
|
|
4580
|
+
return this.http.post(`/notifications/subscribe-list`, data).then(() => { });
|
|
4581
|
+
}
|
|
4582
|
+
/**
|
|
4583
|
+
* No description
|
|
4584
|
+
*
|
|
4585
|
+
* @tags NotificationService
|
|
4586
|
+
* @name UnsubscribeListOperation
|
|
4587
|
+
* @operationId NotificationServiceController_UnsubscribeListOperation
|
|
4588
|
+
* @summary Unsubscribe from receiving notifications that come for the specified tags.
|
|
4589
|
+
* @request POST:/notifications/unsubscribe-list
|
|
4590
|
+
* @secure
|
|
4591
|
+
* @response `200` OK
|
|
4592
|
+
*/
|
|
4593
|
+
unsubscribeListOperation(data) {
|
|
4594
|
+
return this.http.post(`/notifications/unsubscribe-list`, data).then(() => { });
|
|
4595
|
+
}
|
|
4596
|
+
}
|
|
4597
|
+
|
|
4598
|
+
exports.ConnectionStatus = void 0;
|
|
4599
|
+
(function (ConnectionStatus) {
|
|
4600
|
+
ConnectionStatus["Initialized"] = "Initialized";
|
|
4601
|
+
ConnectionStatus["Connected"] = "Connected";
|
|
4602
|
+
ConnectionStatus["Break"] = "Break";
|
|
4603
|
+
ConnectionStatus["Lost"] = "Lost";
|
|
4604
|
+
ConnectionStatus["SessionClosed"] = "SessionClosed";
|
|
4605
|
+
})(exports.ConnectionStatus || (exports.ConnectionStatus = {}));
|
|
4606
|
+
const SUBSCRIPTION_DELAY = 500;
|
|
4607
|
+
const KEEP_ALIVE_INTERVAL = 5 * 1000;
|
|
4608
|
+
class Notification extends NotificationService {
|
|
4609
|
+
api;
|
|
4610
|
+
MAX_WS_RECONNECT_TRIES = 10;
|
|
4611
|
+
emitter;
|
|
4612
|
+
keepAlive = false;
|
|
4613
|
+
ws;
|
|
4614
|
+
wsUrl;
|
|
4615
|
+
reconnectTries = 0;
|
|
4616
|
+
subscriptions = [];
|
|
4617
|
+
keepAliveTimeout;
|
|
4618
|
+
_connectStatus = exports.ConnectionStatus.Initialized;
|
|
4619
|
+
// @ts-ignore
|
|
4620
|
+
get connectStatus() {
|
|
4621
|
+
return this._connectStatus;
|
|
4622
|
+
}
|
|
4623
|
+
// @ts-ignore
|
|
4624
|
+
set connectStatus(connectStatus) {
|
|
4625
|
+
this.emitter.emit("ConnectionStatus" /* NotificationTag.ConnectionStatus */, new NotificationEvent(connectStatus));
|
|
4626
|
+
this._connectStatus = connectStatus;
|
|
4627
|
+
}
|
|
4628
|
+
get currentWs() {
|
|
4629
|
+
return this.ws;
|
|
4630
|
+
}
|
|
4631
|
+
constructor(http, api, keepAlive = false) {
|
|
4632
|
+
super(http);
|
|
4633
|
+
this.api = api;
|
|
4634
|
+
this.emitter = new EventEmitter();
|
|
4635
|
+
this.keepAlive = keepAlive;
|
|
4636
|
+
}
|
|
4637
|
+
on(tag, handler) {
|
|
4638
|
+
this.emitter.on(tag, handler);
|
|
4639
|
+
}
|
|
4640
|
+
off(tag, handler) {
|
|
4641
|
+
this.emitter.off(tag, handler);
|
|
4642
|
+
}
|
|
4643
|
+
async subscribe(tag) {
|
|
4644
|
+
this.subscriptions.push(tag);
|
|
4645
|
+
setTimeout(() => {
|
|
4646
|
+
if (!this.api.isShared && !this.api.isPresentation && this.subscriptions.length) {
|
|
4647
|
+
this.subscribeListOperation(this.subscriptions);
|
|
4648
|
+
}
|
|
4649
|
+
this.subscriptions = [];
|
|
4650
|
+
}, SUBSCRIPTION_DELAY);
|
|
4651
|
+
}
|
|
4652
|
+
async unsubscribe(tag) {
|
|
4653
|
+
const subscriptions = await this.getSubscriptionList();
|
|
4654
|
+
if (subscriptions.includes(tag)) {
|
|
4655
|
+
return this.unsubscribeOperation({ tag });
|
|
4656
|
+
}
|
|
4657
|
+
}
|
|
4658
|
+
connectWs(url) {
|
|
4659
|
+
const urlWithWsScheme = url
|
|
4660
|
+
.replace("http://", "ws://")
|
|
4661
|
+
.replace("https://", "wss://");
|
|
4662
|
+
this.wsUrl = urlWithWsScheme;
|
|
4663
|
+
this.connect();
|
|
4664
|
+
}
|
|
4665
|
+
connect() {
|
|
4666
|
+
if (this.wsUrl) {
|
|
4667
|
+
this.ws = new WebSocket(this.wsUrl);
|
|
4668
|
+
this.ws.onopen = this.onWsConnected;
|
|
4669
|
+
this.ws.onclose = this.onWsClosed;
|
|
4670
|
+
this.ws.onmessage = this.onWsMessage;
|
|
4671
|
+
}
|
|
4672
|
+
else {
|
|
4673
|
+
console.warn("Connection to WebSocket not allowed. wsUrl not provided");
|
|
4674
|
+
}
|
|
4675
|
+
}
|
|
4676
|
+
onWsConnected = () => {
|
|
4677
|
+
this.connectStatus = exports.ConnectionStatus.Connected;
|
|
4678
|
+
if (this.keepAlive) {
|
|
4679
|
+
this.keepAliveTimeout = setInterval(() => {
|
|
4680
|
+
if (this.ws) {
|
|
4681
|
+
this.ws.send(JSON.stringify({ keepAlive: true }));
|
|
4682
|
+
}
|
|
4683
|
+
}, KEEP_ALIVE_INTERVAL);
|
|
4684
|
+
}
|
|
4685
|
+
// TODO: comment for now. it launch endless flow of reconnections
|
|
4686
|
+
// this.reconnectTries = 0;
|
|
4687
|
+
};
|
|
4688
|
+
onWsClosed = (event) => {
|
|
4689
|
+
if (event.code === 4001 /* WsCloseStatusCode.SessionClosed */ ||
|
|
4690
|
+
event.code === 4002 /* WsCloseStatusCode.InvalidSession */) {
|
|
4691
|
+
this.connectStatus = exports.ConnectionStatus.SessionClosed;
|
|
4692
|
+
}
|
|
4693
|
+
else if (this.reconnectTries < this.MAX_WS_RECONNECT_TRIES) {
|
|
4694
|
+
this.connectStatus = exports.ConnectionStatus.Break;
|
|
4695
|
+
this.reconnectTries++;
|
|
4696
|
+
if (this.ws) {
|
|
4697
|
+
this.ws.onopen = null;
|
|
4698
|
+
this.ws.onclose = null;
|
|
4699
|
+
this.ws.onmessage = null;
|
|
4700
|
+
this.ws = void 0;
|
|
4701
|
+
}
|
|
4702
|
+
this.keepAliveTimeout && clearInterval(this.keepAliveTimeout);
|
|
4703
|
+
setTimeout(() => {
|
|
4704
|
+
this.connect();
|
|
4705
|
+
}, 0);
|
|
4706
|
+
}
|
|
4707
|
+
else {
|
|
4708
|
+
this.connectStatus = exports.ConnectionStatus.Lost;
|
|
4709
|
+
}
|
|
4710
|
+
};
|
|
4711
|
+
onWsMessage = (event) => {
|
|
4712
|
+
let message = {};
|
|
4713
|
+
try {
|
|
4714
|
+
message = JSON.parse(event.data);
|
|
4715
|
+
}
|
|
4716
|
+
catch (e) {
|
|
4717
|
+
console.debug("Failed to parse ws message from sp.");
|
|
4718
|
+
// ignore
|
|
4719
|
+
}
|
|
4720
|
+
if (message.type === "notification" && message.data) {
|
|
4721
|
+
const { tag, data } = message.data;
|
|
4722
|
+
tag && this.emitter.emit(tag, new NotificationEvent(data));
|
|
4723
|
+
}
|
|
4724
|
+
};
|
|
4725
|
+
}
|
|
4726
|
+
class NotificationEvent {
|
|
4727
|
+
data;
|
|
4728
|
+
constructor(data) {
|
|
4729
|
+
this.data = data;
|
|
4730
|
+
}
|
|
4731
|
+
}
|
|
5715
4732
|
|
|
5716
|
-
|
|
4733
|
+
class PortalSettings extends ClientSettingsService {
|
|
4734
|
+
config = null;
|
|
4735
|
+
async fetchPortalSettings(query) {
|
|
4736
|
+
this.config = JSON.parse(await this.getConfiguration(query));
|
|
4737
|
+
return this.config;
|
|
4738
|
+
}
|
|
4739
|
+
}
|
|
5717
4740
|
|
|
5718
|
-
|
|
5719
|
-
*/
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
4741
|
+
/* eslint-disable */
|
|
4742
|
+
/* tslint:disable */
|
|
4743
|
+
/*
|
|
4744
|
+
* ---------------------------------------------------------------
|
|
4745
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
4746
|
+
* ## ##
|
|
4747
|
+
* ## AUTHOR: acacode ##
|
|
4748
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
4749
|
+
* ---------------------------------------------------------------
|
|
4750
|
+
*/
|
|
4751
|
+
// @ts-nocheck
|
|
5725
4752
|
/**
|
|
5726
|
-
*
|
|
5727
|
-
|
|
5728
|
-
|
|
4753
|
+
* @title Spatial Processing Core API
|
|
4754
|
+
* @version 1.5.1.0
|
|
4755
|
+
* @baseUrl /sp
|
|
4756
|
+
*/
|
|
4757
|
+
class ProjectsService extends Service {
|
|
4758
|
+
/**
|
|
4759
|
+
* No description
|
|
4760
|
+
*
|
|
4761
|
+
* @tags Projects
|
|
4762
|
+
* @name CreateProject
|
|
4763
|
+
* @operationId ProjectsController_CreateProject
|
|
4764
|
+
* @summary Creates a new project.
|
|
4765
|
+
* @request POST:/projects
|
|
4766
|
+
* @secure
|
|
4767
|
+
* @response `200` OK
|
|
4768
|
+
*/
|
|
4769
|
+
createProject(data) {
|
|
4770
|
+
return this.http.post(`/projects`, data).json();
|
|
4771
|
+
}
|
|
4772
|
+
/**
|
|
4773
|
+
* No description
|
|
4774
|
+
*
|
|
4775
|
+
* @tags Projects
|
|
4776
|
+
* @name DeleteResources
|
|
4777
|
+
* @operationId ProjectsController_DeleteResources
|
|
4778
|
+
* @summary Bulk delete resources.
|
|
4779
|
+
* @request DELETE:/projects
|
|
4780
|
+
* @secure
|
|
4781
|
+
* @response `200` OK
|
|
4782
|
+
*/
|
|
4783
|
+
deleteResources(query) {
|
|
4784
|
+
return this.http.delete(`/projects`, null, query).json();
|
|
4785
|
+
}
|
|
4786
|
+
/**
|
|
4787
|
+
* No description
|
|
4788
|
+
*
|
|
4789
|
+
* @tags Projects
|
|
4790
|
+
* @name UpdateProject
|
|
4791
|
+
* @operationId ProjectsController_UpdateProject
|
|
4792
|
+
* @summary Update table.
|
|
4793
|
+
* @request PATCH:/projects/{name}
|
|
4794
|
+
* @secure
|
|
4795
|
+
* @response `200` OK
|
|
4796
|
+
*/
|
|
4797
|
+
updateProject(name, data) {
|
|
4798
|
+
return this.http.patch(`/projects/${name}`, data).json();
|
|
4799
|
+
}
|
|
4800
|
+
/**
|
|
4801
|
+
* No description
|
|
4802
|
+
*
|
|
4803
|
+
* @tags Projects
|
|
4804
|
+
* @name GetProjectInfo
|
|
4805
|
+
* @operationId ProjectsController_GetProjectInfo
|
|
4806
|
+
* @summary Returns the project and it's content information.
|
|
4807
|
+
* @request GET:/projects/{name}
|
|
4808
|
+
* @secure
|
|
4809
|
+
* @response `200` OK
|
|
4810
|
+
*/
|
|
4811
|
+
getProjectInfo(name) {
|
|
4812
|
+
return this.http.get(`/projects/${name}`).json();
|
|
4813
|
+
}
|
|
4814
|
+
/**
|
|
4815
|
+
* No description
|
|
4816
|
+
*
|
|
4817
|
+
* @tags Projects
|
|
4818
|
+
* @name UpdateProjectV2
|
|
4819
|
+
* @operationId ProjectsController_UpdateProjectV2
|
|
4820
|
+
* @summary Update table.
|
|
4821
|
+
* @request PATCH:/projects/{name}/v2
|
|
4822
|
+
* @secure
|
|
4823
|
+
* @response `200` OK
|
|
4824
|
+
*/
|
|
4825
|
+
updateProjectV2(name, data) {
|
|
4826
|
+
return this.http.patch(`/projects/${name}/v2`, data).json();
|
|
4827
|
+
}
|
|
4828
|
+
/**
|
|
4829
|
+
* No description
|
|
4830
|
+
*
|
|
4831
|
+
* @tags Projects
|
|
4832
|
+
* @name GetProjectsInfo
|
|
4833
|
+
* @operationId ProjectsController_GetProjectsInfoAsync
|
|
4834
|
+
* @summary Returns the projects information.
|
|
4835
|
+
* @request GET:/projects/batchInfo
|
|
4836
|
+
* @secure
|
|
4837
|
+
* @response `200` OK
|
|
4838
|
+
*/
|
|
4839
|
+
getProjectsInfo(query) {
|
|
4840
|
+
return this.http.get(`/projects/batchInfo`, query).json();
|
|
4841
|
+
}
|
|
4842
|
+
/**
|
|
4843
|
+
* No description
|
|
4844
|
+
*
|
|
4845
|
+
* @tags Projects
|
|
4846
|
+
* @name GetProjectEnvelope
|
|
4847
|
+
* @operationId ProjectsController_GetProjectEnvelope
|
|
4848
|
+
* @summary Get project extent.
|
|
4849
|
+
* @request GET:/projects/{name}/extent
|
|
4850
|
+
* @secure
|
|
4851
|
+
* @response `200` OK
|
|
4852
|
+
*/
|
|
4853
|
+
getProjectEnvelope({ name, ...query }) {
|
|
4854
|
+
return this.http.get(`/projects/${name}/extent`, query).json();
|
|
4855
|
+
}
|
|
4856
|
+
/**
|
|
4857
|
+
* No description
|
|
4858
|
+
*
|
|
4859
|
+
* @tags Projects
|
|
4860
|
+
* @name GetProjectLayersExtendedInfo
|
|
4861
|
+
* @operationId ProjectsController_GetProjectLayersExtendedInfo
|
|
4862
|
+
* @summary Gets extended project info with layers info.
|
|
4863
|
+
* @request GET:/projects/{name}/extended-info
|
|
4864
|
+
* @secure
|
|
4865
|
+
* @response `200` OK
|
|
4866
|
+
*/
|
|
4867
|
+
getProjectLayersExtendedInfo(name) {
|
|
4868
|
+
return this.http.get(`/projects/${name}/extended-info`).json();
|
|
4869
|
+
}
|
|
4870
|
+
/**
|
|
4871
|
+
* No description
|
|
4872
|
+
*
|
|
4873
|
+
* @tags Projects
|
|
4874
|
+
* @name GetTilesLayerImage
|
|
4875
|
+
* @operationId ProjectsController_GetTilesLayerImage
|
|
4876
|
+
* @summary Render tile.
|
|
4877
|
+
* @request GET:/projects/{name}/tile/{z}/{x}/{y}
|
|
4878
|
+
* @secure
|
|
4879
|
+
* @response `200` OK
|
|
4880
|
+
*/
|
|
4881
|
+
getTilesLayerImage(name, x, y, z) {
|
|
4882
|
+
return this.http.createUrl(`/projects/${name}/tile/{z}/{x}/{y}`);
|
|
4883
|
+
}
|
|
4884
|
+
/**
|
|
4885
|
+
* No description
|
|
4886
|
+
*
|
|
4887
|
+
* @tags Projects
|
|
4888
|
+
* @name GetTilesLayerImageWithFormat
|
|
4889
|
+
* @operationId ProjectsController_GetTilesLayerImageWithFormat
|
|
4890
|
+
* @summary Render tile.
|
|
4891
|
+
* @request GET:/projects/{name}/tile/{z}/{x}/{y}.{format}
|
|
4892
|
+
* @secure
|
|
4893
|
+
* @response `200` OK
|
|
4894
|
+
*/
|
|
4895
|
+
getTilesLayerImageWithFormat(name, x, y, z, format) {
|
|
4896
|
+
return this.http.createUrl(`/projects/${name}/tile/{z}/{x}/{y}.${format}`);
|
|
4897
|
+
}
|
|
4898
|
+
/**
|
|
4899
|
+
* No description
|
|
4900
|
+
*
|
|
4901
|
+
* @tags Projects
|
|
4902
|
+
* @name GetTilesLayerImageWithFormatAndDpi
|
|
4903
|
+
* @operationId ProjectsController_GetTilesLayerImageWithFormatAndDpi
|
|
4904
|
+
* @summary Render tile.
|
|
4905
|
+
* @request GET:/projects/{name}/tile/{z}/{x}/{y}@{dpi}x.{format}
|
|
4906
|
+
* @secure
|
|
4907
|
+
* @response `200` OK
|
|
4908
|
+
*/
|
|
4909
|
+
getTilesLayerImageWithFormatAndDpi(name, x, y, z, dpi, format) {
|
|
4910
|
+
return this.http.createUrl(`/projects/${name}/tile/{z}/{x}/{y}@${dpi}x.${format}`);
|
|
4911
|
+
}
|
|
4912
|
+
/**
|
|
4913
|
+
* No description
|
|
4914
|
+
*
|
|
4915
|
+
* @tags Projects
|
|
4916
|
+
* @name IsExists
|
|
4917
|
+
* @operationId ProjectsController_IsExistsAsync
|
|
4918
|
+
* @summary Check is resource exists.
|
|
4919
|
+
* @request GET:/projects/{name}/exists
|
|
4920
|
+
* @secure
|
|
4921
|
+
* @response `200` OK
|
|
4922
|
+
*/
|
|
4923
|
+
isExists(name) {
|
|
4924
|
+
return this.http.get(`/projects/${name}/exists`).then(() => { });
|
|
4925
|
+
}
|
|
4926
|
+
/**
|
|
4927
|
+
* No description
|
|
4928
|
+
*
|
|
4929
|
+
* @tags Projects
|
|
4930
|
+
* @name GetResourceDependencies
|
|
4931
|
+
* @operationId ProjectsController_GetResourceDependencies
|
|
4932
|
+
* @summary Get resource dependencies.
|
|
4933
|
+
* @request GET:/projects/{name}/dependencies
|
|
4934
|
+
* @secure
|
|
4935
|
+
* @response `200` OK
|
|
4936
|
+
*/
|
|
4937
|
+
getResourceDependencies(name) {
|
|
4938
|
+
return this.http.get(`/projects/${name}/dependencies`).json();
|
|
4939
|
+
}
|
|
4940
|
+
/**
|
|
4941
|
+
* No description
|
|
4942
|
+
*
|
|
4943
|
+
* @tags Projects
|
|
4944
|
+
* @name GetResourceReferences
|
|
4945
|
+
* @operationId ProjectsController_GetResourceReferences
|
|
4946
|
+
* @summary Returns the resource dependency information.
|
|
4947
|
+
* @request GET:/projects/{name}/references
|
|
4948
|
+
* @secure
|
|
4949
|
+
* @response `200` OK
|
|
4950
|
+
*/
|
|
4951
|
+
getResourceReferences(name) {
|
|
4952
|
+
return this.http.get(`/projects/${name}/references`).json();
|
|
4953
|
+
}
|
|
4954
|
+
}
|
|
5729
4955
|
|
|
5730
|
-
|
|
4956
|
+
class Projects extends ProjectsService {
|
|
4957
|
+
getProjectInfos(projects) {
|
|
4958
|
+
return promiseAllIgnoreErrors(projects.map(project => this.getProjectInfo(project)));
|
|
4959
|
+
}
|
|
4960
|
+
getProjectsDeps(proejcts) {
|
|
4961
|
+
return promiseAllIgnoreErrors(proejcts.map(project => this.getResourceDependencies(project)));
|
|
4962
|
+
}
|
|
4963
|
+
findOne(name) {
|
|
4964
|
+
return this.getProjectInfo(name);
|
|
4965
|
+
}
|
|
4966
|
+
create(resource) {
|
|
4967
|
+
return this.createProject(resource);
|
|
4968
|
+
}
|
|
4969
|
+
update(resource) {
|
|
4970
|
+
return this.updateProject(resource.name, resource);
|
|
4971
|
+
}
|
|
4972
|
+
async remove(name) {
|
|
4973
|
+
await this.deleteResources({ names: [name] });
|
|
4974
|
+
return name;
|
|
4975
|
+
}
|
|
4976
|
+
}
|
|
4977
|
+
function isProjectContentItems(v) {
|
|
4978
|
+
return v !== null && v !== undefined;
|
|
4979
|
+
}
|
|
5731
4980
|
|
|
5732
|
-
|
|
5733
|
-
*/
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
4981
|
+
/* eslint-disable */
|
|
4982
|
+
/* tslint:disable */
|
|
4983
|
+
/*
|
|
4984
|
+
* ---------------------------------------------------------------
|
|
4985
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
4986
|
+
* ## ##
|
|
4987
|
+
* ## AUTHOR: acacode ##
|
|
4988
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
4989
|
+
* ---------------------------------------------------------------
|
|
4990
|
+
*/
|
|
4991
|
+
// @ts-nocheck
|
|
5740
4992
|
/**
|
|
5741
|
-
*
|
|
5742
|
-
|
|
5743
|
-
|
|
4993
|
+
* @title Spatial Processing Core API
|
|
4994
|
+
* @version 1.5.1.0
|
|
4995
|
+
* @baseUrl /sp
|
|
4996
|
+
*/
|
|
4997
|
+
class RemoteTaskManagerService extends Service {
|
|
4998
|
+
/**
|
|
4999
|
+
* No description
|
|
5000
|
+
*
|
|
5001
|
+
* @tags RemoteTaskManager
|
|
5002
|
+
* @name Get
|
|
5003
|
+
* @operationId RemoteTaskManagerController_Get
|
|
5004
|
+
* @summary Shows SubTask in Task.
|
|
5005
|
+
* @request GET:/scheduler/task/{id}/subtasks
|
|
5006
|
+
* @secure
|
|
5007
|
+
* @response `200` OK
|
|
5008
|
+
*/
|
|
5009
|
+
get(id) {
|
|
5010
|
+
return this.http.get(`/scheduler/task/${id}/subtasks`).json();
|
|
5011
|
+
}
|
|
5012
|
+
/**
|
|
5013
|
+
* No description
|
|
5014
|
+
*
|
|
5015
|
+
* @tags RemoteTaskManager
|
|
5016
|
+
* @name Stop
|
|
5017
|
+
* @operationId RemoteTaskManagerController_Stop
|
|
5018
|
+
* @summary Stop the task.
|
|
5019
|
+
* @request POST:/scheduler/task/{id}/stop
|
|
5020
|
+
* @secure
|
|
5021
|
+
* @response `200` OK
|
|
5022
|
+
*/
|
|
5023
|
+
stop(id) {
|
|
5024
|
+
return this.http.post(`/scheduler/task/${id}/stop`, null).text();
|
|
5025
|
+
}
|
|
5026
|
+
/**
|
|
5027
|
+
* No description
|
|
5028
|
+
*
|
|
5029
|
+
* @tags RemoteTaskManager
|
|
5030
|
+
* @name CreateTaskPrototype
|
|
5031
|
+
* @operationId RemoteTaskManagerController_CreateTaskPrototype
|
|
5032
|
+
* @summary Creates TaskPrototype.
|
|
5033
|
+
* @request POST:/scheduler
|
|
5034
|
+
* @secure
|
|
5035
|
+
* @response `200` OK
|
|
5036
|
+
*/
|
|
5037
|
+
createTaskPrototype(data) {
|
|
5038
|
+
return this.http.post(`/scheduler`, data).text();
|
|
5039
|
+
}
|
|
5040
|
+
/**
|
|
5041
|
+
* No description
|
|
5042
|
+
*
|
|
5043
|
+
* @tags RemoteTaskManager
|
|
5044
|
+
* @name GetTaskPrototypes
|
|
5045
|
+
* @operationId RemoteTaskManagerController_GetTaskPrototypes
|
|
5046
|
+
* @summary Show TaskPrototypes for user.
|
|
5047
|
+
* @request GET:/scheduler
|
|
5048
|
+
* @secure
|
|
5049
|
+
* @response `200` OK
|
|
5050
|
+
*/
|
|
5051
|
+
getTaskPrototypes(query) {
|
|
5052
|
+
return this.http.get(`/scheduler`, query).json();
|
|
5053
|
+
}
|
|
5054
|
+
/**
|
|
5055
|
+
* No description
|
|
5056
|
+
*
|
|
5057
|
+
* @tags RemoteTaskManager
|
|
5058
|
+
* @name UpdateTaskPrototype
|
|
5059
|
+
* @operationId RemoteTaskManagerController_UpdateTaskPrototype
|
|
5060
|
+
* @summary Updates task prototype.
|
|
5061
|
+
* @request PUT:/scheduler/{id}
|
|
5062
|
+
* @secure
|
|
5063
|
+
* @response `200` OK
|
|
5064
|
+
*/
|
|
5065
|
+
updateTaskPrototype(id, data) {
|
|
5066
|
+
return this.http.put(`/scheduler/${id}`, data).text();
|
|
5067
|
+
}
|
|
5068
|
+
/**
|
|
5069
|
+
* No description
|
|
5070
|
+
*
|
|
5071
|
+
* @tags RemoteTaskManager
|
|
5072
|
+
* @name Delete
|
|
5073
|
+
* @operationId RemoteTaskManagerController_Delete
|
|
5074
|
+
* @summary Delete task prototype.
|
|
5075
|
+
* @request DELETE:/scheduler/{id}
|
|
5076
|
+
* @secure
|
|
5077
|
+
* @response `200` OK
|
|
5078
|
+
*/
|
|
5079
|
+
delete(id) {
|
|
5080
|
+
return this.http.delete(`/scheduler/${id}`, null).text();
|
|
5081
|
+
}
|
|
5082
|
+
/**
|
|
5083
|
+
* No description
|
|
5084
|
+
*
|
|
5085
|
+
* @tags RemoteTaskManager
|
|
5086
|
+
* @name SetEnable
|
|
5087
|
+
* @operationId RemoteTaskManagerController_SetEnable
|
|
5088
|
+
* @summary Enables task prototype.
|
|
5089
|
+
* @request POST:/scheduler/{id}/enable/{enable}
|
|
5090
|
+
* @secure
|
|
5091
|
+
* @response `200` OK
|
|
5092
|
+
*/
|
|
5093
|
+
setEnable(id, enable) {
|
|
5094
|
+
return this.http.post(`/scheduler/${id}/enable/${enable}`, null).text();
|
|
5095
|
+
}
|
|
5096
|
+
/**
|
|
5097
|
+
* No description
|
|
5098
|
+
*
|
|
5099
|
+
* @tags RemoteTaskManager
|
|
5100
|
+
* @name GetTasksForPrototype
|
|
5101
|
+
* @operationId RemoteTaskManagerController_GetTasksForPrototype
|
|
5102
|
+
* @summary Shows Tasks that created for TaskPrototype.
|
|
5103
|
+
* @request GET:/scheduler/{id}/tasks
|
|
5104
|
+
* @secure
|
|
5105
|
+
* @response `200` OK
|
|
5106
|
+
*/
|
|
5107
|
+
getTasksForPrototype({ id, ...query }) {
|
|
5108
|
+
return this.http.get(`/scheduler/${id}/tasks`, query).json();
|
|
5109
|
+
}
|
|
5110
|
+
/**
|
|
5111
|
+
* No description
|
|
5112
|
+
*
|
|
5113
|
+
* @tags RemoteTaskManager
|
|
5114
|
+
* @name StartTask
|
|
5115
|
+
* @operationId RemoteTaskManagerController_StartTask
|
|
5116
|
+
* @summary Starts new Task for TaskPrototype with task id definition.
|
|
5117
|
+
* @request POST:/scheduler/{id}/start/{taskId}
|
|
5118
|
+
* @secure
|
|
5119
|
+
* @response `200` OK
|
|
5120
|
+
*/
|
|
5121
|
+
startTask(id, taskId) {
|
|
5122
|
+
return this.http.post(`/scheduler/${id}/start/${taskId}`, null).json();
|
|
5123
|
+
}
|
|
5124
|
+
/**
|
|
5125
|
+
* No description
|
|
5126
|
+
*
|
|
5127
|
+
* @tags RemoteTaskManager
|
|
5128
|
+
* @name StartTask1
|
|
5129
|
+
* @operationId RemoteTaskManagerController_StartTask_1
|
|
5130
|
+
* @summary Starts new Task for TaskPrototype .
|
|
5131
|
+
* @request POST:/scheduler/{id}/start
|
|
5132
|
+
* @secure
|
|
5133
|
+
* @response `200` OK
|
|
5134
|
+
*/
|
|
5135
|
+
startTask1(id) {
|
|
5136
|
+
return this.http.post(`/scheduler/${id}/start`, null).json();
|
|
5137
|
+
}
|
|
5138
|
+
/**
|
|
5139
|
+
* No description
|
|
5140
|
+
*
|
|
5141
|
+
* @tags RemoteTaskManager
|
|
5142
|
+
* @name GetTaskResource
|
|
5143
|
+
* @operationId RemoteTaskManagerController_GetTaskResource
|
|
5144
|
+
* @summary Shows SubTask in Task.
|
|
5145
|
+
* @request GET:/scheduler/taskresource/{id}
|
|
5146
|
+
* @secure
|
|
5147
|
+
* @response `200` OK
|
|
5148
|
+
*/
|
|
5149
|
+
getTaskResource({ id, ...query }) {
|
|
5150
|
+
return this.http.get(`/scheduler/taskresource/${id}`, query).json();
|
|
5151
|
+
}
|
|
5152
|
+
/**
|
|
5153
|
+
* No description
|
|
5154
|
+
*
|
|
5155
|
+
* @tags RemoteTaskManager
|
|
5156
|
+
* @name UpdatePythonTaskResource
|
|
5157
|
+
* @operationId RemoteTaskManagerController_UpdatePythonTaskResource
|
|
5158
|
+
* @summary Update task resource.
|
|
5159
|
+
* @request PATCH:/scheduler/taskresource/{id}
|
|
5160
|
+
* @secure
|
|
5161
|
+
* @response `200` OK
|
|
5162
|
+
*/
|
|
5163
|
+
updatePythonTaskResource(id, data) {
|
|
5164
|
+
return this.http.patch(`/scheduler/taskresource/${id}`, data).then(() => { });
|
|
5165
|
+
}
|
|
5166
|
+
/**
|
|
5167
|
+
* No description
|
|
5168
|
+
*
|
|
5169
|
+
* @tags RemoteTaskManager
|
|
5170
|
+
* @name CreateTaskResource
|
|
5171
|
+
* @operationId RemoteTaskManagerController_CreateTaskResource
|
|
5172
|
+
* @summary Create task resource.
|
|
5173
|
+
* @request POST:/scheduler/taskresource
|
|
5174
|
+
* @secure
|
|
5175
|
+
* @response `200` OK
|
|
5176
|
+
*/
|
|
5177
|
+
createTaskResource(data) {
|
|
5178
|
+
return this.http.post(`/scheduler/taskresource`, data).text();
|
|
5179
|
+
}
|
|
5180
|
+
/**
|
|
5181
|
+
* No description
|
|
5182
|
+
*
|
|
5183
|
+
* @tags RemoteTaskManager
|
|
5184
|
+
* @name Get1
|
|
5185
|
+
* @operationId RemoteTaskManagerController_Get_1
|
|
5186
|
+
* @summary Shows active workers.
|
|
5187
|
+
* @request GET:/scheduler/worker
|
|
5188
|
+
* @secure
|
|
5189
|
+
* @response `200` OK
|
|
5190
|
+
*/
|
|
5191
|
+
get1() {
|
|
5192
|
+
return this.http.get(`/scheduler/worker`).json();
|
|
5193
|
+
}
|
|
5194
|
+
/**
|
|
5195
|
+
* No description
|
|
5196
|
+
*
|
|
5197
|
+
* @tags RemoteTaskManager
|
|
5198
|
+
* @name Post
|
|
5199
|
+
* @operationId RemoteTaskManagerController_Post
|
|
5200
|
+
* @summary Run method by HttpPost.
|
|
5201
|
+
* @request POST:/scheduler/worker
|
|
5202
|
+
* @secure
|
|
5203
|
+
* @response `200` OK
|
|
5204
|
+
*/
|
|
5205
|
+
post(data) {
|
|
5206
|
+
return this.http.post(`/scheduler/worker`, data).json();
|
|
5207
|
+
}
|
|
5208
|
+
/**
|
|
5209
|
+
* No description
|
|
5210
|
+
*
|
|
5211
|
+
* @tags RemoteTaskManager
|
|
5212
|
+
* @name GetWorker
|
|
5213
|
+
* @operationId RemoteTaskManagerController_GetWorker
|
|
5214
|
+
* @summary Get worker info by type.
|
|
5215
|
+
* @request GET:/scheduler/worker/{type}
|
|
5216
|
+
* @secure
|
|
5217
|
+
* @response `200` OK
|
|
5218
|
+
*/
|
|
5219
|
+
getWorker(type) {
|
|
5220
|
+
return this.http.get(`/scheduler/worker/${type}`).json();
|
|
5221
|
+
}
|
|
5222
|
+
}
|
|
5744
5223
|
|
|
5745
|
-
|
|
5224
|
+
class RemoteTaskManager extends RemoteTaskManagerService {
|
|
5225
|
+
}
|
|
5746
5226
|
|
|
5747
|
-
|
|
5227
|
+
exports.DependencyType = void 0;
|
|
5228
|
+
(function (DependencyType) {
|
|
5229
|
+
DependencyType["Layer"] = "Layer";
|
|
5230
|
+
DependencyType["Table"] = "Table";
|
|
5231
|
+
DependencyType["Project"] = "Project";
|
|
5232
|
+
})(exports.DependencyType || (exports.DependencyType = {}));
|
|
5233
|
+
class Resources {
|
|
5234
|
+
projects;
|
|
5235
|
+
layers;
|
|
5236
|
+
tables;
|
|
5237
|
+
constructor(projects, layers, tables) {
|
|
5238
|
+
this.projects = projects;
|
|
5239
|
+
this.layers = layers;
|
|
5240
|
+
this.tables = tables;
|
|
5241
|
+
}
|
|
5242
|
+
async getProjectInfosWithDeps(projects) {
|
|
5243
|
+
const projectInfos = await this.projects.getProjectInfos(projects);
|
|
5244
|
+
const projectDeps = await this.projects.getProjectsDeps(projects);
|
|
5245
|
+
const { layers, tables } = await this.getDependencies(projectDeps, true, true);
|
|
5246
|
+
return {
|
|
5247
|
+
projects: projectInfos,
|
|
5248
|
+
deps: {
|
|
5249
|
+
layers,
|
|
5250
|
+
tables,
|
|
5251
|
+
},
|
|
5252
|
+
};
|
|
5253
|
+
}
|
|
5254
|
+
async getLayerInfosWithDeps(layers) {
|
|
5255
|
+
const layerInfos = await this.layers.getLayerInfos(layers);
|
|
5256
|
+
const layersDeps = await this.layers.getLayersDeps(layers);
|
|
5257
|
+
const { tables } = await this.getDependencies(layersDeps, false, true);
|
|
5258
|
+
return {
|
|
5259
|
+
layers: layerInfos,
|
|
5260
|
+
deps: {
|
|
5261
|
+
tables,
|
|
5262
|
+
},
|
|
5263
|
+
};
|
|
5264
|
+
}
|
|
5265
|
+
async getDependencies(resourceDeps, pickLayers, pickTables) {
|
|
5266
|
+
const { tables, layers } = resourceDeps.reduce((acc, layerDep) => {
|
|
5267
|
+
const deps = layerDep.dependencies || [];
|
|
5268
|
+
if (pickLayers) {
|
|
5269
|
+
const layerNames = this.getDependentNames(deps, exports.DependencyType.Layer);
|
|
5270
|
+
acc.layers.push(...layerNames);
|
|
5271
|
+
}
|
|
5272
|
+
if (pickTables) {
|
|
5273
|
+
const tableNames = this.getDependentNames(deps, exports.DependencyType.Table);
|
|
5274
|
+
acc.tables.push(...tableNames);
|
|
5275
|
+
}
|
|
5276
|
+
return acc;
|
|
5277
|
+
}, {
|
|
5278
|
+
tables: [],
|
|
5279
|
+
layers: [],
|
|
5280
|
+
});
|
|
5281
|
+
return {
|
|
5282
|
+
tables: await this.tables.getTableInfos(tables.filter(unique)),
|
|
5283
|
+
layers: await this.layers.getLayerInfos(layers.filter(unique)),
|
|
5284
|
+
};
|
|
5285
|
+
}
|
|
5286
|
+
getDependentNames(deps, depType) {
|
|
5287
|
+
return deps
|
|
5288
|
+
.filter(({ type }) => type === depType)
|
|
5289
|
+
.map(({ name }) => name)
|
|
5290
|
+
.filter(isString);
|
|
5291
|
+
}
|
|
5292
|
+
}
|
|
5748
5293
|
|
|
5749
|
-
|
|
5750
|
-
*/
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5294
|
+
/* eslint-disable */
|
|
5295
|
+
/* tslint:disable */
|
|
5296
|
+
/*
|
|
5297
|
+
* ---------------------------------------------------------------
|
|
5298
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
5299
|
+
* ## ##
|
|
5300
|
+
* ## AUTHOR: acacode ##
|
|
5301
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
5302
|
+
* ---------------------------------------------------------------
|
|
5303
|
+
*/
|
|
5304
|
+
// @ts-nocheck
|
|
5758
5305
|
/**
|
|
5759
|
-
*
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5306
|
+
* @title Spatial Processing Core API
|
|
5307
|
+
* @version 1.5.1.0
|
|
5308
|
+
* @baseUrl /sp
|
|
5309
|
+
*/
|
|
5310
|
+
class SecurityService extends Service {
|
|
5311
|
+
/**
|
|
5312
|
+
* @description This method requires superuser permission.
|
|
5313
|
+
*
|
|
5314
|
+
* @tags SecurityService
|
|
5315
|
+
* @name SetPolicies
|
|
5316
|
+
* @operationId SecurityServiceController_SetPolicies
|
|
5317
|
+
* @summary Adds the given policies to the server policy list. If a policy with the same type and user role already exists, it replaces the existing policy with the new one.
|
|
5318
|
+
* @request POST:/bulk/security/policies
|
|
5319
|
+
* @secure
|
|
5320
|
+
* @response `200` OK
|
|
5321
|
+
*/
|
|
5322
|
+
setPolicies(data) {
|
|
5323
|
+
return this.http.post(`/bulk/security/policies`, data).then(() => { });
|
|
5324
|
+
}
|
|
5325
|
+
/**
|
|
5326
|
+
* No description
|
|
5327
|
+
*
|
|
5328
|
+
* @tags SecurityService
|
|
5329
|
+
* @name FindUserByNameByRoles
|
|
5330
|
+
* @operationId SecurityServiceController_FindUserByNameByRoles
|
|
5331
|
+
* @summary Get users list with given roles list.
|
|
5332
|
+
* @request GET:/security/findUsersWithRoles
|
|
5333
|
+
* @secure
|
|
5334
|
+
* @response `200` OK
|
|
5335
|
+
*/
|
|
5336
|
+
findUserByNameByRoles(query) {
|
|
5337
|
+
return this.http.get(`/security/findUsersWithRoles`, query).json();
|
|
5338
|
+
}
|
|
5339
|
+
/**
|
|
5340
|
+
* No description
|
|
5341
|
+
*
|
|
5342
|
+
* @tags SecurityService
|
|
5343
|
+
* @name GetUsersAndRoles
|
|
5344
|
+
* @operationId SecurityServiceController_GetUsersAndRoles
|
|
5345
|
+
* @summary Get users and roles list by filter.
|
|
5346
|
+
* @request GET:/security/usersandroles
|
|
5347
|
+
* @secure
|
|
5348
|
+
* @response `200` OK
|
|
5349
|
+
*/
|
|
5350
|
+
getUsersAndRoles(query) {
|
|
5351
|
+
return this.http.get(`/security/usersandroles`, query).json();
|
|
5352
|
+
}
|
|
5353
|
+
/**
|
|
5354
|
+
* No description
|
|
5355
|
+
*
|
|
5356
|
+
* @tags SecurityService
|
|
5357
|
+
* @name FindUserByName
|
|
5358
|
+
* @operationId SecurityServiceController_FindUserByName
|
|
5359
|
+
* @summary Returns the list of users found by username.
|
|
5360
|
+
* @request GET:/security/users
|
|
5361
|
+
* @secure
|
|
5362
|
+
* @response `200` OK
|
|
5363
|
+
*/
|
|
5364
|
+
findUserByName(query) {
|
|
5365
|
+
return this.http.get(`/security/users`, query).json();
|
|
5366
|
+
}
|
|
5367
|
+
/**
|
|
5368
|
+
* @description This method requires superuser permission.
|
|
5369
|
+
*
|
|
5370
|
+
* @tags SecurityService
|
|
5371
|
+
* @name GetPolicyList
|
|
5372
|
+
* @operationId SecurityServiceController_GetPolicyList
|
|
5373
|
+
* @summary Returns the list of server authorization policies of the given type.
|
|
5374
|
+
* @request GET:/security/policies
|
|
5375
|
+
* @secure
|
|
5376
|
+
* @response `200` OK
|
|
5377
|
+
*/
|
|
5378
|
+
getPolicyList(query) {
|
|
5379
|
+
return this.http.get(`/security/policies`, query).json();
|
|
5380
|
+
}
|
|
5381
|
+
/**
|
|
5382
|
+
* @description This method requires superuser permission.
|
|
5383
|
+
*
|
|
5384
|
+
* @tags SecurityService
|
|
5385
|
+
* @name RemovePolicy
|
|
5386
|
+
* @operationId SecurityServiceController_RemovePolicy
|
|
5387
|
+
* @summary Removes the policy of the given type with the given role. If no such policy is found, nothing is done, and OK response is returned.
|
|
5388
|
+
* @request DELETE:/security/policies
|
|
5389
|
+
* @secure
|
|
5390
|
+
* @response `200` OK
|
|
5391
|
+
*/
|
|
5392
|
+
removePolicy(query) {
|
|
5393
|
+
return this.http.delete(`/security/policies`, null, query).then(() => { });
|
|
5394
|
+
}
|
|
5395
|
+
/**
|
|
5396
|
+
* @description This method requires superuser permission.
|
|
5397
|
+
*
|
|
5398
|
+
* @tags SecurityService
|
|
5399
|
+
* @name SetPolicy
|
|
5400
|
+
* @operationId SecurityServiceController_SetPolicy
|
|
5401
|
+
* @summary Adds the given policy to the server policy list. If a policy with the same type and user role already exists, it replaces the existing policy with the new one.
|
|
5402
|
+
* @request POST:/security/policies
|
|
5403
|
+
* @secure
|
|
5404
|
+
* @response `200` OK
|
|
5405
|
+
*/
|
|
5406
|
+
setPolicy(data) {
|
|
5407
|
+
return this.http.post(`/security/policies`, data).then(() => { });
|
|
5408
|
+
}
|
|
5409
|
+
/**
|
|
5410
|
+
* No description
|
|
5411
|
+
*
|
|
5412
|
+
* @tags SecurityService
|
|
5413
|
+
* @name CheckLimitsForUser
|
|
5414
|
+
* @operationId SecurityServiceController_CheckLimitsForUser
|
|
5415
|
+
* @summary Get limits of workspace.
|
|
5416
|
+
* @request GET:/security/limits/user
|
|
5417
|
+
* @secure
|
|
5418
|
+
* @response `200` OK
|
|
5419
|
+
*/
|
|
5420
|
+
checkLimitsForUser() {
|
|
5421
|
+
return this.http.get(`/security/limits/user`).json();
|
|
5422
|
+
}
|
|
5423
|
+
/**
|
|
5424
|
+
* No description
|
|
5425
|
+
*
|
|
5426
|
+
* @tags SecurityService
|
|
5427
|
+
* @name CheckLimitsForUser1
|
|
5428
|
+
* @operationId SecurityServiceController_CheckLimitsForUser_1
|
|
5429
|
+
* @summary Get limits of workspace.
|
|
5430
|
+
* @request GET:/security/limits/user/{userName}
|
|
5431
|
+
* @secure
|
|
5432
|
+
* @response `200` OK
|
|
5433
|
+
*/
|
|
5434
|
+
checkLimitsForUser1(userName) {
|
|
5435
|
+
return this.http.get(`/security/limits/user/${userName}`).json();
|
|
5436
|
+
}
|
|
5437
|
+
/**
|
|
5438
|
+
* No description
|
|
5439
|
+
*
|
|
5440
|
+
* @tags SecurityService
|
|
5441
|
+
* @name CheckLimitsForRole
|
|
5442
|
+
* @operationId SecurityServiceController_CheckLimitsForRole
|
|
5443
|
+
* @summary Get limits of workspace.
|
|
5444
|
+
* @request GET:/security/limits/role/{roleName}
|
|
5445
|
+
* @secure
|
|
5446
|
+
* @response `200` OK
|
|
5447
|
+
*/
|
|
5448
|
+
checkLimitsForRole(roleName) {
|
|
5449
|
+
return this.http.get(`/security/limits/role/${roleName}`).json();
|
|
5450
|
+
}
|
|
5451
|
+
/**
|
|
5452
|
+
* No description
|
|
5453
|
+
*
|
|
5454
|
+
* @tags SecurityService
|
|
5455
|
+
* @name GetDefaultLimits
|
|
5456
|
+
* @operationId SecurityServiceController_GetDefaultLimits
|
|
5457
|
+
* @summary Get default limits of workspace.
|
|
5458
|
+
* @request GET:/security/limits/default
|
|
5459
|
+
* @secure
|
|
5460
|
+
* @response `200` OK
|
|
5461
|
+
*/
|
|
5462
|
+
getDefaultLimits() {
|
|
5463
|
+
return this.http.get(`/security/limits/default`).json();
|
|
5464
|
+
}
|
|
5465
|
+
}
|
|
5766
5466
|
|
|
5767
|
-
|
|
5467
|
+
class Security extends SecurityService {
|
|
5468
|
+
ownerName = "";
|
|
5469
|
+
ownerRoles = [];
|
|
5470
|
+
constructor(http, { username, roles }) {
|
|
5471
|
+
super(http);
|
|
5472
|
+
this.ownerName = username;
|
|
5473
|
+
this.ownerRoles = roles;
|
|
5474
|
+
}
|
|
5475
|
+
reset() {
|
|
5476
|
+
this.ownerName = "";
|
|
5477
|
+
this.ownerRoles = [];
|
|
5478
|
+
}
|
|
5479
|
+
}
|
|
5768
5480
|
|
|
5769
|
-
|
|
5770
|
-
*/
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5481
|
+
/* eslint-disable */
|
|
5482
|
+
/* tslint:disable */
|
|
5483
|
+
/*
|
|
5484
|
+
* ---------------------------------------------------------------
|
|
5485
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
5486
|
+
* ## ##
|
|
5487
|
+
* ## AUTHOR: acacode ##
|
|
5488
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
5489
|
+
* ---------------------------------------------------------------
|
|
5490
|
+
*/
|
|
5491
|
+
// @ts-nocheck
|
|
5779
5492
|
/**
|
|
5780
|
-
*
|
|
5493
|
+
* @title Spatial Processing Core API
|
|
5494
|
+
* @version 1.5.1.0
|
|
5495
|
+
* @baseUrl /sp
|
|
5496
|
+
*/
|
|
5497
|
+
class StatisticService extends Service {
|
|
5498
|
+
/**
|
|
5499
|
+
* No description
|
|
5500
|
+
*
|
|
5501
|
+
* @tags Statistic
|
|
5502
|
+
* @name StatisticsDb
|
|
5503
|
+
* @operationId StatisticController_StatisticsDb
|
|
5504
|
+
* @summary Calculates statistics for layer attribute.
|
|
5505
|
+
* @request POST:/statistics
|
|
5506
|
+
* @secure
|
|
5507
|
+
* @response `200` OK
|
|
5508
|
+
*/
|
|
5509
|
+
statisticsDb(data) {
|
|
5510
|
+
return this.http.post(`/statistics`, data).json();
|
|
5511
|
+
}
|
|
5512
|
+
/**
|
|
5513
|
+
* No description
|
|
5514
|
+
*
|
|
5515
|
+
* @tags Statistic
|
|
5516
|
+
* @name Classify
|
|
5517
|
+
* @operationId StatisticController_Classify
|
|
5518
|
+
* @summary Returns the classified attribute values that correspond to the given number of classes and given condition.
|
|
5519
|
+
* @request POST:/statistics/classify
|
|
5520
|
+
* @secure
|
|
5521
|
+
* @response `200` OK
|
|
5522
|
+
*/
|
|
5523
|
+
classify(data) {
|
|
5524
|
+
return this.http.post(`/statistics/classify`, data).json();
|
|
5525
|
+
}
|
|
5526
|
+
/**
|
|
5527
|
+
* No description
|
|
5528
|
+
*
|
|
5529
|
+
* @tags Statistic
|
|
5530
|
+
* @name SumOfProduct
|
|
5531
|
+
* @operationId StatisticController_SumOfProduct
|
|
5532
|
+
* @summary Sum of product.
|
|
5533
|
+
* @request POST:/statistics/sumOfProduct
|
|
5534
|
+
* @secure
|
|
5535
|
+
* @response `200` OK
|
|
5536
|
+
*/
|
|
5537
|
+
sumOfProduct(data) {
|
|
5538
|
+
return this.http.post(`/statistics/sumOfProduct`, data).json();
|
|
5539
|
+
}
|
|
5540
|
+
}
|
|
5781
5541
|
|
|
5782
|
-
|
|
5542
|
+
class Statistic extends StatisticService {
|
|
5543
|
+
}
|
|
5783
5544
|
|
|
5784
|
-
|
|
5785
|
-
*/
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5545
|
+
/* eslint-disable */
|
|
5546
|
+
/* tslint:disable */
|
|
5547
|
+
/*
|
|
5548
|
+
* ---------------------------------------------------------------
|
|
5549
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
5550
|
+
* ## ##
|
|
5551
|
+
* ## AUTHOR: acacode ##
|
|
5552
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
5553
|
+
* ---------------------------------------------------------------
|
|
5554
|
+
*/
|
|
5555
|
+
// @ts-nocheck
|
|
5791
5556
|
/**
|
|
5792
|
-
*
|
|
5557
|
+
* @title Spatial Processing Core API
|
|
5558
|
+
* @version 1.5.1.0
|
|
5559
|
+
* @baseUrl /sp
|
|
5560
|
+
*/
|
|
5561
|
+
class TablesService extends Service {
|
|
5562
|
+
/**
|
|
5563
|
+
* No description
|
|
5564
|
+
*
|
|
5565
|
+
* @tags Tables
|
|
5566
|
+
* @name CreateTable
|
|
5567
|
+
* @operationId TablesController_CreateTable
|
|
5568
|
+
* @summary Creates a new table.
|
|
5569
|
+
* @request POST:/tables
|
|
5570
|
+
* @secure
|
|
5571
|
+
* @response `200` OK
|
|
5572
|
+
*/
|
|
5573
|
+
createTable(data) {
|
|
5574
|
+
return this.http.post(`/tables`, data).json();
|
|
5575
|
+
}
|
|
5576
|
+
/**
|
|
5577
|
+
* No description
|
|
5578
|
+
*
|
|
5579
|
+
* @tags Tables
|
|
5580
|
+
* @name DeleteResources
|
|
5581
|
+
* @operationId TablesController_DeleteResources
|
|
5582
|
+
* @summary Bulk delete resources.
|
|
5583
|
+
* @request DELETE:/tables
|
|
5584
|
+
* @secure
|
|
5585
|
+
* @response `200` OK
|
|
5586
|
+
*/
|
|
5587
|
+
deleteResources(query) {
|
|
5588
|
+
return this.http.delete(`/tables`, null, query).json();
|
|
5589
|
+
}
|
|
5590
|
+
/**
|
|
5591
|
+
* No description
|
|
5592
|
+
*
|
|
5593
|
+
* @tags Tables
|
|
5594
|
+
* @name UpdateTable
|
|
5595
|
+
* @operationId TablesController_UpdateTable
|
|
5596
|
+
* @summary Update exists table.
|
|
5597
|
+
* @request PATCH:/tables/{name}
|
|
5598
|
+
* @secure
|
|
5599
|
+
* @response `200` OK
|
|
5600
|
+
*/
|
|
5601
|
+
updateTable(name, data) {
|
|
5602
|
+
return this.http.patch(`/tables/${name}`, data).json();
|
|
5603
|
+
}
|
|
5604
|
+
/**
|
|
5605
|
+
* No description
|
|
5606
|
+
*
|
|
5607
|
+
* @tags Tables
|
|
5608
|
+
* @name PutTable
|
|
5609
|
+
* @operationId TablesController_PutTable
|
|
5610
|
+
* @summary Override exists table.
|
|
5611
|
+
* @request PUT:/tables/{name}
|
|
5612
|
+
* @secure
|
|
5613
|
+
* @response `200` OK
|
|
5614
|
+
*/
|
|
5615
|
+
putTable(name, data) {
|
|
5616
|
+
return this.http.put(`/tables/${name}`, data).json();
|
|
5617
|
+
}
|
|
5618
|
+
/**
|
|
5619
|
+
* No description
|
|
5620
|
+
*
|
|
5621
|
+
* @tags Tables
|
|
5622
|
+
* @name GetTableInfo
|
|
5623
|
+
* @operationId TablesController_GetTableInfo
|
|
5624
|
+
* @summary Returns the table information and schema.
|
|
5625
|
+
* @request GET:/tables/{name}
|
|
5626
|
+
* @secure
|
|
5627
|
+
* @response `200` OK
|
|
5628
|
+
*/
|
|
5629
|
+
getTableInfo(name) {
|
|
5630
|
+
return this.http.get(`/tables/${name}`).json();
|
|
5631
|
+
}
|
|
5632
|
+
/**
|
|
5633
|
+
* No description
|
|
5634
|
+
*
|
|
5635
|
+
* @tags Tables
|
|
5636
|
+
* @name GetTablesInfo
|
|
5637
|
+
* @operationId TablesController_GetTablesInfoAsync
|
|
5638
|
+
* @summary Returns the tables information.
|
|
5639
|
+
* @request GET:/tables/batchInfo
|
|
5640
|
+
* @secure
|
|
5641
|
+
* @response `200` OK
|
|
5642
|
+
*/
|
|
5643
|
+
getTablesInfo(query) {
|
|
5644
|
+
return this.http.get(`/tables/batchInfo`, query).json();
|
|
5645
|
+
}
|
|
5646
|
+
/**
|
|
5647
|
+
* No description
|
|
5648
|
+
*
|
|
5649
|
+
* @tags Tables
|
|
5650
|
+
* @name GetTableData
|
|
5651
|
+
* @operationId TablesController_GetTableData
|
|
5652
|
+
* @summary Retrieves the data from the table.
|
|
5653
|
+
* @request GET:/tables/{name}/data
|
|
5654
|
+
* @secure
|
|
5655
|
+
* @response `200` OK
|
|
5656
|
+
*/
|
|
5657
|
+
getTableData({ name, ...query }) {
|
|
5658
|
+
return this.http.get(`/tables/${name}/data`, query).json();
|
|
5659
|
+
}
|
|
5660
|
+
/**
|
|
5661
|
+
* No description
|
|
5662
|
+
*
|
|
5663
|
+
* @tags Tables
|
|
5664
|
+
* @name WriteTableData
|
|
5665
|
+
* @operationId TablesController_WriteTableData
|
|
5666
|
+
* @summary Adds the data to the table.
|
|
5667
|
+
* @request POST:/tables/{name}/data
|
|
5668
|
+
* @secure
|
|
5669
|
+
* @response `200` OK
|
|
5670
|
+
*/
|
|
5671
|
+
writeTableData(name, data) {
|
|
5672
|
+
return this.http.post(`/tables/${name}/data`, data).then(() => { });
|
|
5673
|
+
}
|
|
5674
|
+
/**
|
|
5675
|
+
* No description
|
|
5676
|
+
*
|
|
5677
|
+
* @tags Tables
|
|
5678
|
+
* @name UpdateTableData
|
|
5679
|
+
* @operationId TablesController_UpdateTableData
|
|
5680
|
+
* @summary Updates the data in the table.
|
|
5681
|
+
* @request PATCH:/tables/{name}/data
|
|
5682
|
+
* @secure
|
|
5683
|
+
* @response `200` OK
|
|
5684
|
+
*/
|
|
5685
|
+
updateTableData({ name, ...query }, data) {
|
|
5686
|
+
return this.http.patch(`/tables/${name}/data`, data, query).then(() => { });
|
|
5687
|
+
}
|
|
5688
|
+
/**
|
|
5689
|
+
* No description
|
|
5690
|
+
*
|
|
5691
|
+
* @tags Tables
|
|
5692
|
+
* @name DeleteTableData
|
|
5693
|
+
* @operationId TablesController_DeleteTableData
|
|
5694
|
+
* @summary Delete data rows from the table.
|
|
5695
|
+
* @request DELETE:/tables/{name}/data
|
|
5696
|
+
* @secure
|
|
5697
|
+
* @response `200` OK
|
|
5698
|
+
*/
|
|
5699
|
+
deleteTableData({ name, ...query }) {
|
|
5700
|
+
return this.http.delete(`/tables/${name}/data`, null, query).then(() => { });
|
|
5701
|
+
}
|
|
5702
|
+
/**
|
|
5703
|
+
* No description
|
|
5704
|
+
*
|
|
5705
|
+
* @tags Tables
|
|
5706
|
+
* @name MapTable
|
|
5707
|
+
* @operationId TablesController_MapTable
|
|
5708
|
+
* @summary Map table to exists table.
|
|
5709
|
+
* @request POST:/tables/map-table
|
|
5710
|
+
* @secure
|
|
5711
|
+
* @response `200` OK
|
|
5712
|
+
*/
|
|
5713
|
+
mapTable(query, data) {
|
|
5714
|
+
return this.http.post(`/tables/map-table`, data, query).json();
|
|
5715
|
+
}
|
|
5716
|
+
/**
|
|
5717
|
+
* No description
|
|
5718
|
+
*
|
|
5719
|
+
* @tags Tables
|
|
5720
|
+
* @name UnmapTable
|
|
5721
|
+
* @operationId TablesController_UnmapTableAsync
|
|
5722
|
+
* @summary Unmap datasource from table.
|
|
5723
|
+
* @request DELETE:/tables/map-table/{name}
|
|
5724
|
+
* @secure
|
|
5725
|
+
* @response `200` OK
|
|
5726
|
+
*/
|
|
5727
|
+
unmapTable(name) {
|
|
5728
|
+
return this.http.delete(`/tables/map-table/${name}`, null).then(() => { });
|
|
5729
|
+
}
|
|
5730
|
+
/**
|
|
5731
|
+
* No description
|
|
5732
|
+
*
|
|
5733
|
+
* @tags Tables
|
|
5734
|
+
* @name CreateViewFromQueryLayer
|
|
5735
|
+
* @operationId TablesController_CreateViewFromQueryLayer
|
|
5736
|
+
* @summary Creates a new view from query layer.
|
|
5737
|
+
* @request POST:/tables/fromLayer
|
|
5738
|
+
* @secure
|
|
5739
|
+
* @response `200` OK
|
|
5740
|
+
*/
|
|
5741
|
+
createViewFromQueryLayer(data) {
|
|
5742
|
+
return this.http.post(`/tables/fromLayer`, data).json();
|
|
5743
|
+
}
|
|
5744
|
+
/**
|
|
5745
|
+
* No description
|
|
5746
|
+
*
|
|
5747
|
+
* @tags Tables
|
|
5748
|
+
* @name CreateViewFromQuery
|
|
5749
|
+
* @operationId TablesController_CreateViewFromQuery
|
|
5750
|
+
* @summary Creates a new view from query.
|
|
5751
|
+
* @request POST:/tables/fromQuery
|
|
5752
|
+
* @secure
|
|
5753
|
+
* @response `200` OK
|
|
5754
|
+
*/
|
|
5755
|
+
createViewFromQuery(data) {
|
|
5756
|
+
return this.http.post(`/tables/fromQuery`, data).json();
|
|
5757
|
+
}
|
|
5758
|
+
/**
|
|
5759
|
+
* No description
|
|
5760
|
+
*
|
|
5761
|
+
* @tags Tables
|
|
5762
|
+
* @name IsExists
|
|
5763
|
+
* @operationId TablesController_IsExistsAsync
|
|
5764
|
+
* @summary Check is resource exists.
|
|
5765
|
+
* @request GET:/tables/{name}/exists
|
|
5766
|
+
* @secure
|
|
5767
|
+
* @response `200` OK
|
|
5768
|
+
*/
|
|
5769
|
+
isExists(name) {
|
|
5770
|
+
return this.http.get(`/tables/${name}/exists`).then(() => { });
|
|
5771
|
+
}
|
|
5772
|
+
/**
|
|
5773
|
+
* No description
|
|
5774
|
+
*
|
|
5775
|
+
* @tags Tables
|
|
5776
|
+
* @name GetResourceDependencies
|
|
5777
|
+
* @operationId TablesController_GetResourceDependencies
|
|
5778
|
+
* @summary Get resource dependencies.
|
|
5779
|
+
* @request GET:/tables/{name}/dependencies
|
|
5780
|
+
* @secure
|
|
5781
|
+
* @response `200` OK
|
|
5782
|
+
*/
|
|
5783
|
+
getResourceDependencies(name) {
|
|
5784
|
+
return this.http.get(`/tables/${name}/dependencies`).json();
|
|
5785
|
+
}
|
|
5786
|
+
/**
|
|
5787
|
+
* No description
|
|
5788
|
+
*
|
|
5789
|
+
* @tags Tables
|
|
5790
|
+
* @name GetResourceReferences
|
|
5791
|
+
* @operationId TablesController_GetResourceReferences
|
|
5792
|
+
* @summary Returns the resource dependency information.
|
|
5793
|
+
* @request GET:/tables/{name}/references
|
|
5794
|
+
* @secure
|
|
5795
|
+
* @response `200` OK
|
|
5796
|
+
*/
|
|
5797
|
+
getResourceReferences(name) {
|
|
5798
|
+
return this.http.get(`/tables/${name}/references`).json();
|
|
5799
|
+
}
|
|
5800
|
+
}
|
|
5793
5801
|
|
|
5794
|
-
|
|
5802
|
+
class Tables extends TablesService {
|
|
5803
|
+
getTableInfos(tables) {
|
|
5804
|
+
return promiseAllIgnoreErrors(tables.map(table => this.getTableInfo(table)));
|
|
5805
|
+
}
|
|
5806
|
+
findOne(name) {
|
|
5807
|
+
return this.getTableInfo(name);
|
|
5808
|
+
}
|
|
5809
|
+
create(resource) {
|
|
5810
|
+
return this.createTable(resource);
|
|
5811
|
+
}
|
|
5812
|
+
update(table) {
|
|
5813
|
+
return this.updateTable(table.name, table);
|
|
5814
|
+
}
|
|
5815
|
+
async remove(name) {
|
|
5816
|
+
await this.deleteResources({ names: [name] });
|
|
5817
|
+
return name;
|
|
5818
|
+
}
|
|
5819
|
+
}
|
|
5795
5820
|
|
|
5796
|
-
|
|
5797
|
-
*/
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5821
|
+
/* eslint-disable */
|
|
5822
|
+
/* tslint:disable */
|
|
5823
|
+
/*
|
|
5824
|
+
* ---------------------------------------------------------------
|
|
5825
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
5826
|
+
* ## ##
|
|
5827
|
+
* ## AUTHOR: acacode ##
|
|
5828
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
5829
|
+
* ---------------------------------------------------------------
|
|
5830
|
+
*/
|
|
5831
|
+
// @ts-nocheck
|
|
5803
5832
|
/**
|
|
5804
|
-
*
|
|
5805
|
-
|
|
5806
|
-
|
|
5833
|
+
* @title Spatial Processing Core API
|
|
5834
|
+
* @version 1.5.1.0
|
|
5835
|
+
* @baseUrl /sp
|
|
5836
|
+
*/
|
|
5837
|
+
class ToolsService extends Service {
|
|
5838
|
+
}
|
|
5807
5839
|
|
|
5808
|
-
|
|
5840
|
+
class Tools extends ToolsService {
|
|
5841
|
+
}
|
|
5809
5842
|
|
|
5810
|
-
|
|
5811
|
-
*/
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5843
|
+
/* eslint-disable */
|
|
5844
|
+
/* tslint:disable */
|
|
5845
|
+
/*
|
|
5846
|
+
* ---------------------------------------------------------------
|
|
5847
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
5848
|
+
* ## ##
|
|
5849
|
+
* ## AUTHOR: acacode ##
|
|
5850
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
5851
|
+
* ---------------------------------------------------------------
|
|
5852
|
+
*/
|
|
5853
|
+
// @ts-nocheck
|
|
5818
5854
|
/**
|
|
5819
|
-
*
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
MultiPolygon
|
|
5840
|
-
|
|
5841
|
-
Polygon
|
|
5842
|
-
|
|
5843
|
-
Multipoint
|
|
5844
|
-
|
|
5845
|
-
IntergerArray
|
|
5846
|
-
|
|
5847
|
-
DoubleArray
|
|
5848
|
-
|
|
5849
|
-
StringArray
|
|
5850
|
-
|
|
5851
|
-
SourceEql
|
|
5852
|
-
|
|
5853
|
-
Layer
|
|
5854
|
-
|
|
5855
|
-
Table
|
|
5856
|
-
|
|
5857
|
-
Folder
|
|
5858
|
-
|
|
5859
|
-
Json
|
|
5860
|
-
|
|
5861
|
-
Attribute
|
|
5855
|
+
* @title Spatial Processing Core API
|
|
5856
|
+
* @version 1.5.1.0
|
|
5857
|
+
* @baseUrl /sp
|
|
5858
|
+
*/
|
|
5859
|
+
class VectorTileService extends Service {
|
|
5860
|
+
/**
|
|
5861
|
+
* No description
|
|
5862
|
+
*
|
|
5863
|
+
* @tags VectorTileService
|
|
5864
|
+
* @name GetVectorTile
|
|
5865
|
+
* @operationId VectorTileServiceController_GetVectorTile
|
|
5866
|
+
* @summary Get vector tile from visible project layers or single layer.
|
|
5867
|
+
* @request GET:/vt/{name}/{z}/{x}/{y}.pbf
|
|
5868
|
+
* @secure
|
|
5869
|
+
* @response `200` OK
|
|
5870
|
+
*/
|
|
5871
|
+
getVectorTile({ name, z, x, y, ...query }) {
|
|
5872
|
+
return this.http.get(`/vt/${name}/{z}/{x}/{y}.pbf`, query).then(() => { });
|
|
5873
|
+
}
|
|
5874
|
+
}
|
|
5862
5875
|
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
exports.WorkerSettingsFieldType = void 0;
|
|
5866
|
-
(function (WorkerSettingsFieldType) {
|
|
5867
|
-
WorkerSettingsFieldType["Int32"] = "Int32";
|
|
5868
|
-
WorkerSettingsFieldType["Int64"] = "Int64";
|
|
5869
|
-
WorkerSettingsFieldType["Double"] = "Double";
|
|
5870
|
-
WorkerSettingsFieldType["String"] = "String";
|
|
5871
|
-
WorkerSettingsFieldType["Boolean"] = "Boolean";
|
|
5872
|
-
WorkerSettingsFieldType["DateTime"] = "DateTime";
|
|
5873
|
-
WorkerSettingsFieldType["Point"] = "Point";
|
|
5874
|
-
WorkerSettingsFieldType["Geometry"] = "Geometry";
|
|
5875
|
-
WorkerSettingsFieldType["Polyline"] = "Polyline";
|
|
5876
|
-
WorkerSettingsFieldType["MultiPolygon"] = "MultiPolygon";
|
|
5877
|
-
WorkerSettingsFieldType["Polygon"] = "Polygon";
|
|
5878
|
-
WorkerSettingsFieldType["Multipoint"] = "Multipoint";
|
|
5879
|
-
WorkerSettingsFieldType["IntergerArray"] = "IntergerArray";
|
|
5880
|
-
WorkerSettingsFieldType["DoubleArray"] = "DoubleArray";
|
|
5881
|
-
WorkerSettingsFieldType["StringArray"] = "StringArray";
|
|
5882
|
-
WorkerSettingsFieldType["SourceEql"] = "SourceEql";
|
|
5883
|
-
WorkerSettingsFieldType["Layer"] = "Layer";
|
|
5884
|
-
WorkerSettingsFieldType["Table"] = "Table";
|
|
5885
|
-
WorkerSettingsFieldType["Folder"] = "Folder";
|
|
5886
|
-
WorkerSettingsFieldType["Json"] = "Json";
|
|
5887
|
-
WorkerSettingsFieldType["Attribute"] = "Attribute";
|
|
5888
|
-
WorkerSettingsFieldType["AttributeArray"] = "AttributeArray";
|
|
5889
|
-
})(exports.WorkerSettingsFieldType || (exports.WorkerSettingsFieldType = {}));
|
|
5876
|
+
class VectorTiles extends VectorTileService {
|
|
5877
|
+
}
|
|
5890
5878
|
|
|
5891
5879
|
Object.defineProperty(exports, "HTTPError", {
|
|
5892
5880
|
enumerable: true,
|