@evergis/api 5.0.31 → 5.0.33

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.
@@ -42,6 +42,8 @@ export interface ActiveWorkerTaskDc {
42
42
  methodCallType?: WorkerMethodType;
43
43
  /** SettingsFields. */
44
44
  settingsFields?: WorkerSettingsFieldDc[];
45
+ /** JsonSchema. */
46
+ jsonSchema?: any;
45
47
  }
46
48
  /**
47
49
  * Additional data source connection data contract.
@@ -418,8 +420,6 @@ export interface CatalogResourceDc {
418
420
  isSymlink?: boolean;
419
421
  /** Owner of the resource. */
420
422
  owner?: string;
421
- /** Resource path. */
422
- path?: string;
423
423
  /**
424
424
  * Updated at.
425
425
  * @format date-time
@@ -444,6 +444,10 @@ export interface CatalogResourceDc {
444
444
  isObservable?: boolean;
445
445
  /** Resource icon. */
446
446
  icon?: string;
447
+ /** True if acl inherited from parent. */
448
+ inheritAcl?: boolean;
449
+ /** Access control list for a security object. */
450
+ acl?: AccessControlListDc;
447
451
  }
448
452
  export declare enum CatalogResourceType {
449
453
  Directory = "Directory",
@@ -630,6 +634,8 @@ export interface CreateDirectoryDc {
630
634
  icon?: string;
631
635
  /** Rewrite if exists. */
632
636
  rewrite?: boolean;
637
+ /** True if acl inherited from parent. */
638
+ inheritAcl?: boolean;
633
639
  }
634
640
  /**
635
641
  * Data contract for create new role.
@@ -693,6 +699,8 @@ export interface CreateSymlinkDc {
693
699
  parentId?: string;
694
700
  /** A set of tags. */
695
701
  tags?: string[];
702
+ /** True if acl inherited from parent. */
703
+ inheritAcl?: boolean;
696
704
  }
697
705
  /**
698
706
  * Data contract for create new user.
@@ -1038,6 +1046,74 @@ export interface ExpressionValidationResultDc {
1038
1046
  /** The expression that was validated. */
1039
1047
  expression?: string;
1040
1048
  }
1049
+ /**
1050
+ * Extended resource info.
1051
+ */
1052
+ export interface ExtendedCatalogResourceDc {
1053
+ /** Resource path. */
1054
+ path?: string;
1055
+ /** Resource id. */
1056
+ resourceId?: string;
1057
+ /** Resource id. */
1058
+ targetResourceId?: string;
1059
+ /** System name. */
1060
+ systemName?: string;
1061
+ /** Parent resource id. */
1062
+ parentId?: string;
1063
+ type?: CatalogResourceType;
1064
+ /** Resource subtype. */
1065
+ subtype?: string;
1066
+ geometryType?: OgcGeometryType;
1067
+ /** Path to the resource. */
1068
+ name?: string;
1069
+ /** Description of the resource. */
1070
+ description?: string;
1071
+ /**
1072
+ * Resource size.
1073
+ * @format int64
1074
+ */
1075
+ size?: number;
1076
+ /** Content type. */
1077
+ contentType?: string;
1078
+ /** Preview. */
1079
+ preview?: string;
1080
+ /** Check if resource is temporary. */
1081
+ isTemporary?: boolean;
1082
+ /** Check if resource is system. */
1083
+ isSystem?: boolean;
1084
+ /** Check if resource is symlink. */
1085
+ isSymlink?: boolean;
1086
+ /** Owner of the resource. */
1087
+ owner?: string;
1088
+ /**
1089
+ * Updated at.
1090
+ * @format date-time
1091
+ */
1092
+ updatedAt?: string;
1093
+ /**
1094
+ * Created at.
1095
+ * @format date-time
1096
+ */
1097
+ createdAt?: string;
1098
+ /** Resource tags. */
1099
+ tags?: string[];
1100
+ permissions?: Permissions;
1101
+ /** Table schema. */
1102
+ schema?: string;
1103
+ /**
1104
+ * Spatial reference id. Nothing if geometry type is mixed.
1105
+ * @format int32
1106
+ */
1107
+ srid?: number;
1108
+ /** True if resource is observable. */
1109
+ isObservable?: boolean;
1110
+ /** Resource icon. */
1111
+ icon?: string;
1112
+ /** True if acl inherited from parent. */
1113
+ inheritAcl?: boolean;
1114
+ /** Access control list for a security object. */
1115
+ acl?: AccessControlListDc;
1116
+ }
1041
1117
  /**
1042
1118
  * Project extended configuration data contract.
1043
1119
  */
