lucid-extension-sdk
Advanced tools
Comparing version 0.0.54 to 0.0.55
{ | ||
"name": "lucid-extension-sdk", | ||
"version": "0.0.54", | ||
"version": "0.0.55", | ||
"description": "Utility classes for writing Lucid Software editor extensions", | ||
@@ -5,0 +5,0 @@ "main": "sdk/index.js", |
@@ -93,2 +93,3 @@ import { SerializedFieldTypeDefinition } from './core/data/fieldtypedefinition/fieldtypedefinition'; | ||
StartDragBlockToCanvas = "sdc", | ||
StartPDFUploadRequest = "pdf", | ||
ThrowForTestCase = "throw", | ||
@@ -399,2 +400,6 @@ UnhookCreateItems = "uci", | ||
}; | ||
[CommandName.StartPDFUploadRequest]: { | ||
query: StartPDFUploadRequestQuery; | ||
result: StartPDFUploadRequestResponse; | ||
}; | ||
[CommandName.ThrowForTestCase]: { | ||
@@ -998,2 +1003,9 @@ query: ThrowForTestCaseQuery; | ||
export declare type StartDragBlockToCanvasResult = Promise<string | undefined>; | ||
export declare type StartPDFUploadRequestQuery = string; | ||
/** | ||
* @ignore | ||
* A signed URL you can upload the pdf to. You can do this manually (via the client, your own service) or via the | ||
* oauth proxy. | ||
*/ | ||
export declare type StartPDFUploadRequestResponse = Promise<string>; | ||
export declare type ThrowForTestCaseQuery = number; | ||
@@ -1000,0 +1012,0 @@ export declare type ThrowForTestCaseResult = undefined | Promise<void>; |
@@ -77,2 +77,3 @@ "use strict"; | ||
["sdc" /* CommandName.StartDragBlockToCanvas */, 'StartDragBlockToCanvas'], | ||
["pdf" /* CommandName.StartPDFUploadRequest */, 'StartPDFUploadRequest'], | ||
["throw" /* CommandName.ThrowForTestCase */, 'ThrowForTestCase'], | ||
@@ -79,0 +80,0 @@ ["uci" /* CommandName.UnhookCreateItems */, 'UnhookCreateItems'], |
@@ -0,1 +1,2 @@ | ||
import { StartPDFUploadRequestResponse } from '../../commandtypes'; | ||
import { UnfurlIframe } from '../../core/unfurl/unfurliframe'; | ||
@@ -53,3 +54,3 @@ import { BlockProxy } from '../blockproxy'; | ||
*/ | ||
experimentalStartPDFUpload(options: LinkUnfurlPDFOptions): Promise<LinkUnfurlPDFResult>; | ||
experimentalStartPDFUpload(options: LinkUnfurlPDFOptions): Promise<StartPDFUploadRequestResponse>; | ||
} | ||
@@ -68,19 +69,1 @@ /** | ||
} | ||
/** | ||
* @ignore | ||
* The result of initiating the PDF upload process. | ||
*/ | ||
export interface LinkUnfurlPDFResult { | ||
/** | ||
* @ignore | ||
* A signed URL you can upload the pdf to. You can do this manually (via the client, your own service) or via the | ||
* oauth proxy. | ||
*/ | ||
uploadUrl: string; | ||
/** | ||
* @ignore | ||
* The internal identifier to the PDF upload which is associated with the block. | ||
* TODO: Determine if we show this to the extension, or keep internal | ||
*/ | ||
blobId: string; | ||
} |
@@ -76,4 +76,5 @@ "use strict"; | ||
*/ | ||
experimentalStartPDFUpload(options) { | ||
throw new Error('Not yet implemented'); | ||
async experimentalStartPDFUpload(options) { | ||
const result = await this.client.sendCommand("pdf" /* CommandName.StartPDFUploadRequest */, this.id); | ||
return result; | ||
} | ||
@@ -80,0 +81,0 @@ } |
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
376769
8884