Class NoteClient<Tag, Input, Output>
Properties
Private
base
Private
tag
Methods
Private
clearUnknownAttributes
- clearUnknownAttributes(input?): Partial<Input>
Parameters
Optional
input: null | Record<string, unknown>
Returns Partial<Input>
Private
createFromNote
- createFromNote(note, characterId, options?): Promise<Output>
Parameters
- note: NoteEntity
- characterId: number
Optional
options: CreateOptions
Returns Promise<Output>
Private
createNoteMetaFromInput
- createNoteMetaFromInput(__namedParameters): NoteMetadata & {
summary?: string;
} Parameters
- __namedParameters: {
autofill?: boolean;
values: Partial<Input>;
}Optional
autofill?: boolean
values: Partial<Input>
Returns NoteMetadata & {
summary?: string;
}
Private
ensureToken
- ensureToken(token): void
Returns void
get
- get(handleOrCharacterId, noteId, options?): Promise<null | Output>
Returns Promise<null | Output>
getAll
- getAll(handleOrCharacterId, options?): Promise<Output[]>
Returns Promise<Output[]>
getBySlug
- getBySlug(handleOrCharacterId, slug, options?): Promise<null | Output>
Returns Promise<null | Output>
getMany
- getMany(handleOrCharacterId, options?): Promise<ResultMany<Output>>
put
- put(__namedParameters): Promise<{}>
Returns Promise<{}>
update
- update(__namedParameters): Promise<{}>
Returns Promise<{}>