Skip to main content

@idpass/data-collect-core / GroupDoc

Interface: GroupDoc

Defined in: interfaces/types.ts:142

Group entity representing a household or collection of individuals.

Example

const household: GroupDoc = {
type: EntityType.Group,
memberIds: ["individual-1", "individual-2"],
data: {
name: "Smith Family",
address: "123 Main St"
},
// ... other EntityDoc properties
};

Extends

Extended by

Properties

id

id: string

Defined in: interfaces/types.ts:60

Internal database ID (auto-generated)

Inherited from

EntityDoc.id


guid

guid: string

Defined in: interfaces/types.ts:62

Global unique identifier (user-provided or generated)

Inherited from

EntityDoc.guid


externalId?

optional externalId?: string

Defined in: interfaces/types.ts:64

Optional external system identifier for sync

Inherited from

EntityDoc.externalId


name?

optional name?: string

Defined in: interfaces/types.ts:66

Optional display name for the entity

Inherited from

EntityDoc.name


version

version: number

Defined in: interfaces/types.ts:70

Version number for optimistic concurrency control

Inherited from

EntityDoc.version


data

data: Record<string, any>

Defined in: interfaces/types.ts:73

Flexible data payload containing entity-specific fields

Inherited from

EntityDoc.data


lastUpdated

lastUpdated: string

Defined in: interfaces/types.ts:75

ISO timestamp of last modification

Inherited from

EntityDoc.lastUpdated


identifiers?

optional identifiers?: IdentifierRecord[]

Defined in: interfaces/types.ts:77

Multiple typed identifiers per entity (national ID, UNHCR ID, etc.)

Inherited from

EntityDoc.identifiers


type

type: Group

Defined in: interfaces/types.ts:143

Type of entity (Individual or Group)

Overrides

EntityDoc.type


memberIds

memberIds: string[]

Defined in: interfaces/types.ts:145

Array of entity GUIDs that are members of this group


membershipRecords?

optional membershipRecords?: MembershipRecord[]

Defined in: interfaces/types.ts:147

Typed membership records (replaces flat memberIds for rich membership data)