2020-11-15 16:18:46 +02:00
|
|
|
import { ExportModule, ImportModule } from './types';
|
|
|
|
/**
|
|
|
|
* Provides a way to create modules to import external data into Joplin or to export notes into any arbitrary format.
|
|
|
|
*
|
|
|
|
* [View the demo plugin](https://github.com/laurent22/joplin/tree/dev/packages/app-cli/tests/support/plugins/json_export)
|
|
|
|
*
|
|
|
|
* To implement an import or export module, you would simply define an object with various event handlers that are called
|
|
|
|
* by the application during the import/export process.
|
|
|
|
*
|
|
|
|
* See the documentation of the [[ExportModule]] and [[ImportModule]] for more information.
|
|
|
|
*
|
2023-11-12 17:40:37 +02:00
|
|
|
* You may also want to refer to the Joplin API documentation to see the list of properties for each item (note, notebook, etc.) - https://joplinapp.org/help/api/references/rest_api
|
2024-08-08 21:02:53 +02:00
|
|
|
*
|
|
|
|
* <span class="platform-desktop">desktop</span>: While it is possible to register import and export
|
|
|
|
* modules on mobile, there is no GUI to activate them.
|
2020-11-15 16:18:46 +02:00
|
|
|
*/
|
|
|
|
export default class JoplinInterop {
|
2023-01-05 12:41:17 +02:00
|
|
|
registerExportModule(module: ExportModule): Promise<void>;
|
|
|
|
registerImportModule(module: ImportModule): Promise<void>;
|
2020-11-15 16:18:46 +02:00
|
|
|
}
|