mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-28 12:43:06 +08:00
@@ -0,0 +1,28 @@
|
||||
///<reference path='fontoxml.d.ts' />
|
||||
|
||||
var workflow:com.fontoxml.IWorkflowInfo = {
|
||||
id:"1",
|
||||
displayName:"workflow"
|
||||
}
|
||||
|
||||
var user:com.fontoxml.IUserInfo = {
|
||||
id: "123",
|
||||
displayName: "test",
|
||||
roleId: "editor"
|
||||
}
|
||||
|
||||
var init:com.fontoxml.IInvocator = {
|
||||
documentIds: ["11-22-33","44-55-66"],
|
||||
cmsBaseUrl: "/test/",
|
||||
editSessionToken: "aa-bb-cc-dd-ee",
|
||||
user: user,
|
||||
workflow: workflow,
|
||||
autosave: false,
|
||||
heartbeat: 300
|
||||
}
|
||||
|
||||
var simpleinit:com.fontoxml.IInvocator = {
|
||||
documentIds: ["11-22-33","44-55-66"],
|
||||
cmsBaseUrl: "/test/",
|
||||
editSessionToken: "aa-bb-cc-dd-ee"
|
||||
}
|
||||
Vendored
+40
@@ -0,0 +1,40 @@
|
||||
// Type definitions for FontoXML
|
||||
// Project: http://www.fontoxml.com/
|
||||
// Definitions by: Roland Zwaga <https://github.com/rolandzwaga>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module com.fontoxml
|
||||
{
|
||||
//This is a description of how to invoke the FontoXML editor, and instruct it to load (a) document(s).
|
||||
//Please keep in mind that the URL length may be limited in certain browsers, so a safe limit of 2000 characters
|
||||
//for the whole URL including query parameters should be used.
|
||||
export interface IInvocator
|
||||
{
|
||||
//The document id's of the documents to load from the CMS.
|
||||
documentIds: string[];
|
||||
//The base URL where the CMS endpoints are exposed.
|
||||
cmsBaseUrl: string;
|
||||
//The edit session token to use for accessing the CMS endpoints.
|
||||
editSessionToken: string;
|
||||
//User information.
|
||||
user?: IUserInfo;
|
||||
//Workflow information.
|
||||
workflow?: IWorkflowInfo;
|
||||
//Allow/disallow auto-save functionality.
|
||||
autosave?: boolean;
|
||||
//If set to a positive integer, enable the Heartbeat API to send every x seconds.
|
||||
heartbeat?: number;
|
||||
}
|
||||
|
||||
export interface IWorkflowInfo
|
||||
{
|
||||
id:string;
|
||||
displayName:string;
|
||||
}
|
||||
|
||||
export interface IUserInfo extends IWorkflowInfo
|
||||
{
|
||||
roleId:string;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user