Skip to main content

@idpass/data-collect-core / IndividualDoc

Interface: IndividualDoc

Defined in: interfaces/types.ts:157

Individual entity representing a single person.

Example

const person: IndividualDoc = {
type: EntityType.Individual,
data: {
name: "John Doe",
dateOfBirth: "1990-01-01"
},
// ... other EntityDoc properties
};

Extends

Properties

id

id: string

Defined in: interfaces/types.ts:56

Internal database ID (auto-generated)

Inherited from

EntityDoc.id


guid

guid: string

Defined in: interfaces/types.ts:58

Global unique identifier (user-provided or generated)

Inherited from

EntityDoc.guid


externalId?

optional externalId: string

Defined in: interfaces/types.ts:60

Optional external system identifier for sync

Inherited from

EntityDoc.externalId


name?

optional name: string

Defined in: interfaces/types.ts:62

Optional display name for the entity

Inherited from

EntityDoc.name


version

version: number

Defined in: interfaces/types.ts:66

Version number for optimistic concurrency control

Inherited from

EntityDoc.version


data

data: Record<string, any>

Defined in: interfaces/types.ts:69

Flexible data payload containing entity-specific fields

Inherited from

EntityDoc.data


lastUpdated

lastUpdated: string

Defined in: interfaces/types.ts:71

ISO timestamp of last modification

Inherited from

EntityDoc.lastUpdated


type

type: Individual

Defined in: interfaces/types.ts:158

Type of entity (Individual or Group)

Overrides

EntityDoc.type