@evergis/api 5.0.8 → 5.0.9-alpha.0

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