UNPKG

569 BJavaScriptView Raw
1import { encodePath } from "../utils/encode-path-str.js";
2import { _Web } from "../webs/types.js";
3import { File, fileFromServerRelativePath } from "./types.js";
4_Web.prototype.getFileByServerRelativePath = function (fileRelativeUrl) {
5 return fileFromServerRelativePath(this, fileRelativeUrl);
6};
7_Web.prototype.getFileById = function (uniqueId) {
8 return File(this, `getFileById('${uniqueId}')`);
9};
10_Web.prototype.getFileByUrl = function (fileUrl) {
11 return File(this, `getFileByUrl('${encodePath("!@p1::" + fileUrl)}')`);
12};
13//# sourceMappingURL=web.js.map
\No newline at end of file