mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
update metadata interface
This commit is contained in:
parent
bb1a02a5d1
commit
85df6a27b9
@ -27,7 +27,7 @@ export interface File {
|
|||||||
* File content length.
|
* File content length.
|
||||||
* @type {[type]}
|
* @type {[type]}
|
||||||
*/
|
*/
|
||||||
contentLength?: string
|
contentLength?: number
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resource ID (depending on the source).
|
* Resource ID (depending on the source).
|
||||||
@ -87,12 +87,19 @@ export interface MetaDataBase {
|
|||||||
description?: string
|
description?: string
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The date on which the asset was created or was added.
|
* The date on which the asset was created by the originator in ISO 8601 format, Coordinated Universal Time.
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @example "2012-10-10T17:00:000Z"
|
* @example "2019-01-31T08:38:32Z"
|
||||||
*/
|
*/
|
||||||
dateCreated: string
|
dateCreated: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The date on which the asset DDO was registered into the metadata store. This value is created automatically by Aquarius upon registering, so this value can't be set.
|
||||||
|
* @type {string}
|
||||||
|
* @example "2019-01-31T08:38:32Z"
|
||||||
|
*/
|
||||||
|
datePublished?: string
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the entity generating this data (e.g. Tfl, Disney Corp, etc.).
|
* Name of the entity generating this data (e.g. Tfl, Disney Corp, etc.).
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@ -151,16 +158,22 @@ export interface MetaDataBase {
|
|||||||
inLanguage?: string
|
inLanguage?: string
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Keywords or tags used to describe this content. Multiple entries in a keyword
|
* Categories used to describe this content. Empty by default.
|
||||||
* list are typically delimited by commas. Empty by default.
|
* @type {string[]}
|
||||||
* @type {String}
|
* @example ["Economy", "Data Science"]
|
||||||
* @example "weather, uk, 2011, temperature, humidity"
|
|
||||||
*/
|
*/
|
||||||
tags?: string
|
categories?: string[]
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Keywords or tags used to describe this content. Empty by default.
|
||||||
|
* @type {string[]}
|
||||||
|
* @example ["weather", "uk", "2011", "temperature", "humidity"]
|
||||||
|
*/
|
||||||
|
tags?: string[]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Price of the asset.
|
* Price of the asset.
|
||||||
* @type {String}
|
* @type {number}
|
||||||
* @example 10
|
* @example 10
|
||||||
*/
|
*/
|
||||||
price: number
|
price: number
|
||||||
@ -201,8 +214,8 @@ export interface Curation {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Schema applied to calculate the rating.
|
* Schema applied to calculate the rating.
|
||||||
* @type {number}
|
* @type {string}
|
||||||
* @example "Binary Votting"
|
* @example "Binary Voting"
|
||||||
*/
|
*/
|
||||||
schema?: string
|
schema?: string
|
||||||
}
|
}
|
||||||
@ -219,7 +232,7 @@ export interface AdditionalInformation {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @example "yearly"
|
* @example "yearly"
|
||||||
*/
|
*/
|
||||||
updateFrecuency: string
|
updateFrequency: string
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A link to machine-readable structured markup (such as ttl/json-ld/rdf)
|
* A link to machine-readable structured markup (such as ttl/json-ld/rdf)
|
||||||
|
Loading…
Reference in New Issue
Block a user