49 lines
1.9 KiB
Plaintext
49 lines
1.9 KiB
Plaintext
# Entry
|
|
|
|
Entry is a class that represents an entry in the MarcSync API.
|
|
|
|
<div style={{display: "grid", "grid-template-columns": "repeat(2,minmax(0,1fr))", "box-sizing": "border-box", "border-width": "0", "border-style": "solid", "word-break": "break-word"}}>
|
|
|
|
<div style={{"box-sizing": "border-box", "border-width": "0", "border-style": "solid", "word-break": "break-word", "font-weight": "600"}}>
|
|
METHODS
|
|
<ul style={{"padding-left": ".5rem", "list-style-type": "disc", "margin-bottom": "1.25rem", "list-style": "none", "box-sizing": "border-box", "border-width": "0", "border-style": "solid", "word-break": "break-word", "font-weight": "500"}}>
|
|
<li style={{"margin-bottom": ".5rem", "list-style-type": "none"}}>
|
|
<a style={{"display": "block"}} href="#getValues">getValues</a>
|
|
<a style={{"display": "block"}} href="#getValue">getValue</a>
|
|
<a style={{"display": "block"}} href="#updateValues">updateValues</a>
|
|
<a style={{"display": "block"}} href="#delete">delete</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
## METHODS
|
|
|
|
### :getValues()
|
|
Returns all values of the entry as [EntryData](../types/EntryData).
|
|
|
|
|
|
### :getValue(`key:` [string](https://www.lua.org/pil/2.4.html))
|
|
Returns the value of the specified key.
|
|
|
|
### :updateValues(`data:` [EntryData](../types/EntryData))
|
|
Updates the values of the entry with the specified data.
|
|
|
|
:::caution Exceptions
|
|
|
|
[InvalidAccessToken](../errors/Authorization#InvalidAccessToken) - Thrown when the `accessToken` is invalid.<br/>
|
|
[CollectionNotFound](../errors/Collection#CollectionNotFound) - Thrown when the collection does not exist.<br/>
|
|
[InvalidEntryData](../errors/Entry#InvalidEntryData) - Thrown when the [EntryData](../types/EntryData) is invalid.
|
|
|
|
:::
|
|
|
|
### :delete()
|
|
Deletes the entry.
|
|
|
|
:::caution Exceptions
|
|
|
|
[InvalidAccessToken](../errors/Authorization#InvalidAccessToken) - Thrown when the `accessToken` is invalid.<br/>
|
|
[CollectionNotFound](../errors/Collection#CollectionNotFound) - Thrown when the collection does not exist.<br/>
|
|
|
|
::: |