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>>

    • 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>>

    • getVirtualFolders:function
      • Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<VirtualFolderInfo[]>,
        >

    • 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>>

    • 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>>

    • 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>>

    • updateLibraryOptions:function
      • Parameters

        • OptionalupdateLibraryOptionsDto: UpdateLibraryOptionsDto

          The library name and options.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

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

    • 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>>