@evergis/api 4.1.21 → 4.1.23

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
@@ -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
  /*
@@ -2596,6 +2856,7 @@ class Api extends EventEmitter {
2596
2856
  resources;
2597
2857
  geocode;
2598
2858
  tools;
2859
+ external;
2599
2860
  account;
2600
2861
  accountPreview;
2601
2862
  clientSettings;
@@ -2684,6 +2945,7 @@ class Api extends EventEmitter {
2684
2945
  this.tables = new Tables(this.http);
2685
2946
  this.projects = new Projects(this.http);
2686
2947
  this.resources = new Resources(this.projects, this.layers, this.tables);
2948
+ this.external = new External(this.http);
2687
2949
  this.account = new Account(this.http);
2688
2950
  this.accountPreview = new AccountPreview(this.http);
2689
2951
  this.bulk = new BulkOperations(this.http);
@@ -2747,7 +3009,7 @@ class Api extends EventEmitter {
2747
3009
  }
2748
3010
  }
2749
3011
  isAcceptedNetwork(network) {
2750
- return ["vk", "google", "facebook"].includes(network);
3012
+ return ["vk", "google", "facebook", "yandex"].includes(network);
2751
3013
  }
2752
3014
  async socAuthLogin(network) {
2753
3015
  if (!this.isAcceptedNetwork(network))
@@ -5939,6 +6201,7 @@ exports.BulkOperations = BulkOperations;
5939
6201
  exports.Cameras = Cameras;
5940
6202
  exports.ClientSettings = ClientSettings;
5941
6203
  exports.Eql = Eql;
6204
+ exports.External = External;
5942
6205
  exports.Feedback = Feedback;
5943
6206
  exports.FileUpload = FileUpload;
5944
6207
  exports.Filters = Filters;