LibraryStructureApi - functional programming interface

  • Parameters

    Returns {
        addMediaPath(mediaPathDto: MediaPathDto, refreshLibrary?: boolean, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        addVirtualFolder(name?: string, collectionType?: CollectionTypeOptions, paths?: string[], refreshLibrary?: boolean, addVirtualFolderDto?: AddVirtualFolderDto, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        getVirtualFolders(options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<VirtualFolderInfo[]>)>;
        removeMediaPath(name?: string, path?: string, refreshLibrary?: boolean, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        removeVirtualFolder(name?: string, refreshLibrary?: boolean, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        renameVirtualFolder(name?: string, newName?: string, refreshLibrary?: boolean, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        updateLibraryOptions(updateLibraryOptionsDto?: UpdateLibraryOptionsDto, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        updateMediaPath(updateMediaPathRequestDto: UpdateMediaPathRequestDto, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
    }

    • addMediaPath:function
      • Parameters

        • mediaPathDto: MediaPathDto

          The media path dto.

        • OptionalrefreshLibrary: boolean

          Whether to refresh the library.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Add a media path to a library.

    • addVirtualFolder:function
      • Parameters

        • Optionalname: string

          The name of the virtual folder.

        • OptionalcollectionType: CollectionTypeOptions

          The type of the collection.

        • Optionalpaths: string[]

          The paths of the virtual folder.

        • OptionalrefreshLibrary: boolean

          Whether to refresh the library.

        • OptionaladdVirtualFolderDto: AddVirtualFolderDto

          The library options.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Adds a virtual folder.

    • getVirtualFolders:function
    • removeMediaPath:function
      • Parameters

        • Optionalname: string

          The name of the library.

        • Optionalpath: string

          The path to remove.

        • OptionalrefreshLibrary: boolean

          Whether to refresh the library.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Remove a media path.

    • removeVirtualFolder:function
      • Parameters

        • Optionalname: string

          The name of the folder.

        • OptionalrefreshLibrary: boolean

          Whether to refresh the library.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Removes a virtual folder.

    • renameVirtualFolder:function
      • Parameters

        • Optionalname: string

          The name of the virtual folder.

        • OptionalnewName: string

          The new name.

        • OptionalrefreshLibrary: boolean

          Whether to refresh the library.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Renames a virtual folder.

    • updateLibraryOptions:function
      • Parameters

        • OptionalupdateLibraryOptionsDto: UpdateLibraryOptionsDto

          The library name and options.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Update library options.

    • updateMediaPath:function
      • Parameters

        • updateMediaPathRequestDto: UpdateMediaPathRequestDto

          The name of the library and path infos.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Updates a media path.