@evergis/api
Advanced tools
Comparing version 0.1.26 to 0.1.27
@@ -408,2 +408,4 @@ /** | ||
type?: 'Unknown' | 'String' | 'Int32' | 'Int64' | 'Double' | 'DateTime' | 'Point' | 'Polyline' | 'Polygon' | 'Multipoint'; | ||
/** Alias of the attribute. */ | ||
alias?: string; | ||
/** If false, the attribute must have non-null value. */ | ||
@@ -618,3 +620,3 @@ isNullable?: boolean; | ||
/** String attribute subtype SPCore.Kernel.Features.Attributes.AttributeType.String. */ | ||
subType?: 'image'; | ||
subType?: 'None' | 'Image'; | ||
/** If set to false, editing of the attribute value will be prohibited. */ | ||
@@ -621,0 +623,0 @@ isEditable?: boolean; |
@@ -37,4 +37,4 @@ import { Service } from './Service'; | ||
getResourceReferences(name: string): Promise<ResourceDependenciesDc>; | ||
setPermissions({ name, Acl }: SetPermissionsParams): Promise<AccessControlListDc>; | ||
addPermissions({ name, Acl }: AddPermissionsParams): Promise<AccessControlListDc>; | ||
setPermissions({ name, data }: SetPermissionsParams): Promise<AccessControlListDc>; | ||
addPermissions({ name, data }: AddPermissionsParams): Promise<AccessControlListDc>; | ||
removePermissions({ name, role }: RemovePermissionsParams): Promise<AccessControlListDc>; | ||
@@ -223,4 +223,4 @@ } | ||
name: string; | ||
/** All available permissions list. */ | ||
Acl: any[]; | ||
/** New data. */ | ||
data?: AccessControlListDc; | ||
}; | ||
@@ -230,4 +230,4 @@ export declare type AddPermissionsParams = { | ||
name: string; | ||
/** All available permissions list. */ | ||
Acl: any[]; | ||
/** Acl to add. */ | ||
data?: AccessControlListDc; | ||
}; | ||
@@ -234,0 +234,0 @@ export declare type RemovePermissionsParams = { |
@@ -187,10 +187,10 @@ /* | ||
} | ||
setPermissions({ name, Acl }) { | ||
setPermissions({ name, data }) { | ||
return this.http | ||
.put(`layers/${name}/permissions`, null, { Acl }) | ||
.put(`layers/${name}/permissions`, data) | ||
.json(); | ||
} | ||
addPermissions({ name, Acl }) { | ||
addPermissions({ name, data }) { | ||
return this.http | ||
.post(`layers/${name}/permissions`, null, { Acl }) | ||
.post(`layers/${name}/permissions`, data) | ||
.json(); | ||
@@ -197,0 +197,0 @@ } |
{ | ||
"name": "@evergis/api", | ||
"version": "0.1.26", | ||
"version": "0.1.27", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "author": "everpoint", |
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
5030