@evergis/api 3.0.192 → 3.0.194

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.
@@ -36,6 +36,9 @@ function _defineProperties(target, props) {
36
36
  function _createClass(Constructor, protoProps, staticProps) {
37
37
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
38
38
  if (staticProps) _defineProperties(Constructor, staticProps);
39
+ Object.defineProperty(Constructor, "prototype", {
40
+ writable: false
41
+ });
39
42
  return Constructor;
40
43
  }
41
44
 
@@ -69,6 +72,9 @@ function _inherits(subClass, superClass) {
69
72
  configurable: true
70
73
  }
71
74
  });
75
+ Object.defineProperty(subClass, "prototype", {
76
+ writable: false
77
+ });
72
78
  if (superClass) _setPrototypeOf(subClass, superClass);
73
79
  }
74
80
 
@@ -127,6 +133,8 @@ function _assertThisInitialized(self) {
127
133
  function _possibleConstructorReturn(self, call) {
128
134
  if (call && (typeof call === "object" || typeof call === "function")) {
129
135
  return call;
136
+ } else if (call !== void 0) {
137
+ throw new TypeError("Derived constructors may only return object or undefined");
130
138
  }
131
139
 
132
140
  return _assertThisInitialized(self);
@@ -160,7 +168,7 @@ function _superPropBase(object, property) {
160
168
  return object;
161
169
  }
162
170
 
163
- function _get(target, property, receiver) {
171
+ function _get() {
164
172
  if (typeof Reflect !== "undefined" && Reflect.get) {
165
173
  _get = Reflect.get;
166
174
  } else {
@@ -171,14 +179,14 @@ function _get(target, property, receiver) {
171
179
  var desc = Object.getOwnPropertyDescriptor(base, property);
172
180
 
173
181
  if (desc.get) {
174
- return desc.get.call(receiver);
182
+ return desc.get.call(arguments.length < 3 ? target : receiver);
175
183
  }
176
184
 
177
185
  return desc.value;
178
186
  };
179
187
  }
180
188
 
181
- return _get(target, property, receiver || target);
189
+ return _get.apply(this, arguments);
182
190
  }
183
191
 
184
192
  let HttpClient = /*#__PURE__*/function () {
@@ -486,19 +494,19 @@ let UniversalSearchService = /*#__PURE__*/function (_Service) {
486
494
  }
487
495
 
488
496
  _createClass(UniversalSearchService, [{
489
- key: "getSearchResult",
497
+ key: "searchResultDcGetSearchResult",
490
498
  value:
491
499
  /**
492
500
  * No description
493
501
  *
494
502
  * @tags UniversalSearch
495
- * @name GetSearchResult
496
- * @operationId UniversalSearchController_GetSearchResult
503
+ * @name SearchResultDcGetSearchResult
504
+ * @operationId UniversalSearchController_SearchResultDcGetSearchResult
497
505
  * @summary Returns search result.
498
506
  * @request GET:/search/{taskId}/{layerName}
499
507
  * @response `200` OK
500
508
  */
501
- function getSearchResult(_ref) {
509
+ function searchResultDcGetSearchResult(_ref) {
502
510
  let {
503
511
  taskId,
504
512
  layerName
@@ -511,16 +519,16 @@ let UniversalSearchService = /*#__PURE__*/function (_Service) {
511
519
  * No description
512
520
  *
513
521
  * @tags UniversalSearch
514
- * @name GetSearchResult1
515
- * @operationId UniversalSearchController_GetSearchResult_1
522
+ * @name GetSearchResult
523
+ * @operationId UniversalSearchController_GetSearchResult
516
524
  * @summary Returns search result.
517
525
  * @request GET:/search/{taskId}
518
526
  * @response `200` OK
519
527
  */
520
528
 
521
529
  }, {
522
- key: "getSearchResult1",
523
- value: function getSearchResult1(taskId) {
530
+ key: "getSearchResult",
531
+ value: function getSearchResult(taskId) {
524
532
  return this.http.get("/search/" + taskId).json();
525
533
  }
526
534
  }]);
@@ -574,8 +582,8 @@ let CatalogService = /*#__PURE__*/function (_Service) {
574
582
 
575
583
  }, {
576
584
  key: "postGetAll",
577
- value: function postGetAll(data) {
578
- return this.http.post("/resources", data).json();
585
+ value: function postGetAll(query, data) {
586
+ return this.http.post("/resources", data, query).json();
579
587
  }
580
588
  /**
581
589
  * No description
@@ -751,7 +759,7 @@ let CatalogService = /*#__PURE__*/function (_Service) {
751
759
  }, {
752
760
  key: "setPermissions1",
753
761
  value: function setPermissions1(resourceId, data) {
754
- return this.http.put("/resources/" + resourceId + "/permissions", data).json();
762
+ return this.http.put("/resources/" + resourceId + "/permissions", data).then(() => {});
755
763
  }
756
764
  /**
757
765
  * No description
@@ -767,7 +775,7 @@ let CatalogService = /*#__PURE__*/function (_Service) {
767
775
  }, {
768
776
  key: "setPermissions",
769
777
  value: function setPermissions(data) {
770
- return this.http.put("/resources/permissions", data).json();
778
+ return this.http.put("/resources/permissions", data).then(() => {});
771
779
  }
772
780
  /**
773
781
  * No description
@@ -785,6 +793,22 @@ let CatalogService = /*#__PURE__*/function (_Service) {
785
793
  value: function downloadFile(resourceId) {
786
794
  return this.http.get("/resources/" + resourceId + "/download").blob();
787
795
  }
796
+ /**
797
+ * No description
798
+ *
799
+ * @tags Catalog
800
+ * @name CleanResources
801
+ * @operationId CatalogController_CleanResources
802
+ * @summary Clean user resources.
803
+ * @request POST:/resources/clean
804
+ * @response `200` OK
805
+ */
806
+
807
+ }, {
808
+ key: "cleanResources",
809
+ value: function cleanResources() {
810
+ return this.http.post("/resources/clean", null).then(() => {});
811
+ }
788
812
  }]);
789
813
 
790
814
  return CatalogService;
@@ -1178,8 +1202,8 @@ let AccountService = /*#__PURE__*/function (_Service) {
1178
1202
 
1179
1203
  }, {
1180
1204
  key: "authenticate",
1181
- value: function authenticate(data) {
1182
- return this.http.post("/account/login", data).text();
1205
+ value: function authenticate(query, data) {
1206
+ return this.http.post("/account/login", data, query).text();
1183
1207
  }
1184
1208
  /**
1185
1209
  * No description
@@ -1229,6 +1253,54 @@ let AccountService = /*#__PURE__*/function (_Service) {
1229
1253
  value: function ldapLogin(data) {
1230
1254
  return this.http.post("/account/external/login/ldap", data).then(() => {});
1231
1255
  }
1256
+ /**
1257
+ * No description
1258
+ *
1259
+ * @tags Account
1260
+ * @name RegisterClient
1261
+ * @operationId AccountController_RegisterClient
1262
+ * @summary Register new client.
1263
+ * @request POST:/account/oauth2/client
1264
+ * @response `200` OK
1265
+ */
1266
+
1267
+ }, {
1268
+ key: "registerClient",
1269
+ value: function registerClient(data) {
1270
+ return this.http.post("/account/oauth2/client", data).json();
1271
+ }
1272
+ /**
1273
+ * No description
1274
+ *
1275
+ * @tags Account
1276
+ * @name UnbindClient
1277
+ * @operationId AccountController_UnbindClient
1278
+ * @summary Unbind client with id.
1279
+ * @request DELETE:/account/oauth2/client/{clientId}
1280
+ * @response `200` OK
1281
+ */
1282
+
1283
+ }, {
1284
+ key: "unbindClient",
1285
+ value: function unbindClient(clientId) {
1286
+ return this.http.delete("/account/oauth2/client/" + clientId, null).then(() => {});
1287
+ }
1288
+ /**
1289
+ * No description
1290
+ *
1291
+ * @tags Account
1292
+ * @name Token
1293
+ * @operationId AccountController_Token
1294
+ * @summary Get access token request.
1295
+ * @request POST:/account/oauth2/token
1296
+ * @response `200` OK
1297
+ */
1298
+
1299
+ }, {
1300
+ key: "token",
1301
+ value: function token(data) {
1302
+ return this.http.post("/account/oauth2/token", data).json();
1303
+ }
1232
1304
  /**
1233
1305
  * No description
1234
1306
  *
@@ -1403,9 +1475,13 @@ let Account = /*#__PURE__*/function (_AccountService) {
1403
1475
 
1404
1476
  _createClass(Account, [{
1405
1477
  key: "login",
1406
- value: async function login(params) {
1478
+ value: async function login(params, authParams) {
1479
+ if (authParams === void 0) {
1480
+ authParams = {};
1481
+ }
1482
+
1407
1483
  if (params) {
1408
- await _get(_getPrototypeOf(Account.prototype), "authenticate", this).call(this, params);
1484
+ await _get(_getPrototypeOf(Account.prototype), "authenticate", this).call(this, authParams, params);
1409
1485
  }
1410
1486
  }
1411
1487
  }, {
@@ -2007,26 +2083,26 @@ let ClientSettings = /*#__PURE__*/function (_ClientSettingsServic) {
2007
2083
  * @baseUrl /sp
2008
2084
  */
2009
2085
 
2010
- let EqlTestService = /*#__PURE__*/function (_Service) {
2011
- _inherits(EqlTestService, _Service);
2086
+ let EqlService = /*#__PURE__*/function (_Service) {
2087
+ _inherits(EqlService, _Service);
2012
2088
 
2013
- var _super = /*#__PURE__*/_createSuper(EqlTestService);
2089
+ var _super = /*#__PURE__*/_createSuper(EqlService);
2014
2090
 
2015
- function EqlTestService() {
2016
- _classCallCheck(this, EqlTestService);
2091
+ function EqlService() {
2092
+ _classCallCheck(this, EqlService);
2017
2093
 
2018
2094
  return _super.apply(this, arguments);
2019
2095
  }
2020
2096
 
2021
- _createClass(EqlTestService, [{
2097
+ _createClass(EqlService, [{
2022
2098
  key: "getQueryResult",
2023
2099
  value:
2024
2100
  /**
2025
2101
  * No description
2026
2102
  *
2027
- * @tags EqlTest
2103
+ * @tags Eql
2028
2104
  * @name GetQueryResult
2029
- * @operationId EqlTestController_GetQueryResult
2105
+ * @operationId EqlController_GetQueryResult
2030
2106
  * @summary Perform resources set acl access batch operation.
2031
2107
  * @request POST:/eql/query
2032
2108
  * @response `200` OK
@@ -2037,9 +2113,9 @@ let EqlTestService = /*#__PURE__*/function (_Service) {
2037
2113
  /**
2038
2114
  * No description
2039
2115
  *
2040
- * @tags EqlTest
2116
+ * @tags Eql
2041
2117
  * @name GetQueryDescription
2042
- * @operationId EqlTestController_GetQueryDescription
2118
+ * @operationId EqlController_GetQueryDescription
2043
2119
  * @summary Get EQL result columns definitions.
2044
2120
  * @request POST:/eql/description
2045
2121
  * @response `200` OK
@@ -2053,9 +2129,9 @@ let EqlTestService = /*#__PURE__*/function (_Service) {
2053
2129
  /**
2054
2130
  * No description
2055
2131
  *
2056
- * @tags EqlTest
2132
+ * @tags Eql
2057
2133
  * @name SetLayerParameterValue
2058
- * @operationId EqlTestController_SetLayerParameterValue
2134
+ * @operationId EqlController_SetLayerParameterValue
2059
2135
  * @summary Set EQL layer parameter.
2060
2136
  * @request POST:/eql/setParam
2061
2137
  * @response `200` OK
@@ -2069,9 +2145,9 @@ let EqlTestService = /*#__PURE__*/function (_Service) {
2069
2145
  /**
2070
2146
  * No description
2071
2147
  *
2072
- * @tags EqlTest
2148
+ * @tags Eql
2073
2149
  * @name SetLayerParameters
2074
- * @operationId EqlTestController_SetLayerParameters
2150
+ * @operationId EqlController_SetLayerParameters
2075
2151
  * @summary Set EQL layer parameters.
2076
2152
  * @request POST:/eql/setParams
2077
2153
  * @response `200` OK
@@ -2085,9 +2161,9 @@ let EqlTestService = /*#__PURE__*/function (_Service) {
2085
2161
  /**
2086
2162
  * No description
2087
2163
  *
2088
- * @tags EqlTest
2164
+ * @tags Eql
2089
2165
  * @name GetLayerParameters
2090
- * @operationId EqlTestController_GetLayerParameters
2166
+ * @operationId EqlController_GetLayerParameters
2091
2167
  * @summary Get EQL parameter.
2092
2168
  * @request GET:/eql/getParam
2093
2169
  * @response `200` OK
@@ -2101,9 +2177,9 @@ let EqlTestService = /*#__PURE__*/function (_Service) {
2101
2177
  /**
2102
2178
  * No description
2103
2179
  *
2104
- * @tags EqlTest
2180
+ * @tags Eql
2105
2181
  * @name GetLayerParameters1
2106
- * @operationId EqlTestController_GetLayerParameters_1
2182
+ * @operationId EqlController_GetLayerParameters_1
2107
2183
  * @summary Get all EQL parameters.
2108
2184
  * @request GET:/eql/getParams
2109
2185
  * @response `200` OK
@@ -2117,9 +2193,9 @@ let EqlTestService = /*#__PURE__*/function (_Service) {
2117
2193
  /**
2118
2194
  * No description
2119
2195
  *
2120
- * @tags EqlTest
2196
+ * @tags Eql
2121
2197
  * @name RemoveLayerParameterValue
2122
- * @operationId EqlTestController_RemoveLayerParameterValue
2198
+ * @operationId EqlController_RemoveLayerParameterValue
2123
2199
  * @summary Remove EQL layer parameter.
2124
2200
  * @request DELETE:/eql/removeParam
2125
2201
  * @response `200` OK
@@ -2132,22 +2208,22 @@ let EqlTestService = /*#__PURE__*/function (_Service) {
2132
2208
  }
2133
2209
  }]);
2134
2210
 
2135
- return EqlTestService;
2211
+ return EqlService;
2136
2212
  }(Service);
2137
2213
 
2138
- let EqlTest = /*#__PURE__*/function (_EqlTestService) {
2139
- _inherits(EqlTest, _EqlTestService);
2214
+ let Eql = /*#__PURE__*/function (_EqlService) {
2215
+ _inherits(Eql, _EqlService);
2140
2216
 
2141
- var _super = /*#__PURE__*/_createSuper(EqlTest);
2217
+ var _super = /*#__PURE__*/_createSuper(Eql);
2142
2218
 
2143
- function EqlTest() {
2144
- _classCallCheck(this, EqlTest);
2219
+ function Eql() {
2220
+ _classCallCheck(this, Eql);
2145
2221
 
2146
2222
  return _super.apply(this, arguments);
2147
2223
  }
2148
2224
 
2149
- return _createClass(EqlTest);
2150
- }(EqlTestService);
2225
+ return _createClass(Eql);
2226
+ }(EqlService);
2151
2227
 
2152
2228
  /**
2153
2229
  * @title Spatial Processing Core API
@@ -3203,22 +3279,6 @@ let LayersService = /*#__PURE__*/function (_Service) {
3203
3279
  function getBulkFeatures(data) {
3204
3280
  return this.http.post("/bulk/layers/features/query", data).json();
3205
3281
  }
3206
- /**
3207
- * No description
3208
- *
3209
- * @tags Layers
3210
- * @name GetFeaturesFromLayers
3211
- * @operationId LayersController_GetFeaturesFromLayers
3212
- * @summary Returns list of the layer features.
3213
- * @request POST:/layers/features/query
3214
- * @response `200` OK
3215
- */
3216
-
3217
- }, {
3218
- key: "getFeaturesFromLayers",
3219
- value: function getFeaturesFromLayers(data) {
3220
- return this.http.post("/layers/features/query", data).json();
3221
- }
3222
3282
  /**
3223
3283
  * No description
3224
3284
  *
@@ -5017,8 +5077,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
5017
5077
  || event.code === 4002
5018
5078
  /* InvalidSession */
5019
5079
  ) {
5020
- _this.connectStatus = exports.ConnectionStatus.SessionClosed;
5021
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5080
+ _this.connectStatus = exports.ConnectionStatus.SessionClosed;
5081
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5022
5082
  _this.connectStatus = exports.ConnectionStatus.Break;
5023
5083
  _this.reconnectTries++;
5024
5084
 
@@ -5850,12 +5910,12 @@ let Resources = /*#__PURE__*/function () {
5850
5910
  }, {
5851
5911
  key: "getDependentNames",
5852
5912
  value: function getDependentNames(deps, depType) {
5853
- return deps.filter((_ref) => {
5913
+ return deps.filter(_ref => {
5854
5914
  let {
5855
5915
  type
5856
5916
  } = _ref;
5857
5917
  return type === depType;
5858
- }).map((_ref2) => {
5918
+ }).map(_ref2 => {
5859
5919
  let {
5860
5920
  name
5861
5921
  } = _ref2;
@@ -6311,7 +6371,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
6311
6371
  const taskProgress = await this.getTaskProgress(id);
6312
6372
  this.resolveTaskStatus(taskProgress, resolve, reject);
6313
6373
 
6314
- const taskResultCallback = async (_ref) => {
6374
+ const taskResultCallback = async _ref => {
6315
6375
  let {
6316
6376
  data
6317
6377
  } = _ref;
@@ -6877,6 +6937,22 @@ let TablesService = /*#__PURE__*/function (_Service) {
6877
6937
  value: function deleteResources(query) {
6878
6938
  return this.http.delete("/tables", null, query).json();
6879
6939
  }
6940
+ /**
6941
+ * No description
6942
+ *
6943
+ * @tags Tables
6944
+ * @name CreateViewFromQueryLayer
6945
+ * @operationId TablesController_CreateViewFromQueryLayer
6946
+ * @summary Creates a new view from query layer.
6947
+ * @request POST:/tables/fromLayer
6948
+ * @response `200` OK
6949
+ */
6950
+
6951
+ }, {
6952
+ key: "createViewFromQueryLayer",
6953
+ value: function createViewFromQueryLayer(data) {
6954
+ return this.http.post("/tables/fromLayer", data).json();
6955
+ }
6880
6956
  /**
6881
6957
  * No description
6882
6958
  *
@@ -7501,7 +7577,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7501
7577
  _this.vectorTiles = new VectorTiles(_this.http);
7502
7578
  _this.universalSearch = new UniversalSearchService(_this.http);
7503
7579
  _this.spatialReference = new SpatialReferencesService(_this.http);
7504
- _this.eqlTest = new EqlTest(_this.http);
7580
+ _this.eql = new Eql(_this.http);
7505
7581
  _this.catalog = new CatalogService(_this.http);
7506
7582
  _this.queryToken = new QueryTokenAccessService(_this.http);
7507
7583
  _this.names = new Names({
@@ -7520,6 +7596,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7520
7596
  value: async function init(_ref2) {
7521
7597
  let {
7522
7598
  authParams,
7599
+ authQueryParams,
7523
7600
  connectWs,
7524
7601
  initScheduler,
7525
7602
  fetchSettings,
@@ -7527,7 +7604,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7527
7604
  } = _ref2;
7528
7605
 
7529
7606
  try {
7530
- await this.account.login(authParams);
7607
+ await this.account.login(authParams, authQueryParams);
7531
7608
 
7532
7609
  if (fetchUser) {
7533
7610
  await this.account.fetchCurrentUser();
@@ -8022,6 +8099,11 @@ function isFeatureLayer(layer) {
8022
8099
  AttributeType["Json"] = "Json";
8023
8100
  })(exports.AttributeType || (exports.AttributeType = {}));
8024
8101
 
8102
+ (function (AuthorizationGrant) {
8103
+ AuthorizationGrant["AuthorizationCode"] = "authorization_code";
8104
+ AuthorizationGrant["RefreshToken"] = "refresh_token";
8105
+ })(exports.AuthorizationGrant || (exports.AuthorizationGrant = {}));
8106
+
8025
8107
  (function (CatalogResourceType) {
8026
8108
  CatalogResourceType["None"] = "None";
8027
8109
  CatalogResourceType["Map"] = "Map";
@@ -8195,6 +8277,7 @@ function isFeatureLayer(layer) {
8195
8277
  OwnerFilter["My"] = "My";
8196
8278
  OwnerFilter["Shared"] = "Shared";
8197
8279
  OwnerFilter["Public"] = "Public";
8280
+ OwnerFilter["All"] = "All";
8198
8281
  })(exports.OwnerFilter || (exports.OwnerFilter = {}));
8199
8282
 
8200
8283
  (function (PbfSchema) {
@@ -8244,6 +8327,11 @@ function isFeatureLayer(layer) {
8244
8327
  ResourceTypeLink["Project"] = "projects";
8245
8328
  })(exports.ResourceTypeLink || (exports.ResourceTypeLink = {}));
8246
8329
 
8330
+ (function (ResponseType) {
8331
+ ResponseType["Code"] = "code";
8332
+ ResponseType["Token"] = "token";
8333
+ })(exports.ResponseType || (exports.ResponseType = {}));
8334
+
8247
8335
  (function (ServerTaskStatus) {
8248
8336
  ServerTaskStatus["None"] = "None";
8249
8337
  ServerTaskStatus["Scheduled"] = "Scheduled";
@@ -8304,7 +8392,7 @@ exports.Api = Api;
8304
8392
  exports.BulkOperations = BulkOperations;
8305
8393
  exports.Cameras = Cameras;
8306
8394
  exports.ClientSettings = ClientSettings;
8307
- exports.EqlTest = EqlTest;
8395
+ exports.Eql = Eql;
8308
8396
  exports.EvergisDynamicLayer = EvergisDynamicLayer;
8309
8397
  exports.EvergisTileLayer = EvergisTileLayer;
8310
8398
  exports.External = External;