@evergis/api 3.0.46 → 3.0.47
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/__generated__/AccountService.d.ts +3 -3
- package/dist/__generated__/BulkOperationsService.d.ts +24 -2
- package/dist/__generated__/data-contracts.d.ts +33 -1
- package/dist/api.cjs.development.js +51 -6
- 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 +51 -6
- package/dist/api.esm.js.map +1 -1
- package/dist/services/BulkOperations.d.ts +4 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEmailParams, ChangePasswordPayload, ConfirmChangeEmailParams, ConfirmEmail1Params, CreateRoleDc, CreateUserDc, CreateUserParams, ExtendedUserInfoDc, GetExtendedUsersParams, GetRolesParams, GetUsersParams, IsEmailExistsParams, IsUsernameExistsParams, ListResponseExtendedUserInfoDc, ListResponseRoleInfoDc, ListResponseUserInfoDc, LoginDc, RegisterUserDc, ResetPasswordCallbackPayload, ResetPasswordParams, SetEmailPayload,
|
|
1
|
+
import { ChangeEmailParams, ChangePasswordPayload, ConfirmChangeEmailParams, ConfirmEmail1Params, CreateRoleDc, CreateUserDc, CreateUserParams, ExtendedUserInfoDc, GetExtendedUsersParams, GetRolesParams, GetUsersParams, IsEmailExistsParams, IsUsernameExistsParams, ListResponseExtendedUserInfoDc, ListResponseRoleInfoDc, ListResponseUserInfoDc, LoginDc, RegisterUserDc, ResetPasswordCallbackPayload, ResetPasswordParams, SetEmailPayload, UpdateRoleDc, UpdateUserDc, UsedProjectDc, UserInfoDc } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -178,10 +178,10 @@ export declare class AccountService extends Service {
|
|
|
178
178
|
* @name SetUserPassword
|
|
179
179
|
* @operationId AccountController_SetUserPassword
|
|
180
180
|
* @summary Set user password.
|
|
181
|
-
* @request PATCH:/account/
|
|
181
|
+
* @request PATCH:/account/password/set
|
|
182
182
|
* @response `200` Success
|
|
183
183
|
*/
|
|
184
|
-
setUserPassword(
|
|
184
|
+
setUserPassword(data: LoginDc): Promise<void>;
|
|
185
185
|
/**
|
|
186
186
|
* No description
|
|
187
187
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BatchResourcesAclDc } from './data-contracts';
|
|
1
|
+
import { BatchResourcesAclDc, BatchResourcesCatalogDc, BulkOperationResultDc } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -6,6 +6,28 @@ import { Service } from './Service';
|
|
|
6
6
|
* @baseUrl /sp
|
|
7
7
|
*/
|
|
8
8
|
export declare class BulkOperationsService extends Service {
|
|
9
|
+
/**
|
|
10
|
+
* No description
|
|
11
|
+
*
|
|
12
|
+
* @tags BulkOperations
|
|
13
|
+
* @name BatchAddResourcesToCatalog
|
|
14
|
+
* @operationId BulkOperationsController_BatchAddResourcesToCatalog
|
|
15
|
+
* @summary Add resources to catalog.
|
|
16
|
+
* @request POST:/bulk/catalog/addResources
|
|
17
|
+
* @response `200` Success
|
|
18
|
+
*/
|
|
19
|
+
batchAddResourcesToCatalog(data: BatchResourcesCatalogDc): Promise<BulkOperationResultDc>;
|
|
20
|
+
/**
|
|
21
|
+
* No description
|
|
22
|
+
*
|
|
23
|
+
* @tags BulkOperations
|
|
24
|
+
* @name BatchDeleteResourcesFromCatalog
|
|
25
|
+
* @operationId BulkOperationsController_BatchDeleteResourcesFromCatalog
|
|
26
|
+
* @summary Delete resources to catalog.
|
|
27
|
+
* @request POST:/bulk/catalog/removeResources
|
|
28
|
+
* @response `200` Success
|
|
29
|
+
*/
|
|
30
|
+
batchDeleteResourcesFromCatalog(data: BatchResourcesCatalogDc): Promise<BulkOperationResultDc>;
|
|
9
31
|
/**
|
|
10
32
|
* No description
|
|
11
33
|
*
|
|
@@ -16,5 +38,5 @@ export declare class BulkOperationsService extends Service {
|
|
|
16
38
|
* @request PUT:/bulk/resources/permissions
|
|
17
39
|
* @response `200` Success
|
|
18
40
|
*/
|
|
19
|
-
batchResourcesPermissionsSet(data: BatchResourcesAclDc): Promise<
|
|
41
|
+
batchResourcesPermissionsSet(data: BatchResourcesAclDc): Promise<BulkOperationResultDc[]>;
|
|
20
42
|
}
|
|
@@ -604,6 +604,17 @@ export interface BatchResourcesAclDc {
|
|
|
604
604
|
/** A set of projects acl. */
|
|
605
605
|
projects?: ResourceAclDc[];
|
|
606
606
|
}
|
|
607
|
+
/**
|
|
608
|
+
* Provides bulk request to manage catalog resources.
|
|
609
|
+
*/
|
|
610
|
+
export interface BatchResourcesCatalogDc {
|
|
611
|
+
/** List of layers. */
|
|
612
|
+
layers?: CatalogResourceDc[];
|
|
613
|
+
/** List of tables. */
|
|
614
|
+
tables?: CatalogResourceDc[];
|
|
615
|
+
/** List of projects. */
|
|
616
|
+
projects?: CatalogResourceDc[];
|
|
617
|
+
}
|
|
607
618
|
/**
|
|
608
619
|
* The class describes data contract of bookmark at the map.
|
|
609
620
|
*/
|
|
@@ -641,6 +652,17 @@ export declare type BufferTaskParametersDc = FeatureTaskParametersDc & {
|
|
|
641
652
|
idAttributeName?: string;
|
|
642
653
|
geometryAttributeName?: string;
|
|
643
654
|
};
|
|
655
|
+
/**
|
|
656
|
+
* Provides set resources bulk operation status.
|
|
657
|
+
*/
|
|
658
|
+
export interface BulkOperationResultDc {
|
|
659
|
+
/** Name of the resource. */
|
|
660
|
+
resourceName?: string;
|
|
661
|
+
/** Error while perform operation. */
|
|
662
|
+
error?: string;
|
|
663
|
+
/** Sets true. */
|
|
664
|
+
isSuccess?: boolean;
|
|
665
|
+
}
|
|
644
666
|
export declare type CalculatedParameterDc = ParameterDcDouble & {
|
|
645
667
|
type?: string;
|
|
646
668
|
expression?: string;
|
|
@@ -655,6 +677,15 @@ export interface CatalogDataDc {
|
|
|
655
677
|
/** The user name. */
|
|
656
678
|
users: string[];
|
|
657
679
|
}
|
|
680
|
+
/**
|
|
681
|
+
* Provides catalog resources with users.
|
|
682
|
+
*/
|
|
683
|
+
export interface CatalogResourceDc {
|
|
684
|
+
/** Name of the resource to add. */
|
|
685
|
+
objectName?: string;
|
|
686
|
+
/** Users list. */
|
|
687
|
+
users?: string[];
|
|
688
|
+
}
|
|
658
689
|
/**
|
|
659
690
|
* The symbol that draws a feature as a circle.
|
|
660
691
|
*/
|
|
@@ -3409,6 +3440,8 @@ export declare type ScaleBarElementDc = ModelElementDc & {
|
|
|
3409
3440
|
export interface SearchedUserDc {
|
|
3410
3441
|
/** Username. */
|
|
3411
3442
|
username?: string;
|
|
3443
|
+
/** Own user role. */
|
|
3444
|
+
ownRole?: string;
|
|
3412
3445
|
/** Photo. */
|
|
3413
3446
|
photo?: string;
|
|
3414
3447
|
}
|
|
@@ -5171,7 +5204,6 @@ export interface ConfirmChangeEmailParams {
|
|
|
5171
5204
|
/** Confirmation code. */
|
|
5172
5205
|
code: string;
|
|
5173
5206
|
}
|
|
5174
|
-
export declare type SetUserPasswordPayload = string;
|
|
5175
5207
|
export interface ChangePasswordPayload {
|
|
5176
5208
|
oldPassword: string;
|
|
5177
5209
|
password: string;
|
|
@@ -215,8 +215,37 @@ let BulkOperationsService = /*#__PURE__*/function (_Service) {
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
_createClass(BulkOperationsService, [{
|
|
218
|
-
key: "
|
|
218
|
+
key: "batchAddResourcesToCatalog",
|
|
219
219
|
|
|
220
|
+
/**
|
|
221
|
+
* No description
|
|
222
|
+
*
|
|
223
|
+
* @tags BulkOperations
|
|
224
|
+
* @name BatchAddResourcesToCatalog
|
|
225
|
+
* @operationId BulkOperationsController_BatchAddResourcesToCatalog
|
|
226
|
+
* @summary Add resources to catalog.
|
|
227
|
+
* @request POST:/bulk/catalog/addResources
|
|
228
|
+
* @response `200` Success
|
|
229
|
+
*/
|
|
230
|
+
value: function batchAddResourcesToCatalog(data) {
|
|
231
|
+
return this.http.post("/bulk/catalog/addResources", data).json();
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* No description
|
|
235
|
+
*
|
|
236
|
+
* @tags BulkOperations
|
|
237
|
+
* @name BatchDeleteResourcesFromCatalog
|
|
238
|
+
* @operationId BulkOperationsController_BatchDeleteResourcesFromCatalog
|
|
239
|
+
* @summary Delete resources to catalog.
|
|
240
|
+
* @request POST:/bulk/catalog/removeResources
|
|
241
|
+
* @response `200` Success
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
}, {
|
|
245
|
+
key: "batchDeleteResourcesFromCatalog",
|
|
246
|
+
value: function batchDeleteResourcesFromCatalog(data) {
|
|
247
|
+
return this.http.post("/bulk/catalog/removeResources", data).json();
|
|
248
|
+
}
|
|
220
249
|
/**
|
|
221
250
|
* No description
|
|
222
251
|
*
|
|
@@ -227,8 +256,11 @@ let BulkOperationsService = /*#__PURE__*/function (_Service) {
|
|
|
227
256
|
* @request PUT:/bulk/resources/permissions
|
|
228
257
|
* @response `200` Success
|
|
229
258
|
*/
|
|
259
|
+
|
|
260
|
+
}, {
|
|
261
|
+
key: "batchResourcesPermissionsSet",
|
|
230
262
|
value: function batchResourcesPermissionsSet(data) {
|
|
231
|
-
return this.http.put("/bulk/resources/permissions", data).
|
|
263
|
+
return this.http.put("/bulk/resources/permissions", data).json();
|
|
232
264
|
}
|
|
233
265
|
}]);
|
|
234
266
|
|
|
@@ -251,6 +283,16 @@ let BulkOperations = /*#__PURE__*/function (_BulkOperationsServic) {
|
|
|
251
283
|
value: function updatePermissions(data) {
|
|
252
284
|
return this.batchResourcesPermissionsSet(data);
|
|
253
285
|
}
|
|
286
|
+
}, {
|
|
287
|
+
key: "addToCatalog",
|
|
288
|
+
value: function addToCatalog(data) {
|
|
289
|
+
return this.batchAddResourcesToCatalog(data);
|
|
290
|
+
}
|
|
291
|
+
}, {
|
|
292
|
+
key: "deleteFromCatalog",
|
|
293
|
+
value: function deleteFromCatalog(data) {
|
|
294
|
+
return this.batchDeleteResourcesFromCatalog(data);
|
|
295
|
+
}
|
|
254
296
|
}]);
|
|
255
297
|
|
|
256
298
|
return BulkOperations;
|
|
@@ -4710,14 +4752,14 @@ let AccountService = /*#__PURE__*/function (_Service) {
|
|
|
4710
4752
|
* @name SetUserPassword
|
|
4711
4753
|
* @operationId AccountController_SetUserPassword
|
|
4712
4754
|
* @summary Set user password.
|
|
4713
|
-
* @request PATCH:/account/
|
|
4755
|
+
* @request PATCH:/account/password/set
|
|
4714
4756
|
* @response `200` Success
|
|
4715
4757
|
*/
|
|
4716
4758
|
|
|
4717
4759
|
}, {
|
|
4718
4760
|
key: "setUserPassword",
|
|
4719
|
-
value: function setUserPassword(
|
|
4720
|
-
return this.http.patch("/account/
|
|
4761
|
+
value: function setUserPassword(data) {
|
|
4762
|
+
return this.http.patch("/account/password/set", data).then(() => {});
|
|
4721
4763
|
}
|
|
4722
4764
|
/**
|
|
4723
4765
|
* No description
|
|
@@ -5065,7 +5107,10 @@ let Account = /*#__PURE__*/function (_AccountService) {
|
|
|
5065
5107
|
}, {
|
|
5066
5108
|
key: "setPassword",
|
|
5067
5109
|
value: function setPassword(password) {
|
|
5068
|
-
return this.setUserPassword(
|
|
5110
|
+
return this.setUserPassword({
|
|
5111
|
+
username: this.username,
|
|
5112
|
+
password
|
|
5113
|
+
});
|
|
5069
5114
|
}
|
|
5070
5115
|
}, {
|
|
5071
5116
|
key: "username",
|