@@ -1319,13 +1395,6 @@ export interface GetBulkFilteredFeaturesCountDc {
1319
1395
  /** Filter query geometries. */
1320
1396
  geometries?: QueryGeometryDc[];
1321
1397
  }
1322
- /**
1323
- * Get resource by path request data.
1324
- */
1325
- export interface GetByPathDc {
1326
- /** Resource path. */
1327
- path: string;
1328
- }
1329
1398
  /**
1330
1399
  * Get classified attribute values data contract.
1331
1400
  */
@@ -1718,8 +1787,10 @@ export interface MoveResourceDc {
1718
1787
  targetResource?: string;
1719
1788
  /** Name of target resource. */
1720
1789
  newName?: string;
1721
- /** Rewrite target if exists. */
1790
+ /** Rewrite removes the conflicting target resource and preserves the ResourceId of the moved resource. */
1722
1791
  rewrite?: boolean;
1792
+ /** Inherit acl from parents. */
1793
+ inheritAcl?: boolean;
1723
1794
  }
1724
1795
  /**
1725
1796
  * MultiLineString geometry object definition.
@@ -1959,6 +2030,8 @@ export interface PatchResourceDc {
1959
2030
  tags?: string[];
1960
2031
  /** Resource icon. */
1961
2032
  icon?: string;
2033
+ /** True if acl inherited from parent. */
2034
+ inheritAcl?: boolean;
1962
2035
  }
1963
2036
  /**
1964
2037
  * Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed.
@@ -2330,14 +2403,6 @@ export interface PythonTaskMethodConfiguration {
2330
2403
  methodName?: string;
2331
2404
  /** Gets or sets method init error. */
2332
2405
  error?: string;
2333
- /** TaskPrototypeSubType. */
2334
- type?: TaskResourceSubType;
2335
- /** Gets or sets description. */
2336
- description?: string;
2337
- /** Parameters. */
2338
- parameters?: TaskParameter[];
2339
- /** TaskReturnType. */
2340
- return?: TaskReturnType;
2341
2406
  }
2342
2407
  /**
2343
2408
  * Query geometry data contract.
@@ -3432,11 +3497,11 @@ export interface TaskConfigurationDc {
3432
3497
  /** Description. */
3433
3498
  description?: string;
3434
3499
  /** ImportMethods. */
3435
- importMethods?: string[];
3500
+ importMethod?: string;
3436
3501
  /** UserConfiguration. */
3437
- userConfiguration?: TaskMethodConfigurationDc[];
3502
+ userConfiguration?: any;
3438
3503
  /** DefaultConfiguration. */
3439
- defaultConfiguration?: TaskMethodConfigurationDc[];
3504
+ defaultConfiguration?: any;
3440
3505
  /** User ui configuration. */
3441
3506
  uiConfiguration?: any;
3442
3507
  }
@@ -3463,68 +3528,6 @@ export interface TaskDto {
3463
3528
  /** ForceExecution. */
3464
3529
  forceExecution?: boolean;
3465
3530
  }
3466
- /**
3467
- * TaskMethodConfiguration.
3468
- */
3469
- export interface TaskMethodConfigurationDc {
3470
- /** TaskPrototypeSubType. */
3471
- type?: TaskResourceSubType;
3472
- /** Gets or sets description. */
3473
- description?: string;
3474
- /** Parameters. */
3475
- parameters?: TaskParameterDc[];
3476
- /** TaskReturnType. */
3477
- return?: TaskReturnType;
3478
- }
3479
- /**
3480
- * TaskParameter.
3481
- */
3482
- export interface TaskParameter {
3483
- /** Name. */
3484
- name?: string;
3485
- /** Gets or sets description. */
3486
- description?: string;
3487
- type?: WorkerSettingsFieldType;
3488
- /** Lookup values. */
3489
- lookupValues?: Record<string, string | null>;
3490
- /** ChildrenFields. */
3491
- childrenFields?: Record<string, WorkerSettingsField[] | null>;
3492
- /** Default value. */
3493
- default?: any;
3494
- /** TaskParameterRange. */
3495
- range?: TaskParameterRange;
3496
- /** Nullable. */
3497
- nullable?: boolean;
3498
- }
3499
- /**
3500
- * TaskParameterDc.
3501
- */
3502
- export interface TaskParameterDc {
3503
- /** Name. */
3504
- name?: string;
3505
- /** Gets or sets description. */
3506
- description?: string;
3507
- type?: WorkerSettingsFieldType;
3508
- /** Lookup values. */
3509
- lookupValues?: Record<string, string | null>;
3510
- /** ChildrenFields. */
3511
- childrenFields?: Record<string, WorkerSettingsFieldDc[] | null>;
3512
- /** Default value. */
3513
- default?: any;
3514
- /** TaskParameterRange. */
3515
- range?: TaskParameterRange;
3516
- /** Nullable. */
3517
- nullable?: boolean;
3518
- }
3519
- /**
3520
- * TaskParameterRange.
3521
- */
3522
- export interface TaskParameterRange {
3523
- /** Name. */
3524
- min?: any;
3525
- /** Name. */
3526
- max?: any;
3527
- }
3528
3531
  /**
3529
3532
  * TaskPrototypeDto.
3530
3533
  */
