@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,184 @@
|
|
|
1
|
+
import { ISPQueryable, _SPQueryable } from "../spqueryable.js";
|
|
2
|
+
export declare class _SiteScripts extends _SPQueryable {
|
|
3
|
+
constructor(base: string | ISPQueryable, methodName?: string);
|
|
4
|
+
run<T>(props: any): Promise<T>;
|
|
5
|
+
/**
|
|
6
|
+
* Gets a list of information on all existing site scripts.
|
|
7
|
+
*/
|
|
8
|
+
getSiteScripts(): Promise<ISiteScriptInfo[]>;
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new site script.
|
|
11
|
+
*
|
|
12
|
+
* @param title The display name of the site script.
|
|
13
|
+
* @param content JSON value that describes the script. For more information, see JSON reference.
|
|
14
|
+
*/
|
|
15
|
+
createSiteScript(title: string, description: string, content: any): Promise<ISiteScriptInfo>;
|
|
16
|
+
/**
|
|
17
|
+
* Gets information about a specific site script. It also returns the JSON of the script.
|
|
18
|
+
*
|
|
19
|
+
* @param id The ID of the site script to get information about.
|
|
20
|
+
*/
|
|
21
|
+
getSiteScriptMetadata(id: string): Promise<ISiteScriptInfo>;
|
|
22
|
+
/**
|
|
23
|
+
* Deletes a site script.
|
|
24
|
+
*
|
|
25
|
+
* @param id The ID of the site script to delete.
|
|
26
|
+
*/
|
|
27
|
+
deleteSiteScript(id: string): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Updates a site script with new values. In the REST call, all parameters are optional except the site script Id.
|
|
30
|
+
*
|
|
31
|
+
* @param siteScriptUpdateInfo Object that contains the information to update a site script.
|
|
32
|
+
* Make sure you stringify the content object or pass it in the second 'content' parameter
|
|
33
|
+
* @param content (Optional) A new JSON script defining the script actions. For more information, see Site design JSON schema.
|
|
34
|
+
*/
|
|
35
|
+
updateSiteScript(updateInfo: ISiteScriptUpdateInfo, content?: any): Promise<ISiteScriptInfo>;
|
|
36
|
+
/**
|
|
37
|
+
* Gets the site script syntax (JSON) for a specific list
|
|
38
|
+
* @param listUrl The absolute url of the list to retrieve site script
|
|
39
|
+
*/
|
|
40
|
+
getSiteScriptFromList(listUrl: string): Promise<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Gets the site script syntax (JSON) for a specific web
|
|
43
|
+
* @param webUrl The absolute url of the web to retrieve site script
|
|
44
|
+
* @param extractInfo configuration object to specify what to extract
|
|
45
|
+
*/
|
|
46
|
+
getSiteScriptFromWeb(webUrl: string, info: ISiteScriptSerializationInfo): Promise<ISiteScriptSerializationResult>;
|
|
47
|
+
/**
|
|
48
|
+
* Executes the indicated site design action on the indicated web.
|
|
49
|
+
*
|
|
50
|
+
* @param webUrl The absolute url of the web to retrieve site script
|
|
51
|
+
* @param extractInfo configuration object to specify what to extract
|
|
52
|
+
*/
|
|
53
|
+
executeSiteScriptAction(actionDefinition: string): Promise<ISiteScriptActionResult>;
|
|
54
|
+
}
|
|
55
|
+
export interface ISiteScripts extends _SiteScripts {
|
|
56
|
+
}
|
|
57
|
+
export declare const SiteScripts: (baseUrl: string | ISPQueryable, methodName?: string) => ISiteScripts;
|
|
58
|
+
/**
|
|
59
|
+
* Result from creating or retrieving a site script
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
export interface ISiteScriptInfo {
|
|
63
|
+
/**
|
|
64
|
+
* The ID of the site script to apply
|
|
65
|
+
*/
|
|
66
|
+
Id: string;
|
|
67
|
+
/**
|
|
68
|
+
* The display name of the site script
|
|
69
|
+
*/
|
|
70
|
+
Title: string;
|
|
71
|
+
/**
|
|
72
|
+
* The description for the site script
|
|
73
|
+
*/
|
|
74
|
+
Description: string;
|
|
75
|
+
/**
|
|
76
|
+
* The JSON data/definition for the site script
|
|
77
|
+
*/
|
|
78
|
+
Content: string;
|
|
79
|
+
/**
|
|
80
|
+
* The version number of the site script
|
|
81
|
+
*/
|
|
82
|
+
Version: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Data for updating a site script
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
export interface ISiteScriptUpdateInfo {
|
|
89
|
+
/**
|
|
90
|
+
* The ID of the site script to update
|
|
91
|
+
*/
|
|
92
|
+
Id: string;
|
|
93
|
+
/**
|
|
94
|
+
* (Optional) The new display name for the updated site script
|
|
95
|
+
*/
|
|
96
|
+
Title?: string;
|
|
97
|
+
/**
|
|
98
|
+
* (Optional) The new description for the updated site script
|
|
99
|
+
*/
|
|
100
|
+
Description?: string;
|
|
101
|
+
/**
|
|
102
|
+
* (Optional) The new JSON data/definition for the updated site script
|
|
103
|
+
*/
|
|
104
|
+
Content?: string;
|
|
105
|
+
/**
|
|
106
|
+
* (Optional) The new version for the updated site script
|
|
107
|
+
*/
|
|
108
|
+
Version?: string;
|
|
109
|
+
}
|
|
110
|
+
export interface ISiteScriptSerializationInfo {
|
|
111
|
+
/**
|
|
112
|
+
* (Optional) Include branding
|
|
113
|
+
*/
|
|
114
|
+
IncludeBranding?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* (Optional) Lists to include e.g. ["Lists/MyList"]
|
|
117
|
+
*/
|
|
118
|
+
IncludedLists?: string[];
|
|
119
|
+
/**
|
|
120
|
+
* (Optional) Include links to exported items
|
|
121
|
+
*/
|
|
122
|
+
IncludeLinksToExportedItems?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* (Optional) Include regional settings
|
|
125
|
+
*/
|
|
126
|
+
IncludeRegionalSettings?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* (Optional) Include site external sharing capability
|
|
129
|
+
*/
|
|
130
|
+
IncludeSiteExternalSharingCapability?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* (Optional) Include theme
|
|
133
|
+
*/
|
|
134
|
+
IncludeTheme?: boolean;
|
|
135
|
+
}
|
|
136
|
+
export interface ISiteScriptSerializationResult {
|
|
137
|
+
/**
|
|
138
|
+
* The site script in JSON format
|
|
139
|
+
*/
|
|
140
|
+
JSON: string;
|
|
141
|
+
/**
|
|
142
|
+
* A collection of warnings
|
|
143
|
+
*/
|
|
144
|
+
Warnings: string[];
|
|
145
|
+
}
|
|
146
|
+
export interface ISiteScriptActionResult {
|
|
147
|
+
/**
|
|
148
|
+
* The title of the action.
|
|
149
|
+
*/
|
|
150
|
+
Title: string;
|
|
151
|
+
/**
|
|
152
|
+
* Text associated with the outcome of the action. If this is present, it is usually an error message.
|
|
153
|
+
*/
|
|
154
|
+
OutcomeText: string;
|
|
155
|
+
/**
|
|
156
|
+
* Indicates the outcome of the action.
|
|
157
|
+
*/
|
|
158
|
+
Outcome: SiteScriptActionOutcome;
|
|
159
|
+
/**
|
|
160
|
+
* Indicates the target of the action.
|
|
161
|
+
*/
|
|
162
|
+
Target: string;
|
|
163
|
+
}
|
|
164
|
+
export declare enum SiteScriptActionOutcome {
|
|
165
|
+
/**
|
|
166
|
+
* The stage was deemed to have completed successfully.
|
|
167
|
+
*/
|
|
168
|
+
Success = 0,
|
|
169
|
+
/**
|
|
170
|
+
* The stage was deemed to have failed to complete successfully (non-blocking, rest of recipe
|
|
171
|
+
* execution should still be able to proceed).
|
|
172
|
+
*/
|
|
173
|
+
Failure = 1,
|
|
174
|
+
/**
|
|
175
|
+
* No action was taken for this stage / this stage was skipped.
|
|
176
|
+
*/
|
|
177
|
+
NoOp = 2,
|
|
178
|
+
/**
|
|
179
|
+
* There was an exception but the operation succeeded. This is analagous to the operation completing
|
|
180
|
+
* in a "yellow" state.
|
|
181
|
+
*/
|
|
182
|
+
SucceededWithException = 3
|
|
183
|
+
}
|
|
184
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/sp/site-scripts/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SiteScriptActionOutcome = exports.SiteScripts = exports._SiteScripts = void 0;
|
|
4
|
+
const queryable_1 = require("@pnp/queryable");
|
|
5
|
+
const spqueryable_js_1 = require("../spqueryable.js");
|
|
6
|
+
const extract_web_url_js_1 = require("../utils/extract-web-url.js");
|
|
7
|
+
const core_1 = require("@pnp/core");
|
|
8
|
+
const encode_path_str_js_1 = require("../utils/encode-path-str.js");
|
|
9
|
+
class _SiteScripts extends spqueryable_js_1._SPQueryable {
|
|
10
|
+
constructor(base, methodName = "") {
|
|
11
|
+
super(base);
|
|
12
|
+
this._url = (0, core_1.combine)((0, extract_web_url_js_1.extractWebUrl)(this._url), `_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.${methodName}`);
|
|
13
|
+
}
|
|
14
|
+
run(props) {
|
|
15
|
+
return (0, spqueryable_js_1.spPost)(this, (0, queryable_1.body)(props));
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Gets a list of information on all existing site scripts.
|
|
19
|
+
*/
|
|
20
|
+
getSiteScripts() {
|
|
21
|
+
return SiteScriptsCloneFactory(this, "GetSiteScripts").run({});
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new site script.
|
|
25
|
+
*
|
|
26
|
+
* @param title The display name of the site script.
|
|
27
|
+
* @param content JSON value that describes the script. For more information, see JSON reference.
|
|
28
|
+
*/
|
|
29
|
+
createSiteScript(title, description, content) {
|
|
30
|
+
return SiteScriptsCloneFactory(this, `CreateSiteScript(Title=@title,Description=@desc)?@title='${(0, encode_path_str_js_1.encodePath)(title)}'&@desc='${(0, encode_path_str_js_1.encodePath)(description)}'`)
|
|
31
|
+
.run(content);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Gets information about a specific site script. It also returns the JSON of the script.
|
|
35
|
+
*
|
|
36
|
+
* @param id The ID of the site script to get information about.
|
|
37
|
+
*/
|
|
38
|
+
getSiteScriptMetadata(id) {
|
|
39
|
+
return SiteScriptsCloneFactory(this, "GetSiteScriptMetadata").run({ id });
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Deletes a site script.
|
|
43
|
+
*
|
|
44
|
+
* @param id The ID of the site script to delete.
|
|
45
|
+
*/
|
|
46
|
+
deleteSiteScript(id) {
|
|
47
|
+
return SiteScriptsCloneFactory(this, "DeleteSiteScript").run({ id });
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Updates a site script with new values. In the REST call, all parameters are optional except the site script Id.
|
|
51
|
+
*
|
|
52
|
+
* @param siteScriptUpdateInfo Object that contains the information to update a site script.
|
|
53
|
+
* Make sure you stringify the content object or pass it in the second 'content' parameter
|
|
54
|
+
* @param content (Optional) A new JSON script defining the script actions. For more information, see Site design JSON schema.
|
|
55
|
+
*/
|
|
56
|
+
updateSiteScript(updateInfo, content) {
|
|
57
|
+
if (content) {
|
|
58
|
+
updateInfo.Content = JSON.stringify(content);
|
|
59
|
+
}
|
|
60
|
+
return SiteScriptsCloneFactory(this, "UpdateSiteScript").run({ updateInfo });
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Gets the site script syntax (JSON) for a specific list
|
|
64
|
+
* @param listUrl The absolute url of the list to retrieve site script
|
|
65
|
+
*/
|
|
66
|
+
getSiteScriptFromList(listUrl) {
|
|
67
|
+
return SiteScriptsCloneFactory(this, "GetSiteScriptFromList").run({ listUrl });
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Gets the site script syntax (JSON) for a specific web
|
|
71
|
+
* @param webUrl The absolute url of the web to retrieve site script
|
|
72
|
+
* @param extractInfo configuration object to specify what to extract
|
|
73
|
+
*/
|
|
74
|
+
getSiteScriptFromWeb(webUrl, info) {
|
|
75
|
+
return SiteScriptsCloneFactory(this, "getSiteScriptFromWeb").run({ webUrl, info });
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Executes the indicated site design action on the indicated web.
|
|
79
|
+
*
|
|
80
|
+
* @param webUrl The absolute url of the web to retrieve site script
|
|
81
|
+
* @param extractInfo configuration object to specify what to extract
|
|
82
|
+
*/
|
|
83
|
+
executeSiteScriptAction(actionDefinition) {
|
|
84
|
+
return SiteScriptsCloneFactory(this, "executeSiteScriptAction").run({ actionDefinition });
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports._SiteScripts = _SiteScripts;
|
|
88
|
+
const SiteScripts = (baseUrl, methodName) => new _SiteScripts(baseUrl, methodName);
|
|
89
|
+
exports.SiteScripts = SiteScripts;
|
|
90
|
+
const SiteScriptsCloneFactory = (baseUrl, methodName = "") => (0, exports.SiteScripts)(baseUrl, methodName);
|
|
91
|
+
var SiteScriptActionOutcome;
|
|
92
|
+
(function (SiteScriptActionOutcome) {
|
|
93
|
+
/**
|
|
94
|
+
* The stage was deemed to have completed successfully.
|
|
95
|
+
*/
|
|
96
|
+
SiteScriptActionOutcome[SiteScriptActionOutcome["Success"] = 0] = "Success";
|
|
97
|
+
/**
|
|
98
|
+
* The stage was deemed to have failed to complete successfully (non-blocking, rest of recipe
|
|
99
|
+
* execution should still be able to proceed).
|
|
100
|
+
*/
|
|
101
|
+
SiteScriptActionOutcome[SiteScriptActionOutcome["Failure"] = 1] = "Failure";
|
|
102
|
+
/**
|
|
103
|
+
* No action was taken for this stage / this stage was skipped.
|
|
104
|
+
*/
|
|
105
|
+
SiteScriptActionOutcome[SiteScriptActionOutcome["NoOp"] = 2] = "NoOp";
|
|
106
|
+
/**
|
|
107
|
+
* There was an exception but the operation succeeded. This is analagous to the operation completing
|
|
108
|
+
* in a "yellow" state.
|
|
109
|
+
*/
|
|
110
|
+
SiteScriptActionOutcome[SiteScriptActionOutcome["SucceededWithException"] = 3] = "SucceededWithException";
|
|
111
|
+
})(SiteScriptActionOutcome = exports.SiteScriptActionOutcome || (exports.SiteScriptActionOutcome = {}));
|
|
112
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../packages/sp/site-scripts/types.ts"],"names":[],"mappings":";;;AAAA,8CAAsC;AACtC,sDAAuE;AACvE,oEAA4D;AAC5D,oCAAoC;AACpC,oEAAyD;AAEzD,MAAa,YAAa,SAAQ,6BAAY;IAE1C,YAAY,IAA2B,EAAE,UAAU,GAAG,EAAE;QACpD,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,IAAI,GAAG,IAAA,cAAO,EAAC,IAAA,kCAAa,EAAC,IAAI,CAAC,IAAI,CAAC,EAAE,+EAA+E,UAAU,EAAE,CAAC,CAAC;IAC/I,CAAC;IAEM,GAAG,CAAI,KAAU;QACpB,OAAO,IAAA,uBAAM,EAAI,IAAI,EAAE,IAAA,gBAAI,EAAC,KAAK,CAAC,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACI,cAAc;QACjB,OAAO,uBAAuB,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,GAAG,CAAoB,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;OAKG;IACI,gBAAgB,CAAC,KAAa,EAAE,WAAmB,EAAE,OAAY;QACpE,OAAO,uBAAuB,CAAC,IAAI,EAC/B,4DAA4D,IAAA,+BAAU,EAAC,KAAK,CAAC,YAAY,IAAA,+BAAU,EAAC,WAAW,CAAC,GAAG,CAAC;aACnH,GAAG,CAAkB,OAAO,CAAC,CAAC;IACvC,CAAC;IAED;;;;OAIG;IACI,qBAAqB,CAAC,EAAU;QACnC,OAAO,uBAAuB,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC,GAAG,CAAkB,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;OAIG;IACI,gBAAgB,CAAC,EAAU;QAC9B,OAAO,uBAAuB,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,GAAG,CAAO,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;OAMG;IACI,gBAAgB,CAAC,UAAiC,EAAE,OAAa;QAEpE,IAAI,OAAO,EAAE;YACT,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;SAChD;QAED,OAAO,uBAAuB,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,GAAG,CAAkB,EAAE,UAAU,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;;OAGG;IACI,qBAAqB,CAAC,OAAe;QACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC,GAAG,CAAS,EAAE,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;OAIG;IACI,oBAAoB,CAAC,MAAc,EAAE,IAAkC;QAC1E,OAAO,uBAAuB,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC,GAAG,CAAiC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IACvH,CAAC;IAED;;;;;OAKG;IACI,uBAAuB,CAAC,gBAAwB;QACnD,OAAO,uBAAuB,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAAC,GAAG,CAA0B,EAAE,gBAAgB,EAAE,CAAC,CAAC;IACvH,CAAC;CACJ;AA1FD,oCA0FC;AAEM,MAAM,WAAW,GAAG,CAAC,OAA8B,EAAE,UAAmB,EAAgB,EAAE,CAAC,IAAI,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;AAA3H,QAAA,WAAW,eAAgH;AAGxI,MAAM,uBAAuB,GAAG,CAAC,OAA8B,EAAE,UAAU,GAAG,EAAE,EAAwB,EAAE,CAAM,IAAA,mBAAW,EAAC,OAAO,EAAE,UAAU,CAAC,CAAC;AAqHjJ,IAAY,uBAuBX;AAvBD,WAAY,uBAAuB;IAE/B;;OAEG;IACH,2EAAW,CAAA;IAEX;;;OAGG;IACH,2EAAW,CAAA;IAEX;;OAEG;IACH,qEAAQ,CAAA;IAER;;;OAGG;IACH,yGAA0B,CAAA;AAC9B,CAAC,EAvBW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAuBlC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ISiteScriptSerializationInfo, ISiteScriptSerializationResult } from "./types.js";
|
|
2
|
+
declare module "../webs/types" {
|
|
3
|
+
interface _Web {
|
|
4
|
+
getSiteScript(extractInfo?: ISiteScriptSerializationInfo): Promise<ISiteScriptSerializationResult>;
|
|
5
|
+
}
|
|
6
|
+
interface IWeb {
|
|
7
|
+
/**
|
|
8
|
+
* Gets the site script syntax (JSON) for the current web
|
|
9
|
+
* @param extractInfo configuration object to specify what to extract
|
|
10
|
+
*/
|
|
11
|
+
getSiteScript(extractInfo?: ISiteScriptSerializationInfo): Promise<ISiteScriptSerializationResult>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../../../packages/sp/site-scripts/web.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,4BAA4B,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAE1F,OAAO,QAAQ,eAAe,CAAC;IAC3B,UAAU,IAAI;QACV,aAAa,CAAC,WAAW,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;KACtG;IAED,UAAU,IAAI;QACV;;;WAGG;QACH,aAAa,CAAC,WAAW,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;KACtG;CACJ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@pnp/core");
|
|
4
|
+
const types_js_1 = require("../webs/types.js");
|
|
5
|
+
const types_js_2 = require("./types.js");
|
|
6
|
+
types_js_1._Web.prototype.getSiteScript = async function (extractInfo) {
|
|
7
|
+
const info = await this.select("Url")();
|
|
8
|
+
return (0, types_js_2.SiteScripts)(this.toUrl(), "").using((0, core_1.AssignFrom)(this)).getSiteScriptFromWeb(info.Url, extractInfo);
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../../../packages/sp/site-scripts/web.ts"],"names":[],"mappings":";;AAAA,oCAAuC;AACvC,+CAAwC;AACxC,yCAAyC;AAiBzC,eAAI,CAAC,SAAS,CAAC,aAAa,GAAG,KAAK,WAAuB,WAA0C;IAEjG,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAmB,CAAC;IACzD,OAAO,IAAA,sBAAW,EAAC,IAAI,CAAC,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAA,iBAAU,EAAC,IAAI,CAAC,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;AAC7G,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/sp/site-users/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC;AAElB,OAAO,EACH,SAAS,EACT,oBAAoB,EACpB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,aAAa,GAChB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SiteUsers = exports.SiteUser = void 0;
|
|
4
|
+
require("./web.js");
|
|
5
|
+
var types_js_1 = require("./types.js");
|
|
6
|
+
Object.defineProperty(exports, "SiteUser", { enumerable: true, get: function () { return types_js_1.SiteUser; } });
|
|
7
|
+
Object.defineProperty(exports, "SiteUsers", { enumerable: true, get: function () { return types_js_1.SiteUsers; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/sp/site-users/index.ts"],"names":[],"mappings":";;;AAAA,oBAAkB;AAElB,uCASoB;AANhB,oGAAA,QAAQ,OAAA;AACR,qGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { _SPCollection, _SPInstance, IDeleteable } from "../spqueryable.js";
|
|
2
|
+
import { ISiteGroups } from "../site-groups/types.js";
|
|
3
|
+
import { PrincipalType } from "../types.js";
|
|
4
|
+
export declare class _SiteUsers extends _SPCollection<ISiteUserInfo[]> {
|
|
5
|
+
/**
|
|
6
|
+
* Gets a user from the collection by id
|
|
7
|
+
*
|
|
8
|
+
* @param id The id of the user to retrieve
|
|
9
|
+
*/
|
|
10
|
+
getById(id: number): ISiteUser;
|
|
11
|
+
/**
|
|
12
|
+
* Gets a user from the collection by email
|
|
13
|
+
*
|
|
14
|
+
* @param email The email address of the user to retrieve
|
|
15
|
+
*/
|
|
16
|
+
getByEmail(email: string): ISiteUser;
|
|
17
|
+
/**
|
|
18
|
+
* Gets a user from the collection by login name
|
|
19
|
+
*
|
|
20
|
+
* @param loginName The login name of the user to retrieve
|
|
21
|
+
*/
|
|
22
|
+
getByLoginName(loginName: string): ISiteUser;
|
|
23
|
+
/**
|
|
24
|
+
* Removes a user from the collection by id
|
|
25
|
+
*
|
|
26
|
+
* @param id The id of the user to remove
|
|
27
|
+
*/
|
|
28
|
+
removeById(id: number): Promise<any>;
|
|
29
|
+
/**
|
|
30
|
+
* Removes a user from the collection by login name
|
|
31
|
+
*
|
|
32
|
+
* @param loginName The login name of the user to remove
|
|
33
|
+
*/
|
|
34
|
+
removeByLoginName(loginName: string): Promise<any>;
|
|
35
|
+
/**
|
|
36
|
+
* Adds a user to a site collection
|
|
37
|
+
*
|
|
38
|
+
* @param loginName The login name of the user to add to a site collection
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
add(loginName: string): Promise<ISiteUser>;
|
|
42
|
+
}
|
|
43
|
+
export interface ISiteUsers extends _SiteUsers {
|
|
44
|
+
}
|
|
45
|
+
export declare const SiteUsers: import("../spqueryable.js").ISPInvokableFactory<ISiteUsers>;
|
|
46
|
+
/**
|
|
47
|
+
* Describes a single user
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
export declare class _SiteUser extends _SPInstance<ISiteUserInfo> {
|
|
51
|
+
delete: (this: import("../spqueryable.js").ISPQueryable<any>) => Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Gets the groups for this user
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
get groups(): ISiteGroups;
|
|
57
|
+
/**
|
|
58
|
+
* Updates this user
|
|
59
|
+
*
|
|
60
|
+
* @param props Group properties to update
|
|
61
|
+
*/
|
|
62
|
+
update(props: Partial<ISiteUserInfo>): Promise<IUserUpdateResult>;
|
|
63
|
+
}
|
|
64
|
+
export interface ISiteUser extends _SiteUser, IDeleteable {
|
|
65
|
+
}
|
|
66
|
+
export declare const SiteUser: import("../spqueryable.js").ISPInvokableFactory<ISiteUser>;
|
|
67
|
+
export interface ISiteUserInfo extends ISiteUserProps {
|
|
68
|
+
Expiration: string;
|
|
69
|
+
IsEmailAuthenticationGuestUser: boolean;
|
|
70
|
+
UserId: {
|
|
71
|
+
NameId: string;
|
|
72
|
+
NameIdIssuer: string;
|
|
73
|
+
};
|
|
74
|
+
UserPrincipalName: string | null;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Describes a single user properties
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
export interface ISiteUserProps {
|
|
81
|
+
/**
|
|
82
|
+
* Contains Site user email
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
Email: string;
|
|
86
|
+
/**
|
|
87
|
+
* Contains Site user Id
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
Id: number;
|
|
91
|
+
/**
|
|
92
|
+
* Site user IsHiddenInUI
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
IsHiddenInUI: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Site user IsShareByEmailGuestUser
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
IsShareByEmailGuestUser: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Describes if Site user Is Site Admin
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
IsSiteAdmin: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Site user LoginName
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
LoginName: string;
|
|
111
|
+
/**
|
|
112
|
+
* Site user Principal type
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
PrincipalType: number | PrincipalType;
|
|
116
|
+
/**
|
|
117
|
+
* Site user Title
|
|
118
|
+
*
|
|
119
|
+
*/
|
|
120
|
+
Title: string;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Properties that provide both a getter, and a setter.
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
export interface IUserUpdateResult {
|
|
127
|
+
user: ISiteUser;
|
|
128
|
+
data: any;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Result from ensuring a user
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
export interface IWebEnsureUserResult {
|
|
135
|
+
data: ISiteUserProps;
|
|
136
|
+
user: ISiteUser;
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/sp/site-users/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EAEb,WAAW,EACX,WAAW,EAId,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAc,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGlE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,qBACa,UAAW,SAAQ,aAAa,CAAC,aAAa,EAAE,CAAC;IAE1D;;;;OAIG;IACI,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS;IAIrC;;;;OAIG;IACI,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS;IAI3C;;;;OAIG;IACI,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS;IAInD;;;;OAIG;IACI,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAI3C;;;;OAIG;IACI,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAMzD;;;;;OAKG;IACU,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;CAI1D;AACD,MAAM,WAAW,UAAW,SAAQ,UAAU;CAAI;AAClD,eAAO,MAAM,SAAS,6DAA6C,CAAC;AAEpE;;;GAGG;AACH,qBAAa,SAAU,SAAQ,WAAW,CAAC,aAAa,CAAC;IAE9C,MAAM,yEAAgB;IAE7B;;;OAGG;IACH,IAAW,MAAM,IAAI,WAAW,CAE/B;IAED;;;;OAIG;IACU,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAUjF;AACD,MAAM,WAAW,SAAU,SAAQ,SAAS,EAAE,WAAW;CAAI;AAC7D,eAAO,MAAM,QAAQ,4DAA2C,CAAC;AAEjE,MAAM,WAAW,aAAc,SAAQ,cAAc;IAEjD,UAAU,EAAE,MAAM,CAAC;IACnB,8BAA8B,EAAE,OAAO,CAAC;IACxC,MAAM,EAAE;QACJ,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAE3B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,uBAAuB,EAAE,OAAO,CAAC;IAEjC;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC;IAEtC;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,GAAG,CAAC;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,EAAE,SAAS,CAAC;CACnB"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SiteUser = exports._SiteUser = exports.SiteUsers = exports._SiteUsers = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const spqueryable_js_1 = require("../spqueryable.js");
|
|
6
|
+
const types_js_1 = require("../site-groups/types.js");
|
|
7
|
+
const queryable_1 = require("@pnp/queryable");
|
|
8
|
+
const decorators_js_1 = require("../decorators.js");
|
|
9
|
+
let _SiteUsers = class _SiteUsers extends spqueryable_js_1._SPCollection {
|
|
10
|
+
/**
|
|
11
|
+
* Gets a user from the collection by id
|
|
12
|
+
*
|
|
13
|
+
* @param id The id of the user to retrieve
|
|
14
|
+
*/
|
|
15
|
+
getById(id) {
|
|
16
|
+
return (0, exports.SiteUser)(this, `getById(${id})`);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Gets a user from the collection by email
|
|
20
|
+
*
|
|
21
|
+
* @param email The email address of the user to retrieve
|
|
22
|
+
*/
|
|
23
|
+
getByEmail(email) {
|
|
24
|
+
return (0, exports.SiteUser)(this, `getByEmail('${email}')`);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Gets a user from the collection by login name
|
|
28
|
+
*
|
|
29
|
+
* @param loginName The login name of the user to retrieve
|
|
30
|
+
*/
|
|
31
|
+
getByLoginName(loginName) {
|
|
32
|
+
return (0, exports.SiteUser)(this).concat(`('!@v::${loginName}')`);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Removes a user from the collection by id
|
|
36
|
+
*
|
|
37
|
+
* @param id The id of the user to remove
|
|
38
|
+
*/
|
|
39
|
+
removeById(id) {
|
|
40
|
+
return (0, spqueryable_js_1.spPost)((0, exports.SiteUsers)(this, `removeById(${id})`));
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Removes a user from the collection by login name
|
|
44
|
+
*
|
|
45
|
+
* @param loginName The login name of the user to remove
|
|
46
|
+
*/
|
|
47
|
+
removeByLoginName(loginName) {
|
|
48
|
+
const o = (0, exports.SiteUsers)(this, "removeByLoginName(@v)");
|
|
49
|
+
o.query.set("@v", `'${loginName}'`);
|
|
50
|
+
return (0, spqueryable_js_1.spPost)(o);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Adds a user to a site collection
|
|
54
|
+
*
|
|
55
|
+
* @param loginName The login name of the user to add to a site collection
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
async add(loginName) {
|
|
59
|
+
await (0, spqueryable_js_1.spPost)(this, (0, queryable_1.body)({ LoginName: loginName }));
|
|
60
|
+
return this.getByLoginName(loginName);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
_SiteUsers = (0, tslib_1.__decorate)([
|
|
64
|
+
(0, decorators_js_1.defaultPath)("siteusers")
|
|
65
|
+
], _SiteUsers);
|
|
66
|
+
exports._SiteUsers = _SiteUsers;
|
|
67
|
+
exports.SiteUsers = (0, spqueryable_js_1.spInvokableFactory)(_SiteUsers);
|
|
68
|
+
/**
|
|
69
|
+
* Describes a single user
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
class _SiteUser extends spqueryable_js_1._SPInstance {
|
|
73
|
+
constructor() {
|
|
74
|
+
super(...arguments);
|
|
75
|
+
this.delete = (0, spqueryable_js_1.deleteable)();
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Gets the groups for this user
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
get groups() {
|
|
82
|
+
return (0, types_js_1.SiteGroups)(this, "groups");
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Updates this user
|
|
86
|
+
*
|
|
87
|
+
* @param props Group properties to update
|
|
88
|
+
*/
|
|
89
|
+
async update(props) {
|
|
90
|
+
const data = await (0, spqueryable_js_1.spPostMerge)(this, (0, queryable_1.body)(props));
|
|
91
|
+
return {
|
|
92
|
+
data,
|
|
93
|
+
user: this,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports._SiteUser = _SiteUser;
|
|
98
|
+
exports.SiteUser = (0, spqueryable_js_1.spInvokableFactory)(_SiteUser);
|
|
99
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../packages/sp/site-users/types.ts"],"names":[],"mappings":";;;;AAAA,sDAQ2B;AAC3B,sDAAkE;AAClE,8CAAsC;AACtC,oDAA+C;AAI/C,IAAa,UAAU,GAAvB,MAAa,UAAW,SAAQ,8BAA8B;IAE1D;;;;OAIG;IACI,OAAO,CAAC,EAAU;QACrB,OAAO,IAAA,gBAAQ,EAAC,IAAI,EAAE,WAAW,EAAE,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED;;;;OAIG;IACI,UAAU,CAAC,KAAa;QAC3B,OAAO,IAAA,gBAAQ,EAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACI,cAAc,CAAC,SAAiB;QACnC,OAAO,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC,MAAM,CAAC,UAAU,SAAS,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED;;;;OAIG;IACI,UAAU,CAAC,EAAU;QACxB,OAAO,IAAA,uBAAM,EAAC,IAAA,iBAAS,EAAC,IAAI,EAAE,cAAc,EAAE,GAAG,CAAC,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACI,iBAAiB,CAAC,SAAiB;QACtC,MAAM,CAAC,GAAG,IAAA,iBAAS,EAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC;QACnD,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,SAAS,GAAG,CAAC,CAAC;QACpC,OAAO,IAAA,uBAAM,EAAC,CAAC,CAAC,CAAC;IACrB,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CAAC,SAAiB;QAC9B,MAAM,IAAA,uBAAM,EAAC,IAAI,EAAE,IAAA,gBAAI,EAAC,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;QACnD,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IAC1C,CAAC;CACJ,CAAA;AA3DY,UAAU;IADtB,IAAA,2BAAW,EAAC,WAAW,CAAC;GACZ,UAAU,CA2DtB;AA3DY,gCAAU;AA6DV,QAAA,SAAS,GAAG,IAAA,mCAAkB,EAAa,UAAU,CAAC,CAAC;AAEpE;;;GAGG;AACH,MAAa,SAAU,SAAQ,4BAA0B;IAAzD;;QAEW,WAAM,GAAG,IAAA,2BAAU,GAAE,CAAC;IAyBjC,CAAC;IAvBG;;;OAGG;IACH,IAAW,MAAM;QACb,OAAO,IAAA,qBAAU,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACtC,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,MAAM,CAAC,KAA6B;QAE7C,MAAM,IAAI,GAAG,MAAM,IAAA,4BAAW,EAAC,IAAI,EAAE,IAAA,gBAAI,EAAC,KAAK,CAAC,CAAC,CAAC;QAElD,OAAO;YACH,IAAI;YACJ,IAAI,EAAE,IAAI;SACb,CAAC;IACN,CAAC;CAEJ;AA3BD,8BA2BC;AAEY,QAAA,QAAQ,GAAG,IAAA,mCAAkB,EAAY,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ISiteUsers, ISiteUser, IWebEnsureUserResult } from "./types.js";
|
|
2
|
+
declare module "../webs/types" {
|
|
3
|
+
interface _Web {
|
|
4
|
+
readonly siteUsers: ISiteUsers;
|
|
5
|
+
readonly currentUser: ISiteUser;
|
|
6
|
+
ensureUser(loginName: string): Promise<IWebEnsureUserResult>;
|
|
7
|
+
getUserById(id: number): ISiteUser;
|
|
8
|
+
}
|
|
9
|
+
interface IWeb {
|
|
10
|
+
/**
|
|
11
|
+
* The site users
|
|
12
|
+
*/
|
|
13
|
+
readonly siteUsers: ISiteUsers;
|
|
14
|
+
/**
|
|
15
|
+
* Information on the current user
|
|
16
|
+
*/
|
|
17
|
+
readonly currentUser: ISiteUser;
|
|
18
|
+
/**
|
|
19
|
+
* Checks whether the specified login name belongs to a valid user in the web. If the user doesn't exist, adds the user to the web.
|
|
20
|
+
*
|
|
21
|
+
* @param loginName The login name of the user (ex: i:0#.f|membership|user@domain.onmicrosoft.com)
|
|
22
|
+
*/
|
|
23
|
+
ensureUser(loginName: string): Promise<IWebEnsureUserResult>;
|
|
24
|
+
/**
|
|
25
|
+
* Returns the user corresponding to the specified member identifier for the current site
|
|
26
|
+
*
|
|
27
|
+
* @param id The id of the user
|
|
28
|
+
*/
|
|
29
|
+
getUserById(id: number): ISiteUser;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../../../packages/sp/site-users/web.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAa,SAAS,EAAY,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAI9F,OAAO,QAAQ,eAAe,CAAC;IAC3B,UAAU,IAAI;QACV,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;QAC/B,QAAQ,CAAC,WAAW,EAAE,SAAS,CAAC;QAChC,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAC7D,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;KACtC;IACD,UAAU,IAAI;QAEV;;WAEG;QACH,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;QAE/B;;WAEG;QACH,QAAQ,CAAC,WAAW,EAAE,SAAS,CAAC;QAEhC;;;;UAIE;QACF,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAE7D;;;;WAIG;QACH,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;KACtC;CACJ"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const queryable_1 = require("@pnp/queryable");
|
|
4
|
+
const types_js_1 = require("../webs/types.js");
|
|
5
|
+
const types_js_2 = require("./types.js");
|
|
6
|
+
const odata_url_from_js_1 = require("../utils/odata-url-from.js");
|
|
7
|
+
const spqueryable_js_1 = require("../spqueryable.js");
|
|
8
|
+
(0, queryable_1.addProp)(types_js_1._Web, "siteUsers", types_js_2.SiteUsers);
|
|
9
|
+
(0, queryable_1.addProp)(types_js_1._Web, "currentUser", types_js_2.SiteUser);
|
|
10
|
+
types_js_1._Web.prototype.ensureUser = async function (logonName) {
|
|
11
|
+
const data = await (0, spqueryable_js_1.spPost)((0, types_js_1.Web)(this, "ensureuser"), (0, queryable_1.body)({ logonName }));
|
|
12
|
+
return {
|
|
13
|
+
data,
|
|
14
|
+
user: (0, types_js_2.SiteUser)([this, (0, odata_url_from_js_1.odataUrlFrom)(data)]),
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
types_js_1._Web.prototype.getUserById = function (id) {
|
|
18
|
+
return (0, types_js_2.SiteUser)(this, `getUserById(${id})`);
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=web.js.map
|