SyncTransactionResult
Defined in: packages/client/src/index.ts:1238
The result of a SyncClient.transaction. A pessimistic block carries the authoritative server
acks (each acked / conflicted / rejected); an optimistic block enqueues atomically and flushes
in the background, so its acks are empty.
Properties
Section titled “Properties”acks:
object[]
Defined in: packages/client/src/index.ts:1239
conflictReason?
Section titled “conflictReason?”
optionalconflictReason?:string
entityKey
Section titled “entityKey”entityKey:
Record<string,string> =entityKeySchema
httpStatus?
Section titled “httpStatus?”
optionalhttpStatus?:number
mutationId
Section titled “mutationId”mutationId:
string
mutationSeq
Section titled “mutationSeq”mutationSeq:
number
rejectionReason?
Section titled “rejectionReason?”
optionalrejectionReason?:string
The typed reason a rejected ack carries (ADR-0022): the authoritative endpoint’s account of why the
write-unit was declined (a capacity/quota/uniqueness rule — e.g. the DB constraint or trigger message).
Surfaced to the app when the optimistic overlay is auto-discarded.
serverUpdatedAtUs?
Section titled “serverUpdatedAtUs?”
optionalserverUpdatedAtUs?:string
status
Section titled “status”status:
"acked"|"rejected"|"failed"|"conflicted"=mutationAckStatusSchema
tableName
Section titled “tableName”tableName:
string