@idpass/data-collect-core / GroupDoc
Interface: GroupDoc
Defined in: interfaces/types.ts:136
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:56
Internal database ID (auto-generated)
Inherited from
guid
guid:
string
Defined in: interfaces/types.ts:58
Global unique identifier (user-provided or generated)
Inherited from
externalId?
optionalexternalId:string
Defined in: interfaces/types.ts:60
Optional external system identifier for sync
Inherited from
name?
optionalname:string
Defined in: interfaces/types.ts:62
Optional display name for the entity
Inherited from
version
version:
number
Defined in: interfaces/types.ts:66
Version number for optimistic concurrency control
Inherited from
data
data:
Record<string,any>
Defined in: interfaces/types.ts:69
Flexible data payload containing entity-specific fields
Inherited from
lastUpdated
lastUpdated:
string
Defined in: interfaces/types.ts:71
ISO timestamp of last modification
Inherited from
type
type:
Group
Defined in: interfaces/types.ts:137
Type of entity (Individual or Group)
Overrides
memberIds
memberIds:
string[]
Defined in: interfaces/types.ts:139
Array of entity GUIDs that are members of this group