@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,362 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UrlZone = exports.Profiles = exports._Profiles = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const spqueryable_js_1 = require("../spqueryable.js");
|
|
6
|
+
const queryable_1 = require("@pnp/queryable");
|
|
7
|
+
const decorators_js_1 = require("../decorators.js");
|
|
8
|
+
const core_1 = require("@pnp/core");
|
|
9
|
+
class _Profiles extends spqueryable_js_1._SPInstance {
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new instance of the UserProfileQuery class
|
|
12
|
+
*
|
|
13
|
+
* @param baseUrl The url or SharePointQueryable which forms the parent of this user profile query
|
|
14
|
+
*/
|
|
15
|
+
constructor(baseUrl, path = "_api/sp.userprofiles.peoplemanager") {
|
|
16
|
+
super(baseUrl, path);
|
|
17
|
+
this.clientPeoplePickerQuery = (new ClientPeoplePickerQuery(baseUrl)).using((0, core_1.AssignFrom)(this));
|
|
18
|
+
this.profileLoader = (new ProfileLoader(baseUrl)).using((0, core_1.AssignFrom)(this));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The url of the edit profile page for the current user
|
|
22
|
+
*/
|
|
23
|
+
getEditProfileLink() {
|
|
24
|
+
return (0, exports.Profiles)(this, "EditProfileLink")();
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A boolean value that indicates whether the current user's "People I'm Following" list is public
|
|
28
|
+
*/
|
|
29
|
+
getIsMyPeopleListPublic() {
|
|
30
|
+
return (0, exports.Profiles)(this, "IsMyPeopleListPublic")();
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A boolean value that indicates whether the current user is being followed by the specified user
|
|
34
|
+
*
|
|
35
|
+
* @param loginName The account name of the user
|
|
36
|
+
*/
|
|
37
|
+
amIFollowedBy(loginName) {
|
|
38
|
+
const q = (0, exports.Profiles)(this, "amifollowedby(@v)");
|
|
39
|
+
q.query.set("@v", `'${loginName}'`);
|
|
40
|
+
return q();
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A boolean value that indicates whether the current user is following the specified user
|
|
44
|
+
*
|
|
45
|
+
* @param loginName The account name of the user
|
|
46
|
+
*/
|
|
47
|
+
amIFollowing(loginName) {
|
|
48
|
+
const q = (0, exports.Profiles)(this, "amifollowing(@v)");
|
|
49
|
+
q.query.set("@v", `'${loginName}'`);
|
|
50
|
+
return q();
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Gets tags that the current user is following
|
|
54
|
+
*
|
|
55
|
+
* @param maxCount The maximum number of tags to retrieve (default is 20)
|
|
56
|
+
*/
|
|
57
|
+
getFollowedTags(maxCount = 20) {
|
|
58
|
+
return (0, exports.Profiles)(this, `getfollowedtags(${maxCount})`)();
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Gets the people who are following the specified user
|
|
62
|
+
*
|
|
63
|
+
* @param loginName The account name of the user
|
|
64
|
+
*/
|
|
65
|
+
getFollowersFor(loginName) {
|
|
66
|
+
const q = (0, exports.Profiles)(this, "getfollowersfor(@v)");
|
|
67
|
+
q.query.set("@v", `'${loginName}'`);
|
|
68
|
+
return q();
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Gets the people who are following the current user
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
get myFollowers() {
|
|
75
|
+
return (0, spqueryable_js_1.SPCollection)(this, "getmyfollowers");
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Gets user properties for the current user
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
get myProperties() {
|
|
82
|
+
return (0, exports.Profiles)(this, "getmyproperties");
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Gets the people who the specified user is following
|
|
86
|
+
*
|
|
87
|
+
* @param loginName The account name of the user.
|
|
88
|
+
*/
|
|
89
|
+
getPeopleFollowedBy(loginName) {
|
|
90
|
+
const q = (0, exports.Profiles)(this, "getpeoplefollowedby(@v)");
|
|
91
|
+
q.query.set("@v", `'${loginName}'`);
|
|
92
|
+
return q();
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Gets user properties for the specified user.
|
|
96
|
+
*
|
|
97
|
+
* @param loginName The account name of the user.
|
|
98
|
+
*/
|
|
99
|
+
getPropertiesFor(loginName) {
|
|
100
|
+
const q = (0, exports.Profiles)(this, "getpropertiesfor(@v)");
|
|
101
|
+
q.query.set("@v", `'${loginName}'`);
|
|
102
|
+
return q();
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Gets the 20 most popular hash tags over the past week, sorted so that the most popular tag appears first
|
|
106
|
+
*
|
|
107
|
+
*/
|
|
108
|
+
get trendingTags() {
|
|
109
|
+
const q = (0, exports.Profiles)(this, null);
|
|
110
|
+
q.concat(".gettrendingtags");
|
|
111
|
+
return q();
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Gets the specified user profile property for the specified user
|
|
115
|
+
*
|
|
116
|
+
* @param loginName The account name of the user
|
|
117
|
+
* @param propertyName The case-sensitive name of the property to get
|
|
118
|
+
*/
|
|
119
|
+
getUserProfilePropertyFor(loginName, propertyName) {
|
|
120
|
+
const q = (0, exports.Profiles)(this, `getuserprofilepropertyfor(accountname=@v, propertyname='${propertyName}')`);
|
|
121
|
+
q.query.set("@v", `'${loginName}'`);
|
|
122
|
+
return q();
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Removes the specified user from the user's list of suggested people to follow
|
|
126
|
+
*
|
|
127
|
+
* @param loginName The account name of the user
|
|
128
|
+
*/
|
|
129
|
+
hideSuggestion(loginName) {
|
|
130
|
+
const q = (0, exports.Profiles)(this, "hidesuggestion(@v)");
|
|
131
|
+
q.query.set("@v", `'${loginName}'`);
|
|
132
|
+
return (0, spqueryable_js_1.spPost)(q);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* A boolean values that indicates whether the first user is following the second user
|
|
136
|
+
*
|
|
137
|
+
* @param follower The account name of the user who might be following the followee
|
|
138
|
+
* @param followee The account name of the user who might be followed by the follower
|
|
139
|
+
*/
|
|
140
|
+
isFollowing(follower, followee) {
|
|
141
|
+
const q = (0, exports.Profiles)(this, null);
|
|
142
|
+
q.concat(".isfollowing(possiblefolloweraccountname=@v, possiblefolloweeaccountname=@y)");
|
|
143
|
+
q.query.set("@v", `'${follower}'`);
|
|
144
|
+
q.query.set("@y", `'${followee}'`);
|
|
145
|
+
return q();
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Uploads and sets the user profile picture (Users can upload a picture to their own profile only). Not supported for batching.
|
|
149
|
+
*
|
|
150
|
+
* @param profilePicSource Blob data representing the user's picture in BMP, JPEG, or PNG format of up to 4.76MB
|
|
151
|
+
*/
|
|
152
|
+
setMyProfilePic(profilePicSource) {
|
|
153
|
+
return new Promise((resolve, reject) => {
|
|
154
|
+
const reader = new FileReader();
|
|
155
|
+
reader.onload = async (e) => {
|
|
156
|
+
const buffer = e.target.result;
|
|
157
|
+
try {
|
|
158
|
+
await (0, spqueryable_js_1.spPost)((0, exports.Profiles)(this, "setmyprofilepicture"), { body: buffer });
|
|
159
|
+
resolve();
|
|
160
|
+
}
|
|
161
|
+
catch (e) {
|
|
162
|
+
reject(e);
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
reader.readAsArrayBuffer(profilePicSource);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Sets single value User Profile property
|
|
170
|
+
*
|
|
171
|
+
* @param accountName The account name of the user
|
|
172
|
+
* @param propertyName Property name
|
|
173
|
+
* @param propertyValue Property value
|
|
174
|
+
*/
|
|
175
|
+
setSingleValueProfileProperty(accountName, propertyName, propertyValue) {
|
|
176
|
+
return (0, spqueryable_js_1.spPost)((0, exports.Profiles)(this, "SetSingleValueProfileProperty"), (0, queryable_1.body)({
|
|
177
|
+
accountName,
|
|
178
|
+
propertyName,
|
|
179
|
+
propertyValue,
|
|
180
|
+
}));
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Sets multi valued User Profile property
|
|
184
|
+
*
|
|
185
|
+
* @param accountName The account name of the user
|
|
186
|
+
* @param propertyName Property name
|
|
187
|
+
* @param propertyValues Property values
|
|
188
|
+
*/
|
|
189
|
+
setMultiValuedProfileProperty(accountName, propertyName, propertyValues) {
|
|
190
|
+
return (0, spqueryable_js_1.spPost)((0, exports.Profiles)(this, "SetMultiValuedProfileProperty"), (0, queryable_1.body)({
|
|
191
|
+
accountName,
|
|
192
|
+
propertyName,
|
|
193
|
+
propertyValues,
|
|
194
|
+
}));
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Provisions one or more users' personal sites. (My Site administrator on SharePoint Online only)
|
|
198
|
+
*
|
|
199
|
+
* @param emails The email addresses of the users to provision sites for
|
|
200
|
+
*/
|
|
201
|
+
createPersonalSiteEnqueueBulk(...emails) {
|
|
202
|
+
return this.profileLoader.createPersonalSiteEnqueueBulk(emails);
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Gets the user profile of the site owner
|
|
206
|
+
*
|
|
207
|
+
*/
|
|
208
|
+
get ownerUserProfile() {
|
|
209
|
+
return this.profileLoader.ownerUserProfile;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Gets the user profile for the current user
|
|
213
|
+
*/
|
|
214
|
+
get userProfile() {
|
|
215
|
+
return this.profileLoader.userProfile;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Enqueues creating a personal site for this user, which can be used to share documents, web pages, and other files
|
|
219
|
+
*
|
|
220
|
+
* @param interactiveRequest true if interactively (web) initiated request, or false (default) if non-interactively (client) initiated request
|
|
221
|
+
*/
|
|
222
|
+
createPersonalSite(interactiveRequest = false) {
|
|
223
|
+
return this.profileLoader.createPersonalSite(interactiveRequest);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Sets the privacy settings for this profile
|
|
227
|
+
*
|
|
228
|
+
* @param share true to make all social data public; false to make all social data private
|
|
229
|
+
*/
|
|
230
|
+
shareAllSocialData(share) {
|
|
231
|
+
return this.profileLoader.shareAllSocialData(share);
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Resolves user or group using specified query parameters
|
|
235
|
+
*
|
|
236
|
+
* @param queryParams The query parameters used to perform resolve
|
|
237
|
+
*/
|
|
238
|
+
clientPeoplePickerResolveUser(queryParams) {
|
|
239
|
+
return this.clientPeoplePickerQuery.clientPeoplePickerResolveUser(queryParams);
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Searches for users or groups using specified query parameters
|
|
243
|
+
*
|
|
244
|
+
* @param queryParams The query parameters used to perform search
|
|
245
|
+
*/
|
|
246
|
+
clientPeoplePickerSearchUser(queryParams) {
|
|
247
|
+
return this.clientPeoplePickerQuery.clientPeoplePickerSearchUser(queryParams);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
exports._Profiles = _Profiles;
|
|
251
|
+
exports.Profiles = (0, spqueryable_js_1.spInvokableFactory)(_Profiles);
|
|
252
|
+
let ProfileLoader = class ProfileLoader extends spqueryable_js_1._SPQueryable {
|
|
253
|
+
/**
|
|
254
|
+
* Provisions one or more users' personal sites. (My Site administrator on SharePoint Online only) Doesn't support batching
|
|
255
|
+
*
|
|
256
|
+
* @param emails The email addresses of the users to provision sites for
|
|
257
|
+
*/
|
|
258
|
+
createPersonalSiteEnqueueBulk(emails) {
|
|
259
|
+
return (0, spqueryable_js_1.spPost)(ProfileLoaderFactory(this, "createpersonalsiteenqueuebulk"), (0, queryable_1.body)({ "emailIDs": emails }));
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Gets the user profile of the site owner.
|
|
263
|
+
*
|
|
264
|
+
*/
|
|
265
|
+
get ownerUserProfile() {
|
|
266
|
+
return (0, spqueryable_js_1.spPost)(this.getParent(ProfileLoaderFactory, "_api/sp.userprofiles.profileloader.getowneruserprofile"));
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Gets the user profile of the current user.
|
|
270
|
+
*
|
|
271
|
+
*/
|
|
272
|
+
get userProfile() {
|
|
273
|
+
return (0, spqueryable_js_1.spPost)(ProfileLoaderFactory(this, "getuserprofile"));
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Enqueues creating a personal site for this user, which can be used to share documents, web pages, and other files.
|
|
277
|
+
*
|
|
278
|
+
* @param interactiveRequest true if interactively (web) initiated request, or false (default) if non-interactively (client) initiated request
|
|
279
|
+
*/
|
|
280
|
+
createPersonalSite(interactiveRequest = false) {
|
|
281
|
+
return (0, spqueryable_js_1.spPost)(ProfileLoaderFactory(this, `getuserprofile/createpersonalsiteenque(${interactiveRequest})`));
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Sets the privacy settings for this profile
|
|
285
|
+
*
|
|
286
|
+
* @param share true to make all social data public; false to make all social data private.
|
|
287
|
+
*/
|
|
288
|
+
shareAllSocialData(share) {
|
|
289
|
+
return (0, spqueryable_js_1.spPost)(ProfileLoaderFactory(this, `getuserprofile/shareallsocialdata(${share})`));
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
ProfileLoader = (0, tslib_1.__decorate)([
|
|
293
|
+
(0, decorators_js_1.defaultPath)("_api/sp.userprofiles.profileloader.getprofileloader")
|
|
294
|
+
], ProfileLoader);
|
|
295
|
+
const ProfileLoaderFactory = (baseUrl, path) => {
|
|
296
|
+
return new ProfileLoader(baseUrl, path);
|
|
297
|
+
};
|
|
298
|
+
let ClientPeoplePickerQuery = class ClientPeoplePickerQuery extends spqueryable_js_1._SPQueryable {
|
|
299
|
+
/**
|
|
300
|
+
* Resolves user or group using specified query parameters
|
|
301
|
+
*
|
|
302
|
+
* @param queryParams The query parameters used to perform resolve
|
|
303
|
+
*/
|
|
304
|
+
async clientPeoplePickerResolveUser(queryParams) {
|
|
305
|
+
const q = ClientPeoplePickerFactory(this, null);
|
|
306
|
+
q.concat(".clientpeoplepickerresolveuser");
|
|
307
|
+
const res = await (0, spqueryable_js_1.spPost)(q, this.getBodyFrom(queryParams));
|
|
308
|
+
return JSON.parse(typeof res === "object" ? res.ClientPeoplePickerResolveUser : res);
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Searches for users or groups using specified query parameters
|
|
312
|
+
*
|
|
313
|
+
* @param queryParams The query parameters used to perform search
|
|
314
|
+
*/
|
|
315
|
+
async clientPeoplePickerSearchUser(queryParams) {
|
|
316
|
+
const q = ClientPeoplePickerFactory(this, null);
|
|
317
|
+
q.concat(".clientpeoplepickersearchuser");
|
|
318
|
+
const res = await (0, spqueryable_js_1.spPost)(q, this.getBodyFrom(queryParams));
|
|
319
|
+
return JSON.parse(typeof res === "object" ? res.ClientPeoplePickerSearchUser : res);
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Creates ClientPeoplePickerQueryParameters request body
|
|
323
|
+
*
|
|
324
|
+
* @param queryParams The query parameters to create request body
|
|
325
|
+
*/
|
|
326
|
+
getBodyFrom(queryParams) {
|
|
327
|
+
return (0, queryable_1.body)({ queryParams });
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
ClientPeoplePickerQuery = (0, tslib_1.__decorate)([
|
|
331
|
+
(0, decorators_js_1.defaultPath)("_api/sp.ui.applicationpages.clientpeoplepickerwebserviceinterface")
|
|
332
|
+
], ClientPeoplePickerQuery);
|
|
333
|
+
const ClientPeoplePickerFactory = (baseUrl, path) => {
|
|
334
|
+
return new ClientPeoplePickerQuery(baseUrl, path);
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* Specifies the originating zone of a request received.
|
|
338
|
+
*/
|
|
339
|
+
var UrlZone;
|
|
340
|
+
(function (UrlZone) {
|
|
341
|
+
/**
|
|
342
|
+
* Specifies the default zone used for requests unless another zone is specified.
|
|
343
|
+
*/
|
|
344
|
+
UrlZone[UrlZone["DefaultZone"] = 0] = "DefaultZone";
|
|
345
|
+
/**
|
|
346
|
+
* Specifies an intranet zone.
|
|
347
|
+
*/
|
|
348
|
+
UrlZone[UrlZone["Intranet"] = 1] = "Intranet";
|
|
349
|
+
/**
|
|
350
|
+
* Specifies an Internet zone.
|
|
351
|
+
*/
|
|
352
|
+
UrlZone[UrlZone["Internet"] = 2] = "Internet";
|
|
353
|
+
/**
|
|
354
|
+
* Specifies a custom zone.
|
|
355
|
+
*/
|
|
356
|
+
UrlZone[UrlZone["Custom"] = 3] = "Custom";
|
|
357
|
+
/**
|
|
358
|
+
* Specifies an extranet zone.
|
|
359
|
+
*/
|
|
360
|
+
UrlZone[UrlZone["Extranet"] = 4] = "Extranet";
|
|
361
|
+
})(UrlZone = exports.UrlZone || (exports.UrlZone = {}));
|
|
362
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../packages/sp/profiles/types.ts"],"names":[],"mappings":";;;;AAAA,sDAS2B;AAC3B,8CAAsC;AAEtC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ACK,WAAW,CAAC,WAA+C;QAC/D,OAAO,IAAA,gBAAI,EAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IACjC,CAAC;CACJ,CAAA;AApCK,uBAAuB;IAD5B,IAAA,2BAAW,EAAC,mEAAmE,CAAC;GAC3E,uBAAuB,CAoC5B;AAED,MAAM,yBAAyB,GAAG,CAAC,OAA8B,EAAE,IAAa,EAAE,EAAE;IAChF,OAAO,IAAI,uBAAuB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AACtD,CAAC,CAAC;AA+GF;;GAEG;AACH,IAAkB,OAqBjB;AArBD,WAAkB,OAAO;IACrB;;OAEG;IACH,mDAAW,CAAA;IACX;;OAEG;IACH,6CAAQ,CAAA;IACR;;OAEG;IACH,6CAAQ,CAAA;IACR;;OAEG;IACH,yCAAM,CAAA;IACN;;OAEG;IACH,6CAAQ,CAAA;AACZ,CAAC,EArBiB,OAAO,GAAP,eAAO,KAAP,eAAO,QAqBxB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ISitePageService } from "./types.js";
|
|
2
|
+
export { ISitePageService, SitePageService, } from "./types.js";
|
|
3
|
+
declare module "../fi" {
|
|
4
|
+
interface SPFI {
|
|
5
|
+
/**
|
|
6
|
+
* Access to SP.Publishing.SitePageService API which allows you to get your current unified group memberships
|
|
7
|
+
*/
|
|
8
|
+
readonly publishingSitePageService: ISitePageService;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/sp/publishing-sitepageservice/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE/D,OAAO,EACH,gBAAgB,EAChB,eAAe,GAClB,MAAM,YAAY,CAAC;AAEpB,OAAO,QAAQ,OAAO,CAAC;IACnB,UAAU,IAAI;QACV;;WAEG;QACH,QAAQ,CAAC,yBAAyB,EAAE,gBAAgB,CAAC;KACxD;CACJ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SitePageService = void 0;
|
|
4
|
+
const fi_js_1 = require("../fi.js");
|
|
5
|
+
const types_js_1 = require("./types.js");
|
|
6
|
+
var types_js_2 = require("./types.js");
|
|
7
|
+
Object.defineProperty(exports, "SitePageService", { enumerable: true, get: function () { return types_js_2.SitePageService; } });
|
|
8
|
+
Reflect.defineProperty(fi_js_1.SPFI.prototype, "publishingSitePageService", {
|
|
9
|
+
get: function () {
|
|
10
|
+
return this.create(types_js_1.SitePageService);
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/sp/publishing-sitepageservice/index.ts"],"names":[],"mappings":";;;AAAA,oCAAgC;AAChC,yCAA+D;AAE/D,uCAGoB;AADhB,2GAAA,eAAe,OAAA;AAYnB,OAAO,CAAC,cAAc,CAAC,YAAI,CAAC,SAAS,EAAE,2BAA2B,EAAE;IAChE,GAAG,EAAE;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,0BAAe,CAAC,CAAC;IACxC,CAAC;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ISPQueryable, SPInit, _SPInstance } from "../spqueryable.js";
|
|
2
|
+
export declare class _SitePageService extends _SPInstance implements ISitePageService {
|
|
3
|
+
constructor(baseUrl: string | ISPQueryable, path?: string);
|
|
4
|
+
/**
|
|
5
|
+
* Gets current user unified group memberships
|
|
6
|
+
*/
|
|
7
|
+
getCurrentUserMemberships(): Promise<string[]>;
|
|
8
|
+
}
|
|
9
|
+
export interface ISitePageService extends _SitePageService {
|
|
10
|
+
}
|
|
11
|
+
export declare const SitePageService: (base: SPInit, path?: string) => ISitePageService;
|
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/sp/publishing-sitepageservice/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAsB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE1F,qBAAa,gBAAiB,SAAQ,WAAY,YAAW,gBAAgB;gBAC7D,OAAO,EAAE,MAAM,GAAG,YAAY,EAAE,IAAI,SAAuC;IAGvF;;MAEE;IACK,yBAAyB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;CAKxD;AAED,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;CAAG;AAC7D,eAAO,MAAM,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,gBAAuD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SitePageService = exports._SitePageService = void 0;
|
|
4
|
+
const spqueryable_js_1 = require("../spqueryable.js");
|
|
5
|
+
class _SitePageService extends spqueryable_js_1._SPInstance {
|
|
6
|
+
constructor(baseUrl, path = "_api/SP.Publishing.SitePageService") {
|
|
7
|
+
super(baseUrl, path);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Gets current user unified group memberships
|
|
11
|
+
*/
|
|
12
|
+
getCurrentUserMemberships() {
|
|
13
|
+
const q = (0, exports.SitePageService)(this, null);
|
|
14
|
+
q.concat(".GetCurrentUserMemberships");
|
|
15
|
+
return q();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports._SitePageService = _SitePageService;
|
|
19
|
+
exports.SitePageService = (0, spqueryable_js_1.spInvokableFactory)(_SitePageService);
|
|
20
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../packages/sp/publishing-sitepageservice/types.ts"],"names":[],"mappings":";;;AAAA,sDAA0F;AAE1F,MAAa,gBAAiB,SAAQ,4BAAW;IAC7C,YAAY,OAA8B,EAAE,IAAI,GAAG,oCAAoC;QACnF,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACzB,CAAC;IACD;;MAEE;IACK,yBAAyB;QAC5B,MAAM,CAAC,GAAG,IAAA,uBAAe,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtC,CAAC,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC;QACvC,OAAO,CAAC,EAAE,CAAC;IACf,CAAC;CACJ;AAZD,4CAYC;AAGY,QAAA,eAAe,GAAsD,IAAA,mCAAkB,EAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IRecycleBin } from "./types.js";
|
|
2
|
+
export { IRecycleBin, IRecycleBinItemObject as IRecycleBinItem, RecycleBin, } from "./types.js";
|
|
3
|
+
declare module "../webs/types" {
|
|
4
|
+
interface _Web {
|
|
5
|
+
readonly recycleBin: IRecycleBin;
|
|
6
|
+
}
|
|
7
|
+
interface IWeb {
|
|
8
|
+
/**
|
|
9
|
+
* Read the attachment files data for an item
|
|
10
|
+
*/
|
|
11
|
+
readonly recycleBin: IRecycleBin;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
declare module "../sites/types" {
|
|
15
|
+
interface _Site {
|
|
16
|
+
readonly recycleBin: IRecycleBin;
|
|
17
|
+
}
|
|
18
|
+
interface ISite {
|
|
19
|
+
/**
|
|
20
|
+
* Read the attachment files data for an item
|
|
21
|
+
*/
|
|
22
|
+
readonly recycleBin: IRecycleBin;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/sp/recycle-bin/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAc,WAAW,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,EACH,WAAW,EACX,qBAAqB,IAAI,eAAe,EACxC,UAAU,GACb,MAAM,YAAY,CAAC;AAEpB,OAAO,QAAQ,eAAe,CAAC;IAC3B,UAAU,IAAI;QACV,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;KACpC;IACD,UAAU,IAAI;QACV;;WAEG;QACH,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;KACpC;CACJ;AAGD,OAAO,QAAQ,gBAAgB,CAAC;IAC5B,UAAU,KAAK;QACX,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;KACpC;IACD,UAAU,KAAK;QACX;;WAEG;QACH,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;KACpC;CACJ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecycleBin = void 0;
|
|
4
|
+
const queryable_1 = require("@pnp/queryable");
|
|
5
|
+
const types_js_1 = require("../sites/types.js");
|
|
6
|
+
const types_js_2 = require("../webs/types.js");
|
|
7
|
+
const types_js_3 = require("./types.js");
|
|
8
|
+
var types_js_4 = require("./types.js");
|
|
9
|
+
Object.defineProperty(exports, "RecycleBin", { enumerable: true, get: function () { return types_js_4.RecycleBin; } });
|
|
10
|
+
(0, queryable_1.addProp)(types_js_2._Web, "recycleBin", types_js_3.RecycleBin);
|
|
11
|
+
(0, queryable_1.addProp)(types_js_1._Site, "recycleBin", types_js_3.RecycleBin);
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/sp/recycle-bin/index.ts"],"names":[],"mappings":";;;AAAA,8CAAyC;AACzC,gDAA0C;AAC1C,+CAAwC;AACxC,yCAAqD;AAErD,uCAIoB;AADhB,sGAAA,UAAU,OAAA;AAcd,IAAA,mBAAO,EAAC,eAAI,EAAE,YAAY,EAAE,qBAAU,CAAC,CAAC;AAaxC,IAAA,mBAAO,EAAC,gBAAK,EAAE,YAAY,EAAE,qBAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { _SPCollection, _SPInstance } from "../spqueryable.js";
|
|
2
|
+
/**
|
|
3
|
+
* Describes a recycle bin item
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export declare class _RecycleBinItem extends _SPInstance<IRecycleBinItemObject> {
|
|
7
|
+
/**
|
|
8
|
+
* Delete's the Recycle Bin item
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
delete(): Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Moves Recycle Bin item to the Second-stage Recycle Bin
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
moveToSecondStage(): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Restore the the Recycle Bin item
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
restore(): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
export interface IRecycleBinItem extends _RecycleBinItem {
|
|
24
|
+
}
|
|
25
|
+
export declare const RecycleBinItem: import("../spqueryable.js").ISPInvokableFactory<IRecycleBinItem>;
|
|
26
|
+
/**
|
|
27
|
+
* Describes a collection of recycle bin items
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export declare class _RecycleBin extends _SPCollection<IRecycleBinItemObject[]> {
|
|
31
|
+
/**
|
|
32
|
+
* Gets a Recycle Bin Item by id
|
|
33
|
+
*
|
|
34
|
+
* @param id The string id of the recycle bin item
|
|
35
|
+
*/
|
|
36
|
+
getById(id: string): IRecycleBinItem;
|
|
37
|
+
/**
|
|
38
|
+
* Delete's all items in the Recycle Bin
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
deleteAll(): Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
* Delete's all items in the Second-stage Recycle Bin
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
deleteAllSecondStageItems(): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Moves all items in the Recycle Bin to the Second-stage Recycle Bin
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
moveAllToSecondStage(): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Restore all items in the Recycle Bin
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
restoreAll(): Promise<void>;
|
|
57
|
+
}
|
|
58
|
+
export interface IRecycleBin extends _RecycleBin {
|
|
59
|
+
}
|
|
60
|
+
export declare const RecycleBin: import("../spqueryable.js").ISPInvokableFactory<IRecycleBin>;
|
|
61
|
+
export interface IRecycleBinItemObject {
|
|
62
|
+
AuthorEmail: string;
|
|
63
|
+
AuthorName: string;
|
|
64
|
+
DeletedByEmail: string;
|
|
65
|
+
DeletedByName: string;
|
|
66
|
+
DeletedDate: string;
|
|
67
|
+
DeletedDateLocalFormatted: string;
|
|
68
|
+
DirName: string;
|
|
69
|
+
DirNamePath: {
|
|
70
|
+
DecodedUrl: string;
|
|
71
|
+
};
|
|
72
|
+
Id: string;
|
|
73
|
+
ItemState: number;
|
|
74
|
+
ItemType: number;
|
|
75
|
+
LeafName: string;
|
|
76
|
+
LeafNamePath: {
|
|
77
|
+
DecodedUrl: string;
|
|
78
|
+
};
|
|
79
|
+
Size: number;
|
|
80
|
+
Title: string;
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/sp/recycle-bin/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EAGb,WAAW,EAEd,MAAM,mBAAmB,CAAC;AAG3B;;;GAGG;AACH,qBAAa,eAAgB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F,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecycleBin = exports._RecycleBin = exports.RecycleBinItem = exports._RecycleBinItem = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const spqueryable_js_1 = require("../spqueryable.js");
|
|
6
|
+
const decorators_js_1 = require("../decorators.js");
|
|
7
|
+
/**
|
|
8
|
+
* Describes a recycle bin item
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
class _RecycleBinItem extends spqueryable_js_1._SPInstance {
|
|
12
|
+
/**
|
|
13
|
+
* Delete's the Recycle Bin item
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
delete() {
|
|
17
|
+
return (0, spqueryable_js_1.spPost)((0, spqueryable_js_1.SPQueryable)(this, "DeleteObject"));
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Moves Recycle Bin item to the Second-stage Recycle Bin
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
moveToSecondStage() {
|
|
24
|
+
return (0, spqueryable_js_1.spPost)((0, spqueryable_js_1.SPQueryable)(this, "MoveToSecondStage"));
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Restore the the Recycle Bin item
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
restore() {
|
|
31
|
+
return (0, spqueryable_js_1.spPost)((0, spqueryable_js_1.SPQueryable)(this, "Restore"));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports._RecycleBinItem = _RecycleBinItem;
|
|
35
|
+
exports.RecycleBinItem = (0, spqueryable_js_1.spInvokableFactory)(_RecycleBinItem);
|
|
36
|
+
/**
|
|
37
|
+
* Describes a collection of recycle bin items
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
let _RecycleBin = class _RecycleBin extends spqueryable_js_1._SPCollection {
|
|
41
|
+
/**
|
|
42
|
+
* Gets a Recycle Bin Item by id
|
|
43
|
+
*
|
|
44
|
+
* @param id The string id of the recycle bin item
|
|
45
|
+
*/
|
|
46
|
+
getById(id) {
|
|
47
|
+
return (0, exports.RecycleBinItem)(this).concat(`('${id}')`);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Delete's all items in the Recycle Bin
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
deleteAll() {
|
|
54
|
+
return (0, spqueryable_js_1.spPost)((0, spqueryable_js_1.SPQueryable)(this, "DeleteAll"));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Delete's all items in the Second-stage Recycle Bin
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
deleteAllSecondStageItems() {
|
|
61
|
+
return (0, spqueryable_js_1.spPost)((0, spqueryable_js_1.SPQueryable)(this, "DeleteAllSecondStageItems"));
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Moves all items in the Recycle Bin to the Second-stage Recycle Bin
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
moveAllToSecondStage() {
|
|
68
|
+
return (0, spqueryable_js_1.spPost)((0, spqueryable_js_1.SPQueryable)(this, "MoveAllToSecondStage"));
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Restore all items in the Recycle Bin
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
restoreAll() {
|
|
75
|
+
return (0, spqueryable_js_1.spPost)((0, spqueryable_js_1.SPQueryable)(this, "RestoreAll"));
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
_RecycleBin = (0, tslib_1.__decorate)([
|
|
79
|
+
(0, decorators_js_1.defaultPath)("RecycleBin")
|
|
80
|
+
], _RecycleBin);
|
|
81
|
+
exports._RecycleBin = _RecycleBin;
|
|
82
|
+
exports.RecycleBin = (0, spqueryable_js_1.spInvokableFactory)(_RecycleBin);
|
|
83
|
+
//# sourceMappingURL=types.js.map
|