lucid-extension-sdk
Advanced tools
Comparing version 0.0.178 to 0.0.180
@@ -9,2 +9,3 @@ import { SerializedFieldTypeDefinition } from './core/data/fieldtypedefinition/fieldtypedefinition'; | ||
import { ShapeDataInheritance } from './core/shapedatainheritance'; | ||
import { DocumentAccessPermission } from './document/documentaccesspermission'; | ||
import { DocumentElementType } from './document/documentelement/documentelementtype'; | ||
@@ -61,2 +62,3 @@ import { SerializedLineTextAreaPositioning } from './document/linetextareapositioning'; | ||
GetDataItemField = "gdif", | ||
GetDocumentAccessPermission = "gdap", | ||
GetDocumentId = "gdid", | ||
@@ -293,2 +295,6 @@ GetElementType = "get", | ||
}; | ||
[CommandName.GetDocumentAccessPermission]: { | ||
query: GetDocumentAccessPermissionQuery; | ||
result: GetDocumentAccessPermissionResult; | ||
}; | ||
[CommandName.GetDocumentId]: { | ||
@@ -968,2 +974,4 @@ query: GetDocumentIdQuery; | ||
export type GetDataItemFieldResult = SerializedFieldType; | ||
export type GetDocumentAccessPermissionQuery = void; | ||
export type GetDocumentAccessPermissionResult = DocumentAccessPermission; | ||
export type GetDocumentIdQuery = void; | ||
@@ -970,0 +978,0 @@ export type GetDocumentIdResult = string; |
@@ -41,2 +41,3 @@ "use strict"; | ||
["gdif" /* CommandName.GetDataItemField */, 'GetDataItemField'], | ||
["gdap" /* CommandName.GetDocumentAccessPermission */, 'GetDocumentAccessPermission'], | ||
["gdid" /* CommandName.GetDocumentId */, 'GetDocumentId'], | ||
@@ -43,0 +44,0 @@ ["get" /* CommandName.GetElementType */, 'GetElementType'], |
{ | ||
"name": "lucid-extension-sdk", | ||
"version": "0.0.178", | ||
"version": "0.0.180", | ||
"description": "Utility classes for writing Lucid Software editor extensions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,1 +1,2 @@ | ||
import { DocumentAccessPermission } from '../document/documentaccesspermission'; | ||
import { EditorClient } from '../editorclient'; | ||
@@ -9,2 +10,6 @@ /** | ||
constructor(client: EditorClient); | ||
/** | ||
* @returns the permission the user has on the current document. | ||
*/ | ||
getAccessPermssionOnDocument(): DocumentAccessPermission; | ||
} |
@@ -12,3 +12,9 @@ "use strict"; | ||
} | ||
/** | ||
* @returns the permission the user has on the current document. | ||
*/ | ||
getAccessPermssionOnDocument() { | ||
return this.client.sendCommand("gdap" /* CommandName.GetDocumentAccessPermission */, undefined); | ||
} | ||
} | ||
exports.UserProxy = UserProxy; |
662135
274
15356