@infrasoftbe/vnv-sdk
    Preparing search index...

    Class _projectMetadata

    The class ProjectMetadata represents the metadata of a project, including its description, external reference, and status.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    category: string

    project_category

    description: string

    project_description

    external: ExternalDigitalPlatform = ...
    path: string[] = []
    ref_extern: string

    VV-DBXXX

    site: { id: string; url: string }
    status: string

    project_status

    Accessors

    Methods

    • The function assigns metadata to an object and returns the updated object.

      Parameters

      • metadata: Record<string, any>

        The metadata parameter is an object that contains key-value pairs. The keys are strings, and the values can be of any type.

      Returns any

      the object that the method is being called on (i.e., this).

    • The function takes in a metadata object, ensures its structure, flattens it, merges it with the existing metadata of the object, and returns the updated metadata object.

      Parameters

      • metadata: Record<string, any>

        The metadata parameter is an object that contains key-value pairs representing metadata information. The keys are strings, and the values can be of any type.

      Returns any

      the metadata object with any missing keys from the original object added.

    • The ensureMetadata function takes in a metadata object, flattens the current object and the metadata object, merges them together, and then returns the merged object in its original nested structure.

      Parameters

      • metadata: Record<string, any>

        The metadata parameter is a record object that contains key-value pairs. The keys represent the metadata properties, and the values represent the corresponding values for those properties.

      Returns {}

      The function ensureMetadata returns the metadata object with any missing values filled in with the corresponding values from the original object.

    • The function checks if all the keys in the object are present in the metadata object.

      Parameters

      • metadata: Record<string, any>

        The metadata parameter is a record object that contains key-value pairs. The keys are strings and the values can be of any type.

      Returns boolean

      a boolean value.