@pnp/sp 4.0.0-alpha0-v4nightly.20240108 → 4.0.0-alpha0-v4nightly.20240109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commonjs/appcatalog/index.d.ts +11 -0
- package/commonjs/appcatalog/index.d.ts.map +1 -0
- package/commonjs/appcatalog/index.js +22 -0
- package/commonjs/appcatalog/index.js.map +1 -0
- package/commonjs/appcatalog/types.d.ts +79 -0
- package/commonjs/appcatalog/types.d.ts.map +1 -0
- package/commonjs/appcatalog/types.js +134 -0
- package/commonjs/appcatalog/types.js.map +1 -0
- package/commonjs/appcatalog/web.d.ts +13 -0
- package/commonjs/appcatalog/web.d.ts.map +1 -0
- package/commonjs/appcatalog/web.js +9 -0
- package/commonjs/appcatalog/web.js.map +1 -0
- package/commonjs/attachments/index.d.ts +3 -0
- package/commonjs/attachments/index.d.ts.map +1 -0
- package/commonjs/attachments/index.js +8 -0
- package/commonjs/attachments/index.js.map +1 -0
- package/commonjs/attachments/item.d.ts +13 -0
- package/commonjs/attachments/item.d.ts.map +1 -0
- package/commonjs/attachments/item.js +7 -0
- package/commonjs/attachments/item.js.map +1 -0
- package/commonjs/attachments/types.d.ts +57 -0
- package/commonjs/attachments/types.d.ts.map +1 -0
- package/commonjs/attachments/types.js +68 -0
- package/commonjs/attachments/types.js.map +1 -0
- package/commonjs/batching.d.ts +45 -0
- package/commonjs/batching.d.ts.map +1 -0
- package/commonjs/batching.js +355 -0
- package/commonjs/batching.js.map +1 -0
- package/commonjs/behaviors/defaults.d.ts +5 -0
- package/commonjs/behaviors/defaults.d.ts.map +1 -0
- package/commonjs/behaviors/defaults.js +29 -0
- package/commonjs/behaviors/defaults.js.map +1 -0
- package/commonjs/behaviors/request-digest.d.ts +9 -0
- package/commonjs/behaviors/request-digest.d.ts.map +1 -0
- package/commonjs/behaviors/request-digest.js +59 -0
- package/commonjs/behaviors/request-digest.js.map +1 -0
- package/commonjs/behaviors/spbrowser.d.ts +7 -0
- package/commonjs/behaviors/spbrowser.d.ts.map +1 -0
- package/commonjs/behaviors/spbrowser.js +27 -0
- package/commonjs/behaviors/spbrowser.js.map +1 -0
- package/commonjs/behaviors/spfx.d.ts +21 -0
- package/commonjs/behaviors/spfx.d.ts.map +1 -0
- package/commonjs/behaviors/spfx.js +62 -0
- package/commonjs/behaviors/spfx.js.map +1 -0
- package/commonjs/behaviors/telemetry.d.ts +4 -0
- package/commonjs/behaviors/telemetry.d.ts.map +1 -0
- package/commonjs/behaviors/telemetry.js +27 -0
- package/commonjs/behaviors/telemetry.js.map +1 -0
- package/commonjs/clientside-pages/funcs.d.ts +23 -0
- package/commonjs/clientside-pages/funcs.d.ts.map +1 -0
- package/commonjs/clientside-pages/funcs.js +31 -0
- package/commonjs/clientside-pages/funcs.js.map +1 -0
- package/commonjs/clientside-pages/index.d.ts +3 -0
- package/commonjs/clientside-pages/index.d.ts.map +1 -0
- package/commonjs/clientside-pages/index.js +14 -0
- package/commonjs/clientside-pages/index.js.map +1 -0
- package/commonjs/clientside-pages/types.d.ts +495 -0
- package/commonjs/clientside-pages/types.d.ts.map +1 -0
- package/commonjs/clientside-pages/types.js +1155 -0
- package/commonjs/clientside-pages/types.js.map +1 -0
- package/commonjs/clientside-pages/web.d.ts +42 -0
- package/commonjs/clientside-pages/web.d.ts.map +1 -0
- package/commonjs/clientside-pages/web.js +33 -0
- package/commonjs/clientside-pages/web.js.map +1 -0
- package/commonjs/column-defaults/folder.d.ts +28 -0
- package/commonjs/column-defaults/folder.d.ts.map +1 -0
- package/commonjs/column-defaults/folder.js +50 -0
- package/commonjs/column-defaults/folder.js.map +1 -0
- package/commonjs/column-defaults/index.d.ts +4 -0
- package/commonjs/column-defaults/index.d.ts.map +1 -0
- package/commonjs/column-defaults/index.js +5 -0
- package/commonjs/column-defaults/index.js.map +1 -0
- package/commonjs/column-defaults/list.d.ts +20 -0
- package/commonjs/column-defaults/list.d.ts.map +1 -0
- package/commonjs/column-defaults/list.js +171 -0
- package/commonjs/column-defaults/list.js.map +1 -0
- package/commonjs/column-defaults/types.d.ts +22 -0
- package/commonjs/column-defaults/types.d.ts.map +1 -0
- package/commonjs/column-defaults/types.js +3 -0
- package/commonjs/column-defaults/types.js.map +1 -0
- package/commonjs/comments/clientside-page.d.ts +58 -0
- package/commonjs/comments/clientside-page.d.ts.map +1 -0
- package/commonjs/comments/clientside-page.js +51 -0
- package/commonjs/comments/clientside-page.js.map +1 -0
- package/commonjs/comments/index.d.ts +3 -0
- package/commonjs/comments/index.d.ts.map +1 -0
- package/commonjs/comments/index.js +9 -0
- package/commonjs/comments/index.js.map +1 -0
- package/commonjs/comments/item.d.ts +37 -0
- package/commonjs/comments/item.d.ts.map +1 -0
- package/commonjs/comments/item.js +37 -0
- package/commonjs/comments/item.js.map +1 -0
- package/commonjs/comments/types.d.ts +111 -0
- package/commonjs/comments/types.d.ts.map +1 -0
- package/commonjs/comments/types.js +89 -0
- package/commonjs/comments/types.js.map +1 -0
- package/commonjs/content-types/index.d.ts +5 -0
- package/commonjs/content-types/index.d.ts.map +1 -0
- package/commonjs/content-types/index.js +12 -0
- package/commonjs/content-types/index.js.map +1 -0
- package/commonjs/content-types/item.d.ts +13 -0
- package/commonjs/content-types/item.d.ts.map +1 -0
- package/commonjs/content-types/item.js +7 -0
- package/commonjs/content-types/item.js.map +1 -0
- package/commonjs/content-types/list.d.ts +13 -0
- package/commonjs/content-types/list.d.ts.map +1 -0
- package/commonjs/content-types/list.js +7 -0
- package/commonjs/content-types/list.js.map +1 -0
- package/commonjs/content-types/types.d.ts +120 -0
- package/commonjs/content-types/types.d.ts.map +1 -0
- package/commonjs/content-types/types.js +115 -0
- package/commonjs/content-types/types.js.map +1 -0
- package/commonjs/content-types/web.d.ts +13 -0
- package/commonjs/content-types/web.d.ts.map +1 -0
- package/commonjs/content-types/web.js +7 -0
- package/commonjs/content-types/web.js.map +1 -0
- package/commonjs/context-info/index.d.ts +22 -0
- package/commonjs/context-info/index.d.ts.map +1 -0
- package/commonjs/context-info/index.js +17 -0
- package/commonjs/context-info/index.js.map +1 -0
- package/commonjs/decorators.d.ts +9 -0
- package/commonjs/decorators.d.ts.map +1 -0
- package/commonjs/decorators.js +20 -0
- package/commonjs/decorators.js.map +1 -0
- package/commonjs/favorites/index.d.ts +11 -0
- package/commonjs/favorites/index.d.ts.map +1 -0
- package/commonjs/favorites/index.js +15 -0
- package/commonjs/favorites/index.js.map +1 -0
- package/commonjs/favorites/types.d.ts +113 -0
- package/commonjs/favorites/types.d.ts.map +1 -0
- package/commonjs/favorites/types.js +115 -0
- package/commonjs/favorites/types.js.map +1 -0
- package/commonjs/features/index.d.ts +4 -0
- package/commonjs/features/index.d.ts.map +1 -0
- package/commonjs/features/index.js +9 -0
- package/commonjs/features/index.js.map +1 -0
- package/commonjs/features/site.d.ts +13 -0
- package/commonjs/features/site.d.ts.map +1 -0
- package/commonjs/features/site.js +7 -0
- package/commonjs/features/site.js.map +1 -0
- package/commonjs/features/types.d.ts +42 -0
- package/commonjs/features/types.d.ts.map +1 -0
- package/commonjs/features/types.js +56 -0
- package/commonjs/features/types.js.map +1 -0
- package/commonjs/features/web.d.ts +13 -0
- package/commonjs/features/web.d.ts.map +1 -0
- package/commonjs/features/web.js +7 -0
- package/commonjs/features/web.js.map +1 -0
- package/commonjs/fi.d.ts +25 -0
- package/commonjs/fi.d.ts.map +1 -0
- package/commonjs/fi.js +40 -0
- package/commonjs/fi.js.map +1 -0
- package/commonjs/fields/index.d.ts +4 -0
- package/commonjs/fields/index.d.ts.map +1 -0
- package/commonjs/fields/index.js +17 -0
- package/commonjs/fields/index.js.map +1 -0
- package/commonjs/fields/list.d.ts +13 -0
- package/commonjs/fields/list.d.ts.map +1 -0
- package/commonjs/fields/list.js +7 -0
- package/commonjs/fields/list.js.map +1 -0
- package/commonjs/fields/types.d.ts +402 -0
- package/commonjs/fields/types.d.ts.map +1 -0
- package/commonjs/fields/types.js +459 -0
- package/commonjs/fields/types.js.map +1 -0
- package/commonjs/fields/web.d.ts +18 -0
- package/commonjs/fields/web.d.ts.map +1 -0
- package/commonjs/fields/web.js +8 -0
- package/commonjs/fields/web.js.map +1 -0
- package/commonjs/files/folder.d.ts +13 -0
- package/commonjs/files/folder.d.ts.map +1 -0
- package/commonjs/files/folder.js +7 -0
- package/commonjs/files/folder.js.map +1 -0
- package/commonjs/files/index.d.ts +5 -0
- package/commonjs/files/index.d.ts.map +1 -0
- package/commonjs/files/index.js +18 -0
- package/commonjs/files/index.js.map +1 -0
- package/commonjs/files/item.d.ts +13 -0
- package/commonjs/files/item.d.ts.map +1 -0
- package/commonjs/files/item.js +7 -0
- package/commonjs/files/item.js.map +1 -0
- package/commonjs/files/readable-file.d.ts +23 -0
- package/commonjs/files/readable-file.d.ts.map +1 -0
- package/commonjs/files/readable-file.js +38 -0
- package/commonjs/files/readable-file.js.map +1 -0
- package/commonjs/files/types.d.ts +451 -0
- package/commonjs/files/types.d.ts.map +1 -0
- package/commonjs/files/types.js +589 -0
- package/commonjs/files/types.js.map +1 -0
- package/commonjs/files/web.d.ts +29 -0
- package/commonjs/files/web.d.ts.map +1 -0
- package/commonjs/files/web.js +15 -0
- package/commonjs/files/web.js.map +1 -0
- package/commonjs/folders/index.d.ts +5 -0
- package/commonjs/folders/index.d.ts.map +1 -0
- package/commonjs/folders/index.js +13 -0
- package/commonjs/folders/index.js.map +1 -0
- package/commonjs/folders/item.d.ts +10 -0
- package/commonjs/folders/item.d.ts.map +1 -0
- package/commonjs/folders/item.js +7 -0
- package/commonjs/folders/item.js.map +1 -0
- package/commonjs/folders/list.d.ts +13 -0
- package/commonjs/folders/list.d.ts.map +1 -0
- package/commonjs/folders/list.js +7 -0
- package/commonjs/folders/list.js.map +1 -0
- package/commonjs/folders/types.d.ts +237 -0
- package/commonjs/folders/types.d.ts.map +1 -0
- package/commonjs/folders/types.js +253 -0
- package/commonjs/folders/types.js.map +1 -0
- package/commonjs/folders/web.d.ts +33 -0
- package/commonjs/folders/web.d.ts.map +1 -0
- package/commonjs/folders/web.js +14 -0
- package/commonjs/folders/web.js.map +1 -0
- package/commonjs/forms/index.d.ts +3 -0
- package/commonjs/forms/index.d.ts.map +1 -0
- package/commonjs/forms/index.js +8 -0
- package/commonjs/forms/index.js.map +1 -0
- package/commonjs/forms/list.d.ts +10 -0
- package/commonjs/forms/list.d.ts.map +1 -0
- package/commonjs/forms/list.js +7 -0
- package/commonjs/forms/list.js.map +1 -0
- package/commonjs/forms/types.d.ts +36 -0
- package/commonjs/forms/types.d.ts.map +1 -0
- package/commonjs/forms/types.js +34 -0
- package/commonjs/forms/types.js.map +1 -0
- package/commonjs/groupsitemanager/index.d.ts +8 -0
- package/commonjs/groupsitemanager/index.d.ts.map +1 -0
- package/commonjs/groupsitemanager/index.js +14 -0
- package/commonjs/groupsitemanager/index.js.map +1 -0
- package/commonjs/groupsitemanager/types.d.ts +312 -0
- package/commonjs/groupsitemanager/types.d.ts.map +1 -0
- package/commonjs/groupsitemanager/types.js +325 -0
- package/commonjs/groupsitemanager/types.js.map +1 -0
- package/commonjs/hubsites/index.d.ts +13 -0
- package/commonjs/hubsites/index.d.ts.map +1 -0
- package/commonjs/hubsites/index.js +18 -0
- package/commonjs/hubsites/index.js.map +1 -0
- package/commonjs/hubsites/site.d.ts +27 -0
- package/commonjs/hubsites/site.d.ts.map +1 -0
- package/commonjs/hubsites/site.js +14 -0
- package/commonjs/hubsites/site.js.map +1 -0
- package/commonjs/hubsites/types.d.ts +56 -0
- package/commonjs/hubsites/types.d.ts.map +1 -0
- package/commonjs/hubsites/types.js +34 -0
- package/commonjs/hubsites/types.js.map +1 -0
- package/commonjs/hubsites/web.d.ts +22 -0
- package/commonjs/hubsites/web.d.ts.map +1 -0
- package/commonjs/hubsites/web.js +15 -0
- package/commonjs/hubsites/web.js.map +1 -0
- package/commonjs/index.d.ts +15 -0
- package/commonjs/index.d.ts.map +1 -0
- package/commonjs/index.js +21 -0
- package/commonjs/index.js.map +1 -0
- package/commonjs/items/index.d.ts +3 -0
- package/commonjs/items/index.d.ts.map +1 -0
- package/commonjs/items/index.js +10 -0
- package/commonjs/items/index.js.map +1 -0
- package/commonjs/items/list.d.ts +10 -0
- package/commonjs/items/list.d.ts.map +1 -0
- package/commonjs/items/list.js +7 -0
- package/commonjs/items/list.js.map +1 -0
- package/commonjs/items/types.d.ts +193 -0
- package/commonjs/items/types.d.ts.map +1 -0
- package/commonjs/items/types.js +295 -0
- package/commonjs/items/types.js.map +1 -0
- package/commonjs/lists/index.d.ts +3 -0
- package/commonjs/lists/index.d.ts.map +1 -0
- package/commonjs/lists/index.js +10 -0
- package/commonjs/lists/index.js.map +1 -0
- package/commonjs/lists/types.d.ts +626 -0
- package/commonjs/lists/types.d.ts.map +1 -0
- package/commonjs/lists/types.js +357 -0
- package/commonjs/lists/types.js.map +1 -0
- package/commonjs/lists/web.d.ts +44 -0
- package/commonjs/lists/web.d.ts.map +1 -0
- package/commonjs/lists/web.js +20 -0
- package/commonjs/lists/web.js.map +1 -0
- package/commonjs/navigation/index.d.ts +9 -0
- package/commonjs/navigation/index.d.ts.map +1 -0
- package/commonjs/navigation/index.js +19 -0
- package/commonjs/navigation/index.js.map +1 -0
- package/commonjs/navigation/types.d.ts +155 -0
- package/commonjs/navigation/types.d.ts.map +1 -0
- package/commonjs/navigation/types.js +153 -0
- package/commonjs/navigation/types.js.map +1 -0
- package/commonjs/navigation/web.d.ts +14 -0
- package/commonjs/navigation/web.d.ts.map +1 -0
- package/commonjs/navigation/web.js +7 -0
- package/commonjs/navigation/web.js.map +1 -0
- package/commonjs/package.json +1 -0
- package/commonjs/presets/all.d.ts +75 -0
- package/commonjs/presets/all.d.ts.map +1 -0
- package/commonjs/presets/all.js +78 -0
- package/commonjs/presets/all.js.map +1 -0
- package/commonjs/profiles/index.d.ts +8 -0
- package/commonjs/profiles/index.d.ts.map +1 -0
- package/commonjs/profiles/index.js +16 -0
- package/commonjs/profiles/index.js.map +1 -0
- package/commonjs/profiles/types.d.ts +358 -0
- package/commonjs/profiles/types.d.ts.map +1 -0
- package/commonjs/profiles/types.js +362 -0
- package/commonjs/profiles/types.js.map +1 -0
- package/commonjs/publishing-sitepageservice/index.d.ts +11 -0
- package/commonjs/publishing-sitepageservice/index.d.ts.map +1 -0
- package/commonjs/publishing-sitepageservice/index.js +13 -0
- package/commonjs/publishing-sitepageservice/index.js.map +1 -0
- package/commonjs/publishing-sitepageservice/types.d.ts +12 -0
- package/commonjs/publishing-sitepageservice/types.d.ts.map +1 -0
- package/commonjs/publishing-sitepageservice/types.js +20 -0
- package/commonjs/publishing-sitepageservice/types.js.map +1 -0
- package/commonjs/recycle-bin/index.d.ts +25 -0
- package/commonjs/recycle-bin/index.d.ts.map +1 -0
- package/commonjs/recycle-bin/index.js +12 -0
- package/commonjs/recycle-bin/index.js.map +1 -0
- package/commonjs/recycle-bin/types.d.ts +82 -0
- package/commonjs/recycle-bin/types.d.ts.map +1 -0
- package/commonjs/recycle-bin/types.js +83 -0
- package/commonjs/recycle-bin/types.js.map +1 -0
- package/commonjs/regional-settings/content-type.d.ts +8 -0
- package/commonjs/regional-settings/content-type.d.ts.map +1 -0
- package/commonjs/regional-settings/content-type.js +7 -0
- package/commonjs/regional-settings/content-type.js.map +1 -0
- package/commonjs/regional-settings/field.d.ts +8 -0
- package/commonjs/regional-settings/field.d.ts.map +1 -0
- package/commonjs/regional-settings/field.js +7 -0
- package/commonjs/regional-settings/field.js.map +1 -0
- package/commonjs/regional-settings/funcs.d.ts +3 -0
- package/commonjs/regional-settings/funcs.d.ts.map +1 -0
- package/commonjs/regional-settings/funcs.js +12 -0
- package/commonjs/regional-settings/funcs.js.map +1 -0
- package/commonjs/regional-settings/index.d.ts +7 -0
- package/commonjs/regional-settings/index.d.ts.map +1 -0
- package/commonjs/regional-settings/index.js +13 -0
- package/commonjs/regional-settings/index.js.map +1 -0
- package/commonjs/regional-settings/list.d.ts +8 -0
- package/commonjs/regional-settings/list.d.ts.map +1 -0
- package/commonjs/regional-settings/list.js +7 -0
- package/commonjs/regional-settings/list.js.map +1 -0
- package/commonjs/regional-settings/types.d.ts +105 -0
- package/commonjs/regional-settings/types.d.ts.map +1 -0
- package/commonjs/regional-settings/types.js +88 -0
- package/commonjs/regional-settings/types.js.map +1 -0
- package/commonjs/regional-settings/user-custom-actions.d.ts +8 -0
- package/commonjs/regional-settings/user-custom-actions.d.ts.map +1 -0
- package/commonjs/regional-settings/user-custom-actions.js +7 -0
- package/commonjs/regional-settings/user-custom-actions.js.map +1 -0
- package/commonjs/regional-settings/web.d.ts +13 -0
- package/commonjs/regional-settings/web.d.ts.map +1 -0
- package/commonjs/regional-settings/web.js +10 -0
- package/commonjs/regional-settings/web.js.map +1 -0
- package/commonjs/related-items/index.d.ts +3 -0
- package/commonjs/related-items/index.d.ts.map +1 -0
- package/commonjs/related-items/index.js +7 -0
- package/commonjs/related-items/index.js.map +1 -0
- package/commonjs/related-items/types.d.ts +77 -0
- package/commonjs/related-items/types.d.ts.map +1 -0
- package/commonjs/related-items/types.js +84 -0
- package/commonjs/related-items/types.js.map +1 -0
- package/commonjs/related-items/web.d.ts +13 -0
- package/commonjs/related-items/web.d.ts.map +1 -0
- package/commonjs/related-items/web.js +12 -0
- package/commonjs/related-items/web.js.map +1 -0
- package/commonjs/search/index.d.ts +23 -0
- package/commonjs/search/index.d.ts.map +1 -0
- package/commonjs/search/index.js +21 -0
- package/commonjs/search/index.js.map +1 -0
- package/commonjs/search/query.d.ts +62 -0
- package/commonjs/search/query.d.ts.map +1 -0
- package/commonjs/search/query.js +220 -0
- package/commonjs/search/query.js.map +1 -0
- package/commonjs/search/suggest.d.ts +76 -0
- package/commonjs/search/suggest.d.ts.map +1 -0
- package/commonjs/search/suggest.js +44 -0
- package/commonjs/search/suggest.js.map +1 -0
- package/commonjs/search/types.d.ts +436 -0
- package/commonjs/search/types.d.ts.map +1 -0
- package/commonjs/search/types.js +58 -0
- package/commonjs/search/types.js.map +1 -0
- package/commonjs/security/funcs.d.ts +44 -0
- package/commonjs/security/funcs.d.ts.map +1 -0
- package/commonjs/security/funcs.js +91 -0
- package/commonjs/security/funcs.js.map +1 -0
- package/commonjs/security/index.d.ts +5 -0
- package/commonjs/security/index.d.ts.map +1 -0
- package/commonjs/security/index.js +13 -0
- package/commonjs/security/index.js.map +1 -0
- package/commonjs/security/item.d.ts +8 -0
- package/commonjs/security/item.d.ts.map +1 -0
- package/commonjs/security/item.js +17 -0
- package/commonjs/security/item.js.map +1 -0
- package/commonjs/security/list.d.ts +8 -0
- package/commonjs/security/list.d.ts.map +1 -0
- package/commonjs/security/list.js +17 -0
- package/commonjs/security/list.js.map +1 -0
- package/commonjs/security/types.d.ts +319 -0
- package/commonjs/security/types.d.ts.map +1 -0
- package/commonjs/security/types.js +336 -0
- package/commonjs/security/types.js.map +1 -0
- package/commonjs/security/web.d.ts +10 -0
- package/commonjs/security/web.d.ts.map +1 -0
- package/commonjs/security/web.js +18 -0
- package/commonjs/security/web.js.map +1 -0
- package/commonjs/sharing/file.d.ts +19 -0
- package/commonjs/sharing/file.d.ts.map +1 -0
- package/commonjs/sharing/file.js +40 -0
- package/commonjs/sharing/file.js.map +1 -0
- package/commonjs/sharing/folder.d.ts +10 -0
- package/commonjs/sharing/folder.d.ts.map +1 -0
- package/commonjs/sharing/folder.js +38 -0
- package/commonjs/sharing/folder.js.map +1 -0
- package/commonjs/sharing/funcs.d.ts +63 -0
- package/commonjs/sharing/funcs.d.ts.map +1 -0
- package/commonjs/sharing/funcs.js +211 -0
- package/commonjs/sharing/funcs.js.map +1 -0
- package/commonjs/sharing/index.d.ts +6 -0
- package/commonjs/sharing/index.d.ts.map +1 -0
- package/commonjs/sharing/index.js +15 -0
- package/commonjs/sharing/index.js.map +1 -0
- package/commonjs/sharing/item.d.ts +17 -0
- package/commonjs/sharing/item.d.ts.map +1 -0
- package/commonjs/sharing/item.js +16 -0
- package/commonjs/sharing/item.js.map +1 -0
- package/commonjs/sharing/types.d.ts +589 -0
- package/commonjs/sharing/types.d.ts.map +1 -0
- package/commonjs/sharing/types.js +117 -0
- package/commonjs/sharing/types.js.map +1 -0
- package/commonjs/sharing/web.d.ts +20 -0
- package/commonjs/sharing/web.d.ts.map +1 -0
- package/commonjs/sharing/web.js +59 -0
- package/commonjs/sharing/web.js.map +1 -0
- package/commonjs/site-designs/index.d.ts +9 -0
- package/commonjs/site-designs/index.d.ts.map +1 -0
- package/commonjs/site-designs/index.js +16 -0
- package/commonjs/site-designs/index.js.map +1 -0
- package/commonjs/site-designs/types.d.ts +376 -0
- package/commonjs/site-designs/types.d.ts.map +1 -0
- package/commonjs/site-designs/types.js +179 -0
- package/commonjs/site-designs/types.js.map +1 -0
- package/commonjs/site-designs/web.d.ts +26 -0
- package/commonjs/site-designs/web.d.ts.map +1 -0
- package/commonjs/site-designs/web.js +14 -0
- package/commonjs/site-designs/web.js.map +1 -0
- package/commonjs/site-groups/index.d.ts +3 -0
- package/commonjs/site-groups/index.d.ts.map +1 -0
- package/commonjs/site-groups/index.js +8 -0
- package/commonjs/site-groups/index.js.map +1 -0
- package/commonjs/site-groups/types.d.ts +87 -0
- package/commonjs/site-groups/types.d.ts.map +1 -0
- package/commonjs/site-groups/types.js +88 -0
- package/commonjs/site-groups/types.js.map +1 -0
- package/commonjs/site-groups/web.d.ts +41 -0
- package/commonjs/site-groups/web.d.ts.map +1 -0
- package/commonjs/site-groups/web.js +20 -0
- package/commonjs/site-groups/web.js.map +1 -0
- package/commonjs/site-scripts/index.d.ts +10 -0
- package/commonjs/site-scripts/index.d.ts.map +1 -0
- package/commonjs/site-scripts/index.js +17 -0
- package/commonjs/site-scripts/index.js.map +1 -0
- package/commonjs/site-scripts/list.d.ts +13 -0
- package/commonjs/site-scripts/list.d.ts.map +1 -0
- package/commonjs/site-scripts/list.js +15 -0
- package/commonjs/site-scripts/list.js.map +1 -0
- package/commonjs/site-scripts/types.d.ts +184 -0
- package/commonjs/site-scripts/types.d.ts.map +1 -0
- package/commonjs/site-scripts/types.js +112 -0
- package/commonjs/site-scripts/types.js.map +1 -0
- package/commonjs/site-scripts/web.d.ts +14 -0
- package/commonjs/site-scripts/web.d.ts.map +1 -0
- package/commonjs/site-scripts/web.js +10 -0
- package/commonjs/site-scripts/web.js.map +1 -0
- package/commonjs/site-users/index.d.ts +3 -0
- package/commonjs/site-users/index.d.ts.map +1 -0
- package/commonjs/site-users/index.js +8 -0
- package/commonjs/site-users/index.js.map +1 -0
- package/commonjs/site-users/types.d.ts +138 -0
- package/commonjs/site-users/types.d.ts.map +1 -0
- package/commonjs/site-users/types.js +99 -0
- package/commonjs/site-users/types.js.map +1 -0
- package/commonjs/site-users/web.d.ts +32 -0
- package/commonjs/site-users/web.d.ts.map +1 -0
- package/commonjs/site-users/web.js +20 -0
- package/commonjs/site-users/web.js.map +1 -0
- package/commonjs/sites/index.d.ts +8 -0
- package/commonjs/sites/index.d.ts.map +1 -0
- package/commonjs/sites/index.js +17 -0
- package/commonjs/sites/index.js.map +1 -0
- package/commonjs/sites/types.d.ts +221 -0
- package/commonjs/sites/types.d.ts.map +1 -0
- package/commonjs/sites/types.js +261 -0
- package/commonjs/sites/types.js.map +1 -0
- package/commonjs/social/index.d.ts +11 -0
- package/commonjs/social/index.d.ts.map +1 -0
- package/commonjs/social/index.js +20 -0
- package/commonjs/social/index.js.map +1 -0
- package/commonjs/social/types.d.ts +305 -0
- package/commonjs/social/types.d.ts.map +1 -0
- package/commonjs/social/types.js +210 -0
- package/commonjs/social/types.js.map +1 -0
- package/commonjs/spqueryable.d.ts +117 -0
- package/commonjs/spqueryable.d.ts.map +1 -0
- package/commonjs/spqueryable.js +219 -0
- package/commonjs/spqueryable.js.map +1 -0
- package/commonjs/sputilities/index.d.ts +8 -0
- package/commonjs/sputilities/index.d.ts.map +1 -0
- package/commonjs/sputilities/index.js +15 -0
- package/commonjs/sputilities/index.js.map +1 -0
- package/commonjs/sputilities/types.d.ts +101 -0
- package/commonjs/sputilities/types.d.ts.map +1 -0
- package/commonjs/sputilities/types.js +69 -0
- package/commonjs/sputilities/types.js.map +1 -0
- package/commonjs/subscriptions/index.d.ts +3 -0
- package/commonjs/subscriptions/index.d.ts.map +1 -0
- package/commonjs/subscriptions/index.js +8 -0
- package/commonjs/subscriptions/index.js.map +1 -0
- package/commonjs/subscriptions/list.d.ts +14 -0
- package/commonjs/subscriptions/list.d.ts.map +1 -0
- package/commonjs/subscriptions/list.js +7 -0
- package/commonjs/subscriptions/list.js.map +1 -0
- package/commonjs/subscriptions/types.d.ts +55 -0
- package/commonjs/subscriptions/types.d.ts.map +1 -0
- package/commonjs/subscriptions/types.js +74 -0
- package/commonjs/subscriptions/types.js.map +1 -0
- package/commonjs/taxonomy/index.d.ts +8 -0
- package/commonjs/taxonomy/index.d.ts.map +1 -0
- package/commonjs/taxonomy/index.js +24 -0
- package/commonjs/taxonomy/index.js.map +1 -0
- package/commonjs/taxonomy/types.d.ts +314 -0
- package/commonjs/taxonomy/types.d.ts.map +1 -0
- package/commonjs/taxonomy/types.js +305 -0
- package/commonjs/taxonomy/types.js.map +1 -0
- package/commonjs/types.d.ts +241 -0
- package/commonjs/types.d.ts.map +1 -0
- package/commonjs/types.js +84 -0
- package/commonjs/types.js.map +1 -0
- package/commonjs/user-custom-actions/index.d.ts +5 -0
- package/commonjs/user-custom-actions/index.d.ts.map +1 -0
- package/commonjs/user-custom-actions/index.js +12 -0
- package/commonjs/user-custom-actions/index.js.map +1 -0
- package/commonjs/user-custom-actions/list.d.ts +13 -0
- package/commonjs/user-custom-actions/list.d.ts.map +1 -0
- package/commonjs/user-custom-actions/list.js +7 -0
- package/commonjs/user-custom-actions/list.js.map +1 -0
- package/commonjs/user-custom-actions/site.d.ts +13 -0
- package/commonjs/user-custom-actions/site.d.ts.map +1 -0
- package/commonjs/user-custom-actions/site.js +7 -0
- package/commonjs/user-custom-actions/site.js.map +1 -0
- package/commonjs/user-custom-actions/types.d.ts +82 -0
- package/commonjs/user-custom-actions/types.d.ts.map +1 -0
- package/commonjs/user-custom-actions/types.js +76 -0
- package/commonjs/user-custom-actions/types.js.map +1 -0
- package/commonjs/user-custom-actions/web.d.ts +16 -0
- package/commonjs/user-custom-actions/web.d.ts.map +1 -0
- package/commonjs/user-custom-actions/web.js +7 -0
- package/commonjs/user-custom-actions/web.js.map +1 -0
- package/commonjs/utils/encode-path-str.d.ts +8 -0
- package/commonjs/utils/encode-path-str.d.ts.map +1 -0
- package/commonjs/utils/encode-path-str.js +29 -0
- package/commonjs/utils/encode-path-str.js.map +1 -0
- package/commonjs/utils/extract-web-url.d.ts +2 -0
- package/commonjs/utils/extract-web-url.d.ts.map +1 -0
- package/commonjs/utils/extract-web-url.js +20 -0
- package/commonjs/utils/extract-web-url.js.map +1 -0
- package/commonjs/utils/file-names.d.ts +18 -0
- package/commonjs/utils/file-names.d.ts.map +1 -0
- package/commonjs/utils/file-names.js +41 -0
- package/commonjs/utils/file-names.js.map +1 -0
- package/commonjs/utils/metadata.d.ts +6 -0
- package/commonjs/utils/metadata.d.ts.map +1 -0
- package/commonjs/utils/metadata.js +10 -0
- package/commonjs/utils/metadata.js.map +1 -0
- package/commonjs/utils/odata-url-from.d.ts +2 -0
- package/commonjs/utils/odata-url-from.d.ts.map +1 -0
- package/commonjs/utils/odata-url-from.js +41 -0
- package/commonjs/utils/odata-url-from.js.map +1 -0
- package/commonjs/utils/to-resource-path.d.ts +5 -0
- package/commonjs/utils/to-resource-path.d.ts.map +1 -0
- package/commonjs/utils/to-resource-path.js +10 -0
- package/commonjs/utils/to-resource-path.js.map +1 -0
- package/commonjs/views/index.d.ts +3 -0
- package/commonjs/views/index.d.ts.map +1 -0
- package/commonjs/views/index.js +10 -0
- package/commonjs/views/index.js.map +1 -0
- package/commonjs/views/list.d.ts +24 -0
- package/commonjs/views/list.d.ts.map +1 -0
- package/commonjs/views/list.js +11 -0
- package/commonjs/views/list.js.map +1 -0
- package/commonjs/views/types.d.ts +147 -0
- package/commonjs/views/types.d.ts.map +1 -0
- package/commonjs/views/types.js +140 -0
- package/commonjs/views/types.js.map +1 -0
- package/commonjs/webparts/file.d.ts +16 -0
- package/commonjs/webparts/file.d.ts.map +1 -0
- package/commonjs/webparts/file.js +8 -0
- package/commonjs/webparts/file.js.map +1 -0
- package/commonjs/webparts/index.d.ts +3 -0
- package/commonjs/webparts/index.d.ts.map +1 -0
- package/commonjs/webparts/index.js +10 -0
- package/commonjs/webparts/index.js.map +1 -0
- package/commonjs/webparts/types.d.ts +84 -0
- package/commonjs/webparts/types.d.ts.map +1 -0
- package/commonjs/webparts/types.js +92 -0
- package/commonjs/webparts/types.js.map +1 -0
- package/commonjs/webs/index.d.ts +11 -0
- package/commonjs/webs/index.d.ts.map +1 -0
- package/commonjs/webs/index.js +16 -0
- package/commonjs/webs/index.js.map +1 -0
- package/commonjs/webs/types.d.ts +204 -0
- package/commonjs/webs/types.d.ts.map +1 -0
- package/commonjs/webs/types.js +227 -0
- package/commonjs/webs/types.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,589 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TemplateFileType = exports.MoveOperations = exports.CheckinType = exports.Version = exports._Version = exports.Versions = exports._Versions = exports.fileFromPath = exports.fileFromAbsolutePath = exports.fileFromServerRelativePath = exports.File = exports._File = exports.Files = exports._Files = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const queryable_1 = require("@pnp/queryable");
|
|
6
|
+
const core_1 = require("@pnp/core");
|
|
7
|
+
const spqueryable_js_1 = require("../spqueryable.js");
|
|
8
|
+
const index_js_1 = require("../items/index.js");
|
|
9
|
+
const odata_url_from_js_1 = require("../utils/odata-url-from.js");
|
|
10
|
+
const decorators_js_1 = require("../decorators.js");
|
|
11
|
+
const extract_web_url_js_1 = require("../utils/extract-web-url.js");
|
|
12
|
+
const to_resource_path_js_1 = require("../utils/to-resource-path.js");
|
|
13
|
+
const encode_path_str_js_1 = require("../utils/encode-path-str.js");
|
|
14
|
+
const readable_file_js_1 = require("./readable-file.js");
|
|
15
|
+
require("../context-info/index.js");
|
|
16
|
+
const batching_js_1 = require("../batching.js");
|
|
17
|
+
/**
|
|
18
|
+
* Describes a collection of File objects
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
let _Files = class _Files extends spqueryable_js_1._SPCollection {
|
|
22
|
+
/**
|
|
23
|
+
* Gets a File by filename
|
|
24
|
+
*
|
|
25
|
+
* @param name The name of the file, including extension.
|
|
26
|
+
*/
|
|
27
|
+
getByUrl(name) {
|
|
28
|
+
if (/%#/.test(name)) {
|
|
29
|
+
throw Error("For file names containing % or # please use web.getFileByServerRelativePath");
|
|
30
|
+
}
|
|
31
|
+
return (0, exports.File)(this).concat(`('${(0, encode_path_str_js_1.encodePath)(name)}')`);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Adds a file using the pound percent safe methods
|
|
35
|
+
*
|
|
36
|
+
* @param url Encoded url of the file
|
|
37
|
+
* @param content The file content
|
|
38
|
+
* @param parameters Additional parameters to control method behavior
|
|
39
|
+
*/
|
|
40
|
+
async addUsingPath(url, content, parameters = { Overwrite: false }) {
|
|
41
|
+
const path = [`AddUsingPath(decodedurl='${(0, encode_path_str_js_1.encodePath)(url)}'`];
|
|
42
|
+
if (parameters) {
|
|
43
|
+
if (parameters.Overwrite) {
|
|
44
|
+
path.push(",Overwrite=true");
|
|
45
|
+
}
|
|
46
|
+
if (parameters.AutoCheckoutOnInvalidData) {
|
|
47
|
+
path.push(",AutoCheckoutOnInvalidData=true");
|
|
48
|
+
}
|
|
49
|
+
if (!(0, core_1.stringIsNullOrEmpty)(parameters.XorHash)) {
|
|
50
|
+
path.push(`,XorHash=${(0, encode_path_str_js_1.encodePath)(parameters.XorHash)}`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
path.push(")");
|
|
54
|
+
const resp = await (0, spqueryable_js_1.spPost)((0, exports.Files)(this, path.join("")), { body: content });
|
|
55
|
+
return {
|
|
56
|
+
data: resp,
|
|
57
|
+
file: fileFromServerRelativePath(this, resp.ServerRelativeUrl),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Uploads a file. Not supported for batching
|
|
62
|
+
*
|
|
63
|
+
* @param url The folder-relative url of the file.
|
|
64
|
+
* @param content The Blob file content to add
|
|
65
|
+
* @param progress A callback function which can be used to track the progress of the upload
|
|
66
|
+
* @param shouldOverWrite Should a file with the same name in the same location be overwritten? (default: true)
|
|
67
|
+
* @param chunkSize The size of each file slice, in bytes (default: 10485760)
|
|
68
|
+
* @returns The new File and the raw response.
|
|
69
|
+
*/
|
|
70
|
+
async addChunked(url, content, progress, shouldOverWrite = true, chunkSize = 10485760) {
|
|
71
|
+
const response = await (0, spqueryable_js_1.spPost)((0, exports.Files)(this, `add(overwrite=${shouldOverWrite},url='${(0, encode_path_str_js_1.encodePath)(url)}')`));
|
|
72
|
+
const file = fileFromServerRelativePath(this, response.ServerRelativeUrl);
|
|
73
|
+
file.using((0, queryable_1.CancelAction)(() => {
|
|
74
|
+
return (0, exports.File)(file).delete();
|
|
75
|
+
}));
|
|
76
|
+
return file.setContentChunked(content, progress, chunkSize);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Adds a ghosted file to an existing list or document library. Not supported for batching.
|
|
80
|
+
*
|
|
81
|
+
* @param fileUrl The server-relative url where you want to save the file.
|
|
82
|
+
* @param templateFileType The type of use to create the file.
|
|
83
|
+
* @returns The template file that was added and the raw response.
|
|
84
|
+
*/
|
|
85
|
+
async addTemplateFile(fileUrl, templateFileType) {
|
|
86
|
+
const response = await (0, spqueryable_js_1.spPost)((0, exports.Files)(this, `addTemplateFile(urloffile='${(0, encode_path_str_js_1.encodePath)(fileUrl)}',templatefiletype=${templateFileType})`));
|
|
87
|
+
return {
|
|
88
|
+
data: response,
|
|
89
|
+
file: fileFromServerRelativePath(this, response.ServerRelativeUrl),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
(0, tslib_1.__decorate)([
|
|
94
|
+
queryable_1.cancelableScope
|
|
95
|
+
], _Files.prototype, "addUsingPath", null);
|
|
96
|
+
(0, tslib_1.__decorate)([
|
|
97
|
+
queryable_1.cancelableScope
|
|
98
|
+
], _Files.prototype, "addChunked", null);
|
|
99
|
+
(0, tslib_1.__decorate)([
|
|
100
|
+
queryable_1.cancelableScope
|
|
101
|
+
], _Files.prototype, "addTemplateFile", null);
|
|
102
|
+
_Files = (0, tslib_1.__decorate)([
|
|
103
|
+
(0, decorators_js_1.defaultPath)("files")
|
|
104
|
+
], _Files);
|
|
105
|
+
exports._Files = _Files;
|
|
106
|
+
exports.Files = (0, spqueryable_js_1.spInvokableFactory)(_Files);
|
|
107
|
+
/**
|
|
108
|
+
* Describes a single File instance
|
|
109
|
+
*
|
|
110
|
+
*/
|
|
111
|
+
class _File extends readable_file_js_1.ReadableFile {
|
|
112
|
+
constructor() {
|
|
113
|
+
super(...arguments);
|
|
114
|
+
this.delete = (0, spqueryable_js_1.deleteableWithETag)();
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Gets a value that specifies the list item field values for the list item corresponding to the file.
|
|
118
|
+
*
|
|
119
|
+
*/
|
|
120
|
+
get listItemAllFields() {
|
|
121
|
+
return (0, spqueryable_js_1.SPInstance)(this, "listItemAllFields");
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Gets a collection of versions
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
get versions() {
|
|
128
|
+
return (0, exports.Versions)(this);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Gets the current locked by user
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
async getLockedByUser() {
|
|
135
|
+
const u = await (0, spqueryable_js_1.spGet)((0, exports.File)(this, "lockedByUser"));
|
|
136
|
+
if (u["odata.null"] === true) {
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
return u;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Approves the file submitted for content approval with the specified comment.
|
|
145
|
+
* Only documents in lists that are enabled for content approval can be approved.
|
|
146
|
+
*
|
|
147
|
+
* @param comment The comment for the approval.
|
|
148
|
+
*/
|
|
149
|
+
approve(comment = "") {
|
|
150
|
+
return (0, spqueryable_js_1.spPost)((0, exports.File)(this, `approve(comment='${(0, encode_path_str_js_1.encodePath)(comment)}')`));
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Stops the chunk upload session without saving the uploaded data. Does not support batching.
|
|
154
|
+
* If the file doesn’t already exist in the library, the partially uploaded file will be deleted.
|
|
155
|
+
* Use this in response to user action (as in a request to cancel an upload) or an error or exception.
|
|
156
|
+
* Use the uploadId value that was passed to the StartUpload method that started the upload session.
|
|
157
|
+
* This method is currently available only on Office 365.
|
|
158
|
+
*
|
|
159
|
+
* @param uploadId The unique identifier of the upload session.
|
|
160
|
+
*/
|
|
161
|
+
cancelUpload(uploadId) {
|
|
162
|
+
return (0, spqueryable_js_1.spPost)((0, exports.File)(this, `cancelUpload(uploadId=guid'${uploadId}')`));
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Checks the file in to a document library based on the check-in type.
|
|
166
|
+
*
|
|
167
|
+
* @param comment A comment for the check-in. Its length must be <= 1023.
|
|
168
|
+
* @param checkinType The check-in type for the file.
|
|
169
|
+
*/
|
|
170
|
+
checkin(comment = "", checkinType = CheckinType.Major) {
|
|
171
|
+
if (comment.length > 1023) {
|
|
172
|
+
throw Error("The maximum comment length is 1023 characters.");
|
|
173
|
+
}
|
|
174
|
+
return (0, spqueryable_js_1.spPost)((0, exports.File)(this, `checkin(comment='${(0, encode_path_str_js_1.encodePath)(comment)}',checkintype=${checkinType})`));
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Checks out the file from a document library.
|
|
178
|
+
*/
|
|
179
|
+
checkout() {
|
|
180
|
+
return (0, spqueryable_js_1.spPost)((0, exports.File)(this, "checkout"));
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Copies the file to the destination url.
|
|
184
|
+
*
|
|
185
|
+
* @param url The absolute url or server relative url of the destination file path to copy to.
|
|
186
|
+
* @param shouldOverWrite Should a file with the same name in the same location be overwritten?
|
|
187
|
+
*/
|
|
188
|
+
copyTo(url, shouldOverWrite = true) {
|
|
189
|
+
return (0, spqueryable_js_1.spPost)((0, exports.File)(this, `copyTo(strnewurl='${(0, encode_path_str_js_1.encodePath)(url)}',boverwrite=${shouldOverWrite})`));
|
|
190
|
+
}
|
|
191
|
+
async copyByPath(destUrl, ...rest) {
|
|
192
|
+
let options = {
|
|
193
|
+
ShouldBypassSharedLocks: true,
|
|
194
|
+
ResetAuthorAndCreatedOnCopy: true,
|
|
195
|
+
KeepBoth: false,
|
|
196
|
+
};
|
|
197
|
+
if (rest.length === 2) {
|
|
198
|
+
if (typeof rest[1] === "boolean") {
|
|
199
|
+
options.KeepBoth = rest[1];
|
|
200
|
+
}
|
|
201
|
+
else if (typeof rest[1] === "object") {
|
|
202
|
+
options = { ...options, ...rest[1] };
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
return this.moveCopyImpl(destUrl, options, rest[0], "CopyFileByPath");
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Denies approval for a file that was submitted for content approval.
|
|
209
|
+
* Only documents in lists that are enabled for content approval can be denied.
|
|
210
|
+
*
|
|
211
|
+
* @param comment The comment for the denial.
|
|
212
|
+
*/
|
|
213
|
+
deny(comment = "") {
|
|
214
|
+
if (comment.length > 1023) {
|
|
215
|
+
throw Error("The maximum comment length is 1023 characters.");
|
|
216
|
+
}
|
|
217
|
+
return (0, spqueryable_js_1.spPost)((0, exports.File)(this, `deny(comment='${(0, encode_path_str_js_1.encodePath)(comment)}')`));
|
|
218
|
+
}
|
|
219
|
+
async moveByPath(destUrl, ...rest) {
|
|
220
|
+
let options = {
|
|
221
|
+
KeepBoth: false,
|
|
222
|
+
ShouldBypassSharedLocks: true,
|
|
223
|
+
RetainEditorAndModifiedOnMove: false,
|
|
224
|
+
};
|
|
225
|
+
if (rest.length === 2) {
|
|
226
|
+
if (typeof rest[1] === "boolean") {
|
|
227
|
+
options.KeepBoth = rest[1];
|
|
228
|
+
}
|
|
229
|
+
else if (typeof rest[1] === "object") {
|
|
230
|
+
options = { ...options, ...rest[1] };
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
return this.moveCopyImpl(destUrl, options, rest[0], "MoveFileByPath");
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Submits the file for content approval with the specified comment.
|
|
237
|
+
*
|
|
238
|
+
* @param comment The comment for the published file. Its length must be <= 1023.
|
|
239
|
+
*/
|
|
240
|
+
publish(comment = "") {
|
|
241
|
+
if (comment.length > 1023) {
|
|
242
|
+
throw Error("The maximum comment length is 1023 characters.");
|
|
243
|
+
}
|
|
244
|
+
return (0, spqueryable_js_1.spPost)((0, exports.File)(this, `publish(comment='${(0, encode_path_str_js_1.encodePath)(comment)}')`));
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Moves the file to the Recycle Bin and returns the identifier of the new Recycle Bin item.
|
|
248
|
+
*
|
|
249
|
+
* @returns The GUID of the recycled file.
|
|
250
|
+
*/
|
|
251
|
+
recycle() {
|
|
252
|
+
return (0, spqueryable_js_1.spPost)((0, exports.File)(this, "recycle"));
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Deletes the file object with options.
|
|
256
|
+
*
|
|
257
|
+
* @param parameters Specifies the options to use when deleting a file.
|
|
258
|
+
*/
|
|
259
|
+
async deleteWithParams(parameters) {
|
|
260
|
+
return (0, spqueryable_js_1.spPost)((0, exports.File)(this, "DeleteWithParameters"), (0, queryable_1.body)({ parameters }));
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Reverts an existing checkout for the file.
|
|
264
|
+
*
|
|
265
|
+
*/
|
|
266
|
+
undoCheckout() {
|
|
267
|
+
return (0, spqueryable_js_1.spPost)((0, exports.File)(this, "undoCheckout"));
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Removes the file from content approval or unpublish a major version.
|
|
271
|
+
*
|
|
272
|
+
* @param comment The comment for the unpublish operation. Its length must be <= 1023.
|
|
273
|
+
*/
|
|
274
|
+
unpublish(comment = "") {
|
|
275
|
+
if (comment.length > 1023) {
|
|
276
|
+
throw Error("The maximum comment length is 1023 characters.");
|
|
277
|
+
}
|
|
278
|
+
return (0, spqueryable_js_1.spPost)((0, exports.File)(this, `unpublish(comment='${(0, encode_path_str_js_1.encodePath)(comment)}')`));
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Checks to see if the file represented by this object exists
|
|
282
|
+
*
|
|
283
|
+
*/
|
|
284
|
+
async exists() {
|
|
285
|
+
try {
|
|
286
|
+
const r = await (0, exports.File)(this).select("Exists")();
|
|
287
|
+
return r.Exists;
|
|
288
|
+
}
|
|
289
|
+
catch (e) {
|
|
290
|
+
// this treats any error here as the file not existing, which
|
|
291
|
+
// might not be true, but is good enough.
|
|
292
|
+
return false;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Sets the content of a file, for large files use setContentChunked. Not supported in batching.
|
|
297
|
+
*
|
|
298
|
+
* @param content The file content
|
|
299
|
+
*
|
|
300
|
+
*/
|
|
301
|
+
async setContent(content) {
|
|
302
|
+
await (0, spqueryable_js_1.spPost)((0, exports.File)(this, "$value"), {
|
|
303
|
+
body: content,
|
|
304
|
+
headers: {
|
|
305
|
+
"X-HTTP-Method": "PUT",
|
|
306
|
+
},
|
|
307
|
+
});
|
|
308
|
+
return (0, exports.File)(this);
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Gets the associated list item for this folder, loading the default properties
|
|
312
|
+
*/
|
|
313
|
+
async getItem(...selects) {
|
|
314
|
+
const q = this.listItemAllFields;
|
|
315
|
+
const d = await q.select(...selects)();
|
|
316
|
+
return Object.assign((0, index_js_1.Item)([this, (0, odata_url_from_js_1.odataUrlFrom)(d)]), d);
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Sets the contents of a file using a chunked upload approach. Not supported in batching.
|
|
320
|
+
*
|
|
321
|
+
* @param file The file to upload
|
|
322
|
+
* @param progress A callback function which can be used to track the progress of the upload
|
|
323
|
+
* @param chunkSize The size of each file slice, in bytes (default: 10485760)
|
|
324
|
+
*/
|
|
325
|
+
async setContentChunked(file, progress, chunkSize = 10485760) {
|
|
326
|
+
if (!(0, core_1.isFunc)(progress)) {
|
|
327
|
+
progress = () => null;
|
|
328
|
+
}
|
|
329
|
+
const fileSize = (file === null || file === void 0 ? void 0 : file.size) || file.length;
|
|
330
|
+
const totalBlocks = parseInt((fileSize / chunkSize).toString(), 10) + ((fileSize % chunkSize === 0) ? 1 : 0);
|
|
331
|
+
const uploadId = (0, core_1.getGUID)();
|
|
332
|
+
const fileRef = (0, exports.File)(this).using((0, queryable_1.CancelAction)(() => {
|
|
333
|
+
return (0, exports.File)(fileRef).cancelUpload(uploadId);
|
|
334
|
+
}));
|
|
335
|
+
// report that we are starting
|
|
336
|
+
progress({ uploadId, blockNumber: 1, chunkSize, currentPointer: 0, fileSize, stage: "starting", totalBlocks });
|
|
337
|
+
let currentPointer = await fileRef.startUpload(uploadId, file.slice(0, chunkSize));
|
|
338
|
+
// skip the first and last blocks
|
|
339
|
+
for (let i = 2; i < totalBlocks; i++) {
|
|
340
|
+
progress({ uploadId, blockNumber: i, chunkSize, currentPointer, fileSize, stage: "continue", totalBlocks });
|
|
341
|
+
currentPointer = await fileRef.continueUpload(uploadId, currentPointer, file.slice(currentPointer, currentPointer + chunkSize));
|
|
342
|
+
}
|
|
343
|
+
progress({ uploadId, blockNumber: totalBlocks, chunkSize, currentPointer, fileSize, stage: "finishing", totalBlocks });
|
|
344
|
+
return fileRef.finishUpload(uploadId, currentPointer, file.slice(currentPointer));
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Starts a new chunk upload session and uploads the first fragment.
|
|
348
|
+
* The current file content is not changed when this method completes.
|
|
349
|
+
* The method is idempotent (and therefore does not change the result) as long as you use the same values for uploadId and stream.
|
|
350
|
+
* The upload session ends either when you use the CancelUpload method or when you successfully
|
|
351
|
+
* complete the upload session by passing the rest of the file contents through the ContinueUpload and FinishUpload methods.
|
|
352
|
+
* The StartUpload and ContinueUpload methods return the size of the running total of uploaded data in bytes,
|
|
353
|
+
* so you can pass those return values to subsequent uses of ContinueUpload and FinishUpload.
|
|
354
|
+
* This method is currently available only on Office 365.
|
|
355
|
+
*
|
|
356
|
+
* @param uploadId The unique identifier of the upload session.
|
|
357
|
+
* @param fragment The file contents.
|
|
358
|
+
* @returns The size of the total uploaded data in bytes.
|
|
359
|
+
*/
|
|
360
|
+
async startUpload(uploadId, fragment) {
|
|
361
|
+
let n = await (0, spqueryable_js_1.spPost)((0, exports.File)(this, `startUpload(uploadId=guid'${uploadId}')`), { body: fragment });
|
|
362
|
+
if (typeof n === "object") {
|
|
363
|
+
// When OData=verbose the payload has the following shape:
|
|
364
|
+
// { StartUpload: "10485760" }
|
|
365
|
+
n = n.StartUpload;
|
|
366
|
+
}
|
|
367
|
+
return parseFloat(n);
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Continues the chunk upload session with an additional fragment.
|
|
371
|
+
* The current file content is not changed.
|
|
372
|
+
* Use the uploadId value that was passed to the StartUpload method that started the upload session.
|
|
373
|
+
* This method is currently available only on Office 365.
|
|
374
|
+
*
|
|
375
|
+
* @param uploadId The unique identifier of the upload session.
|
|
376
|
+
* @param fileOffset The size of the offset into the file where the fragment starts.
|
|
377
|
+
* @param fragment The file contents.
|
|
378
|
+
* @returns The size of the total uploaded data in bytes.
|
|
379
|
+
*/
|
|
380
|
+
async continueUpload(uploadId, fileOffset, fragment) {
|
|
381
|
+
let n = await (0, spqueryable_js_1.spPost)((0, exports.File)(this, `continueUpload(uploadId=guid'${uploadId}',fileOffset=${fileOffset})`), { body: fragment });
|
|
382
|
+
if (typeof n === "object") {
|
|
383
|
+
// When OData=verbose the payload has the following shape:
|
|
384
|
+
// { ContinueUpload: "20971520" }
|
|
385
|
+
n = n.ContinueUpload;
|
|
386
|
+
}
|
|
387
|
+
return parseFloat(n);
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Uploads the last file fragment and commits the file. The current file content is changed when this method completes.
|
|
391
|
+
* Use the uploadId value that was passed to the StartUpload method that started the upload session.
|
|
392
|
+
* This method is currently available only on Office 365.
|
|
393
|
+
*
|
|
394
|
+
* @param uploadId The unique identifier of the upload session.
|
|
395
|
+
* @param fileOffset The size of the offset into the file where the fragment starts.
|
|
396
|
+
* @param fragment The file contents.
|
|
397
|
+
* @returns The newly uploaded file.
|
|
398
|
+
*/
|
|
399
|
+
async finishUpload(uploadId, fileOffset, fragment) {
|
|
400
|
+
const response = await (0, spqueryable_js_1.spPost)((0, exports.File)(this, `finishUpload(uploadId=guid'${uploadId}',fileOffset=${fileOffset})`), { body: fragment });
|
|
401
|
+
return {
|
|
402
|
+
data: response,
|
|
403
|
+
file: fileFromServerRelativePath(this, response.ServerRelativeUrl),
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
moveCopyImpl(destUrl, options, overwrite, methodName) {
|
|
407
|
+
// create a timeline we will manipulate for this request
|
|
408
|
+
const poster = (0, exports.File)(this);
|
|
409
|
+
// add our pre-request actions, this fixes issues with batching hanging #2668
|
|
410
|
+
poster.on.pre((0, core_1.noInherit)(async (url, init, result) => {
|
|
411
|
+
const { ServerRelativeUrl: srcUrl, ["odata.id"]: absoluteUrl } = await (0, exports.File)(this).using((0, batching_js_1.BatchNever)()).select("ServerRelativeUrl")();
|
|
412
|
+
const webBaseUrl = new URL((0, extract_web_url_js_1.extractWebUrl)(absoluteUrl));
|
|
413
|
+
url = (0, core_1.combine)(webBaseUrl.toString(), `/_api/SP.MoveCopyUtil.${methodName}(overwrite=@a1)?@a1=${overwrite}`);
|
|
414
|
+
init = (0, queryable_1.body)({
|
|
415
|
+
destPath: (0, to_resource_path_js_1.toResourcePath)((0, core_1.isUrlAbsolute)(destUrl) ? destUrl : `${webBaseUrl.protocol}//${webBaseUrl.host}${destUrl}`),
|
|
416
|
+
options,
|
|
417
|
+
srcPath: (0, to_resource_path_js_1.toResourcePath)((0, core_1.isUrlAbsolute)(srcUrl) ? srcUrl : `${webBaseUrl.protocol}//${webBaseUrl.host}${srcUrl}`),
|
|
418
|
+
}, init);
|
|
419
|
+
return [url, init, result];
|
|
420
|
+
}));
|
|
421
|
+
return (0, spqueryable_js_1.spPost)(poster).then(() => fileFromPath(this, destUrl));
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
(0, tslib_1.__decorate)([
|
|
425
|
+
queryable_1.cancelableScope
|
|
426
|
+
], _File.prototype, "copyByPath", null);
|
|
427
|
+
(0, tslib_1.__decorate)([
|
|
428
|
+
queryable_1.cancelableScope
|
|
429
|
+
], _File.prototype, "moveByPath", null);
|
|
430
|
+
(0, tslib_1.__decorate)([
|
|
431
|
+
queryable_1.cancelableScope
|
|
432
|
+
], _File.prototype, "setContentChunked", null);
|
|
433
|
+
exports._File = _File;
|
|
434
|
+
exports.File = (0, spqueryable_js_1.spInvokableFactory)(_File);
|
|
435
|
+
/**
|
|
436
|
+
* Creates an IFile instance given a base object and a server relative path
|
|
437
|
+
*
|
|
438
|
+
* @param base Valid SPQueryable from which the observers will be used and the web url extracted
|
|
439
|
+
* @param serverRelativePath The server relative url to the file (ex: '/sites/dev/documents/file.txt')
|
|
440
|
+
* @returns IFile instance referencing the file described by the supplied parameters
|
|
441
|
+
*/
|
|
442
|
+
function fileFromServerRelativePath(base, serverRelativePath) {
|
|
443
|
+
return (0, exports.File)([base, (0, extract_web_url_js_1.extractWebUrl)(base.toUrl())], `_api/web/getFileByServerRelativePath(decodedUrl='${(0, encode_path_str_js_1.encodePath)(serverRelativePath)}')`);
|
|
444
|
+
}
|
|
445
|
+
exports.fileFromServerRelativePath = fileFromServerRelativePath;
|
|
446
|
+
/**
|
|
447
|
+
* Creates an IFile instance given a base object and an absolute path
|
|
448
|
+
*
|
|
449
|
+
* @param base Valid SPQueryable from which the observers will be used
|
|
450
|
+
* @param serverRelativePath The absolute url to the file (ex: 'https://tenant.sharepoint.com/sites/dev/documents/file.txt')
|
|
451
|
+
* @returns IFile instance referencing the file described by the supplied parameters
|
|
452
|
+
*/
|
|
453
|
+
async function fileFromAbsolutePath(base, absoluteFilePath) {
|
|
454
|
+
const { WebFullUrl } = await (0, exports.File)(this).using((0, batching_js_1.BatchNever)()).getContextInfo(absoluteFilePath);
|
|
455
|
+
const { pathname } = new URL(absoluteFilePath);
|
|
456
|
+
return fileFromServerRelativePath((0, exports.File)([base, (0, core_1.combine)(WebFullUrl, "_api/web")]), decodeURIComponent(pathname));
|
|
457
|
+
}
|
|
458
|
+
exports.fileFromAbsolutePath = fileFromAbsolutePath;
|
|
459
|
+
/**
|
|
460
|
+
* Creates an IFile intance given a base object and either an absolute or server relative path to a file
|
|
461
|
+
*
|
|
462
|
+
* @param base Valid SPQueryable from which the observers will be used
|
|
463
|
+
* @param serverRelativePath server relative or absolute url to the file (ex: 'https://tenant.sharepoint.com/sites/dev/documents/file.txt' or '/sites/dev/documents/file.txt')
|
|
464
|
+
* @returns IFile instance referencing the file described by the supplied parameters
|
|
465
|
+
*/
|
|
466
|
+
async function fileFromPath(base, path) {
|
|
467
|
+
return ((0, core_1.isUrlAbsolute)(path) ? fileFromAbsolutePath : fileFromServerRelativePath)(base, path);
|
|
468
|
+
}
|
|
469
|
+
exports.fileFromPath = fileFromPath;
|
|
470
|
+
/**
|
|
471
|
+
* Describes a collection of Version objects
|
|
472
|
+
*
|
|
473
|
+
*/
|
|
474
|
+
let _Versions = class _Versions extends spqueryable_js_1._SPCollection {
|
|
475
|
+
/**
|
|
476
|
+
* Gets a version by id
|
|
477
|
+
*
|
|
478
|
+
* @param versionId The id of the version to retrieve
|
|
479
|
+
*/
|
|
480
|
+
getById(versionId) {
|
|
481
|
+
return (0, exports.Version)(this).concat(`(${versionId})`);
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Deletes all the file version objects in the collection.
|
|
485
|
+
*
|
|
486
|
+
*/
|
|
487
|
+
deleteAll() {
|
|
488
|
+
return (0, spqueryable_js_1.spPost)((0, exports.Versions)(this, "deleteAll"));
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Deletes the specified version of the file.
|
|
492
|
+
*
|
|
493
|
+
* @param versionId The ID of the file version to delete.
|
|
494
|
+
*/
|
|
495
|
+
deleteById(versionId) {
|
|
496
|
+
return (0, spqueryable_js_1.spPost)((0, exports.Versions)(this, `deleteById(vid=${versionId})`));
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Recycles the specified version of the file.
|
|
500
|
+
*
|
|
501
|
+
* @param versionId The ID of the file version to delete.
|
|
502
|
+
*/
|
|
503
|
+
recycleByID(versionId) {
|
|
504
|
+
return (0, spqueryable_js_1.spPost)((0, exports.Versions)(this, `recycleByID(vid=${versionId})`));
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* Deletes the file version object with the specified version label.
|
|
508
|
+
*
|
|
509
|
+
* @param label The version label of the file version to delete, for example: 1.2
|
|
510
|
+
*/
|
|
511
|
+
deleteByLabel(label) {
|
|
512
|
+
return (0, spqueryable_js_1.spPost)((0, exports.Versions)(this, `deleteByLabel(versionlabel='${(0, encode_path_str_js_1.encodePath)(label)}')`));
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Recycles the file version object with the specified version label.
|
|
516
|
+
*
|
|
517
|
+
* @param label The version label of the file version to delete, for example: 1.2
|
|
518
|
+
*/
|
|
519
|
+
recycleByLabel(label) {
|
|
520
|
+
return (0, spqueryable_js_1.spPost)((0, exports.Versions)(this, `recycleByLabel(versionlabel='${(0, encode_path_str_js_1.encodePath)(label)}')`));
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* Creates a new file version from the file specified by the version label.
|
|
524
|
+
*
|
|
525
|
+
* @param label The version label of the file version to restore, for example: 1.2
|
|
526
|
+
*/
|
|
527
|
+
restoreByLabel(label) {
|
|
528
|
+
return (0, spqueryable_js_1.spPost)((0, exports.Versions)(this, `restoreByLabel(versionlabel='${(0, encode_path_str_js_1.encodePath)(label)}')`));
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
_Versions = (0, tslib_1.__decorate)([
|
|
532
|
+
(0, decorators_js_1.defaultPath)("versions")
|
|
533
|
+
], _Versions);
|
|
534
|
+
exports._Versions = _Versions;
|
|
535
|
+
exports.Versions = (0, spqueryable_js_1.spInvokableFactory)(_Versions);
|
|
536
|
+
/**
|
|
537
|
+
* Describes a single Version instance
|
|
538
|
+
*
|
|
539
|
+
*/
|
|
540
|
+
class _Version extends readable_file_js_1.ReadableFile {
|
|
541
|
+
constructor() {
|
|
542
|
+
super(...arguments);
|
|
543
|
+
this.delete = (0, spqueryable_js_1.deleteable)();
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
exports._Version = _Version;
|
|
547
|
+
exports.Version = (0, spqueryable_js_1.spInvokableFactory)(_Version);
|
|
548
|
+
/**
|
|
549
|
+
* Types for document check in.
|
|
550
|
+
* Minor = 0
|
|
551
|
+
* Major = 1
|
|
552
|
+
* Overwrite = 2
|
|
553
|
+
*/
|
|
554
|
+
var CheckinType;
|
|
555
|
+
(function (CheckinType) {
|
|
556
|
+
CheckinType[CheckinType["Minor"] = 0] = "Minor";
|
|
557
|
+
CheckinType[CheckinType["Major"] = 1] = "Major";
|
|
558
|
+
CheckinType[CheckinType["Overwrite"] = 2] = "Overwrite";
|
|
559
|
+
})(CheckinType = exports.CheckinType || (exports.CheckinType = {}));
|
|
560
|
+
/**
|
|
561
|
+
* File move opertions
|
|
562
|
+
*/
|
|
563
|
+
var MoveOperations;
|
|
564
|
+
(function (MoveOperations) {
|
|
565
|
+
/**
|
|
566
|
+
* Produce an error if a file with the same name exists in the destination
|
|
567
|
+
*/
|
|
568
|
+
MoveOperations[MoveOperations["None"] = 0] = "None";
|
|
569
|
+
/**
|
|
570
|
+
* Overwrite a file with the same name if it exists. Value is 1.
|
|
571
|
+
*/
|
|
572
|
+
MoveOperations[MoveOperations["Overwrite"] = 1] = "Overwrite";
|
|
573
|
+
/**
|
|
574
|
+
* Complete the move operation even if supporting files are separated from the file. Value is 8.
|
|
575
|
+
*/
|
|
576
|
+
MoveOperations[MoveOperations["AllowBrokenThickets"] = 8] = "AllowBrokenThickets";
|
|
577
|
+
/**
|
|
578
|
+
* Boolean specifying whether to retain the source of the move's editor and modified by datetime.
|
|
579
|
+
*/
|
|
580
|
+
MoveOperations[MoveOperations["RetainEditorAndModifiedOnMove"] = 2048] = "RetainEditorAndModifiedOnMove";
|
|
581
|
+
})(MoveOperations = exports.MoveOperations || (exports.MoveOperations = {}));
|
|
582
|
+
var TemplateFileType;
|
|
583
|
+
(function (TemplateFileType) {
|
|
584
|
+
TemplateFileType[TemplateFileType["StandardPage"] = 0] = "StandardPage";
|
|
585
|
+
TemplateFileType[TemplateFileType["WikiPage"] = 1] = "WikiPage";
|
|
586
|
+
TemplateFileType[TemplateFileType["FormPage"] = 2] = "FormPage";
|
|
587
|
+
TemplateFileType[TemplateFileType["ClientSidePage"] = 3] = "ClientSidePage";
|
|
588
|
+
})(TemplateFileType = exports.TemplateFileType || (exports.TemplateFileType = {}));
|
|
589
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../packages/sp/files/types.ts"],"names":[],"mappings":";;;;AAAA,8CAAqE;AACrE,oCAAoG;AACpG,sDAY2B;AAC3B,gDAAgD;AAChD,kEAA0D;AAC1D,oDAA+C;AAC/C,oEAA4D;AAC5D,sEAA8D;AAE9D,oEAAyD;AAEzD,yDAAkD;AAClD,oCAAkC;AAClC,gDAA4C;AAE5C;;;GAGG;AAEH,IA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QAItB;AASD;;GAEG;AACH,IAAY,cAiBX;AAjBD,WAAY,cAAc;IACtB;;OAEG;IACH,mDAAQ,CAAA;IACR;;OAEG;IACH,6DAAa,CAAA;IACb;;OAEG;IACH,iFAAuB,CAAA;IACvB;;OAEG;IACH,wGAAoC,CAAA;AACxC,CAAC,EAjBW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAiBzB;AAED,IAAY,gBAKX;AALD,WAAY,gBAAgB;IACxB,uEAAgB,CAAA;IAChB,+DAAY,CAAA;IACZ,+DAAY,CAAA;IACZ,2EAAkB,CAAA;AACtB,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IFile } from "./types.js";
|
|
2
|
+
declare module "../webs/types" {
|
|
3
|
+
interface _Web {
|
|
4
|
+
getFileByServerRelativePath(fileRelativeUrl: string): IFile;
|
|
5
|
+
getFileById(uniqueId: string): IFile;
|
|
6
|
+
getFileByUrl(fileUrl: string): IFile;
|
|
7
|
+
}
|
|
8
|
+
interface IWeb {
|
|
9
|
+
/**
|
|
10
|
+
* Gets a file by server relative url if your file name contains # and % characters
|
|
11
|
+
*
|
|
12
|
+
* @param fileRelativeUrl The server relative path to the file (including /sites/ if applicable)
|
|
13
|
+
*/
|
|
14
|
+
getFileByServerRelativePath(fileRelativeUrl: string): IFile;
|
|
15
|
+
/**
|
|
16
|
+
* Gets a file by id
|
|
17
|
+
*
|
|
18
|
+
* @param uniqueId The UniqueId of the file
|
|
19
|
+
*/
|
|
20
|
+
getFileById(uniqueId: string): IFile;
|
|
21
|
+
/**
|
|
22
|
+
* Gets a file from a sharing link or absolute url
|
|
23
|
+
*
|
|
24
|
+
* @param fileUrl Absolute url of the file to get
|
|
25
|
+
*/
|
|
26
|
+
getFileByUrl(fileUrl: string): IFile;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../../../packages/sp/files/web.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoC,KAAK,EAAE,MAAM,YAAY,CAAC;AAErE,OAAO,QAAQ,eAAe,CAAC;IAC3B,UAAU,IAAI;QACV,2BAA2B,CAAC,eAAe,EAAE,MAAM,GAAG,KAAK,CAAC;QAC5D,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC;QACrC,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;IACD,UAAU,IAAI;QAEV;;;;WAIG;QACH,2BAA2B,CAAC,eAAe,EAAE,MAAM,GAAG,KAAK,CAAC;QAE5D;;;;WAIG;QACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC;QAErC;;;;WAIG;QACH,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;CACJ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const encode_path_str_js_1 = require("../utils/encode-path-str.js");
|
|
4
|
+
const types_js_1 = require("../webs/types.js");
|
|
5
|
+
const types_js_2 = require("./types.js");
|
|
6
|
+
types_js_1._Web.prototype.getFileByServerRelativePath = function (fileRelativeUrl) {
|
|
7
|
+
return (0, types_js_2.fileFromServerRelativePath)(this, fileRelativeUrl);
|
|
8
|
+
};
|
|
9
|
+
types_js_1._Web.prototype.getFileById = function (uniqueId) {
|
|
10
|
+
return (0, types_js_2.File)(this, `getFileById('${uniqueId}')`);
|
|
11
|
+
};
|
|
12
|
+
types_js_1._Web.prototype.getFileByUrl = function (fileUrl) {
|
|
13
|
+
return (0, types_js_2.File)(this, `getFileByUrl('${(0, encode_path_str_js_1.encodePath)("!@p1::" + fileUrl)}')`);
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../../../packages/sp/files/web.ts"],"names":[],"mappings":";;AAAA,oEAAyD;AACzD,+CAAwC;AACxC,yCAAqE;AAiCrE,eAAI,CAAC,SAAS,CAAC,2BAA2B,GAAG,UAAsB,eAAuB;IACtF,OAAO,IAAA,qCAA0B,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC;AAC7D,CAAC,CAAC;AAEF,eAAI,CAAC,SAAS,CAAC,WAAW,GAAG,UAAsB,QAAgB;IAC/D,OAAO,IAAA,eAAI,EAAC,IAAI,EAAE,gBAAgB,QAAQ,IAAI,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,eAAI,CAAC,SAAS,CAAC,YAAY,GAAG,UAAsB,OAAe;IAC/D,OAAO,IAAA,eAAI,EAAC,IAAI,EAAE,iBAAiB,IAAA,+BAAU,EAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC"}
|