@evergis/api 5.0.63 → 5.0.65

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/index.js CHANGED
@@ -2435,14 +2435,14 @@ class LayersService extends Service {
2435
2435
  * No description
2436
2436
  *
2437
2437
  * @tags Layers
2438
- * @name PatchQueryLayerService
2439
- * @operationId LayersController_PatchQueryLayerService
2438
+ * @name UpdateService
2439
+ * @operationId LayersController_UpdateServiceAsync
2440
2440
  * @summary Patch EQL-based Query Layer Service.
2441
2441
  * @request PATCH:/layers/{name}
2442
2442
  * @secure
2443
2443
  * @response `200` OK
2444
2444
  */
2445
- patchQueryLayerService(name, data) {
2445
+ updateService(name, data) {
2446
2446
  return this.http
2447
2447
  .patch(`/layers/${name}`, data)
2448
2448
  .json();
@@ -2483,14 +2483,14 @@ class LayersService extends Service {
2483
2483
  * No description
2484
2484
  *
2485
2485
  * @tags Layers
2486
- * @name PatchQueryLayerService1
2487
- * @operationId LayersController_PatchQueryLayerService_1
2486
+ * @name UpdateService1
2487
+ * @operationId LayersController_UpdateServiceAsync_1
2488
2488
  * @summary Patch EQL-based Query Layer Service.
2489
2489
  * @request PATCH:/layers/{name}/v2
2490
2490
  * @secure
2491
2491
  * @response `200` OK
2492
2492
  */
2493
- patchQueryLayerService1(name, data) {
2493
+ updateService1(name, data) {
2494
2494
  return this.http.patch(`/layers/${name}/v2`, data).json();
2495
2495
  }
2496
2496
  /**
@@ -2579,20 +2579,6 @@ class LayersService extends Service {
2579
2579
  updateFeature(name, data) {
2580
2580
  return this.http.patch(`/layers/${name}/features`, data).json();
2581
2581
  }
2582
- /**
2583
- * No description
2584
- *
2585
- * @tags Layers
2586
- * @name GetById
2587
- * @operationId LayersController_GetByIdAsync
2588
- * @summary Gets feature by id.
2589
- * @request GET:/layers/{name}/features/{id}
2590
- * @secure
2591
- * @response `200` OK
2592
- */
2593
- getById({ name, id, ...query }) {
2594
- return this.http.get(`/layers/${name}/features/${id}`, query).json();
2595
- }
2596
2582
  /**
2597
2583
  * No description
2598
2584
  *
@@ -2852,6 +2838,15 @@ exports.AggregationFunction = void 0;
2852
2838
  AggregationFunction["DensityIndicators"] = "DensityIndicators";
2853
2839
  AggregationFunction["DividedSum"] = "DividedSum";
2854
2840
  })(exports.AggregationFunction || (exports.AggregationFunction = {}));
2841
+ /**
2842
+ * ArcGIS DataSource sub types.
2843
+ */
2844
+ exports.ArcGisDataSourceSubTypes = void 0;
2845
+ (function (ArcGisDataSourceSubTypes) {
2846
+ ArcGisDataSourceSubTypes["FeatureServer"] = "FeatureServer";
2847
+ ArcGisDataSourceSubTypes["ImageServer"] = "ImageServer";
2848
+ ArcGisDataSourceSubTypes["MapServer"] = "MapServer";
2849
+ })(exports.ArcGisDataSourceSubTypes || (exports.ArcGisDataSourceSubTypes = {}));
2855
2850
  /**
2856
2851
  * Attribute configuration type.
2857
2852
  */
@@ -2895,6 +2890,16 @@ exports.AuthorizationGrant = void 0;
2895
2890
  AuthorizationGrant["AuthorizationCode"] = "authorization_code";
2896
2891
  AuthorizationGrant["RefreshToken"] = "refresh_token";
2897
2892
  })(exports.AuthorizationGrant || (exports.AuthorizationGrant = {}));
2893
+ /**
2894
+ * Length of a calendar period.
2895
+ */
2896
+ exports.CalendarUnitDc = void 0;
2897
+ (function (CalendarUnitDc) {
2898
+ CalendarUnitDc["Day"] = "Day";
2899
+ CalendarUnitDc["Week"] = "Week";
2900
+ CalendarUnitDc["Month"] = "Month";
2901
+ CalendarUnitDc["Year"] = "Year";
2902
+ })(exports.CalendarUnitDc || (exports.CalendarUnitDc = {}));
2898
2903
  exports.CatalogResourceType = void 0;
2899
2904
  (function (CatalogResourceType) {
2900
2905
  CatalogResourceType["Directory"] = "Directory";
@@ -3017,14 +3022,19 @@ exports.ExplainSerializeOptions = void 0;
3017
3022
  exports.LayerServiceType = void 0;
3018
3023
  (function (LayerServiceType) {
3019
3024
  LayerServiceType["QueryLayerService"] = "QueryLayerService";
3020
- LayerServiceType["LinearLayerService"] = "LinearLayerService";
3021
- LayerServiceType["MapboxLayerService"] = "MapboxLayerService";
3022
3025
  LayerServiceType["PostgresTileLayerService"] = "PostgresTileLayerService";
3023
3026
  LayerServiceType["ProxyLayerService"] = "ProxyLayerService";
3024
- LayerServiceType["PythonLayerService"] = "PythonLayerService";
3025
3027
  LayerServiceType["RemoteTileLayerService"] = "RemoteTileLayerService";
3026
- LayerServiceType["RouteLayerService"] = "RouteLayerService";
3027
3028
  })(exports.LayerServiceType || (exports.LayerServiceType = {}));
3029
+ /**
3030
+ * What the cap of a kind is compared against.
3031
+ */
3032
+ exports.MeasurementDc = void 0;
3033
+ (function (MeasurementDc) {
3034
+ MeasurementDc["Stock"] = "Stock";
3035
+ MeasurementDc["PerInvocation"] = "PerInvocation";
3036
+ MeasurementDc["Rate"] = "Rate";
3037
+ })(exports.MeasurementDc || (exports.MeasurementDc = {}));
3028
3038
  exports.NameConflictBehavior = void 0;
3029
3039
  (function (NameConflictBehavior) {
3030
3040
  NameConflictBehavior["Fail"] = "Fail";
@@ -3162,6 +3172,15 @@ exports.StringSubType = void 0;
3162
3172
  StringSubType["PkkCode"] = "PkkCode";
3163
3173
  StringSubType["Attachments"] = "Attachments";
3164
3174
  })(exports.StringSubType || (exports.StringSubType = {}));
3175
+ /**
3176
+ * Whom a rule is for.
3177
+ */
3178
+ exports.SubjectKindDc = void 0;
3179
+ (function (SubjectKindDc) {
3180
+ SubjectKindDc["Deployment"] = "Deployment";
3181
+ SubjectKindDc["Role"] = "Role";
3182
+ SubjectKindDc["User"] = "User";
3183
+ })(exports.SubjectKindDc || (exports.SubjectKindDc = {}));
3165
3184
  /**
3166
3185
  * Specifies the available types of table configurations that can be used within the application.
3167
3186
  */
@@ -3171,7 +3190,6 @@ exports.TableConfigurationType = void 0;
3171
3190
  TableConfigurationType["TileCatalogTableConfiguration"] = "TileCatalogTableConfiguration";
3172
3191
  TableConfigurationType["ViewConfiguration"] = "ViewConfiguration";
3173
3192
  TableConfigurationType["MaterializedViewConfiguration"] = "MaterializedViewConfiguration";
3174
- TableConfigurationType["RouteTableConfiguration"] = "RouteTableConfiguration";
3175
3193
  })(exports.TableConfigurationType || (exports.TableConfigurationType = {}));
3176
3194
  /**
3177
3195
  * TaskPrototypeSubType.
@@ -3181,6 +3199,15 @@ exports.TaskResourceSubType = void 0;
3181
3199
  TaskResourceSubType["SpTask"] = "SpTask";
3182
3200
  TaskResourceSubType["PythonTask"] = "PythonTask";
3183
3201
  })(exports.TaskResourceSubType || (exports.TaskResourceSubType = {}));
3202
+ /**
3203
+ * How a rate is counted.
3204
+ */
3205
+ exports.WindowTypeDc = void 0;
3206
+ (function (WindowTypeDc) {
3207
+ WindowTypeDc["Calendar"] = "Calendar";
3208
+ WindowTypeDc["Rolling"] = "Rolling";
3209
+ WindowTypeDc["Lifetime"] = "Lifetime";
3210
+ })(exports.WindowTypeDc || (exports.WindowTypeDc = {}));
3184
3211
  exports.WorkerMethodType = void 0;
3185
3212
  (function (WorkerMethodType) {
3186
3213
  WorkerMethodType["Task"] = "Task";
@@ -3201,7 +3228,7 @@ exports.WorkerSettingsFieldType = void 0;
3201
3228
  WorkerSettingsFieldType["MultiPolygon"] = "MultiPolygon";
3202
3229
  WorkerSettingsFieldType["Polygon"] = "Polygon";
3203
3230
  WorkerSettingsFieldType["Multipoint"] = "Multipoint";
3204
- WorkerSettingsFieldType["IntergerArray"] = "IntergerArray";
3231
+ WorkerSettingsFieldType["IntegerArray"] = "IntegerArray";
3205
3232
  WorkerSettingsFieldType["DoubleArray"] = "DoubleArray";
3206
3233
  WorkerSettingsFieldType["StringArray"] = "StringArray";
3207
3234
  WorkerSettingsFieldType["SourceEql"] = "SourceEql";
@@ -3230,7 +3257,7 @@ class Layers extends LayersService {
3230
3257
  return this.publishService(configuration);
3231
3258
  }
3232
3259
  updateQueryLayer(configuration) {
3233
- return this.patchQueryLayerService(configuration.name, configuration);
3260
+ return this.updateService(configuration.name, configuration);
3234
3261
  }
3235
3262
  }
3236
3263
  function isTileLayerService(layer) {
@@ -3453,6 +3480,198 @@ class Projects extends ProjectsService {
3453
3480
  }
3454
3481
  }
3455
3482
 
3483
+ /* eslint-disable */
3484
+ /* tslint:disable */
3485
+ /*
3486
+ * ---------------------------------------------------------------
3487
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
3488
+ * ## ##
3489
+ * ## AUTHOR: acacode ##
3490
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
3491
+ * ---------------------------------------------------------------
3492
+ */
3493
+ // @ts-nocheck
3494
+ /**
3495
+ * @title Spatial Processing Gateway API
3496
+ * @version 1.5.1.0
3497
+ * @baseUrl /sp
3498
+ */
3499
+ class QuotasService extends Service {
3500
+ /**
3501
+ * No description
3502
+ *
3503
+ * @tags Quotas
3504
+ * @name GetKinds
3505
+ * @operationId QuotasController_GetKinds
3506
+ * @summary Every limit kind.
3507
+ * @request GET:/quotas/kinds
3508
+ * @secure
3509
+ * @response `200` OK
3510
+ */
3511
+ getKinds() {
3512
+ return this.http.get(`/quotas/kinds`).json();
3513
+ }
3514
+ /**
3515
+ * No description
3516
+ *
3517
+ * @tags Quotas
3518
+ * @name GetKind
3519
+ * @operationId QuotasController_GetKind
3520
+ * @summary One limit kind.
3521
+ * @request GET:/quotas/kinds/{code}
3522
+ * @secure
3523
+ * @response `200` OK
3524
+ */
3525
+ getKind(code) {
3526
+ return this.http.get(`/quotas/kinds/${code}`).json();
3527
+ }
3528
+ /**
3529
+ * No description
3530
+ *
3531
+ * @tags Quotas
3532
+ * @name DeleteKind
3533
+ * @operationId QuotasController_DeleteKind
3534
+ * @summary Deletes a kind nobody declared within the grace period and nobody consumed; otherwise 409 with `KIND_IN_USE`.
3535
+ * @request DELETE:/quotas/kinds/{code}
3536
+ * @secure
3537
+ * @response `200` OK
3538
+ */
3539
+ deleteKind(code) {
3540
+ return this.http.delete(`/quotas/kinds/${code}`, null).then(() => { });
3541
+ }
3542
+ /**
3543
+ * No description
3544
+ *
3545
+ * @tags Quotas
3546
+ * @name SetKindActive
3547
+ * @operationId QuotasController_SetKindActive
3548
+ * @summary Switches enforcement of a kind on or off: the way to retire a kind.
3549
+ * @request PUT:/quotas/kinds/{code}/active
3550
+ * @secure
3551
+ * @response `200` OK
3552
+ */
3553
+ setKindActive({ code, ...query }) {
3554
+ return this.http.put(`/quotas/kinds/${code}/active`, null, query).json();
3555
+ }
3556
+ /**
3557
+ * No description
3558
+ *
3559
+ * @tags Quotas
3560
+ * @name GetRules
3561
+ * @operationId QuotasController_GetRules
3562
+ * @summary Rules matching the filter.
3563
+ * @request GET:/quotas/rules
3564
+ * @secure
3565
+ * @response `200` OK
3566
+ */
3567
+ getRules(query) {
3568
+ return this.http.get(`/quotas/rules`, query).json();
3569
+ }
3570
+ /**
3571
+ * No description
3572
+ *
3573
+ * @tags Quotas
3574
+ * @name UpsertRule
3575
+ * @operationId QuotasController_UpsertRule
3576
+ * @summary Writes a rule, replacing whatever stands at the same kind, subject and qualifier. Repeating the same plan changes nothing.
3577
+ * @request PUT:/quotas/rules
3578
+ * @secure
3579
+ * @response `200` OK
3580
+ */
3581
+ upsertRule(data) {
3582
+ return this.http.put(`/quotas/rules`, data).json();
3583
+ }
3584
+ /**
3585
+ * No description
3586
+ *
3587
+ * @tags Quotas
3588
+ * @name DeleteRule
3589
+ * @operationId QuotasController_DeleteRule
3590
+ * @summary Deletes a rule.
3591
+ * @request DELETE:/quotas/rules
3592
+ * @secure
3593
+ * @response `200` OK
3594
+ */
3595
+ deleteRule(query) {
3596
+ return this.http.delete(`/quotas/rules`, null, query).then(() => { });
3597
+ }
3598
+ /**
3599
+ * No description
3600
+ *
3601
+ * @tags Quotas
3602
+ * @name GetRuleHistory
3603
+ * @operationId QuotasController_GetRuleHistory
3604
+ * @summary Changes of the rules matching the filter, newest first.
3605
+ * @request GET:/quotas/rules/history
3606
+ * @secure
3607
+ * @response `200` OK
3608
+ */
3609
+ getRuleHistory(query) {
3610
+ return this.http.get(`/quotas/rules/history`, query).json();
3611
+ }
3612
+ /**
3613
+ * No description
3614
+ *
3615
+ * @tags Quotas
3616
+ * @name GetGrants
3617
+ * @operationId QuotasController_GetGrants
3618
+ * @summary Grants of credit matching the filter, newest first.
3619
+ * @request GET:/quotas/grants
3620
+ * @secure
3621
+ * @response `200` OK
3622
+ */
3623
+ getGrants(query) {
3624
+ return this.http.get(`/quotas/grants`, query).json();
3625
+ }
3626
+ /**
3627
+ * No description
3628
+ *
3629
+ * @tags Quotas
3630
+ * @name GrantCredit
3631
+ * @operationId QuotasController_GrantCredit
3632
+ * @summary Grants credit on top of a rate plan, spent after the plan, the soonest to burn first.
3633
+ Granting again with the same key returns the first grant.
3634
+ * @request POST:/quotas/grants
3635
+ * @secure
3636
+ * @response `200` OK
3637
+ */
3638
+ grantCredit(data) {
3639
+ return this.http.post(`/quotas/grants`, data).json();
3640
+ }
3641
+ /**
3642
+ * No description
3643
+ *
3644
+ * @tags Quotas
3645
+ * @name RevokeGrant
3646
+ * @operationId QuotasController_RevokeGrant
3647
+ * @summary Revokes a grant: what is left of it burns now, what it paid for stays paid. Revoking twice changes nothing.
3648
+ * @request POST:/quotas/grants/{id}/revoke
3649
+ * @secure
3650
+ * @response `200` OK
3651
+ */
3652
+ revokeGrant({ id, ...query }) {
3653
+ return this.http.post(`/quotas/grants/${id}/revoke`, null, query).json();
3654
+ }
3655
+ /**
3656
+ * No description
3657
+ *
3658
+ * @tags Quotas
3659
+ * @name GetUsage
3660
+ * @operationId QuotasController_GetUsage
3661
+ * @summary What a user has left: the plan in force for each kind, what is spent in the current window and the grants
3662
+ of credit on top of it.
3663
+ * @request GET:/quotas/usage
3664
+ * @secure
3665
+ * @response `200` OK
3666
+ */
3667
+ getUsage(query) {
3668
+ return this.http.get(`/quotas/usage`, query).json();
3669
+ }
3670
+ }
3671
+
3672
+ class Quotas extends QuotasService {
3673
+ }
3674
+
3456
3675
  /* eslint-disable */
3457
3676
  /* tslint:disable */
3458
3677
  /*
@@ -4649,6 +4868,48 @@ class DataSourceService extends Service {
4649
4868
  updateSparkDataSource(data) {
4650
4869
  return this.http.patch(`/ds/spark`, data).then(() => { });
4651
4870
  }
4871
+ /**
4872
+ * No description
4873
+ *
4874
+ * @tags DataSource
4875
+ * @name TestConnection4
4876
+ * @operationId DataSourceController_TestConnection_4
4877
+ * @summary Test WMS data source connection.
4878
+ * @request POST:/ds/wms/test-connection
4879
+ * @secure
4880
+ * @response `200` OK
4881
+ */
4882
+ testConnection4(data) {
4883
+ return this.http.post(`/ds/wms/test-connection`, data).then(() => { });
4884
+ }
4885
+ /**
4886
+ * No description
4887
+ *
4888
+ * @tags DataSource
4889
+ * @name CreateWmsDataSource
4890
+ * @operationId DataSourceController_CreateWMSDataSource
4891
+ * @summary Create ArcGIS data source.
4892
+ * @request POST:/ds/wms
4893
+ * @secure
4894
+ * @response `200` OK
4895
+ */
4896
+ createWmsDataSource(data) {
4897
+ return this.http.post(`/ds/wms`, data).then(() => { });
4898
+ }
4899
+ /**
4900
+ * No description
4901
+ *
4902
+ * @tags DataSource
4903
+ * @name UpdateWmsDataSource
4904
+ * @operationId DataSourceController_UpdateWMSDataSource
4905
+ * @summary Update ArcGIS data source.
4906
+ * @request PATCH:/ds/wms
4907
+ * @secure
4908
+ * @response `200` OK
4909
+ */
4910
+ updateWmsDataSource(data) {
4911
+ return this.http.patch(`/ds/wms`, data).then(() => { });
4912
+ }
4652
4913
  }
4653
4914
 
4654
4915
  /* eslint-disable */
@@ -4735,67 +4996,6 @@ class QueryTokenAccessService extends Service {
4735
4996
  }
4736
4997
  }
4737
4998
 
4738
- /* eslint-disable */
4739
- /* tslint:disable */
4740
- /*
4741
- * ---------------------------------------------------------------
4742
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
4743
- * ## ##
4744
- * ## AUTHOR: acacode ##
4745
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
4746
- * ---------------------------------------------------------------
4747
- */
4748
- // @ts-nocheck
4749
- /**
4750
- * @title Spatial Processing Gateway API
4751
- * @version 1.5.1.0
4752
- * @baseUrl /sp
4753
- */
4754
- class SpatialReferencesService extends Service {
4755
- /**
4756
- * No description
4757
- *
4758
- * @tags SpatialReferences
4759
- * @name GetAvailiableCs
4760
- * @operationId SpatialReferencesController_GetAvailiableCsAsync
4761
- * @summary Returns list of available spatial references.
4762
- * @request GET:/srs/list
4763
- * @secure
4764
- * @response `200` OK
4765
- */
4766
- getAvailiableCs() {
4767
- return this.http.get(`/srs/list`).json();
4768
- }
4769
- /**
4770
- * No description
4771
- *
4772
- * @tags SpatialReferences
4773
- * @name GetProj4Representation
4774
- * @operationId SpatialReferencesController_GetProj4RepresentationAsync
4775
- * @summary Returns a WKT representation of spatial reference.
4776
- * @request GET:/srs/{name}/proj4
4777
- * @secure
4778
- * @response `200` OK
4779
- */
4780
- getProj4Representation(name) {
4781
- return this.http.get(`/srs/${name}/proj4`).text();
4782
- }
4783
- /**
4784
- * No description
4785
- *
4786
- * @tags SpatialReferences
4787
- * @name GetWktRepresentation
4788
- * @operationId SpatialReferencesController_GetWktRepresentationAsync
4789
- * @summary Returns a WKT representation of spatial reference.
4790
- * @request GET:/srs/{name}/wkt
4791
- * @secure
4792
- * @response `200` OK
4793
- */
4794
- getWktRepresentation({ name, ...query }) {
4795
- return this.http.get(`/srs/${name}/wkt`, query).text();
4796
- }
4797
- }
4798
-
4799
4999
  class EventEmitter {
4800
5000
  handlers = {
4801
5001
  "*": [],
@@ -4861,7 +5061,6 @@ class Api extends EventEmitter {
4861
5061
  statistic;
4862
5062
  feedback;
4863
5063
  vectorTiles;
4864
- spatialReference;
4865
5064
  eql;
4866
5065
  catalog;
4867
5066
  queryToken;
@@ -4869,6 +5068,7 @@ class Api extends EventEmitter {
4869
5068
  remoteTaskManager;
4870
5069
  catalogShare;
4871
5070
  history;
5071
+ quotas;
4872
5072
  http;
4873
5073
  urlPath;
4874
5074
  refreshingToken = false;
@@ -4957,7 +5157,6 @@ class Api extends EventEmitter {
4957
5157
  this.statistic = new Statistic(this.http);
4958
5158
  this.feedback = new Feedback(this.http);
4959
5159
  this.vectorTiles = new VectorTiles(this.http);
4960
- this.spatialReference = new SpatialReferencesService(this.http);
4961
5160
  this.eql = new Eql(this.http);
4962
5161
  this.catalog = new CatalogService(this.http);
4963
5162
  this.queryToken = new QueryTokenAccessService(this.http);
@@ -4965,6 +5164,7 @@ class Api extends EventEmitter {
4965
5164
  this.remoteTaskManager = new RemoteTaskManager(this.http);
4966
5165
  this.catalogShare = new CatalogShare(this.http);
4967
5166
  this.history = new History(this.http);
5167
+ this.quotas = new Quotas(this.http);
4968
5168
  this.names = new Names({
4969
5169
  account: this.account,
4970
5170
  });
@@ -5038,6 +5238,7 @@ exports.Layers = Layers;
5038
5238
  exports.Names = Names;
5039
5239
  exports.PortalSettings = PortalSettings;
5040
5240
  exports.Projects = Projects;
5241
+ exports.Quotas = Quotas;
5041
5242
  exports.RemoteTaskManager = RemoteTaskManager;
5042
5243
  exports.Resources = Resources;
5043
5244
  exports.STORAGE_REFRESH_TOKEN_KEY = STORAGE_REFRESH_TOKEN_KEY;