@evergis/api
Advanced tools
Comparing version 0.1.20 to 0.1.21
@@ -314,2 +314,18 @@ /** | ||
/** | ||
* Information about an attribute distincts. | ||
*/ | ||
export declare type AttributeDistinctsDc = { | ||
/** Attribute distincts */ | ||
distincts?: AttributeDistinctDc[]; | ||
}; | ||
/** | ||
* Information about an attribute distinct. | ||
*/ | ||
export declare type AttributeDistinctDc = { | ||
/** Attribute value. */ | ||
attributeValue?: string; | ||
/** Count of this attribute value at table. */ | ||
count?: number; | ||
}; | ||
/** | ||
* Geocode result | ||
@@ -956,3 +972,3 @@ */ | ||
/** | ||
* Resource dependence data contract. | ||
* Dependent resource description. | ||
*/ | ||
@@ -966,22 +982,2 @@ export declare type DependentResourceDc = { | ||
/** | ||
* Resource dependency description. | ||
*/ | ||
export declare type ResourceReferencesDc = { | ||
/** Name of the target resource. */ | ||
name?: string; | ||
/** Array of dependent resources. */ | ||
resourceReference?: RefersResourceDc[]; | ||
}; | ||
/** | ||
* Dependent resource description. | ||
*/ | ||
export declare type RefersResourceDc = { | ||
/** Name of the target resource. */ | ||
name?: string; | ||
/** Name of refer resource. */ | ||
referTo?: string; | ||
/** Type of refer resource. */ | ||
referType?: string; | ||
}; | ||
/** | ||
* Base class for client notifications. | ||
@@ -1159,31 +1155,2 @@ */ | ||
*/ | ||
export declare type ExtendedResourceInfoPubDc = { | ||
/** */ | ||
isFavorite?: boolean; | ||
/** Published datetime of the resource. */ | ||
publishedDate?: string; | ||
/** A list of users that using this resource. */ | ||
usedByUsers?: string[]; | ||
/** Name of the resource including its namespaces (names of the service managers that contain this service). */ | ||
name: string; | ||
/** Name of the resource without namespaces. */ | ||
ownName?: string; | ||
/** Resource alias. */ | ||
alias?: string; | ||
/** Resource owner. */ | ||
owner?: string; | ||
/** Resource description. */ | ||
description?: string; | ||
/** Resource preview. */ | ||
preview?: string; | ||
/** The date when resource was created. */ | ||
createdDate?: string; | ||
/** The date when resource was last modified. */ | ||
changedDate?: string; | ||
/** Resource permissions. */ | ||
permissions?: 'none' | 'configure' | 'write' | 'read' | 'read,write' | 'read,write,configure'; | ||
}; | ||
/** | ||
* undefined | ||
*/ | ||
export declare type NewResourcesTypesDc = { | ||
@@ -1190,0 +1157,0 @@ /** */ |
import { ServiceBase } from './ServiceBase'; | ||
import { PagedFeaturesListDc, LayerUpdateInfoDc, FeatureDc, FeaturesListDc, GeometryDc, EnvelopeDc } from './data-contracts'; | ||
import { PagedFeaturesListDc, LayerUpdateInfoDc, FeatureDc, FeaturesListDc, GeometryDc, EnvelopeDc, AttributeDistinctsDc } from './data-contracts'; | ||
export declare class FeatureLayer extends ServiceBase { | ||
@@ -15,2 +15,3 @@ getList({ ids, query, offset, limit, targetSr }: GetListParams): Promise<PagedFeaturesListDc>; | ||
getLayerExtent({ filterCondition, sr }: GetLayerExtentParams): Promise<EnvelopeDc>; | ||
distincts(attribute?: string): Promise<AttributeDistinctsDc>; | ||
} | ||
@@ -17,0 +18,0 @@ export declare type GetListParams = { |
@@ -82,3 +82,8 @@ /* | ||
} | ||
distincts(attribute) { | ||
return this.http | ||
.get(`${this.name}/distincts`, { attribute }) | ||
.json(); | ||
} | ||
} | ||
//# sourceMappingURL=FeatureLayer.js.map |
import { Service } from './Service'; | ||
import { ServiceListDc, ServiceInfoDc, RemoteTileServiceInfoDc, RemoteTileServiceConfigurationDc, TileServiceInfoDc, FeatureLayerServiceInfoDc, PostgresLayerServiceConfigurationDc, StyledLayerServiceConfigurationDc, CompositeServiceInfoDc, CompositeServiceConfigurationDc, RemoteTileServiceInfo, SharedProjectInfoDc, SharedProjectConfigurationDc, LayerUpdateInfoDc, FeatureDc, EnvelopeDc, FeaturesListDc, GeometryDc, FileUploadResponse, ResourceDependenciesDc, ResourceReferencesDc, AccessControlListDc } from './data-contracts'; | ||
import { ServiceListDc, ServiceInfoDc, RemoteTileServiceInfoDc, RemoteTileServiceConfigurationDc, TileServiceInfoDc, FeatureLayerServiceInfoDc, PostgresLayerServiceConfigurationDc, StyledLayerServiceConfigurationDc, CompositeServiceInfoDc, CompositeServiceConfigurationDc, RemoteTileServiceInfo, SharedProjectInfoDc, SharedProjectConfigurationDc, LayerUpdateInfoDc, FeatureDc, EnvelopeDc, FeaturesListDc, GeometryDc, AttributeDistinctsDc, FileUploadResponse, ResourceDependenciesDc, AccessControlListDc } from './data-contracts'; | ||
export declare class Layers extends Service { | ||
@@ -27,2 +27,3 @@ getLayersList({ filter, types, offset, limit, orderByFields, isFavorite, }: GetLayersListParams): Promise<ServiceListDc>; | ||
getByGeometryPost({ name, geometry, extentSr, targetSr, }: GetByGeometryPostParams): Promise<FeaturesListDc>; | ||
distincts({ name, attribute }: DistinctsParams): Promise<AttributeDistinctsDc>; | ||
deleteFeatures({ ids, name }: DeleteFeaturesParams): Promise<LayerUpdateInfoDc>; | ||
@@ -34,3 +35,3 @@ getTilesLayerImage({ name, x, y, z }: GetTilesLayerImageParams): string; | ||
getResourceDependencies(name: string): Promise<ResourceDependenciesDc>; | ||
getResourceReferences(name: string): Promise<ResourceReferencesDc>; | ||
getResourceReferences(name: string): Promise<ResourceDependenciesDc>; | ||
setPermissions({ name, Acl }: SetPermissionsParams): Promise<AccessControlListDc>; | ||
@@ -174,2 +175,8 @@ addPermissions({ name, Acl }: AddPermissionsParams): Promise<AccessControlListDc>; | ||
}; | ||
export declare type DistinctsParams = { | ||
/** */ | ||
name: string; | ||
/** */ | ||
attribute?: string; | ||
}; | ||
export declare type DeleteFeaturesParams = { | ||
@@ -176,0 +183,0 @@ /** */ |
@@ -138,2 +138,7 @@ /* | ||
} | ||
distincts({ name, attribute }) { | ||
return this.http | ||
.get(`layers/${name}/distincts`, { attribute }) | ||
.json(); | ||
} | ||
deleteFeatures({ ids, name }) { | ||
@@ -140,0 +145,0 @@ return this.http |
import { Service } from './Service'; | ||
import { ListResponseProjectInfoPubDc, ExtendedProjectInfoDc, SharedProjectInfoDc, SharedProjectConfigurationDc, AccessControlListDc, FileUploadResponse, ResourceDependenciesDc, ResourceReferencesDc } from './data-contracts'; | ||
import { ListResponseProjectInfoPubDc, ExtendedProjectInfoDc, SharedProjectInfoDc, SharedProjectConfigurationDc, AccessControlListDc, FileUploadResponse, ResourceDependenciesDc } from './data-contracts'; | ||
export declare class Projects extends Service { | ||
@@ -17,3 +17,3 @@ getProjectsList({ filter, offset, limit, orderByFields, isFavorite, }: GetProjectsListParams): Promise<ListResponseProjectInfoPubDc>; | ||
getResourceDependencies(name: string): Promise<ResourceDependenciesDc>; | ||
getResourceReferences(name: string): Promise<ResourceReferencesDc>; | ||
getResourceReferences(name: string): Promise<ResourceDependenciesDc>; | ||
} | ||
@@ -20,0 +20,0 @@ export declare type GetProjectsListParams = { |
import { ServiceBase } from './ServiceBase'; | ||
import { ListResponseProjectInfoPubDc, TableListDc, ServiceListDc, CatalogDataDc, ExtendedResourceInfoPubDc, NewResourcesTypesDc } from './data-contracts'; | ||
import { ProjectsListDc, TableListDc, ServiceListDc, CatalogDataDc, NewResourcesTypesDc } from './data-contracts'; | ||
export declare class ResourceCatalog extends ServiceBase { | ||
getProjects({ query, offset, limit, orderByFields, isFavorite, }: GetProjectsParams): Promise<ListResponseProjectInfoPubDc>; | ||
getProjects({ query, offset, limit, orderByFields, isFavorite, }: GetProjectsParams): Promise<ProjectsListDc>; | ||
getTables({ query, offset, limit, orderByFields, isFavorite, }: GetTablesParams): Promise<TableListDc>; | ||
getLayers({ query, types, offset, limit, orderByFields, isFavorite, }: GetLayersParams): Promise<ServiceListDc>; | ||
addResource({ resourceType, catalogData }: AddResourceParams): Promise<CatalogDataDc>; | ||
addResource({ resourceType, catalogData }: AddResourceParams): Promise<void>; | ||
removeResource({ resourceType, resource, users }: RemoveResourceParams): Promise<void>; | ||
getResource({ resourceType, name }: GetResourceParams): Promise<ExtendedResourceInfoPubDc>; | ||
getNewResources(): Promise<NewResourcesTypesDc[]>; | ||
@@ -65,13 +64,7 @@ touchResources({ resourceType, resources }: TouchResourcesParams): Promise<void>; | ||
}; | ||
export declare type GetResourceParams = { | ||
export declare type TouchResourcesParams = { | ||
/** */ | ||
resourceType: 'tables' | 'layers' | 'projects'; | ||
/** */ | ||
name: string; | ||
}; | ||
export declare type TouchResourcesParams = { | ||
/** */ | ||
resourceType?: 'tables' | 'layers' | 'projects'; | ||
/** */ | ||
resources?: string[]; | ||
}; |
@@ -46,3 +46,3 @@ /* | ||
.post(`${this.name}/${resourceType}`, catalogData) | ||
.json(); | ||
.then(() => { }); | ||
} | ||
@@ -54,7 +54,2 @@ removeResource({ resourceType, resource, users }) { | ||
} | ||
getResource({ resourceType, name }) { | ||
return this.http | ||
.get(`${this.name}/${resourceType}/${name}`) | ||
.json(); | ||
} | ||
getNewResources() { | ||
@@ -67,3 +62,3 @@ return this.http | ||
return this.http | ||
.post(`${this.name}/touchResources`, null, { resourceType, resources }) | ||
.post(`${this.name}/${resourceType}/touchResources`, resources) | ||
.then(() => { }); | ||
@@ -70,0 +65,0 @@ } |
import { ServiceBase } from './ServiceBase'; | ||
import { ServiceListDc, ResourceReferencesDc, RemoteTileServiceInfoDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, TileServiceInfoDc, FeatureLayerServiceInfoDc, PostgresLayerServiceConfigurationDc, StyledLayerServiceConfigurationDc, CompositeServiceInfoDc, CompositeServiceConfigurationDc, ServiceInfoDc, WorkspaceConfigurationDc } from './data-contracts'; | ||
import { ServiceListDc, ResourceDependenciesDc, RemoteTileServiceInfoDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, TileServiceInfoDc, FeatureLayerServiceInfoDc, PostgresLayerServiceConfigurationDc, StyledLayerServiceConfigurationDc, CompositeServiceInfoDc, CompositeServiceConfigurationDc, ServiceInfoDc, WorkspaceConfigurationDc } from './data-contracts'; | ||
export declare class ServiceManager extends ServiceBase { | ||
getServiceList({ query, types, offset, limit, orderByFields, }: GetServiceListParams): Promise<ServiceListDc>; | ||
getServiceDepends(name: string): Promise<ResourceReferencesDc>; | ||
getServiceDepends(name: string): Promise<ResourceDependenciesDc>; | ||
publishRemoteTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<RemoteTileServiceInfoDc>; | ||
@@ -7,0 +7,0 @@ updateRemoteTileService(configuration?: RemoteTileServiceConfigurationDc): Promise<RemoteTileServiceInfo>; |
import { Service } from './Service'; | ||
import { TableListDc, DetailedTableInfoDc, UpdateTableDc, ResourceReferencesDc, ResourceDependenciesDc, AccessControlListDc, FileUploadResponse } from './data-contracts'; | ||
import { TableListDc, DetailedTableInfoDc, UpdateTableDc, ResourceDependenciesDc, AccessControlListDc, FileUploadResponse } from './data-contracts'; | ||
export declare class Tables extends Service { | ||
@@ -9,3 +9,3 @@ getTableList({ filter, offset, limit, orderByFields, isFavorite, }: GetTableListParams): Promise<TableListDc>; | ||
updateTable({ name, data }: UpdateTableParams): Promise<DetailedTableInfoDc>; | ||
getResourceReferences(name: string): Promise<ResourceReferencesDc>; | ||
getResourceReferences(name: string): Promise<ResourceDependenciesDc>; | ||
getResourceDependencies(name: string): Promise<ResourceDependenciesDc>; | ||
@@ -12,0 +12,0 @@ setPermissions({ name, Acl }: SetPermissionsParams): Promise<AccessControlListDc>; |
import { HttpClient } from './__generated__/HttpClient'; | ||
import { ApiConfig } from './defaultApiConfig'; | ||
import { Security, FileUpload, Import, Scheduler, Notification, Layers, Tables, Projects, Resources, Styles, Geocode } from './services'; | ||
import { Security, FileUpload, Import, Scheduler, Notification, Layers, Tables, Projects, Resources, Styles, Geocode, ResourceCatalog } from './services'; | ||
import { AuthorizationData } from './__generated__/data-contracts'; | ||
@@ -25,2 +25,3 @@ export declare type ApiParams = { | ||
readonly geocode: Geocode; | ||
readonly resourceCatalog: ResourceCatalog; | ||
constructor({ url, wsUrl, config }: ApiParams); | ||
@@ -27,0 +28,0 @@ init(params: AuthorizationData): Promise<void>; |
import { HttpClient } from './__generated__/HttpClient'; | ||
import { defaultApiConfig } from './defaultApiConfig'; | ||
import { Security, FileUpload, Import, Scheduler, Notification, Layers, Tables, Projects, Resources, Styles, Geocode, } from './services'; | ||
import { Security, FileUpload, Import, Scheduler, Notification, Layers, Tables, Projects, Resources, Styles, Geocode, ResourceCatalog, } from './services'; | ||
export class Api { | ||
@@ -20,2 +20,3 @@ constructor({ url, wsUrl, config = defaultApiConfig }) { | ||
this.geocode = new Geocode(config.GeocodeService, this.http); | ||
this.resourceCatalog = new ResourceCatalog(config.ResourceCatalogService, this.http); | ||
} | ||
@@ -22,0 +23,0 @@ async init(params) { |
export { Api } from './Api'; | ||
export { SpatialProcessor } from './SpatialProcessor'; | ||
export { Notification, Security, FileUpload, Import, Scheduler, Layers, Projects, Tables, } from './services'; | ||
export { Notification, Security, FileUpload, Import, Scheduler, Layers, Projects, Tables, ResourceCatalog, } from './services'; | ||
export { EvergisTileLayer, EvergisDynamicLayer } from './layers'; | ||
@@ -5,0 +5,0 @@ export { HTTPError, TimeoutError, HttpClient, } from './__generated__/HttpClient'; |
export { Api } from './Api'; | ||
export { SpatialProcessor } from './SpatialProcessor'; | ||
export { Notification, Security, FileUpload, Import, Scheduler, Layers, Projects, Tables, } from './services'; | ||
export { Notification, Security, FileUpload, Import, Scheduler, Layers, Projects, Tables, ResourceCatalog, } from './services'; | ||
export { EvergisTileLayer, EvergisDynamicLayer } from './layers'; | ||
@@ -5,0 +5,0 @@ export { HTTPError, TimeoutError, HttpClient, } from './__generated__/HttpClient'; |
@@ -12,1 +12,2 @@ export { Security } from './Security'; | ||
export { Geocode } from './Geocode'; | ||
export { ResourceCatalog } from './ResourceCatalog'; |
@@ -12,2 +12,3 @@ export { Security } from './Security'; | ||
export { Geocode } from './Geocode'; | ||
export { ResourceCatalog } from './ResourceCatalog'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@evergis/api", | ||
"version": "0.1.20", | ||
"version": "0.1.21", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "author": "everpoint", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
227823
167
4933