dc-management-sdk-js
    Preparing search index...

    Class ContentRepository

    Class representing the Content Repository resource. Content repositories are containers where content can be stored.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _links?: Map<string, HalLink>

    Content Types enabled on this repository

    features?: string[]

    List of features enabled on the content repository, e.g. slots

    id?: string

    Unique id generated on creation

    itemLocales?: string[]

    Set of locales that are assigned to this repository

    label?: string

    Friendly label for the content repository

    name?: string

    Programmatic friendly name which must be unique within a single hub

    related: {
        contentItems: {
            create: (
                resource: ContentItem,
                params?: { ignoreSchemaValidation?: boolean },
            ) => Promise<ContentItem>;
            list: (options?: Pageable & Sortable) => Promise<Page<ContentItem>>;
        };
        contentTypes: {
            assign: (contentTypeId: string) => Promise<ContentRepository>;
            unassign: (contentTypeId: string) => Promise<void>;
        };
        folders: {
            create: (resource: Folder) => Promise<Folder>;
            list: (options?: Pageable) => Promise<Page<Folder>>;
        };
        hub: () => Promise<Hub>;
    } = ...

    Resources and actions related to a Content Repository

    Type declaration

    • contentItems: {
          create: (
              resource: ContentItem,
              params?: { ignoreSchemaValidation?: boolean },
          ) => Promise<ContentItem>;
          list: (options?: Pageable & Sortable) => Promise<Page<ContentItem>>;
      }
      • create: (
            resource: ContentItem,
            params?: { ignoreSchemaValidation?: boolean },
        ) => Promise<ContentItem>

        Creates a content item inside the repository

      • list: (options?: Pageable & Sortable) => Promise<Page<ContentItem>>

        Retrieves a list of Content Items stored within this Content Repository

    • contentTypes: {
          assign: (contentTypeId: string) => Promise<ContentRepository>;
          unassign: (contentTypeId: string) => Promise<void>;
      }
      • assign: (contentTypeId: string) => Promise<ContentRepository>

        Assigns a content type to the repository

      • unassign: (contentTypeId: string) => Promise<void>

        Unassign a content type from this repository

    • folders: {
          create: (resource: Folder) => Promise<Folder>;
          list: (options?: Pageable) => Promise<Page<Folder>>;
      }
      • create: (resource: Folder) => Promise<Folder>

        Creates a folder in the Content Repository

      • list: (options?: Pageable) => Promise<Page<Folder>>

        Retrieves the list of top-level folders within this Content Repository

    • hub: () => Promise<Hub>

      Retrieves the Hub this content repository is stored in

    status?: Status

    Lifecycle status

    Methods

    • POST to an action endpoint with no resource response returned.

      Parameters

      • name: string
      • params: any
      • data: any
      • method: POST | PUT | PATCH = HttpMethod.POST

      Returns Promise<void>