The IModelApiClient interface is used for forwarding calls to the underlying Mendix Model API.
Implementations of this interface serve as fully-typed clients for the Model API Server.
Default implementation: ModelApiClientImpl.
Note that all its methods are asynchronous, with the last two arguments always being a (success) callback and an error callback,
and we will only explain the "essential" arguments in their documentation.
Note: this interface is part of the internal API of the Model SDK.
DISCLAIMER: End-users of the SDK should never rely directly on elements of the internal API,
e.g. by implementing interfaces or instantiating classes.
Anything in this file can be removed, or change signature, even between patch-level SDK versions.
getEditorData(callback: ICallback<IEditorData>, errorCallback: IErrorCallback): any
Returns UUIDs for helper working copies for each supported Mendix version.
These are pre-defined working copies that are accessible for read operations,
and contain units that might come in handy when creating pages from templates.
Uploads the supplied file to the specified filepath.
Parameters
workingCopyId: string
inFilePath: string | Blob
filePath: string
callback: IVoidCallback
errorCallback: IErrorCallback
Returns any
revokeAccess
revokeAccess(workingCopyId: string, memberOpenId: string, callback: IVoidCallback, errorCallback: IErrorCallback): any
Parameters
workingCopyId: string
memberOpenId: string
callback: IVoidCallback
errorCallback: IErrorCallback
Returns any
revokeAccessByProject
revokeAccessByProject(projectId: string, memberOpenId: string, callback: IVoidCallback, errorCallback: IErrorCallback): any
Parameters
projectId: string
memberOpenId: string
callback: IVoidCallback
errorCallback: IErrorCallback
Returns any
sendDeltas
sendDeltas(workingCopyId: string, deltas: IDelta[], callback: ICallback<Object>, errorCallback: IErrorCallback): any
Sends a sequence of deltas on the working copy with the given workingCopyId to the Model API Server;
batched if more than one is passed, as a single delta otherwise.
The IModelApiClient interface is used for forwarding calls to the underlying Mendix Model API. Implementations of this interface serve as fully-typed clients for the Model API Server. Default implementation: ModelApiClientImpl. Note that all its methods are asynchronous, with the last two arguments always being a (success) callback and an error callback, and we will only explain the "essential" arguments in their documentation.
Note: this interface is part of the internal API of the Model SDK.
DISCLAIMER: End-users of the SDK should never rely directly on elements of the internal API, e.g. by implementing interfaces or instantiating classes. Anything in this file can be removed, or change signature, even between patch-level SDK versions.