Interface AdminMetadataApi

MetadataApi extension provides the functionality related to retrieval of metadata. Additional methods are available only in the SAS Visual Investigator Manage and Investigate interface.

Accessed from the window at window.sas.vi.metadata.

window.sas.vi.metadata.getFieldDataTypeLabels();
interface AdminMetadataApi {
    getAllValidRelationshipTypes(objectType: string, relationshipObjectType?: string, relationshipName?: string, flattenMultiLinkIntoSingles?: boolean): Promise<ValidRelationshipTypes>;
    getChildEntityTypes(objectType: string): Promise<StoredObjectDTO[]>;
    getEntitiesAccessRules(objectTypes: string[]): EntitiesAccessRules;
    getEntity(objectType: string): Promise<undefined | StoredObjectDTO>;
    getEntityAccessRules(objectType: string): EntityAccessRules;
    getField(objectType: string, fieldName: string): Promise<CoreStoredObjectField>;
    getFieldDataTypeLabels(): FieldTypeLabels;
    getIconForEntity(objectType: string, iconType?: string): undefined | string;
    getManagedEntityTypes(): Promise<StoredObjectDTO[]>;
    getReferenceData(name: string, options?: {
        constrainingListName?: string;
        parentCode?: string;
    }): Promise<undefined | Picklist>;
    getRelationshipsFilteredByEndType(endType: string, includeHeterogeneous?: boolean): Promise<RelationshipWithLabel[]>;
    getRelationshipsForObjectType(endType: string, options: OptionsForGetRelationshipsForObjectType): Promise<RelationshipWithLabel[]>;
    getResolvedEntities(): Promise<Entity[]>;
    getResolvedEntityMetadata(objectType: string): Promise<undefined | Entity>;
    getRootTypes(): Promise<StoredObjectDTO[]>;
    getSearchMetadata(): Promise<EntityMetadata>;
}

Hierarchy (view full)

Methods

  • Parameters

    • objectType: string

      {string} Finds relationships for the entity.

    • OptionalrelationshipObjectType: string

      {string} Used for filtering the name of an expected related entity.

    • OptionalrelationshipName: string

      {string} Used for filtering the name of an expected relationship.

    • OptionalflattenMultiLinkIntoSingles: boolean

      Whether Relationships with a One->(multiple) links will get flattened into many One->Single relationships.

    Returns Promise<ValidRelationshipTypes>

    A Promise resolving to an object containing relationship type metadata. The object is empty if no relationship types exist.

    Gets valid relationship types for a specified entity. If relationshipObjectType and RelationshipName are provided, the link types are filtered accordingly. Otherwise, all valid relationships related to the objectType are returned.

  • Parameters

    • objectType: string

      {string} Checks for children for the named entity.

    Returns Promise<StoredObjectDTO[]>

    A Promise containing an array of child entity types or an empty list if none are found.

    Gets child entity types for a given entity.

  • Parameters

    • objectTypes: string[]

      Entity names.

    Returns EntitiesAccessRules

    Object with a Promise of type EntityAccessRule[] for each rule, where EntityAccessRule maps to the access rule of a given entity name.

    Gets create, read, and update access rights for the provided entities via batch call.

  • Parameters

    • objectType: string

      {string} Entity name.

    Returns Promise<undefined | StoredObjectDTO>

    A Promise containing the entity metadata.

    Checks access rights and gets metadata for an entity. Returns undefined if the entity does not exist.

  • Parameters

    • objectType: string

      {string} Entity name.

    • fieldName: string

      {string} Field name.

    Returns Promise<CoreStoredObjectField>

    A Promise containing the field metadata.

    Gets metadata for an entity field.

  • Returns FieldTypeLabels

    Object containing the field data type labels.

    Gets the field data type labels.

  • Parameters

    • objectType: string

      {string} Entity name.

    • OptionaliconType: string

      {string} Icon type. If iconType is not provided it is set to REGULAR by default.

    Returns undefined | string

    A string containing the icon path. Returns undefined if objectType is empty.

    Gets the icon path for an entity.

  • Returns Promise<StoredObjectDTO[]>

    A Promise containing an array of managed entity types.

    Gets managed entity types.

  • Parameters

    • name: string

      Reference data list name.

    • Optionaloptions: {
          constrainingListName?: string;
          parentCode?: string;
      }

      Object containing name and filter constraints. If constrainingListName is defined, then the refDataName parameter is ignored. parentCode is used to filter list items to those that are children of this list name.

      • OptionalconstrainingListName?: string
      • OptionalparentCode?: string

    Returns Promise<undefined | Picklist>

    Promise containing the reference data or undefined if none exists.

    Gets reference data with the given name.

  • Parameters

    • endType: string

      {string} End type entity name.

    • OptionalincludeHeterogeneous: boolean

      {boolean} Boolean value to determine whether heterogeneous relationships are included.

    Returns Promise<RelationshipWithLabel[]>

    A Promise resolving to a list of relationships, or an empty list if none are found.

    Gets relationships with a specified end type.

  • Returns Promise<Entity[]>

    A Promise containing an array of the resolved entities metadata.

    Gets metadata for all resolved entities.

  • Parameters

    • objectType: string

      {string} Resolved Entity Name.

    Returns Promise<undefined | Entity>

    A Promise containing resolved entity metadata or undefined if none exists.

    Gets metadata for a resolved entity.

  • Returns Promise<StoredObjectDTO[]>

    A Promise containing an array of root types.

    Gets root type entities that are not child types.