Unique identifier that can be used to register or retrieve a specific API.
Example: mendix.EditorsAPI, mycompany.MyFunkyAPI
Adds an event listener for the specified event type.
A function that can be called to remove the event listener.
Creates a new custom blob document of the given type in the given container. The document type must be registered before creation. If no content is provided, the default content from the registration will be used.
Object containing information about the new document to create, see CustomBlobDocumentCreationOptions
The ID of the newly created document, or undefined if creation failed.
Deletes the document with the given ID.
ID of the document to delete
Loads the custom document with the given ID. Returns appropriate error if the document does not exist or if the deserialization of the document contents fails (see DocumentLookupResult).
The ID of the document to load.
Loads metadata information of all documents of the given type. Note that you need to invoke getDocumentById to get the actual contents of each document.
Registers a new type of custom blob document. This only registers the document type. It does not create new documents and does not register any associated editors.
Options required to register a new document type, see CustomBlobDocumentRegistrationOptions
OptionalserializationCallback: (blob: TBlob) => Promise<undefined | string>Optional function that will be called to convert the document contents to a string. Defaults to JSON.stringify
OptionaldeserializationCallback: (data: string) => Promise<undefined | TBlob>Optional function that will be called to convert the string back to the document contents. Defaults to JSON.parse
Updates the contents of the document with the given ID.
ID of the document to update
New content for the document. The content is serialized using the given serializer.
API for registering custom blob document types. For registering corresponding editors, see IEditorApi.registerEditorForCustomDocument.