fix: update upend_js to include entry provenance and timestamp
This commit is contained in:
parent
5797c39fe2
commit
8faaba03fd
3 changed files with 16 additions and 2 deletions
|
@ -98,6 +98,8 @@ export class UpEntry extends UpObject implements IEntry {
|
||||||
entity: string;
|
entity: string;
|
||||||
attribute: string;
|
attribute: string;
|
||||||
value: IValue;
|
value: IValue;
|
||||||
|
provenance: string;
|
||||||
|
timestamp: string;
|
||||||
|
|
||||||
constructor(address: string, entry: IEntry, listing: UpListing) {
|
constructor(address: string, entry: IEntry, listing: UpListing) {
|
||||||
super(address, listing);
|
super(address, listing);
|
||||||
|
@ -105,6 +107,8 @@ export class UpEntry extends UpObject implements IEntry {
|
||||||
this.entity = entry.entity;
|
this.entity = entry.entity;
|
||||||
this.attribute = entry.attribute;
|
this.attribute = entry.attribute;
|
||||||
this.value = entry.value;
|
this.value = entry.value;
|
||||||
|
this.provenance = entry.provenance;
|
||||||
|
this.timestamp = entry.timestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public toString(): string {
|
public toString(): string {
|
||||||
|
|
|
@ -1,10 +1,20 @@
|
||||||
export type Address = string;
|
export type Address = string;
|
||||||
export type VALUE_TYPE = "Address" | "String" | "Number" | "Invalid";
|
export type VALUE_TYPE = "Address" | "String" | "Number" | "Invalid";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A single atomic entry in UpEnd.
|
||||||
|
*/
|
||||||
export interface IEntry {
|
export interface IEntry {
|
||||||
|
/** The entity this entry annotates. */
|
||||||
entity: Address;
|
entity: Address;
|
||||||
|
/** The attribute of the relation. */
|
||||||
attribute: string;
|
attribute: string;
|
||||||
|
/** The value of the attribute. */
|
||||||
value: IValue;
|
value: IValue;
|
||||||
|
/** The origin or provenance of the data entry (e.g. SYSTEM or USER API...) */
|
||||||
|
provenance: string;
|
||||||
|
/** The timestamp when the data entry was created in RFC 3339 format. */
|
||||||
|
timestamp: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IValue =
|
export type IValue =
|
||||||
|
|
|
@ -12560,8 +12560,8 @@ __metadata:
|
||||||
|
|
||||||
"upend@file:../tools/upend_js::locator=upend-kestrel%40workspace%3A.":
|
"upend@file:../tools/upend_js::locator=upend-kestrel%40workspace%3A.":
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
resolution: "upend@file:../tools/upend_js#../tools/upend_js::hash=b32491&locator=upend-kestrel%40workspace%3A."
|
resolution: "upend@file:../tools/upend_js#../tools/upend_js::hash=af6a68&locator=upend-kestrel%40workspace%3A."
|
||||||
checksum: 4e4e5c0a6498ad2ea8369a91e3c67c160186a96d47073469d61794c3717824198bd2de7851f3e0786833fa5f8c0eb85c65f7d7dc9c0114b9328b2a1060f645b2
|
checksum: b8899b7aa5ba3a398001d0a3ab2d7e3e5d09801da5a1e522787fc609dfe4358fa8aad4323870cb1d59766b69f5b438d26af44ad942fcf5d603653cd272937bbb
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue