Skip to content

cozy-client / models / note

Namespace: note

models.note

Interfaces

Functions

fetchURL

fetchURL(client, file, [options]?): Promise<string>

Fetch and build an URL to open a note.

Parameters

Name Type Description
client any CozyClient instance
file any io.cozy.file object
[options] FetchURLOptions Options

Returns

Promise<string>

url

Defined in

packages/cozy-client/src/models/note.js:39


generatePrivateUrl

generatePrivateUrl(notesAppUrl, file, options?): string

Parameters

Name Type Description
notesAppUrl string URL to the Notes App (https://notes.foo.mycozy.cloud)
file any io.cozy.files object
options Object -

Returns

string

Defined in

packages/cozy-client/src/models/note.js:16


generateUrlForNote

generateUrlForNote(notesAppUrl, file): string

Parameters

Name Type
notesAppUrl any
file any

Returns

string

Defined in

packages/cozy-client/src/models/note.js:25