added typings for mendixmodelsdk@0.0.1

This commit is contained in:
Michel Weststrate
2015-09-22 13:54:10 +02:00
parent 09e37435ff
commit 6d243bebf1
3 changed files with 12745 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
/// <reference path="./mendixmodelsdk.d.ts"/>
import {domainmodels, IModel, ModelSdkClient} from "mendixmodelsdk";
// This doesn't do anything useful, just for testing typings...
const client: ModelSdkClient = new ModelSdkClient({
credentials: {
username: "username",
apikey: "apikey"
}
});
client.createWorkingCopy({
name: "workingCopy",
template: "test.mpk"
}, (model:IModel) => {
client.openWorkingCopy(model.id, (model:IModel) => {
var domainModel:domainmodels.IDomainModel = model.allDomainModels()[0];
domainModel.load((d:domainmodels.DomainModel) => {});
domainModel = model.root.modules[0].domainModel;
var entity:domainmodels.IEntity = model.findEntityByQualifiedName("x.y");
model.exportMpk("test.mpk", () => {}, (err) => {})
}, (err) => {});
}, (err) => {});
@@ -0,0 +1 @@
-m commonjs -t es5
+12717
View File
File diff suppressed because it is too large Load Diff