1 | import { encodePath } from "../utils/encode-path-str.js";
|
2 | import { _Web } from "../webs/types.js";
|
3 | import { 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 |
|
\ | No newline at end of file |