@@ -3580,8 +3583,8 @@ export interface TaskResourceCreateDto {
3580
3583
  subType?: TaskResourceSubType;
3581
3584
  /** Task type. */
3582
3585
  taskType?: string;
3583
- /** Import methods. */
3584
- importMethods?: string[];
3586
+ /** Import method. */
3587
+ importMethod?: string;
3585
3588
  /** Name. */
3586
3589
  name?: string;
3587
3590
  /** ParentId. */
@@ -3604,22 +3607,10 @@ resource updates.
3604
3607
  */
3605
3608
  export interface TaskResourceUpdateDto {
3606
3609
  /** Configurations. */
3607
- configurations?: TaskMethodConfigurationDc[];
3610
+ configuration?: any;
3608
3611
  /** User ui configuration. */
3609
3612
  uiConfiguration?: any;
3610
3613
  }
3611
- /**
3612
- * TaskReturnType.
3613
- */
3614
- export interface TaskReturnType {
3615
- /** Gets or sets description. */
3616
- description?: string;
3617
- type?: WorkerSettingsFieldType;
3618
- /** Name. */
3619
- default?: any;
3620
- /** Name. */
3621
- nullable?: boolean;
3622
- }
3623
3614
  /**
3624
3615
  * Service info for a tile catalog layer service.
3625
3616
  */
@@ -3959,15 +3950,6 @@ export declare enum WorkerMethodType {
3959
3950
  Rest = "Rest",
3960
3951
  Both = "Both"
3961
3952
  }
3962
- export interface WorkerSettingsField {
3963
- name?: string;
3964
- alias?: string;
3965
- group?: string;
3966
- nullable?: boolean;
3967
- type?: WorkerSettingsFieldType;
3968
- lookupValues?: Record<string, string>;
3969
- childrenFields?: Record<string, WorkerSettingsField[]>;
3970
- }
3971
3953
  /**
3972
3954
  * public class WorkerSettingsFieldDc.
3973
3955
  */
@@ -4316,6 +4298,8 @@ export interface CreateFilePayload {
4316
4298
  tags?: string[];
4317
4299
  /** File icon. */
4318
4300
  icon?: string;
4301
+ /** True if acl inherited from parent. */
4302
+ InheritAcl?: boolean;
4319
4303
  }
4320
4304
  export interface CreateFile1Payload {
4321
4305
  /** File resource id. */
@@ -4349,6 +4333,8 @@ export interface CreateFile1Payload {
4349
4333
  icon?: string;
4350
4334
  /** Check if resource is system. */
4351
4335
  isSystem?: boolean;
4336
+ /** True if acl inherited from parent. */
4337
+ InheritAcl?: boolean;
4352
4338
  }
4353
4339
  export type SetPermissionsPayload = ResourceAclDc[];
4354
4340
  export type CopyResourcesPayload = CopyResourceDc[];
@@ -4670,10 +4656,6 @@ export interface GetLayersInfoParams {
4670
4656
  /** ProjectName array with layers. */
4671
4657
  projectNames?: string[];
4672
4658
  }
4673
- export interface DeleteResourcesParams {
4674
- /** Resource names. */
4675
- names?: string[];
4676
- }
4677
4659
  export type PatchQueryLayerService1Payload = Operation[];
4678
4660
  export interface GetFeatures1Params {
4679
4661
  /** Click geometry. */
@@ -4934,10 +4916,6 @@ export interface GetRasterMetaParams2 {
4934
4916
  */
4935
4917
  id: number;
4936
4918
  }
4937
- export interface DeleteResourcesParams2 {
4938
- /** Resource names. */
4939
- names?: string[];
4940
- }
4941
4919
  export type UpdateProjectV2Payload = Operation[];
4942
4920
  export interface GetProjectsInfoParams {
4943
4921
  /** Project names. */
@@ -5098,10 +5076,6 @@ export interface GetSymbolsListParams {
5098
5076
  */
5099
5077
  limit?: number;
5100
5078
  }
5101
- export interface DeleteResourcesParams4 {
5102
- /** Resource names. */
5103
- names?: string[];
5104
- }
5105
5079
  export interface GetTablesInfoParams {
5106
5080
  /** Table names. */
5107
5081
  tableNames?: string[];
package/dist/api.esm.js CHANGED
@@ -1701,20 +1701,6 @@ class CatalogService extends Service {
1701
1701
  deleteResource({ resourceId, ...query }) {
1702
1702
  return this.http.delete(`/resources/${resourceId}`, null, query).then(() => { });
1703
1703
  }
1704
- /**
1705
- * No description
1706
- *
1707
- * @tags Catalog
1708
- * @name ResourceExistsByPath
1709
- * @operationId CatalogController_ResourceExistsByPathAsync
1710
- * @summary Check resource path is existing.
1711
- * @request GET:/resources/existsByPath/{path}
1712
- * @secure
1713
- * @response `200` OK
1714
- */
1715
- resourceExistsByPath(path) {
1716
- return this.http.get(`/resources/existsByPath/${path}`).json();
1717
- }
1718
1704
  /**
1719
1705
  * No description
1720
1706
  *
@@ -1722,68 +1708,12 @@ class CatalogService extends Service {
1722
1708
  * @name ResourceExistsById
1723
1709
  * @operationId CatalogController_ResourceExistsByIdAsync
1724
1710
  * @summary Check resource id is existing.
1725
- * @request GET:/resources/existsById/{resourceId}
1711
+ * @request GET:/resources/exists/{resourceId}
1726
1712
  * @secure
1727
1713
  * @response `200` OK
1728
1714
  */
1729
1715
  resourceExistsById(resourceId) {
1730
- return this.http.get(`/resources/existsById/${resourceId}`).json();
1731
- }
1732
- /**
1733
- * No description
1734
- *
1735
- * @tags Catalog
1736
- * @name ResourceExistsByName
1737
- * @operationId CatalogController_ResourceExistsByNameAsync
1738
- * @summary Check resource path exists.
1739
- * @request GET:/resources/existsByName/{systemName}
1740
- * @secure
1741
- * @response `200` OK
1742
- */
1743
- resourceExistsByName(systemName) {
1744
- return this.http.get(`/resources/existsByName/${systemName}`).json();
1745
- }
1746
- /**
1747
- * No description
1748
- *
1749
- * @tags Catalog
1750
- * @name GetResourceByPath
1751
- * @operationId CatalogController_GetResourceByPath
1752
- * @summary Get resource with given path.
1753
- * @request GET:/resources/getByPath/{path}
1754
- * @secure
1755
- * @response `200` OK
1756
- */
1757
- getResourceByPath(path) {
1758
- return this.http.get(`/resources/getByPath/${path}`).json();
1759
- }
1760
- /**
1761
- * No description
1762
- *
1763
- * @tags Catalog
1764
- * @name PostGetResourceByPath
1765
- * @operationId CatalogController_PostGetResourceByPath
1766
- * @summary Get resource with given path.
1767
- * @request POST:/resources/getByPath
1768
- * @secure
1769
- * @response `200` OK
1770
- */
1771
- postGetResourceByPath(data) {
1772
- return this.http.post(`/resources/getByPath`, data).json();
1773
- }
1774
- /**
1775
- * No description
1776
- *
1777
- * @tags Catalog
1778
- * @name GetBySystemName
1779
- * @operationId CatalogController_GetBySystemName
1780
- * @summary Get resource with given system name.
1781
- * @request GET:/resources/getBySystemName/{systemName}
1782
- * @secure
1783
- * @response `200` OK
1784
- */
1785
- getBySystemName(systemName) {
1786
- return this.http.get(`/resources/getBySystemName/${systemName}`).json();
1716
+ return this.http.get(`/resources/exists/${resourceId}`).json();
1787
1717
  }
1788
1718
  /**
1789
1719
  * No description
@@ -1869,6 +1799,20 @@ class CatalogService extends Service {
1869
1799
  setPermissions1(resourceId, data) {
1870
1800
  return this.http.put(`/resources/${resourceId}/permissions`, data).then(() => { });
1871
1801
  }
1802
+ /**
1803
+ * No description
1804
+ *
1805
+ * @tags Catalog
1806
+ * @name GetPermissionsV2
1807
+ * @operationId CatalogController_GetPermissionsV2
1808
+ * @summary Set permissions to the resource.
1809
+ * @request GET:/resources/permissions/{resourceId}
1810
+ * @secure
1811
+ * @response `200` OK
1812
+ */
1813
+ getPermissionsV2(resourceId) {
1814
+ return this.http.get(`/resources/permissions/${resourceId}`).json();
1815
+ }
1872
1816
  /**
1873
1817
  * No description
1874
1818
  *
@@ -3452,20 +3396,6 @@ class LayersService extends Service {
3452
3396
  .post(`/layers`, data)
3453
3397
  .json();
3454
3398
  }
3455
- /**
3456
- * No description
3457
- *
3458
- * @tags Layers
3459
- * @name DeleteResources
3460
- * @operationId LayersController_DeleteResources
3461
- * @summary Bulk delete resources.
3462
- * @request DELETE:/layers
3463
- * @secure
3464
- * @response `200` OK
3465
- */
3466
- deleteResources(query) {
3467
- return this.http.delete(`/layers`, null, query).json();
3468
- }
3469
3399
  /**
3470
3400
  * No description
3471
3401
  *
@@ -3841,10 +3771,6 @@ class Layers extends LayersService {
3841
3771
  updateQueryLayer(configuration) {
3842
3772
  return this.patchQueryLayerService(configuration.name, configuration);
3843
3773
  }
3844
- async remove(name) {
3845
- await this.deleteResources({ names: [name] });
3846
- return name;
3847
- }
3848
3774
  }
3849
3775
  function isTileLayerService(layer) {
3850
3776
  return [LayerServiceType.PostgresTileLayerService, LayerServiceType.RemoteTileLayerService].includes(layer.configuration?.layerType);
@@ -3948,20 +3874,6 @@ class ProjectsService extends Service {
3948
3874
  createProject(data) {
3949
3875
  return this.http.post(`/projects`, data).json();
3950
3876
  }
3951
- /**
3952
- * No description
3953
- *
3954
- * @tags Projects
3955
- * @name DeleteResources
3956
- * @operationId ProjectsController_DeleteResources
3957
- * @summary Bulk delete resources.
3958
- * @request DELETE:/projects
3959
- * @secure
3960
- * @response `200` OK
3961
- */
3962
- deleteResources(query) {
3963
- return this.http.delete(`/projects`, null, query).json();
3964
- }
3965
3877
  /**
3966
3878
  * No description
3967
3879
  *
@@ -4148,10 +4060,6 @@ class Projects extends ProjectsService {
4148
4060
  update(resource) {
4149
4061
  return this.updateProject(resource.name, resource);
4150
4062
  }
4151
- async remove(name) {
4152
- await this.deleteResources({ names: [name] });
4153
- return name;
4154
- }
4155
4063
  }
4156
4064
  function isProjectContentItems(v) {
4157
4065
  return v !== null && v !== undefined;
@@ -4755,20 +4663,6 @@ class TablesService extends Service {
4755
4663
  createTable(data) {
4756
4664
  return this.http.post(`/tables`, data).json();
4757
4665
  }
4758
- /**
4759
- * No description
4760
- *
4761
- * @tags Tables
4762
- * @name DeleteResources
4763
- * @operationId TablesController_DeleteResources
4764
- * @summary Bulk delete resources.
4765
- * @request DELETE:/tables
4766
- * @secure
4767
- * @response `200` OK
4768
- */
4769
- deleteResources(query) {
4770
- return this.http.delete(`/tables`, null, query).json();
4771
- }
4772
4666
  /**
4773
4667
  * No description
4774
4668
  *
@@ -4994,10 +4888,6 @@ class Tables extends TablesService {
4994
4888
  update(table) {
4995
4889
  return this.updateTable(table.name, table);
4996
4890
  }
4997
- async remove(name) {
4998
- await this.deleteResources({ names: [name] });
4999
- return name;
5000
- }
5001
4891
  }
5002
4892
 
5003
4893
  /* eslint-disable */