Skip to main content

RecordChangeResponse

@gravity-rail/sdk


@gravity-rail/sdk / RecordChangeResponse

Interface: RecordChangeResponse

One operation a test run made on one record of its test Member.

kind says what the operation did. A created change lists the values the record started with (oldValue null); an updated change the fields that changed; a deleted change the values the record held (newValue null).

seeded is true for a change written when the run started: a scenario's dataRecords.

actorMemberId is the Member who made the change, with their name and type; all three are null when no Member acted. source names the code path that wrote it. A deleted change records neither.

id is unique in the run's list and stable across reads.

Properties​

actorMemberId​

actorMemberId: number | null


actorName​

actorName: string | null


actorType​

actorType: MemberType | null


dataRecordId​

dataRecordId: number


dataTypeId​

dataTypeId: number


dataTypeName​

dataTypeName: string


dataTypeSlug​

dataTypeSlug: string


fields​

fields: RecordFieldChangeResponse[]


id​

id: string


kind​

kind: RecordChangeKind


occurredAt​

occurredAt: string


seeded​

seeded: boolean


source​

source: string | null