@evergis/api 4.1.20 → 4.1.22
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.d.ts +8 -7
- package/dist/__generated__/EqlService.d.ts +13 -1
- package/dist/__generated__/ExternalProvidersService.d.ts +176 -0
- package/dist/__generated__/data-contracts.d.ts +31 -2
- package/dist/api.esm.js +286 -10
- package/dist/api.esm.js.map +1 -1
- package/dist/index.js +286 -9
- package/dist/index.js.map +1 -1
- package/dist/services/External.d.ts +7 -0
- package/dist/services/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -888,6 +888,266 @@ class AccountPreviewService extends Service {
|
|
|
888
888
|
class AccountPreview extends AccountPreviewService {
|
|
889
889
|
}
|
|
890
890
|
|
|
891
|
+
/* eslint-disable */
|
|
892
|
+
/* tslint:disable */
|
|
893
|
+
/*
|
|
894
|
+
* ---------------------------------------------------------------
|
|
895
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
896
|
+
* ## ##
|
|
897
|
+
* ## AUTHOR: acacode ##
|
|
898
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
899
|
+
* ---------------------------------------------------------------
|
|
900
|
+
*/
|
|
901
|
+
// @ts-nocheck
|
|
902
|
+
/**
|
|
903
|
+
* @title Spatial Processing Core API
|
|
904
|
+
* @version 1.5.1.0
|
|
905
|
+
* @baseUrl /sp
|
|
906
|
+
*/
|
|
907
|
+
class ExternalProvidersService extends Service {
|
|
908
|
+
/**
|
|
909
|
+
* No description
|
|
910
|
+
*
|
|
911
|
+
* @tags ExternalProviders
|
|
912
|
+
* @name FacebookLogin
|
|
913
|
+
* @operationId ExternalProvidersController_FacebookLogin
|
|
914
|
+
* @summary The external login by facebook.
|
|
915
|
+
* @request GET:/account/external/login/facebook
|
|
916
|
+
* @secure
|
|
917
|
+
* @response `200` OK
|
|
918
|
+
*/
|
|
919
|
+
facebookLogin() {
|
|
920
|
+
return this.http.createUrl(`/account/external/login/facebook`);
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* No description
|
|
924
|
+
*
|
|
925
|
+
* @tags ExternalProviders
|
|
926
|
+
* @name GoogleLogin
|
|
927
|
+
* @operationId ExternalProvidersController_GoogleLogin
|
|
928
|
+
* @summary The external login by google.
|
|
929
|
+
* @request GET:/account/external/login/google
|
|
930
|
+
* @secure
|
|
931
|
+
* @response `200` OK
|
|
932
|
+
*/
|
|
933
|
+
googleLogin() {
|
|
934
|
+
return this.http.createUrl(`/account/external/login/google`);
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* No description
|
|
938
|
+
*
|
|
939
|
+
* @tags ExternalProviders
|
|
940
|
+
* @name VkLogin
|
|
941
|
+
* @operationId ExternalProvidersController_VkLogin
|
|
942
|
+
* @summary The external login by vk.
|
|
943
|
+
* @request GET:/account/external/login/vk
|
|
944
|
+
* @secure
|
|
945
|
+
* @response `200` OK
|
|
946
|
+
*/
|
|
947
|
+
vkLogin() {
|
|
948
|
+
return this.http.createUrl(`/account/external/login/vk`);
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
* No description
|
|
952
|
+
*
|
|
953
|
+
* @tags ExternalProviders
|
|
954
|
+
* @name YandexLogin
|
|
955
|
+
* @operationId ExternalProvidersController_YandexLogin
|
|
956
|
+
* @summary The external login by yandex.
|
|
957
|
+
* @request GET:/account/external/login/yandex
|
|
958
|
+
* @secure
|
|
959
|
+
* @response `200` OK
|
|
960
|
+
*/
|
|
961
|
+
yandexLogin() {
|
|
962
|
+
return this.http.get(`/account/external/login/yandex`).then(() => { });
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* No description
|
|
966
|
+
*
|
|
967
|
+
* @tags ExternalProviders
|
|
968
|
+
* @name LoginCallback
|
|
969
|
+
* @operationId ExternalProvidersController_LoginCallback
|
|
970
|
+
* @summary The external login callback.
|
|
971
|
+
* @request GET:/account/external/login/callback
|
|
972
|
+
* @secure
|
|
973
|
+
* @response `200` OK
|
|
974
|
+
*/
|
|
975
|
+
loginCallback() {
|
|
976
|
+
return this.http.get(`/account/external/login/callback`).then(() => { });
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* No description
|
|
980
|
+
*
|
|
981
|
+
* @tags ExternalProviders
|
|
982
|
+
* @name UnbindFacebook
|
|
983
|
+
* @operationId ExternalProvidersController_UnbindFacebook
|
|
984
|
+
* @summary Unbind external login from current user account (google).
|
|
985
|
+
* @request DELETE:/account/external/unbind/facebook
|
|
986
|
+
* @secure
|
|
987
|
+
* @response `200` OK
|
|
988
|
+
*/
|
|
989
|
+
unbindFacebook() {
|
|
990
|
+
return this.http.delete(`/account/external/unbind/facebook`, null).then(() => { });
|
|
991
|
+
}
|
|
992
|
+
/**
|
|
993
|
+
* No description
|
|
994
|
+
*
|
|
995
|
+
* @tags ExternalProviders
|
|
996
|
+
* @name UnbindGoogle
|
|
997
|
+
* @operationId ExternalProvidersController_UnbindGoogle
|
|
998
|
+
* @summary Unbind external login from current user account (google).
|
|
999
|
+
* @request DELETE:/account/external/unbind/google
|
|
1000
|
+
* @secure
|
|
1001
|
+
* @response `200` OK
|
|
1002
|
+
*/
|
|
1003
|
+
unbindGoogle() {
|
|
1004
|
+
return this.http.delete(`/account/external/unbind/google`, null).then(() => { });
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* No description
|
|
1008
|
+
*
|
|
1009
|
+
* @tags ExternalProviders
|
|
1010
|
+
* @name UnbindVk
|
|
1011
|
+
* @operationId ExternalProvidersController_UnbindVk
|
|
1012
|
+
* @summary Unbind external login from current user account (google).
|
|
1013
|
+
* @request DELETE:/account/external/unbind/vk
|
|
1014
|
+
* @secure
|
|
1015
|
+
* @response `200` OK
|
|
1016
|
+
*/
|
|
1017
|
+
unbindVk() {
|
|
1018
|
+
return this.http.delete(`/account/external/unbind/vk`, null).then(() => { });
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
* No description
|
|
1022
|
+
*
|
|
1023
|
+
* @tags ExternalProviders
|
|
1024
|
+
* @name UnbindYandex
|
|
1025
|
+
* @operationId ExternalProvidersController_UnbindYandex
|
|
1026
|
+
* @summary Unbind external login from current user account (yandex).
|
|
1027
|
+
* @request DELETE:/account/external/unbind/yandex
|
|
1028
|
+
* @secure
|
|
1029
|
+
* @response `200` OK
|
|
1030
|
+
*/
|
|
1031
|
+
unbindYandex() {
|
|
1032
|
+
return this.http.delete(`/account/external/unbind/yandex`, null).then(() => { });
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* No description
|
|
1036
|
+
*
|
|
1037
|
+
* @tags ExternalProviders
|
|
1038
|
+
* @name BindFacebook
|
|
1039
|
+
* @operationId ExternalProvidersController_BindFacebook
|
|
1040
|
+
* @summary The external login by vk.
|
|
1041
|
+
* @request GET:/account/external/bind/facebook
|
|
1042
|
+
* @secure
|
|
1043
|
+
* @response `200` OK
|
|
1044
|
+
*/
|
|
1045
|
+
bindFacebook() {
|
|
1046
|
+
return this.http.createUrl(`/account/external/bind/facebook`);
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
* No description
|
|
1050
|
+
*
|
|
1051
|
+
* @tags ExternalProviders
|
|
1052
|
+
* @name BindGoogle
|
|
1053
|
+
* @operationId ExternalProvidersController_BindGoogle
|
|
1054
|
+
* @summary The external login by vk.
|
|
1055
|
+
* @request GET:/account/external/bind/google
|
|
1056
|
+
* @secure
|
|
1057
|
+
* @response `200` OK
|
|
1058
|
+
*/
|
|
1059
|
+
bindGoogle() {
|
|
1060
|
+
return this.http.createUrl(`/account/external/bind/google`);
|
|
1061
|
+
}
|
|
1062
|
+
/**
|
|
1063
|
+
* No description
|
|
1064
|
+
*
|
|
1065
|
+
* @tags ExternalProviders
|
|
1066
|
+
* @name BindVk
|
|
1067
|
+
* @operationId ExternalProvidersController_BindVk
|
|
1068
|
+
* @summary The external login by vk.
|
|
1069
|
+
* @request GET:/account/external/bind/vk
|
|
1070
|
+
* @secure
|
|
1071
|
+
* @response `200` OK
|
|
1072
|
+
*/
|
|
1073
|
+
bindVk() {
|
|
1074
|
+
return this.http.createUrl(`/account/external/bind/vk`);
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* No description
|
|
1078
|
+
*
|
|
1079
|
+
* @tags ExternalProviders
|
|
1080
|
+
* @name BindYandex
|
|
1081
|
+
* @operationId ExternalProvidersController_BindYandex
|
|
1082
|
+
* @summary The external login by yandex.
|
|
1083
|
+
* @request GET:/account/external/bind/yandex
|
|
1084
|
+
* @secure
|
|
1085
|
+
* @response `200` OK
|
|
1086
|
+
*/
|
|
1087
|
+
bindYandex() {
|
|
1088
|
+
return this.http.get(`/account/external/bind/yandex`).then(() => { });
|
|
1089
|
+
}
|
|
1090
|
+
/**
|
|
1091
|
+
* No description
|
|
1092
|
+
*
|
|
1093
|
+
* @tags ExternalProviders
|
|
1094
|
+
* @name BindCallback
|
|
1095
|
+
* @operationId ExternalProvidersController_BindCallback
|
|
1096
|
+
* @summary Bind external login to current user account.
|
|
1097
|
+
* @request GET:/account/external/bind/callback
|
|
1098
|
+
* @secure
|
|
1099
|
+
* @response `200` OK
|
|
1100
|
+
*/
|
|
1101
|
+
bindCallback() {
|
|
1102
|
+
return this.http.get(`/account/external/bind/callback`).then(() => { });
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
class External extends ExternalProvidersService {
|
|
1107
|
+
login(network) {
|
|
1108
|
+
switch (network) {
|
|
1109
|
+
case 'vk':
|
|
1110
|
+
return this.vkLogin();
|
|
1111
|
+
case 'google':
|
|
1112
|
+
return this.googleLogin();
|
|
1113
|
+
case 'facebook':
|
|
1114
|
+
return this.facebookLogin();
|
|
1115
|
+
case 'yandex':
|
|
1116
|
+
return this.yandexLogin();
|
|
1117
|
+
default:
|
|
1118
|
+
return '';
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
bind(network) {
|
|
1122
|
+
switch (network) {
|
|
1123
|
+
case 'vk':
|
|
1124
|
+
return this.bindVk();
|
|
1125
|
+
case 'google':
|
|
1126
|
+
return this.bindGoogle();
|
|
1127
|
+
case 'facebook':
|
|
1128
|
+
return this.bindFacebook();
|
|
1129
|
+
case 'yandex':
|
|
1130
|
+
return this.bindYandex();
|
|
1131
|
+
default:
|
|
1132
|
+
return '';
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
unbind(network) {
|
|
1136
|
+
switch (network) {
|
|
1137
|
+
case 'vk':
|
|
1138
|
+
return this.unbindVk();
|
|
1139
|
+
case 'google':
|
|
1140
|
+
return this.unbindGoogle();
|
|
1141
|
+
case 'facebook':
|
|
1142
|
+
return this.unbindFacebook();
|
|
1143
|
+
case 'yandex':
|
|
1144
|
+
return this.unbindYandex();
|
|
1145
|
+
default:
|
|
1146
|
+
return '';
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
|
|
891
1151
|
/* eslint-disable */
|
|
892
1152
|
/* tslint:disable */
|
|
893
1153
|
/*
|
|
@@ -1195,6 +1455,20 @@ class EqlService extends Service {
|
|
|
1195
1455
|
getQueryDescription(data) {
|
|
1196
1456
|
return this.http.post(`/eql/description`, data).json();
|
|
1197
1457
|
}
|
|
1458
|
+
/**
|
|
1459
|
+
* No description
|
|
1460
|
+
*
|
|
1461
|
+
* @tags Eql
|
|
1462
|
+
* @name GetQueryDependencies
|
|
1463
|
+
* @operationId EqlController_GetQueryDependencies
|
|
1464
|
+
* @summary Get EQL result dependencies.
|
|
1465
|
+
* @request POST:/eql/dependencies
|
|
1466
|
+
* @secure
|
|
1467
|
+
* @response `200` OK
|
|
1468
|
+
*/
|
|
1469
|
+
getQueryDependencies(data) {
|
|
1470
|
+
return this.http.post(`/eql/dependencies`, data).json();
|
|
1471
|
+
}
|
|
1198
1472
|
/**
|
|
1199
1473
|
* No description
|
|
1200
1474
|
*
|
|
@@ -2570,9 +2844,6 @@ const SHARED_PORT = "8082";
|
|
|
2570
2844
|
const URL_PATHS = Object.values(exports.UrlPath);
|
|
2571
2845
|
const DEFAULT_URL_PATH = URL_PATHS[0];
|
|
2572
2846
|
class Api extends EventEmitter {
|
|
2573
|
-
http;
|
|
2574
|
-
wsUrl;
|
|
2575
|
-
urlPath;
|
|
2576
2847
|
url;
|
|
2577
2848
|
layers;
|
|
2578
2849
|
tables;
|
|
@@ -2585,6 +2856,7 @@ class Api extends EventEmitter {
|
|
|
2585
2856
|
resources;
|
|
2586
2857
|
geocode;
|
|
2587
2858
|
tools;
|
|
2859
|
+
external;
|
|
2588
2860
|
account;
|
|
2589
2861
|
accountPreview;
|
|
2590
2862
|
clientSettings;
|
|
@@ -2602,6 +2874,9 @@ class Api extends EventEmitter {
|
|
|
2602
2874
|
dataSource;
|
|
2603
2875
|
remoteTaskManager;
|
|
2604
2876
|
cameras;
|
|
2877
|
+
http;
|
|
2878
|
+
wsUrl;
|
|
2879
|
+
urlPath;
|
|
2605
2880
|
constructor({ url, wsUrl, wsKeepAlive, snappingHubUrl, http, urlPath, httpOptions, }) {
|
|
2606
2881
|
super();
|
|
2607
2882
|
const { hooks } = httpOptions || {};
|
|
@@ -2670,6 +2945,7 @@ class Api extends EventEmitter {
|
|
|
2670
2945
|
this.tables = new Tables(this.http);
|
|
2671
2946
|
this.projects = new Projects(this.http);
|
|
2672
2947
|
this.resources = new Resources(this.projects, this.layers, this.tables);
|
|
2948
|
+
this.external = new External(this.http);
|
|
2673
2949
|
this.account = new Account(this.http);
|
|
2674
2950
|
this.accountPreview = new AccountPreview(this.http);
|
|
2675
2951
|
this.bulk = new BulkOperations(this.http);
|
|
@@ -2706,6 +2982,12 @@ class Api extends EventEmitter {
|
|
|
2706
2982
|
.build()
|
|
2707
2983
|
: null;
|
|
2708
2984
|
}
|
|
2985
|
+
get isShared() {
|
|
2986
|
+
return this.urlPath === exports.UrlPath.Shared;
|
|
2987
|
+
}
|
|
2988
|
+
get isPresentation() {
|
|
2989
|
+
return this.urlPath === exports.UrlPath.Presentation || window.location.port === SHARED_PORT;
|
|
2990
|
+
}
|
|
2709
2991
|
async init({ authParams, authQueryParams, connectWs, fetchSettings, fetchUser, useJwt, }) {
|
|
2710
2992
|
try {
|
|
2711
2993
|
await this.account.login(authParams, authQueryParams, useJwt);
|
|
@@ -2771,12 +3053,6 @@ class Api extends EventEmitter {
|
|
|
2771
3053
|
const urlPath = firstPath ? `/${firstPath}` : void 0;
|
|
2772
3054
|
return urlPath && URL_PATHS.includes(urlPath) ? urlPath : DEFAULT_URL_PATH;
|
|
2773
3055
|
}
|
|
2774
|
-
get isShared() {
|
|
2775
|
-
return this.urlPath === exports.UrlPath.Shared;
|
|
2776
|
-
}
|
|
2777
|
-
get isPresentation() {
|
|
2778
|
-
return this.urlPath === exports.UrlPath.Presentation || window.location.port === SHARED_PORT;
|
|
2779
|
-
}
|
|
2780
3056
|
}
|
|
2781
3057
|
|
|
2782
3058
|
const addSubDomainToLocation = (subDomain) => `${window.location.protocol}//${subDomain}.${window.location.host}`;
|
|
@@ -5925,6 +6201,7 @@ exports.BulkOperations = BulkOperations;
|
|
|
5925
6201
|
exports.Cameras = Cameras;
|
|
5926
6202
|
exports.ClientSettings = ClientSettings;
|
|
5927
6203
|
exports.Eql = Eql;
|
|
6204
|
+
exports.External = External;
|
|
5928
6205
|
exports.Feedback = Feedback;
|
|
5929
6206
|
exports.FileUpload = FileUpload;
|
|
5930
6207
|
exports.Filters = Filters;
|