From 65d386f2de01f5399bc3010002058b3e04a32fea Mon Sep 17 00:00:00 2001 From: Roland Zwaga Date: Thu, 31 Jul 2014 09:23:37 +0200 Subject: [PATCH 1/2] Update CONTRIBUTORS.md --- CONTRIBUTORS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 4c2fbc8e1..b91802e87 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -9,6 +9,7 @@ All definitions files include a header with the author and editors, so at some p * [Add To Home Screen](http://cubiq.org/add-to-home-screen) (by [James Wilkins](http://www.codeplex.com/site/users/view/jamesnw)) * [AmCharts](http://www.amcharts.com/) (by [Covobonomo](https://github.com/covobonomo/)) * [AngularAgility](https://github.com/AngularAgility/AngularAgility) (by [Roland Zwaga](https://github.com/rolandzwaga) +* [AngularBootstrapLightbox](https://github.com/compact/angular-bootstrap-lightbox) (by [Roland Zwaga](https://github.com/rolandzwaga) * [AngularFire](https://www.firebase.com/docs/angular/reference.html) (by [Dénes Harmath](https://github.com/thSoft)) * [AngularJS](http://angularjs.org) (by [Diego Vilar](https://github.com/diegovilar)) ([wiki](https://github.com/borisyankov/DefinitelyTyped/wiki/AngularJS-Definitions-Usage-Notes)) * [angularLocalStorage](https://github.com/agrublev/angularLocalStorage) (by [Hiroki Horiuchi](https://github.com/horiuchi/)) From 1a58805142400e469bc7cf1ce72f2f87ebc5a5f7 Mon Sep 17 00:00:00 2001 From: Roland Zwaga Date: Fri, 4 Sep 2015 10:49:26 +0200 Subject: [PATCH 2/2] Added definitions for the FontoXML invocation (http://docs.fontoxml.com/#!/fontoxml/invokeEditor) --- fontoxml/fontoxml-tests.ts | 28 ++++++++++++++++++++++++++ fontoxml/fontoxml.d.ts | 40 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 fontoxml/fontoxml-tests.ts create mode 100644 fontoxml/fontoxml.d.ts diff --git a/fontoxml/fontoxml-tests.ts b/fontoxml/fontoxml-tests.ts new file mode 100644 index 000000000..7821806cf --- /dev/null +++ b/fontoxml/fontoxml-tests.ts @@ -0,0 +1,28 @@ +/// + +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" +} \ No newline at end of file diff --git a/fontoxml/fontoxml.d.ts b/fontoxml/fontoxml.d.ts new file mode 100644 index 000000000..4d621c234 --- /dev/null +++ b/fontoxml/fontoxml.d.ts @@ -0,0 +1,40 @@ +// Type definitions for FontoXML +// Project: http://www.fontoxml.com/ +// Definitions by: Roland Zwaga +// 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; + } + +} \ No newline at end of file