Skip to main content

Interface: SubmissionStoreLike

Defined in: types.ts:67

Methods

get()

get(id): Promise<Submission | undefined>;

Defined in: types.ts:68

Parameters

ParameterType
idstring

Returns

Promise<Submission | undefined>


patch()?

optional patch(
id,
partial,
opts?
): Promise<Submission>;

Defined in: types.ts:81

Shallow merge, per SubmissionRepo.patch in @rasd/storage (docs/09 §3).

Optional here, required there. Autosave prefers it because put is a full replace: writing a whole submission every few seconds clobbers every column this renderer does not own — the status and serverRev the sync engine wrote, per-attachment upload state — and bumps clientRev on every keystroke batch, where docs/06 §8 says it should bump only on finalize. When an adapter does not offer it, autosave reads, merges and puts instead, which costs a round trip and preserves the same guarantee.

Parameters

ParameterType
idstring
partialPartial<Submission>
opts?{ bumpRev?: boolean; }
opts.bumpRev?boolean

Returns

Promise<Submission>


put()

put(submission): Promise<void>;

Defined in: types.ts:69

Parameters

ParameterType
submissionSubmission

Returns

Promise<void>