Skip to main content

@idpass/data-collect-core / ConflictRecord

Interface: ConflictRecord

Defined in: services/ConflictService.ts:28

Represents a detected conflict between local and remote versions of an entity.

Properties​

guid​

guid: string

Defined in: services/ConflictService.ts:30

Unique identifier for this conflict record


entityGuid​

entityGuid: string

Defined in: services/ConflictService.ts:32

GUID of the entity in conflict


tenantId​

tenantId: string

Defined in: services/ConflictService.ts:34

Tenant ID where the conflict occurred


localVersion​

localVersion: Record<string, unknown>

Defined in: services/ConflictService.ts:36

Local version of the entity data


remoteVersion​

remoteVersion: Record<string, unknown>

Defined in: services/ConflictService.ts:38

Remote version of the entity data


localEventGuid​

localEventGuid: string

Defined in: services/ConflictService.ts:40

GUID of the local event that caused the conflict


remoteEventGuid​

remoteEventGuid: string

Defined in: services/ConflictService.ts:42

GUID of the remote event that caused the conflict


detectedAt​

detectedAt: string

Defined in: services/ConflictService.ts:44

ISO timestamp when the conflict was detected


resolvedAt​

resolvedAt: string | null

Defined in: services/ConflictService.ts:46

ISO timestamp when the conflict was resolved (null if unresolved)


resolution​

resolution: "local" | "remote" | "merged" | null

Defined in: services/ConflictService.ts:48

How the conflict was resolved


resolvedBy​

resolvedBy: string | null

Defined in: services/ConflictService.ts:50

User who resolved the conflict


mergedData​

mergedData: Record<string, unknown> | null

Defined in: services/ConflictService.ts:52

Merged data if resolution is 'merged'