UNPKG

@arkiv-network/sdk

Version:

TypeScript client library for Arkiv's blockchains interactions

36 lines (35 loc) • 1.05 kB
//#region src/types/entity.ts /** * An entity as the node returns it, decoded: the fields a query selected, with its attributes as a * map keyed by name. Which fields are populated is decided by the selection, so each may be * `undefined`. * * Queries do not return these: `select()`, `query()` and `getEntity()` lay each one out as a flat * row — the selected entity fields and attributes side by side, typed by the selection and, through * a schema, by its columns. */ var Entity = class { key; owner; creator; createdAt; updatedAt; expiresAt; creationFlags; attributeSchema; attributes; constructor(fields = {}) { this.key = fields.key; this.owner = fields.owner; this.creator = fields.creator; this.createdAt = fields.createdAt; this.updatedAt = fields.updatedAt; this.expiresAt = fields.expiresAt; this.creationFlags = fields.creationFlags; this.attributeSchema = fields.attributeSchema; this.attributes = fields.attributes; } }; //#endregion export { Entity as t }; //# sourceMappingURL=entity-B5oCq0oX.js.map