async FileUrl({libraryId, objectId, versionHash, filePath, queryParams={}, noCache=false}) {
    if(versionHash) { objectId = this.utils.DecodeVersionHash(versionHash).objectId; }

    let path;

    if(libraryId) {
      path = UrlJoin("qlibs", libraryId, "q", versionHash || objectId, "files", filePath);
    } else {
      path = UrlJoin("q", versionHash, "files", filePath);
    }

    const authorizationToken = await this.authClient.AuthorizationToken({libraryId, objectId, noCache});

    return this.HttpClient.URL({
      path: path,
      queryParams: {
        ...queryParams,
        authorization: authorizationToken
      }
    });
  }
/**
   * Generate a URL to the specified content object file with appropriate authorization token.
   *
   * @methodGroup URL Generation
   * @namedParams
   * @param {string=} libraryId - ID of an library - Required if versionHash not specified
   * @param {string=} objectId - ID of an object
   * @param {string=} versionHash - Hash of an object version - Required if libraryId is not specified
   * @param {string} filePath - Path to the content object file
   * @param {Object=} queryParams - Query params to add to the URL
   * @param {boolean=} noCache=false - If specified, a new access request will be made for the authorization regardless of
   * whether such a request exists in the client cache. This request will not be cached.
   *
   * @returns {Promise<string>} - URL to the specified file with authorization token
   */
Generate a URL to the specified content object file with appropriate authorization token.

@returns {Promise} - URL to the specified file with authorization token
Generate a URL to the specified content object file with appropriate authorization token . @returns { Promise } - URL to the specified file with authorization token
async FileUrl({libraryId, objectId, versionHash, filePath, queryParams={}, noCache=false}) {
    if(versionHash) { objectId = this.utils.DecodeVersionHash(versionHash).objectId; }
    let path;
    if(libraryId) {
      path = UrlJoin("qlibs", libraryId, "q", versionHash || objectId, "files", filePath);
    } else {
      path = UrlJoin("q", versionHash, "files", filePath);
    }
    const authorizationToken = await this.authClient.AuthorizationToken({libraryId, objectId, noCache});
    return this.HttpClient.URL({
      path: path,
      queryParams: {
        ...queryParams,
        authorization: authorizationToken
      }
    });
  }
async FileUrl ( { libraryId , objectId , versionHash , filePath , queryParams = { } , noCache = false } ) { if ( versionHash ) { objectId = this . utils . DecodeVersionHash ( versionHash ) . objectId ; } let path ; if ( libraryId ) { path = UrlJoin ( "qlibs" , libraryId , "q" , versionHash || objectId , "files" , filePath ) ; } else { path = UrlJoin ( "q" , versionHash , "files" , filePath ) ; } const authorizationToken = await this . authClient . AuthorizationToken ( { libraryId , objectId , noCache } ) ; return this . HttpClient . URL ( { path : path , queryParams : { ... queryParams , authorization : authorizationToken } } ) ; }
Generate a URL to the specified content object file with appropriate authorization token.
Generate a URL to the specified content object file with appropriate authorization token .