BookmarkSubscribeRSS Feed
EyalGonen
Lapis Lazuli | Level 10

Looking at https://developer.sas.com/sdk/vi/apiDocs/index.html I see an example code that uses the StoredObjectDTO object but I cannot find any documentation about it within the SDK documentation. It seems like @sassoftware/vi-api/svi-datahub is completely undocumented even though it appears in the example code which is kind of odd...

Where can I find the doc for @sassoftware/vi-api/svi-datahub?

 

import { SviWindow } from "@sassoftware/vi-api";
import { StoredObjectDTO } from "@sassoftware/vi-api/svi-datahub";

const sviWindow = window as SviWindow;
sviWindow.sas.vi.metadata.getEntity("person").then((entity: StoredObjectDTO | undefined) => {
    if (entity) {
        console.log("Retrieved entity:", entity.label);
    }
});