The Mendix meta model version related to the project.
The Mendix product version the model was created with/in. Note: this does not have to equal the meta model version.
The meta data of the model.
Working copy id of the current opened model (read only)
Adds the given module json to the project, which will make the module and its units read-only and unloadable. Returns the added module.
Gives error if
Returns a defensive collection of all units in this model.
Ends the connection with the Model API client. Flushes any pending deltas and invokes the callback once complete. If a callback is provided but no error callback is provided, errors will be handled through the default modelstore error handler.
Deletes the file with the specified filepath.
Deletes this working copy from the server, and the (SDK) client.
Exports the module as MPK. If outFilePath is empty, the raw response body will be provided in the callback
Exports this model as MPK. If outFilePath is empty, the raw response body will be provided.
Returns a list of unitIds that contains a specific custom widget
Flushes any pending deltas and invokes the callback once complete. If a callback is provided but no error callback is provided, errors will be handled through the default modelstore error handler.
Downloads the file specified by the supplied filepath. If outFilePath is empty, the raw response body will be provided in the callback
Returns an array of all filepaths in the working copy.
Returns all files or a subset of files options.filter: glob pattern to limit the set of files options.format: "json" or "zip" options.path: useful if format is "zip". If provided the zip will be stored on disk
Get the event id for the last processed batch of deltas in Model Server after flushing any pending deltas. If a callback is provided but no error callback is provided, errors will be handled through the default modelstore error handler.
Imports the given module MPK.
Importing a module overwrites existing files in the project.
Gives error if
Fetches a complete unit. The result might be returned from the cache.
Uploads the supplied file to the specified filepath.
Sets the callback that is invoked when an error occurs in an asynchronous operation for which no error callback is specified.
Examples of such operations are making changes to the model and loading elements.
Before calling this API, ensure that all handlers (i.e. onModelEventProcessed()), have been registered
Before calling this API, ensure that all handlers (i.e. onBuildResultEventReceived() and/or onWorkingCopyDataEventReceived() ), have been registered
Generated using TypeDoc
Abstract: this class should never be instantiated. Implementation of IModel.