From f58193c1b1f9d6551e94944c3dfda834fe32c2a8 Mon Sep 17 00:00:00 2001 From: Aitor <1726644+aaitor@users.noreply.github.com> Date: Wed, 15 Nov 2023 12:05:54 +0100 Subject: [PATCH] feat: adding more asset types and subtype attribute --- src/ddo/types.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ddo/types.ts b/src/ddo/types.ts index 3370a1806..799d16967 100644 --- a/src/ddo/types.ts +++ b/src/ddo/types.ts @@ -237,7 +237,7 @@ export interface MetaDataMain { /** * Type of the Asset. Helps to filter by the type of asset, - * initially ("dataset", "algorithm", "compute", "workflow", "compute", "subscription", "other"). + * initially ("dataset", "algorithm", "compute", "workflow", "model", "file", "subscription", "other"). * @example "dataset" */ type: @@ -245,11 +245,19 @@ export interface MetaDataMain { | 'algorithm' | 'compute' | 'workflow' - | 'compute' | 'service' | 'subscription' + | 'model' + | 'file' | 'other' + /** + * Sub type asssociated to the main type of the asset. This subtype is open so final users are not restricted to use anything they need. + * Helps to filter by the sub type of asset, for example if type is a service, the subtype could ai-agent, web-service, web-socket-service, etc + * Another example, if the type is 'dataset' the subtype could be 'tabular', 'parquet', 'csv', etc + */ + subType?: string + /** * The date on which the asset was created by the originator in * ISO 8601 format, Coordinated Universal Time.