0.0.34 • Published 4 months ago

@types/fontoxml v0.0.34

Weekly downloads
1
License
MIT
Repository
github
Last release
4 months ago

Installation

npm install --save @types/fontoxml

Summary

This package contains type definitions for FontoXML (http://www.fontoxml.com/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fontoxml.

index.d.ts

// Type definitions for FontoXML
// Project: http://www.fontoxml.com/
// Definitions by: Roland Zwaga <https://github.com/rolandzwaga>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace 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 | undefined;
        //Workflow information.
        workflow?: IWorkflowInfo | undefined;
        //Allow/disallow auto-save functionality.
        autosave?: boolean | undefined;
        //If set to a positive integer, enable the Heartbeat API to send every x seconds.
        heartbeat?: number | undefined;
    }

    export interface IWorkflowInfo
    {
        id:string;
        displayName:string;
    }

    export interface IUserInfo extends IWorkflowInfo
    {
        roleId:string;
    }

    //This is describes the object that is assigned to the MessageEvent.data
    //property after the FontoXML editor posts a message
    export interface IFontoMessageEventData {
        command: string;
        type: string;
        scope: com.fontoxml.IInvocator;
        metadata: any;
    }

}

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:01:46 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Roland Zwaga.

0.0.34

4 months ago

0.0.31

8 months ago

0.0.32

7 months ago

0.0.33

7 months ago

0.0.30

3 years ago

0.0.29

4 years ago

0.0.28

8 years ago

0.0.27

8 years ago

0.0.26-alpha

8 years ago

2000.0.26-alpha

8 years ago

2000.0.25-alpha

8 years ago

2000.0.24-alpha

8 years ago

2000.0.23-alpha

8 years ago

2000.0.22-alpha

8 years ago

2000.0.21-alpha

8 years ago

2000.0.20-alpha

8 years ago

2000.0.15-alpha

8 years ago

2000.0.14-alpha

8 years ago