@evergis/api 3.0.193 → 3.0.195

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 () {
@@ -546,37 +554,8 @@ let CatalogService = /*#__PURE__*/function (_Service) {
546
554
  }
547
555
 
548
556
  _createClass(CatalogService, [{
549
- key: "getAll",
557
+ key: "getTags",
550
558
  value:
551
- /**
552
- * No description
553
- *
554
- * @tags Catalog
555
- * @name GetAll
556
- * @operationId CatalogController_GetAll
557
- * @summary Get all resource with given.
558
- * @request GET:/resources
559
- * @response `200` OK
560
- */
561
- function getAll(query) {
562
- return this.http.get("/resources", query).json();
563
- }
564
- /**
565
- * No description
566
- *
567
- * @tags Catalog
568
- * @name PostGetAll
569
- * @operationId CatalogController_PostGetAll
570
- * @summary Get all resource with given.
571
- * @request POST:/resources
572
- * @response `200` OK
573
- */
574
-
575
- }, {
576
- key: "postGetAll",
577
- value: function postGetAll(query, data) {
578
- return this.http.post("/resources", data, query).json();
579
- }
580
559
  /**
581
560
  * No description
582
561
  *
@@ -587,10 +566,7 @@ let CatalogService = /*#__PURE__*/function (_Service) {
587
566
  * @request GET:/resources/tags
588
567
  * @response `200` OK
589
568
  */
590
-
591
- }, {
592
- key: "getTags",
593
- value: function getTags(query) {
569
+ function getTags(query) {
594
570
  return this.http.get("/resources/tags", query).json();
595
571
  }
596
572
  /**
@@ -613,17 +589,17 @@ let CatalogService = /*#__PURE__*/function (_Service) {
613
589
  * No description
614
590
  *
615
591
  * @tags Catalog
616
- * @name SearchResources
617
- * @operationId CatalogController_SearchResources
618
- * @summary Search resources.
619
- * @request POST:/resources/search
592
+ * @name PostGetAll
593
+ * @operationId CatalogController_PostGetAll
594
+ * @summary Get all resource with given.
595
+ * @request POST:/resources
620
596
  * @response `200` OK
621
597
  */
622
598
 
623
599
  }, {
624
- key: "searchResources",
625
- value: function searchResources(query, data) {
626
- return this.http.post("/resources/search", data, query).json();
600
+ key: "postGetAll",
601
+ value: function postGetAll(query, data) {
602
+ return this.http.post("/resources", data, query).json();
627
603
  }
628
604
  /**
629
605
  * No description
@@ -751,7 +727,7 @@ let CatalogService = /*#__PURE__*/function (_Service) {
751
727
  }, {
752
728
  key: "setPermissions1",
753
729
  value: function setPermissions1(resourceId, data) {
754
- return this.http.put("/resources/" + resourceId + "/permissions", data).json();
730
+ return this.http.put("/resources/" + resourceId + "/permissions", data).then(() => {});
755
731
  }
756
732
  /**
757
733
  * No description
@@ -767,7 +743,7 @@ let CatalogService = /*#__PURE__*/function (_Service) {
767
743
  }, {
768
744
  key: "setPermissions",
769
745
  value: function setPermissions(data) {
770
- return this.http.put("/resources/permissions", data).json();
746
+ return this.http.put("/resources/permissions", data).then(() => {});
771
747
  }
772
748
  /**
773
749
  * No description
@@ -1194,8 +1170,8 @@ let AccountService = /*#__PURE__*/function (_Service) {
1194
1170
 
1195
1171
  }, {
1196
1172
  key: "authenticate",
1197
- value: function authenticate(data) {
1198
- return this.http.post("/account/login", data).text();
1173
+ value: function authenticate(query, data) {
1174
+ return this.http.post("/account/login", data, query).text();
1199
1175
  }
1200
1176
  /**
1201
1177
  * No description
@@ -1245,6 +1221,54 @@ let AccountService = /*#__PURE__*/function (_Service) {
1245
1221
  value: function ldapLogin(data) {
1246
1222
  return this.http.post("/account/external/login/ldap", data).then(() => {});
1247
1223
  }
1224
+ /**
1225
+ * No description
1226
+ *
1227
+ * @tags Account
1228
+ * @name RegisterClient
1229
+ * @operationId AccountController_RegisterClient
1230
+ * @summary Register new client.
1231
+ * @request POST:/account/oauth2/client
1232
+ * @response `200` OK
1233
+ */
1234
+
1235
+ }, {
1236
+ key: "registerClient",
1237
+ value: function registerClient(data) {
1238
+ return this.http.post("/account/oauth2/client", data).json();
1239
+ }
1240
+ /**
1241
+ * No description
1242
+ *
1243
+ * @tags Account
1244
+ * @name UnbindClient
1245
+ * @operationId AccountController_UnbindClient
1246
+ * @summary Unbind client with id.
1247
+ * @request DELETE:/account/oauth2/client/{clientId}
1248
+ * @response `200` OK
1249
+ */
1250
+
1251
+ }, {
1252
+ key: "unbindClient",
1253
+ value: function unbindClient(clientId) {
1254
+ return this.http.delete("/account/oauth2/client/" + clientId, null).then(() => {});
1255
+ }
1256
+ /**
1257
+ * No description
1258
+ *
1259
+ * @tags Account
1260
+ * @name Token
1261
+ * @operationId AccountController_Token
1262
+ * @summary Get access token request.
1263
+ * @request POST:/account/oauth2/token
1264
+ * @response `200` OK
1265
+ */
1266
+
1267
+ }, {
1268
+ key: "token",
1269
+ value: function token(data) {
1270
+ return this.http.post("/account/oauth2/token", data).json();
1271
+ }
1248
1272
  /**
1249
1273
  * No description
1250
1274
  *
@@ -1419,9 +1443,13 @@ let Account = /*#__PURE__*/function (_AccountService) {
1419
1443
 
1420
1444
  _createClass(Account, [{
1421
1445
  key: "login",
1422
- value: async function login(params) {
1446
+ value: async function login(params, authParams) {
1447
+ if (authParams === void 0) {
1448
+ authParams = {};
1449
+ }
1450
+
1423
1451
  if (params) {
1424
- await _get(_getPrototypeOf(Account.prototype), "authenticate", this).call(this, params);
1452
+ await _get(_getPrototypeOf(Account.prototype), "authenticate", this).call(this, authParams, params);
1425
1453
  }
1426
1454
  }
1427
1455
  }, {
@@ -5017,8 +5045,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
5017
5045
  || event.code === 4002
5018
5046
  /* InvalidSession */
5019
5047
  ) {
5020
- _this.connectStatus = exports.ConnectionStatus.SessionClosed;
5021
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5048
+ _this.connectStatus = exports.ConnectionStatus.SessionClosed;
5049
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5022
5050
  _this.connectStatus = exports.ConnectionStatus.Break;
5023
5051
  _this.reconnectTries++;
5024
5052
 
@@ -5850,12 +5878,12 @@ let Resources = /*#__PURE__*/function () {
5850
5878
  }, {
5851
5879
  key: "getDependentNames",
5852
5880
  value: function getDependentNames(deps, depType) {
5853
- return deps.filter((_ref) => {
5881
+ return deps.filter(_ref => {
5854
5882
  let {
5855
5883
  type
5856
5884
  } = _ref;
5857
5885
  return type === depType;
5858
- }).map((_ref2) => {
5886
+ }).map(_ref2 => {
5859
5887
  let {
5860
5888
  name
5861
5889
  } = _ref2;
@@ -6311,7 +6339,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
6311
6339
  const taskProgress = await this.getTaskProgress(id);
6312
6340
  this.resolveTaskStatus(taskProgress, resolve, reject);
6313
6341
 
6314
- const taskResultCallback = async (_ref) => {
6342
+ const taskResultCallback = async _ref => {
6315
6343
  let {
6316
6344
  data
6317
6345
  } = _ref;
@@ -6877,22 +6905,6 @@ let TablesService = /*#__PURE__*/function (_Service) {
6877
6905
  value: function deleteResources(query) {
6878
6906
  return this.http.delete("/tables", null, query).json();
6879
6907
  }
6880
- /**
6881
- * No description
6882
- *
6883
- * @tags Tables
6884
- * @name CreateViewFromQueryLayer
6885
- * @operationId TablesController_CreateViewFromQueryLayer
6886
- * @summary Creates a new view from query layer.
6887
- * @request POST:/tables/fromLayer
6888
- * @response `200` OK
6889
- */
6890
-
6891
- }, {
6892
- key: "createViewFromQueryLayer",
6893
- value: function createViewFromQueryLayer(data) {
6894
- return this.http.post("/tables/fromLayer", data).json();
6895
- }
6896
6908
  /**
6897
6909
  * No description
6898
6910
  *
@@ -7105,6 +7117,38 @@ let TablesService = /*#__PURE__*/function (_Service) {
7105
7117
  value: function unmapTable(name) {
7106
7118
  return this.http.delete("/tables/map-table/" + name, null).then(() => {});
7107
7119
  }
7120
+ /**
7121
+ * No description
7122
+ *
7123
+ * @tags Tables
7124
+ * @name CreateViewFromQueryLayer
7125
+ * @operationId TablesController_CreateViewFromQueryLayer
7126
+ * @summary Creates a new view from query layer.
7127
+ * @request POST:/tables/fromLayer
7128
+ * @response `200` OK
7129
+ */
7130
+
7131
+ }, {
7132
+ key: "createViewFromQueryLayer",
7133
+ value: function createViewFromQueryLayer(data) {
7134
+ return this.http.post("/tables/fromLayer", data).json();
7135
+ }
7136
+ /**
7137
+ * No description
7138
+ *
7139
+ * @tags Tables
7140
+ * @name CreateViewFromQuery
7141
+ * @operationId TablesController_CreateViewFromQuery
7142
+ * @summary Creates a new view from query.
7143
+ * @request POST:/tables/fromQuery
7144
+ * @response `200` OK
7145
+ */
7146
+
7147
+ }, {
7148
+ key: "createViewFromQuery",
7149
+ value: function createViewFromQuery(data) {
7150
+ return this.http.post("/tables/fromQuery", data).json();
7151
+ }
7108
7152
  /**
7109
7153
  * No description
7110
7154
  *
@@ -7536,6 +7580,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7536
7580
  value: async function init(_ref2) {
7537
7581
  let {
7538
7582
  authParams,
7583
+ authQueryParams,
7539
7584
  connectWs,
7540
7585
  initScheduler,
7541
7586
  fetchSettings,
@@ -7543,7 +7588,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7543
7588
  } = _ref2;
7544
7589
 
7545
7590
  try {
7546
- await this.account.login(authParams);
7591
+ await this.account.login(authParams, authQueryParams);
7547
7592
 
7548
7593
  if (fetchUser) {
7549
7594
  await this.account.fetchCurrentUser();
@@ -8038,6 +8083,11 @@ function isFeatureLayer(layer) {
8038
8083
  AttributeType["Json"] = "Json";
8039
8084
  })(exports.AttributeType || (exports.AttributeType = {}));
8040
8085
 
8086
+ (function (AuthorizationGrant) {
8087
+ AuthorizationGrant["AuthorizationCode"] = "authorization_code";
8088
+ AuthorizationGrant["RefreshToken"] = "refresh_token";
8089
+ })(exports.AuthorizationGrant || (exports.AuthorizationGrant = {}));
8090
+
8041
8091
  (function (CatalogResourceType) {
8042
8092
  CatalogResourceType["None"] = "None";
8043
8093
  CatalogResourceType["Map"] = "Map";
@@ -8211,6 +8261,7 @@ function isFeatureLayer(layer) {
8211
8261
  OwnerFilter["My"] = "My";
8212
8262
  OwnerFilter["Shared"] = "Shared";
8213
8263
  OwnerFilter["Public"] = "Public";
8264
+ OwnerFilter["All"] = "All";
8214
8265
  })(exports.OwnerFilter || (exports.OwnerFilter = {}));
8215
8266
 
8216
8267
  (function (PbfSchema) {
@@ -8244,6 +8295,14 @@ function isFeatureLayer(layer) {
8244
8295
  Quality["High"] = "High";
8245
8296
  })(exports.Quality || (exports.Quality = {}));
8246
8297
 
8298
+ (function (ResourceSubTypeFilter) {
8299
+ ResourceSubTypeFilter["RemoteTileService"] = "RemoteTileService";
8300
+ ResourceSubTypeFilter["ProxyService"] = "ProxyService";
8301
+ ResourceSubTypeFilter["PostgresLayerService"] = "PostgresLayerService";
8302
+ ResourceSubTypeFilter["QueryLayerService"] = "QueryLayerService";
8303
+ ResourceSubTypeFilter["TileCatalogTable"] = "TileCatalogTable";
8304
+ })(exports.ResourceSubTypeFilter || (exports.ResourceSubTypeFilter = {}));
8305
+
8247
8306
  (function (ResourceType) {
8248
8307
  ResourceType["Unknown"] = "Unknown";
8249
8308
  ResourceType["Table"] = "table";
@@ -8254,12 +8313,27 @@ function isFeatureLayer(layer) {
8254
8313
  ResourceType["Tag"] = "tag";
8255
8314
  })(exports.ResourceType || (exports.ResourceType = {}));
8256
8315
 
8316
+ (function (ResourceTypeFilter) {
8317
+ ResourceTypeFilter["Map"] = "Map";
8318
+ ResourceTypeFilter["Layer"] = "Layer";
8319
+ ResourceTypeFilter["Table"] = "Table";
8320
+ ResourceTypeFilter["RasterCatalog"] = "RasterCatalog";
8321
+ ResourceTypeFilter["ProxyService"] = "ProxyService";
8322
+ ResourceTypeFilter["RemoteTileService"] = "RemoteTileService";
8323
+ ResourceTypeFilter["File"] = "File";
8324
+ })(exports.ResourceTypeFilter || (exports.ResourceTypeFilter = {}));
8325
+
8257
8326
  (function (ResourceTypeLink) {
8258
8327
  ResourceTypeLink["Table"] = "tables";
8259
8328
  ResourceTypeLink["Layer"] = "layers";
8260
8329
  ResourceTypeLink["Project"] = "projects";
8261
8330
  })(exports.ResourceTypeLink || (exports.ResourceTypeLink = {}));
8262
8331
 
8332
+ (function (ResponseType) {
8333
+ ResponseType["Code"] = "code";
8334
+ ResponseType["Token"] = "token";
8335
+ })(exports.ResponseType || (exports.ResponseType = {}));
8336
+
8263
8337
  (function (ServerTaskStatus) {
8264
8338
  ServerTaskStatus["None"] = "None";
8265
8339
  ServerTaskStatus["Scheduled"] = "Scheduled";