@evergis/api 3.0.193 → 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.
- package/LICENSE +20 -20
- package/README.md +21 -21
- package/dist/Api.d.ts +3 -2
- package/dist/__generated__/AccountService.d.ts +35 -2
- package/dist/__generated__/CatalogService.d.ts +3 -3
- package/dist/__generated__/ProjectsService.d.ts +2 -2
- package/dist/__generated__/StatisticService.d.ts +2 -2
- package/dist/__generated__/TablesService.d.ts +2 -2
- package/dist/__generated__/TagsService.d.ts +2 -2
- package/dist/__generated__/WmsServerService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +321 -195
- package/dist/api.cjs.development.js +87 -15
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +297 -201
- package/dist/api.esm.js.map +1 -1
- package/dist/services/Account.d.ts +2 -2
- package/dist/services/Statistic.d.ts +2 -2
- package/package.json +2 -2
|
@@ -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(
|
|
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(
|
|
189
|
+
return _get.apply(this, arguments);
|
|
182
190
|
}
|
|
183
191
|
|
|
184
192
|
let HttpClient = /*#__PURE__*/function () {
|
|
@@ -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).
|
|
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).
|
|
778
|
+
return this.http.put("/resources/permissions", data).then(() => {});
|
|
771
779
|
}
|
|
772
780
|
/**
|
|
773
781
|
* No description
|
|
@@ -1194,8 +1202,8 @@ let AccountService = /*#__PURE__*/function (_Service) {
|
|
|
1194
1202
|
|
|
1195
1203
|
}, {
|
|
1196
1204
|
key: "authenticate",
|
|
1197
|
-
value: function authenticate(data) {
|
|
1198
|
-
return this.http.post("/account/login", data).text();
|
|
1205
|
+
value: function authenticate(query, data) {
|
|
1206
|
+
return this.http.post("/account/login", data, query).text();
|
|
1199
1207
|
}
|
|
1200
1208
|
/**
|
|
1201
1209
|
* No description
|
|
@@ -1245,6 +1253,54 @@ let AccountService = /*#__PURE__*/function (_Service) {
|
|
|
1245
1253
|
value: function ldapLogin(data) {
|
|
1246
1254
|
return this.http.post("/account/external/login/ldap", data).then(() => {});
|
|
1247
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
|
+
}
|
|
1248
1304
|
/**
|
|
1249
1305
|
* No description
|
|
1250
1306
|
*
|
|
@@ -1419,9 +1475,13 @@ let Account = /*#__PURE__*/function (_AccountService) {
|
|
|
1419
1475
|
|
|
1420
1476
|
_createClass(Account, [{
|
|
1421
1477
|
key: "login",
|
|
1422
|
-
value: async function login(params) {
|
|
1478
|
+
value: async function login(params, authParams) {
|
|
1479
|
+
if (authParams === void 0) {
|
|
1480
|
+
authParams = {};
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1423
1483
|
if (params) {
|
|
1424
|
-
await _get(_getPrototypeOf(Account.prototype), "authenticate", this).call(this, params);
|
|
1484
|
+
await _get(_getPrototypeOf(Account.prototype), "authenticate", this).call(this, authParams, params);
|
|
1425
1485
|
}
|
|
1426
1486
|
}
|
|
1427
1487
|
}, {
|
|
@@ -5017,8 +5077,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
5017
5077
|
|| event.code === 4002
|
|
5018
5078
|
/* InvalidSession */
|
|
5019
5079
|
) {
|
|
5020
|
-
|
|
5021
|
-
|
|
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(
|
|
5913
|
+
return deps.filter(_ref => {
|
|
5854
5914
|
let {
|
|
5855
5915
|
type
|
|
5856
5916
|
} = _ref;
|
|
5857
5917
|
return type === depType;
|
|
5858
|
-
}).map(
|
|
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
|
|
6374
|
+
const taskResultCallback = async _ref => {
|
|
6315
6375
|
let {
|
|
6316
6376
|
data
|
|
6317
6377
|
} = _ref;
|
|
@@ -7536,6 +7596,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7536
7596
|
value: async function init(_ref2) {
|
|
7537
7597
|
let {
|
|
7538
7598
|
authParams,
|
|
7599
|
+
authQueryParams,
|
|
7539
7600
|
connectWs,
|
|
7540
7601
|
initScheduler,
|
|
7541
7602
|
fetchSettings,
|
|
@@ -7543,7 +7604,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7543
7604
|
} = _ref2;
|
|
7544
7605
|
|
|
7545
7606
|
try {
|
|
7546
|
-
await this.account.login(authParams);
|
|
7607
|
+
await this.account.login(authParams, authQueryParams);
|
|
7547
7608
|
|
|
7548
7609
|
if (fetchUser) {
|
|
7549
7610
|
await this.account.fetchCurrentUser();
|
|
@@ -8038,6 +8099,11 @@ function isFeatureLayer(layer) {
|
|
|
8038
8099
|
AttributeType["Json"] = "Json";
|
|
8039
8100
|
})(exports.AttributeType || (exports.AttributeType = {}));
|
|
8040
8101
|
|
|
8102
|
+
(function (AuthorizationGrant) {
|
|
8103
|
+
AuthorizationGrant["AuthorizationCode"] = "authorization_code";
|
|
8104
|
+
AuthorizationGrant["RefreshToken"] = "refresh_token";
|
|
8105
|
+
})(exports.AuthorizationGrant || (exports.AuthorizationGrant = {}));
|
|
8106
|
+
|
|
8041
8107
|
(function (CatalogResourceType) {
|
|
8042
8108
|
CatalogResourceType["None"] = "None";
|
|
8043
8109
|
CatalogResourceType["Map"] = "Map";
|
|
@@ -8211,6 +8277,7 @@ function isFeatureLayer(layer) {
|
|
|
8211
8277
|
OwnerFilter["My"] = "My";
|
|
8212
8278
|
OwnerFilter["Shared"] = "Shared";
|
|
8213
8279
|
OwnerFilter["Public"] = "Public";
|
|
8280
|
+
OwnerFilter["All"] = "All";
|
|
8214
8281
|
})(exports.OwnerFilter || (exports.OwnerFilter = {}));
|
|
8215
8282
|
|
|
8216
8283
|
(function (PbfSchema) {
|
|
@@ -8260,6 +8327,11 @@ function isFeatureLayer(layer) {
|
|
|
8260
8327
|
ResourceTypeLink["Project"] = "projects";
|
|
8261
8328
|
})(exports.ResourceTypeLink || (exports.ResourceTypeLink = {}));
|
|
8262
8329
|
|
|
8330
|
+
(function (ResponseType) {
|
|
8331
|
+
ResponseType["Code"] = "code";
|
|
8332
|
+
ResponseType["Token"] = "token";
|
|
8333
|
+
})(exports.ResponseType || (exports.ResponseType = {}));
|
|
8334
|
+
|
|
8263
8335
|
(function (ServerTaskStatus) {
|
|
8264
8336
|
ServerTaskStatus["None"] = "None";
|
|
8265
8337
|
ServerTaskStatus["Scheduled"] = "Scheduled";
|