orgnote-api 0.7.5 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
import { OrgNoteEncryption } from '../models/encryption';
|
|
10
10
|
import { parse, withMetaInfo } from 'org-mode-ast';
|
|
11
11
|
|
|
12
|
+
export type NoteEncryptedType = `${ModelsPublicNote['encrypted']}`;
|
|
12
13
|
export interface AbstractEncryptedNote {
|
|
13
14
|
content: string;
|
|
14
|
-
encrypted?:
|
|
15
|
+
encrypted?: NoteEncryptedType;
|
|
15
16
|
meta: {
|
|
16
17
|
[key: string]: any;
|
|
17
18
|
published?: boolean;
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
|
-
|
|
21
21
|
export async function encryptNote<T extends AbstractEncryptedNote>(
|
|
22
22
|
note: T,
|
|
23
23
|
encryptionParams: OrgNoteEncryption
|
package/package.json
CHANGED
package/remote-api/api.ts
CHANGED
|
@@ -579,7 +579,7 @@ export interface ModelsPublicNote {
|
|
|
579
579
|
* @type {string}
|
|
580
580
|
* @memberof ModelsPublicNote
|
|
581
581
|
*/
|
|
582
|
-
'content'
|
|
582
|
+
'content': string;
|
|
583
583
|
/**
|
|
584
584
|
*
|
|
585
585
|
* @type {string}
|
|
@@ -615,7 +615,7 @@ export interface ModelsPublicNote {
|
|
|
615
615
|
* @type {ModelsNoteMeta}
|
|
616
616
|
* @memberof ModelsPublicNote
|
|
617
617
|
*/
|
|
618
|
-
'meta'
|
|
618
|
+
'meta': ModelsNoteMeta;
|
|
619
619
|
/**
|
|
620
620
|
*
|
|
621
621
|
* @type {number}
|