Skip to main content

Entry

Entry is a class that represents an entry in the MarcSync API.

METHODS

:getValues()

Returns all values of the entry as EntryData.

:getValue(key: string)

Returns the value of the specified key.

:updateValues(data: EntryData)

Updates the values of the entry with the specified data.

Exceptions

InvalidAccessToken - Thrown when the accessToken is invalid.
CollectionNotFound - Thrown when the collection does not exist.
InvalidEntryData - Thrown when the EntryData is invalid.

:delete()

Deletes the entry.

Exceptions

InvalidAccessToken - Thrown when the accessToken is invalid.
CollectionNotFound - Thrown when the collection does not exist.