Optional
newResource: booleanReadonly
__internalEvery commit that has been applied should be stored here, which prevents applying the same commit twice
Private
commitOptional
commitIf the commit could not be saved, we put that info here.
Optional
errorIf the resource could not be fetched, we put that info here.
Private
hasPrivate
inIs true when the Resource is currently being fetched, awaiting a response from the Server
Is true for locally created, unsaved resources
Private
propvalsPrivate
subjectPrivate
equalsGet a Value by its property
Private
isCommits the changes and sends the Commit to the resource's /commit
endpoint. Returns the Url of the created Commit. If you don't pass an Agent
explicitly, the default Agent of the Store is used.
When there are no changes no commit is made and the function returns Promise
Set a Property, Value combination and perform a validation. Will throw if property is not valid for the datatype. Will fetch the datatype if it's not available. Adds the property to the commitbuilder.
When undefined is passed as value, the property is removed from the resource.
Disable validation if you don't need it. It might cause a fetch if the Property is not present when set is called
Generated using TypeDoc
Describes an Atomic Resource, which has a Subject URL and a bunch of Property / Value combinations.