@pnp/sp 4.0.0-alpha0-v4nightly.20240108 → 4.0.0-alpha0-v4nightly.20240110
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,305 @@
|
|
|
1
|
+
import { _SPInstance, ISPQueryable, SPInit } from "../spqueryable.js";
|
|
2
|
+
export declare class _Social extends _SPInstance implements ISocial {
|
|
3
|
+
get my(): IMySocial;
|
|
4
|
+
getFollowedSitesUri(): Promise<string>;
|
|
5
|
+
getFollowedDocumentsUri(): Promise<string>;
|
|
6
|
+
follow(actorInfo: ISocialActorInfo): Promise<SocialFollowResult>;
|
|
7
|
+
isFollowed(actorInfo: ISocialActorInfo): Promise<boolean>;
|
|
8
|
+
stopFollowing(actorInfo: ISocialActorInfo): Promise<void>;
|
|
9
|
+
private createSocialActorInfoRequestBody;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Get a new Social instance for the particular Url
|
|
13
|
+
*/
|
|
14
|
+
export declare const Social: (baseUrl: SPInit) => ISocial;
|
|
15
|
+
/**
|
|
16
|
+
* Current user's Social instance
|
|
17
|
+
*/
|
|
18
|
+
export declare class _MySocial extends _SPInstance {
|
|
19
|
+
followed(types: SocialActorTypes): Promise<ISocialActor[]>;
|
|
20
|
+
followedCount(types: SocialActorTypes): Promise<number>;
|
|
21
|
+
followers(): Promise<ISocialActor[]>;
|
|
22
|
+
suggestions(): Promise<ISocialActor[]>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Invokable factory for IMySocial instances
|
|
26
|
+
*/
|
|
27
|
+
export declare const MySocial: (baseUrl: string | ISPQueryable, path?: string) => IMySocial;
|
|
28
|
+
/**
|
|
29
|
+
* Describes the public methods for the Social interface
|
|
30
|
+
*/
|
|
31
|
+
export interface ISocial {
|
|
32
|
+
/**
|
|
33
|
+
* Access to the curren't user's social data
|
|
34
|
+
*/
|
|
35
|
+
readonly my: IMySocial;
|
|
36
|
+
/**
|
|
37
|
+
* Get a list of followed sites for the current user.
|
|
38
|
+
*/
|
|
39
|
+
getFollowedSitesUri(): Promise<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Get a list of followed documents for the current user.
|
|
42
|
+
*/
|
|
43
|
+
getFollowedDocumentsUri(): Promise<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Follow an actor for the current user.
|
|
46
|
+
*
|
|
47
|
+
* @param actorInfo Provide the actor to follow.
|
|
48
|
+
*/
|
|
49
|
+
follow(actorInfo: ISocialActorInfo): Promise<SocialFollowResult>;
|
|
50
|
+
/**
|
|
51
|
+
* Check if the current user is following the actor.
|
|
52
|
+
*
|
|
53
|
+
* @param actorInfo Provide the actor to check.
|
|
54
|
+
*/
|
|
55
|
+
isFollowed(actorInfo: ISocialActorInfo): Promise<boolean>;
|
|
56
|
+
/**
|
|
57
|
+
* Stop following an actor for the current user.
|
|
58
|
+
*
|
|
59
|
+
* @param actorInfo Provide the actor to stop following.
|
|
60
|
+
*/
|
|
61
|
+
stopFollowing(actorInfo: ISocialActorInfo): Promise<void>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Defines the public methods exposed by the my endpoint
|
|
65
|
+
*/
|
|
66
|
+
export interface IMySocial {
|
|
67
|
+
/**
|
|
68
|
+
* Allow access to the v2 invokable
|
|
69
|
+
*/
|
|
70
|
+
(this: IMySocial): Promise<IMySocialData>;
|
|
71
|
+
/**
|
|
72
|
+
* Gets users, documents, sites, and tags that the current user is following.
|
|
73
|
+
*
|
|
74
|
+
* @param types Bitwise set of SocialActorTypes to retrieve
|
|
75
|
+
*/
|
|
76
|
+
followed(types: SocialActorTypes): Promise<ISocialActor[]>;
|
|
77
|
+
/**
|
|
78
|
+
* Gets the count of users, documents, sites, and tags that the current user is following.
|
|
79
|
+
*
|
|
80
|
+
* @param types Bitwise set of SocialActorTypes to retrieve
|
|
81
|
+
*/
|
|
82
|
+
followedCount(types: SocialActorTypes): Promise<number>;
|
|
83
|
+
/**
|
|
84
|
+
* Gets the users who are following the current user.
|
|
85
|
+
*/
|
|
86
|
+
followers(): Promise<ISocialActor[]>;
|
|
87
|
+
/**
|
|
88
|
+
* Gets users who the current user might want to follow.
|
|
89
|
+
*/
|
|
90
|
+
suggestions(): Promise<ISocialActor[]>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Social actor info
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
export interface ISocialActorInfo {
|
|
97
|
+
AccountName?: string;
|
|
98
|
+
ActorType: SocialActorType;
|
|
99
|
+
ContentUri?: string;
|
|
100
|
+
Id?: string;
|
|
101
|
+
TagGuid?: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Social actor type
|
|
105
|
+
*
|
|
106
|
+
*/
|
|
107
|
+
export declare const enum SocialActorType {
|
|
108
|
+
User = 0,
|
|
109
|
+
Document = 1,
|
|
110
|
+
Site = 2,
|
|
111
|
+
Tag = 3
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Social actor type
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
export declare const enum SocialActorTypes {
|
|
118
|
+
None = 0,
|
|
119
|
+
User = 1,
|
|
120
|
+
Document = 2,
|
|
121
|
+
Site = 4,
|
|
122
|
+
Tag = 8,
|
|
123
|
+
/**
|
|
124
|
+
* The set excludes documents and sites that do not have feeds.
|
|
125
|
+
*/
|
|
126
|
+
ExcludeContentWithoutFeeds = 268435456,
|
|
127
|
+
/**
|
|
128
|
+
* The set includes group sites
|
|
129
|
+
*/
|
|
130
|
+
IncludeGroupsSites = 536870912,
|
|
131
|
+
/**
|
|
132
|
+
* The set includes only items created within the last 24 hours
|
|
133
|
+
*/
|
|
134
|
+
WithinLast24Hours = 1073741824
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Result from following
|
|
138
|
+
*
|
|
139
|
+
*/
|
|
140
|
+
export declare const enum SocialFollowResult {
|
|
141
|
+
Ok = 0,
|
|
142
|
+
AlreadyFollowing = 1,
|
|
143
|
+
LimitReached = 2,
|
|
144
|
+
InternalError = 3
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Specifies an exception or status code.
|
|
148
|
+
*/
|
|
149
|
+
export declare const enum SocialStatusCode {
|
|
150
|
+
/**
|
|
151
|
+
* The operation completed successfully
|
|
152
|
+
*/
|
|
153
|
+
OK = 0,
|
|
154
|
+
/**
|
|
155
|
+
* The request is invalid.
|
|
156
|
+
*/
|
|
157
|
+
InvalidRequest = 1,
|
|
158
|
+
/**
|
|
159
|
+
* The current user is not authorized to perform the operation.
|
|
160
|
+
*/
|
|
161
|
+
AccessDenied = 2,
|
|
162
|
+
/**
|
|
163
|
+
* The target of the operation was not found.
|
|
164
|
+
*/
|
|
165
|
+
ItemNotFound = 3,
|
|
166
|
+
/**
|
|
167
|
+
* The operation is invalid for the target's current state.
|
|
168
|
+
*/
|
|
169
|
+
InvalidOperation = 4,
|
|
170
|
+
/**
|
|
171
|
+
* The operation completed without modifying the target.
|
|
172
|
+
*/
|
|
173
|
+
ItemNotModified = 5,
|
|
174
|
+
/**
|
|
175
|
+
* The operation failed because an internal error occurred.
|
|
176
|
+
*/
|
|
177
|
+
InternalError = 6,
|
|
178
|
+
/**
|
|
179
|
+
* The operation failed because the server could not access the distributed cache.
|
|
180
|
+
*/
|
|
181
|
+
CacheReadError = 7,
|
|
182
|
+
/**
|
|
183
|
+
* The operation succeeded but the server could not update the distributed cache.
|
|
184
|
+
*/
|
|
185
|
+
CacheUpdateError = 8,
|
|
186
|
+
/**
|
|
187
|
+
* No personal site exists for the current user, and no further information is available.
|
|
188
|
+
*/
|
|
189
|
+
PersonalSiteNotFound = 9,
|
|
190
|
+
/**
|
|
191
|
+
* No personal site exists for the current user, and a previous attempt to create one failed.
|
|
192
|
+
*/
|
|
193
|
+
FailedToCreatePersonalSite = 10,
|
|
194
|
+
/**
|
|
195
|
+
* No personal site exists for the current user, and a previous attempt to create one was not authorized.
|
|
196
|
+
*/
|
|
197
|
+
NotAuthorizedToCreatePersonalSite = 11,
|
|
198
|
+
/**
|
|
199
|
+
* No personal site exists for the current user, and no attempt should be made to create one.
|
|
200
|
+
*/
|
|
201
|
+
CannotCreatePersonalSite = 12,
|
|
202
|
+
/**
|
|
203
|
+
* The operation was rejected because an internal limit had been reached.
|
|
204
|
+
*/
|
|
205
|
+
LimitReached = 13,
|
|
206
|
+
/**
|
|
207
|
+
* The operation failed because an error occurred during the processing of the specified attachment.
|
|
208
|
+
*/
|
|
209
|
+
AttachmentError = 14,
|
|
210
|
+
/**
|
|
211
|
+
* The operation succeeded with recoverable errors; the returned data is incomplete.
|
|
212
|
+
*/
|
|
213
|
+
PartialData = 15,
|
|
214
|
+
/**
|
|
215
|
+
* A required SharePoint feature is not enabled.
|
|
216
|
+
*/
|
|
217
|
+
FeatureDisabled = 16,
|
|
218
|
+
/**
|
|
219
|
+
* The site's storage quota has been exceeded.
|
|
220
|
+
*/
|
|
221
|
+
StorageQuotaExceeded = 17,
|
|
222
|
+
/**
|
|
223
|
+
* The operation failed because the server could not access the database.
|
|
224
|
+
*/
|
|
225
|
+
DatabaseError = 18
|
|
226
|
+
}
|
|
227
|
+
export interface ISocialActor {
|
|
228
|
+
/**
|
|
229
|
+
* Gets the actor type.
|
|
230
|
+
*/
|
|
231
|
+
ActorType: SocialActorType;
|
|
232
|
+
/**
|
|
233
|
+
* Gets the actor's unique identifier.
|
|
234
|
+
*/
|
|
235
|
+
Id: string;
|
|
236
|
+
/**
|
|
237
|
+
* Gets the actor's canonical URI.
|
|
238
|
+
*/
|
|
239
|
+
Uri: string;
|
|
240
|
+
/**
|
|
241
|
+
* Gets the actor's display name.
|
|
242
|
+
*/
|
|
243
|
+
Name: string;
|
|
244
|
+
/**
|
|
245
|
+
* Returns true if the current user is following the actor, false otherwise.
|
|
246
|
+
*/
|
|
247
|
+
IsFollowed: boolean;
|
|
248
|
+
/**
|
|
249
|
+
* Gets a code that indicates recoverable errors that occurred during actor retrieval
|
|
250
|
+
*/
|
|
251
|
+
Status: SocialStatusCode;
|
|
252
|
+
/**
|
|
253
|
+
* Returns true if the Actor can potentially be followed, false otherwise.
|
|
254
|
+
*/
|
|
255
|
+
CanFollow: boolean;
|
|
256
|
+
/**
|
|
257
|
+
* Gets the actor's image URI. Only valid when ActorType is User, Document, or Site
|
|
258
|
+
*/
|
|
259
|
+
ImageUri: string;
|
|
260
|
+
/**
|
|
261
|
+
* Gets the actor's account name. Only valid when ActorType is User
|
|
262
|
+
*/
|
|
263
|
+
AccountName: string;
|
|
264
|
+
/**
|
|
265
|
+
* Gets the actor's email address. Only valid when ActorType is User
|
|
266
|
+
*/
|
|
267
|
+
EmailAddress: string;
|
|
268
|
+
/**
|
|
269
|
+
* Gets the actor's title. Only valid when ActorType is User
|
|
270
|
+
*/
|
|
271
|
+
Title: string;
|
|
272
|
+
/**
|
|
273
|
+
* Gets the text of the actor's most recent post. Only valid when ActorType is User
|
|
274
|
+
*/
|
|
275
|
+
StatusText: string;
|
|
276
|
+
/**
|
|
277
|
+
* Gets the URI of the actor's personal site. Only valid when ActorType is User
|
|
278
|
+
*/
|
|
279
|
+
PersonalSiteUri: string;
|
|
280
|
+
/**
|
|
281
|
+
* Gets the URI of the actor's followed content folder. Only valid when this represents the current user
|
|
282
|
+
*/
|
|
283
|
+
FollowedContentUri: string;
|
|
284
|
+
/**
|
|
285
|
+
* Gets the actor's content URI. Only valid when ActorType is Document, or Site
|
|
286
|
+
*/
|
|
287
|
+
ContentUri: string;
|
|
288
|
+
/**
|
|
289
|
+
* Gets the actor's library URI. Only valid when ActorType is Document
|
|
290
|
+
*/
|
|
291
|
+
LibraryUri: string;
|
|
292
|
+
/**
|
|
293
|
+
* Gets the actor's tag GUID. Only valid when ActorType is Tag
|
|
294
|
+
*/
|
|
295
|
+
TagGuid: string;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Defines the properties returned from the my endpoint
|
|
299
|
+
*/
|
|
300
|
+
export interface IMySocialData {
|
|
301
|
+
SocialActor: ISocialActor;
|
|
302
|
+
MyFollowedDocumentsUri: string;
|
|
303
|
+
MyFollowedSitesUri: string;
|
|
304
|
+
}
|
|
305
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/sp/social/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,YAAY,EACZ,MAAM,EAET,MAAM,mBAAmB,CAAC;AAK3B,qBACa,OAAQ,SAAQ,WAAY,YAAW,OAAO;IAEvD,IAAW,EAAE,IAAI,SAAS,CAEzB;IAEY,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC;IAKtC,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC;IAK1C,MAAM,CAAC,SAAS,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIhE,UAAU,CAAC,SAAS,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAIzD,aAAa,CAAC,SAAS,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAItE,OAAO,CAAC,gCAAgC;CAQ3C;AAED;;GAEG;AACH,eAAO,MAAM,MAAM,YAAa,MAAM,KAAG,OAA+B,CAAC;AAGz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Y,KAAA;IACZ;;KAEC;IACD,eAAe,KAAA;IACf;;KAEC;IACD,WAAW,KAAA;IACX;;KAEC;IACD,eAAe,KAAA;IACf;;KAEC;IACD,oBAAoB,KAAA;IACpB;;KAEC;IACD,aAAa,KAAA;CAChB;AAED,MAAM,WAAW,YAAY;IACzB;;KAEC;IACD,SAAS,EAAE,eAAe,CAAC;IAC3B;;KAEC;IACD,EAAE,EAAE,MAAM,CAAC;IACX;;KAEC;IACD,GAAG,EAAE,MAAM,CAAC;IACZ;;KAEC;IACD,IAAI,EAAE,MAAM,CAAC;IACb;;KAEC;IACD,UAAU,EAAE,OAAO,CAAC;IACpB;;KAEC;IACD,MAAM,EAAE,gBAAgB,CAAC;IACzB;;KAEC;IACD,SAAS,EAAE,OAAO,CAAC;IACnB;;KAEC;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB;;KAEC;IACD,WAAW,EAAE,MAAM,CAAC;IACpB;;KAEC;IACD,YAAY,EAAE,MAAM,CAAC;IACrB;;KAEC;IACD,KAAK,EAAE,MAAM,CAAC;IACd;;KAEC;IACD,UAAU,EAAE,MAAM,CAAC;IACnB;;KAEC;IACD,eAAe,EAAE,MAAM,CAAC;IACxB;;KAEC;IACD,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;KAEC;IACD,UAAU,EAAE,MAAM,CAAC;IACnB;;KAEC;IACD,UAAU,EAAE,MAAM,CAAC;IACnB;;KAEC;IACD,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,WAAW,EAAE,YAAY,CAAC;IAC1B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kBAAkB,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SocialStatusCode = exports.SocialFollowResult = exports.SocialActorTypes = exports.SocialActorType = exports.MySocial = exports._MySocial = exports.Social = exports._Social = 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
|
+
const core_1 = require("@pnp/core");
|
|
8
|
+
const queryable_1 = require("@pnp/queryable");
|
|
9
|
+
let _Social = class _Social extends spqueryable_js_1._SPInstance {
|
|
10
|
+
get my() {
|
|
11
|
+
return (0, exports.MySocial)(this);
|
|
12
|
+
}
|
|
13
|
+
async getFollowedSitesUri() {
|
|
14
|
+
const r = await SocialCloneFactory(this, "FollowedSitesUri")();
|
|
15
|
+
return r.FollowedSitesUri || r;
|
|
16
|
+
}
|
|
17
|
+
async getFollowedDocumentsUri() {
|
|
18
|
+
const r = await SocialCloneFactory(this, "FollowedDocumentsUri")();
|
|
19
|
+
return r.FollowedDocumentsUri || r;
|
|
20
|
+
}
|
|
21
|
+
async follow(actorInfo) {
|
|
22
|
+
return (0, spqueryable_js_1.spPost)(SocialCloneFactory(this, "follow"), this.createSocialActorInfoRequestBody(actorInfo));
|
|
23
|
+
}
|
|
24
|
+
async isFollowed(actorInfo) {
|
|
25
|
+
return (0, spqueryable_js_1.spPost)(SocialCloneFactory(this, "isfollowed"), this.createSocialActorInfoRequestBody(actorInfo));
|
|
26
|
+
}
|
|
27
|
+
async stopFollowing(actorInfo) {
|
|
28
|
+
return (0, spqueryable_js_1.spPost)(SocialCloneFactory(this, "stopfollowing"), this.createSocialActorInfoRequestBody(actorInfo));
|
|
29
|
+
}
|
|
30
|
+
createSocialActorInfoRequestBody(actorInfo) {
|
|
31
|
+
return (0, queryable_1.body)({
|
|
32
|
+
"actor": {
|
|
33
|
+
Id: null,
|
|
34
|
+
...actorInfo,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
_Social = (0, tslib_1.__decorate)([
|
|
40
|
+
(0, decorators_js_1.defaultPath)("_api/social.following")
|
|
41
|
+
], _Social);
|
|
42
|
+
exports._Social = _Social;
|
|
43
|
+
/**
|
|
44
|
+
* Get a new Social instance for the particular Url
|
|
45
|
+
*/
|
|
46
|
+
const Social = (baseUrl) => new _Social(baseUrl);
|
|
47
|
+
exports.Social = Social;
|
|
48
|
+
const SocialCloneFactory = (baseUrl, paths) => new _Social(baseUrl, paths);
|
|
49
|
+
/**
|
|
50
|
+
* Current user's Social instance
|
|
51
|
+
*/
|
|
52
|
+
let _MySocial = class _MySocial extends spqueryable_js_1._SPInstance {
|
|
53
|
+
async followed(types) {
|
|
54
|
+
const r = await MySocialCloneFactory(this, `followed(types=${types})`)();
|
|
55
|
+
return (0, core_1.hOP)(r, "Followed") ? r.Followed.results : r;
|
|
56
|
+
}
|
|
57
|
+
async followedCount(types) {
|
|
58
|
+
const r = await MySocialCloneFactory(this, `followedcount(types=${types})`)();
|
|
59
|
+
return r.FollowedCount || r;
|
|
60
|
+
}
|
|
61
|
+
async followers() {
|
|
62
|
+
const r = await MySocialCloneFactory(this, "followers")();
|
|
63
|
+
return (0, core_1.hOP)(r, "Followers") ? r.Followers.results : r;
|
|
64
|
+
}
|
|
65
|
+
async suggestions() {
|
|
66
|
+
const r = await MySocialCloneFactory(this, "suggestions")();
|
|
67
|
+
return (0, core_1.hOP)(r, "Suggestions") ? r.Suggestions.results : r;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
_MySocial = (0, tslib_1.__decorate)([
|
|
71
|
+
(0, decorators_js_1.defaultPath)("my")
|
|
72
|
+
], _MySocial);
|
|
73
|
+
exports._MySocial = _MySocial;
|
|
74
|
+
/**
|
|
75
|
+
* Invokable factory for IMySocial instances
|
|
76
|
+
*/
|
|
77
|
+
const MySocial = (baseUrl, path) => new _MySocial(baseUrl, path);
|
|
78
|
+
exports.MySocial = MySocial;
|
|
79
|
+
const MySocialCloneFactory = (baseUrl, path) => new _MySocial(baseUrl, path);
|
|
80
|
+
/**
|
|
81
|
+
* Social actor type
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
var SocialActorType;
|
|
85
|
+
(function (SocialActorType) {
|
|
86
|
+
SocialActorType[SocialActorType["User"] = 0] = "User";
|
|
87
|
+
SocialActorType[SocialActorType["Document"] = 1] = "Document";
|
|
88
|
+
SocialActorType[SocialActorType["Site"] = 2] = "Site";
|
|
89
|
+
SocialActorType[SocialActorType["Tag"] = 3] = "Tag";
|
|
90
|
+
})(SocialActorType = exports.SocialActorType || (exports.SocialActorType = {}));
|
|
91
|
+
/**
|
|
92
|
+
* Social actor type
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
/* eslint-disable no-bitwise */
|
|
96
|
+
var SocialActorTypes;
|
|
97
|
+
(function (SocialActorTypes) {
|
|
98
|
+
SocialActorTypes[SocialActorTypes["None"] = 0] = "None";
|
|
99
|
+
SocialActorTypes[SocialActorTypes["User"] = 1] = "User";
|
|
100
|
+
SocialActorTypes[SocialActorTypes["Document"] = 2] = "Document";
|
|
101
|
+
SocialActorTypes[SocialActorTypes["Site"] = 4] = "Site";
|
|
102
|
+
SocialActorTypes[SocialActorTypes["Tag"] = 8] = "Tag";
|
|
103
|
+
/**
|
|
104
|
+
* The set excludes documents and sites that do not have feeds.
|
|
105
|
+
*/
|
|
106
|
+
SocialActorTypes[SocialActorTypes["ExcludeContentWithoutFeeds"] = 268435456] = "ExcludeContentWithoutFeeds";
|
|
107
|
+
/**
|
|
108
|
+
* The set includes group sites
|
|
109
|
+
*/
|
|
110
|
+
SocialActorTypes[SocialActorTypes["IncludeGroupsSites"] = 536870912] = "IncludeGroupsSites";
|
|
111
|
+
/**
|
|
112
|
+
* The set includes only items created within the last 24 hours
|
|
113
|
+
*/
|
|
114
|
+
SocialActorTypes[SocialActorTypes["WithinLast24Hours"] = 1073741824] = "WithinLast24Hours";
|
|
115
|
+
})(SocialActorTypes = exports.SocialActorTypes || (exports.SocialActorTypes = {}));
|
|
116
|
+
/* eslint-enable no-bitwise */
|
|
117
|
+
/**
|
|
118
|
+
* Result from following
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
121
|
+
var SocialFollowResult;
|
|
122
|
+
(function (SocialFollowResult) {
|
|
123
|
+
SocialFollowResult[SocialFollowResult["Ok"] = 0] = "Ok";
|
|
124
|
+
SocialFollowResult[SocialFollowResult["AlreadyFollowing"] = 1] = "AlreadyFollowing";
|
|
125
|
+
SocialFollowResult[SocialFollowResult["LimitReached"] = 2] = "LimitReached";
|
|
126
|
+
SocialFollowResult[SocialFollowResult["InternalError"] = 3] = "InternalError";
|
|
127
|
+
})(SocialFollowResult = exports.SocialFollowResult || (exports.SocialFollowResult = {}));
|
|
128
|
+
/**
|
|
129
|
+
* Specifies an exception or status code.
|
|
130
|
+
*/
|
|
131
|
+
var SocialStatusCode;
|
|
132
|
+
(function (SocialStatusCode) {
|
|
133
|
+
/**
|
|
134
|
+
* The operation completed successfully
|
|
135
|
+
*/
|
|
136
|
+
SocialStatusCode[SocialStatusCode["OK"] = 0] = "OK";
|
|
137
|
+
/**
|
|
138
|
+
* The request is invalid.
|
|
139
|
+
*/
|
|
140
|
+
SocialStatusCode[SocialStatusCode["InvalidRequest"] = 1] = "InvalidRequest";
|
|
141
|
+
/**
|
|
142
|
+
* The current user is not authorized to perform the operation.
|
|
143
|
+
*/
|
|
144
|
+
SocialStatusCode[SocialStatusCode["AccessDenied"] = 2] = "AccessDenied";
|
|
145
|
+
/**
|
|
146
|
+
* The target of the operation was not found.
|
|
147
|
+
*/
|
|
148
|
+
SocialStatusCode[SocialStatusCode["ItemNotFound"] = 3] = "ItemNotFound";
|
|
149
|
+
/**
|
|
150
|
+
* The operation is invalid for the target's current state.
|
|
151
|
+
*/
|
|
152
|
+
SocialStatusCode[SocialStatusCode["InvalidOperation"] = 4] = "InvalidOperation";
|
|
153
|
+
/**
|
|
154
|
+
* The operation completed without modifying the target.
|
|
155
|
+
*/
|
|
156
|
+
SocialStatusCode[SocialStatusCode["ItemNotModified"] = 5] = "ItemNotModified";
|
|
157
|
+
/**
|
|
158
|
+
* The operation failed because an internal error occurred.
|
|
159
|
+
*/
|
|
160
|
+
SocialStatusCode[SocialStatusCode["InternalError"] = 6] = "InternalError";
|
|
161
|
+
/**
|
|
162
|
+
* The operation failed because the server could not access the distributed cache.
|
|
163
|
+
*/
|
|
164
|
+
SocialStatusCode[SocialStatusCode["CacheReadError"] = 7] = "CacheReadError";
|
|
165
|
+
/**
|
|
166
|
+
* The operation succeeded but the server could not update the distributed cache.
|
|
167
|
+
*/
|
|
168
|
+
SocialStatusCode[SocialStatusCode["CacheUpdateError"] = 8] = "CacheUpdateError";
|
|
169
|
+
/**
|
|
170
|
+
* No personal site exists for the current user, and no further information is available.
|
|
171
|
+
*/
|
|
172
|
+
SocialStatusCode[SocialStatusCode["PersonalSiteNotFound"] = 9] = "PersonalSiteNotFound";
|
|
173
|
+
/**
|
|
174
|
+
* No personal site exists for the current user, and a previous attempt to create one failed.
|
|
175
|
+
*/
|
|
176
|
+
SocialStatusCode[SocialStatusCode["FailedToCreatePersonalSite"] = 10] = "FailedToCreatePersonalSite";
|
|
177
|
+
/**
|
|
178
|
+
* No personal site exists for the current user, and a previous attempt to create one was not authorized.
|
|
179
|
+
*/
|
|
180
|
+
SocialStatusCode[SocialStatusCode["NotAuthorizedToCreatePersonalSite"] = 11] = "NotAuthorizedToCreatePersonalSite";
|
|
181
|
+
/**
|
|
182
|
+
* No personal site exists for the current user, and no attempt should be made to create one.
|
|
183
|
+
*/
|
|
184
|
+
SocialStatusCode[SocialStatusCode["CannotCreatePersonalSite"] = 12] = "CannotCreatePersonalSite";
|
|
185
|
+
/**
|
|
186
|
+
* The operation was rejected because an internal limit had been reached.
|
|
187
|
+
*/
|
|
188
|
+
SocialStatusCode[SocialStatusCode["LimitReached"] = 13] = "LimitReached";
|
|
189
|
+
/**
|
|
190
|
+
* The operation failed because an error occurred during the processing of the specified attachment.
|
|
191
|
+
*/
|
|
192
|
+
SocialStatusCode[SocialStatusCode["AttachmentError"] = 14] = "AttachmentError";
|
|
193
|
+
/**
|
|
194
|
+
* The operation succeeded with recoverable errors; the returned data is incomplete.
|
|
195
|
+
*/
|
|
196
|
+
SocialStatusCode[SocialStatusCode["PartialData"] = 15] = "PartialData";
|
|
197
|
+
/**
|
|
198
|
+
* A required SharePoint feature is not enabled.
|
|
199
|
+
*/
|
|
200
|
+
SocialStatusCode[SocialStatusCode["FeatureDisabled"] = 16] = "FeatureDisabled";
|
|
201
|
+
/**
|
|
202
|
+
* The site's storage quota has been exceeded.
|
|
203
|
+
*/
|
|
204
|
+
SocialStatusCode[SocialStatusCode["StorageQuotaExceeded"] = 17] = "StorageQuotaExceeded";
|
|
205
|
+
/**
|
|
206
|
+
* The operation failed because the server could not access the database.
|
|
207
|
+
*/
|
|
208
|
+
SocialStatusCode[SocialStatusCode["DatabaseError"] = 18] = "DatabaseError";
|
|
209
|
+
})(SocialStatusCode = exports.SocialStatusCode || (exports.SocialStatusCode = {}));
|
|
210
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../packages/sp/social/types.ts"],"names":[],"mappings":";;;;AAAA,sDAK2B;AAC3B,oDAA+C;AAC/C,oCAAgC;AAChC,8CAAsC;AAGtC,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,4BAAW;IAEpC,IAAW,EAAE;QACT,OAAO,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAEM,KAAK,CAAC,mBAAmB;QAC5B,MAAM,CAAC,GAAG,MAAM,kBAAkB,CAAC,IAAI,EAAE,kBAAkB,CAAC,EAAE,CAAC;QAC/D,OAAO,CAAC,CAAC,gBAAgB,IAAI,CAAC,CAAC;IACnC,CAAC;IAEM,KAAK,CAAC,uBAAuB;QAChC,MAAM,CAAC,GAAG,MAAM,kBAAkB,CAAC,IAAI,EAAE,sBAAsB,CAAC,EAAE,CAAC;QACnE,OAAO,CAAC,CAAC,oBAAoB,IAAI,CAAC,CAAC;IAC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,CAAA;IACZ;;KAEC;IACD,8EAAe,CAAA;IACf;;KAEC;IACD,sEAAW,CAAA;IACX;;KAEC;IACD,8EAAe,CAAA;IACf;;KAEC;IACD,wFAAoB,CAAA;IACpB;;KAEC;IACD,0EAAa,CAAA;AACjB,CAAC,EA7EiB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QA6EjC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { IInvokable, Queryable } from "@pnp/queryable";
|
|
2
|
+
export declare type SPInit = string | ISPQueryable | [ISPQueryable, string];
|
|
3
|
+
export interface ISPConstructor<T extends ISPQueryable = ISPQueryable> {
|
|
4
|
+
new (base: SPInit, path?: string): T;
|
|
5
|
+
}
|
|
6
|
+
export declare type ISPInvokableFactory<R extends ISPQueryable> = (base: SPInit, path?: string) => R & IInvokable;
|
|
7
|
+
export declare const spInvokableFactory: <R extends ISPQueryable<any>>(f: any) => ISPInvokableFactory<R>;
|
|
8
|
+
/**
|
|
9
|
+
* SharePointQueryable Base Class
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export declare class _SPQueryable<GetType = any> extends Queryable<GetType> {
|
|
13
|
+
protected parentUrl: string;
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new instance of the SharePointQueryable class
|
|
16
|
+
*
|
|
17
|
+
* @constructor
|
|
18
|
+
* @param base A string or SharePointQueryable that should form the base part of the url
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
constructor(base: SPInit, path?: string);
|
|
22
|
+
/**
|
|
23
|
+
* Gets the full url with query information
|
|
24
|
+
*/
|
|
25
|
+
toRequestUrl(): string;
|
|
26
|
+
/**
|
|
27
|
+
* Choose which fields to return
|
|
28
|
+
*
|
|
29
|
+
* @param selects One or more fields to return
|
|
30
|
+
*/
|
|
31
|
+
select(...selects: string[]): this;
|
|
32
|
+
/**
|
|
33
|
+
* Expands fields such as lookups to get additional data
|
|
34
|
+
*
|
|
35
|
+
* @param expands The Fields for which to expand the values
|
|
36
|
+
*/
|
|
37
|
+
expand(...expands: string[]): this;
|
|
38
|
+
/**
|
|
39
|
+
* Gets a parent for this instance as specified
|
|
40
|
+
*
|
|
41
|
+
* @param factory The contructor for the class to create
|
|
42
|
+
*/
|
|
43
|
+
protected getParent<T extends ISPQueryable>(factory: ISPInvokableFactory<any>, path?: string, base?: string): T;
|
|
44
|
+
}
|
|
45
|
+
export interface ISPQueryable<GetType = any> extends _SPQueryable<GetType> {
|
|
46
|
+
}
|
|
47
|
+
export declare const SPQueryable: ISPInvokableFactory<ISPQueryable<any>>;
|
|
48
|
+
/**
|
|
49
|
+
* Represents a REST collection which can be filtered, paged, and selected
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
export declare class _SPCollection<GetType = any[]> extends _SPQueryable<GetType> {
|
|
53
|
+
/**
|
|
54
|
+
* Filters the returned collection (https://msdn.microsoft.com/en-us/library/office/fp142385.aspx#bk_supported)
|
|
55
|
+
*
|
|
56
|
+
* @param filter The string representing the filter query
|
|
57
|
+
*/
|
|
58
|
+
filter(filter: string): this;
|
|
59
|
+
/**
|
|
60
|
+
* Orders based on the supplied fields
|
|
61
|
+
*
|
|
62
|
+
* @param orderby The name of the field on which to sort
|
|
63
|
+
* @param ascending If false DESC is appended, otherwise ASC (default)
|
|
64
|
+
*/
|
|
65
|
+
orderBy(orderBy: string, ascending?: boolean): this;
|
|
66
|
+
/**
|
|
67
|
+
* Skips the specified number of items
|
|
68
|
+
*
|
|
69
|
+
* @param skip The number of items to skip
|
|
70
|
+
*/
|
|
71
|
+
skip(skip: number): this;
|
|
72
|
+
/**
|
|
73
|
+
* Limits the query to only return the specified number of items
|
|
74
|
+
*
|
|
75
|
+
* @param top The query row limit
|
|
76
|
+
*/
|
|
77
|
+
top(top: number): this;
|
|
78
|
+
}
|
|
79
|
+
export interface ISPCollection<GetType = any[]> extends _SPCollection<GetType> {
|
|
80
|
+
}
|
|
81
|
+
export declare const SPCollection: ISPInvokableFactory<ISPCollection<any[]>>;
|
|
82
|
+
/**
|
|
83
|
+
* Represents an instance that can be selected
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
86
|
+
export declare class _SPInstance<GetType = any> extends _SPQueryable<GetType> {
|
|
87
|
+
}
|
|
88
|
+
export interface ISPInstance<GetType = any> extends _SPInstance<GetType> {
|
|
89
|
+
}
|
|
90
|
+
export declare const SPInstance: ISPInvokableFactory<ISPInstance<any>>;
|
|
91
|
+
/**
|
|
92
|
+
* Adds the a delete method to the tagged class taking no parameters and calling spPostDelete
|
|
93
|
+
*/
|
|
94
|
+
export declare function deleteable(): (this: ISPQueryable) => Promise<void>;
|
|
95
|
+
export interface IDeleteable {
|
|
96
|
+
/**
|
|
97
|
+
* Delete this instance
|
|
98
|
+
*/
|
|
99
|
+
delete(): Promise<void>;
|
|
100
|
+
}
|
|
101
|
+
export declare function deleteableWithETag(): (this: ISPQueryable, eTag?: string) => Promise<void>;
|
|
102
|
+
export interface IDeleteableWithETag {
|
|
103
|
+
/**
|
|
104
|
+
* Delete this instance
|
|
105
|
+
*
|
|
106
|
+
* @param eTag Value used in the IF-Match header, by default "*"
|
|
107
|
+
*/
|
|
108
|
+
delete(eTag?: string): Promise<void>;
|
|
109
|
+
}
|
|
110
|
+
export declare const spGet: <T = any>(o: ISPQueryable<any>, init?: RequestInit) => Promise<T>;
|
|
111
|
+
export declare const spPost: <T = any>(o: ISPQueryable<any>, init?: RequestInit) => Promise<T>;
|
|
112
|
+
export declare const spPostMerge: <T = any>(o: ISPQueryable<any>, init?: RequestInit) => Promise<T>;
|
|
113
|
+
export declare const spPostDelete: <T = any>(o: ISPQueryable<any>, init?: RequestInit) => Promise<T>;
|
|
114
|
+
export declare const spPostDeleteETag: <T = any>(o: ISPQueryable<any>, init?: RequestInit, eTag?: string) => Promise<T>;
|
|
115
|
+
export declare const spDelete: <T = any>(o: ISPQueryable<any>, init?: RequestInit) => Promise<T>;
|
|
116
|
+
export declare const spPatch: <T = any>(o: ISPQueryable<any>, init?: RequestInit) => Promise<T>;
|
|
117
|
+
//# sourceMappingURL=spqueryable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spqueryable.d.ts","sourceRoot":"","sources":["../../../../packages/sp/spqueryable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,SAAS,EAA+C,MAAM,gBAAgB,CAAC;AAEpG,oBAAY,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AAEpE,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY;IACjE,KAAI,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;CACvC;AAED,oBAAY,mBAAmB,CAAC,CAAC,SAAS,YAAY,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,CAAC,GAAG,UAAU,CAAC;AAE1G,eAAO,MAAM,kBAAkB,mCAA+B,GAAG,2BAEhE,CAAC;AAEF;;;GAGG;AACH,qBAAa,YAAY,CAAC,OAAO,GAAG,GAAG,CAAE,SAAQ,SAAS,CAAC,OAAO,CAAC;IAE/D,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAE5B;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;IA6CvC;;OAEG;IACI,YAAY,IAAI,MAAM;IAyB7B;;;;OAIG;IACI,MAAM,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI;IAOzC;;;;OAIG;IACI,MAAM,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI;IAOzC;;;;OAIG;IACH,SAAS,CAAC,SAAS,CAAC,CAAC,SAAS,YAAY,EACtC,OAAO,EAAE,mBAAmB,CAAC,GAAG,CAAC,EACjC,IAAI,CAAC,EAAE,MAAM,EACb,IAAI,GAAE,MAAuB,GAAG,CAAC;CA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