@pnp/cli-microsoft365-spfx-toolkit 1.1.0 → 1.3.0
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/dist/m365/spo/commands/page/Page.js +23 -5
- package/dist/m365/spo/commands/page/page-add.js +15 -56
- package/dist/m365/spo/commands/page/page-control-set.js +1 -1
- package/dist/m365/spo/commands/page/page-set.js +1 -1
- package/dist/utils/spo.js +145 -0
- package/npm-shrinkwrap.json +2236 -96
- package/package.json +18 -30
- package/docs/docs/_clisettings.mdx +0 -17
- package/docs/docs/cmd/_global.mdx +0 -16
- package/docs/docs/cmd/aad/app/app-add.mdx +0 -297
- package/docs/docs/cmd/aad/app/app-get.mdx +0 -280
- package/docs/docs/cmd/aad/app/app-list.mdx +0 -184
- package/docs/docs/cmd/aad/app/app-remove.mdx +0 -59
- package/docs/docs/cmd/aad/app/app-role-add.mdx +0 -68
- package/docs/docs/cmd/aad/app/app-role-list.mdx +0 -115
- package/docs/docs/cmd/aad/app/app-role-remove.mdx +0 -78
- package/docs/docs/cmd/aad/app/app-set.mdx +0 -97
- package/docs/docs/cmd/aad/approleassignment/approleassignment-add.mdx +0 -127
- package/docs/docs/cmd/aad/approleassignment/approleassignment-list.mdx +0 -113
- package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.mdx +0 -73
- package/docs/docs/cmd/aad/group/group-get.mdx +0 -164
- package/docs/docs/cmd/aad/group/group-list.mdx +0 -121
- package/docs/docs/cmd/aad/group/group-remove.mdx +0 -44
- package/docs/docs/cmd/aad/groupsetting/groupsetting-add.mdx +0 -154
- package/docs/docs/cmd/aad/groupsetting/groupsetting-get.mdx +0 -143
- package/docs/docs/cmd/aad/groupsetting/groupsetting-list.mdx +0 -138
- package/docs/docs/cmd/aad/groupsetting/groupsetting-remove.mdx +0 -45
- package/docs/docs/cmd/aad/groupsetting/groupsetting-set.mdx +0 -42
- package/docs/docs/cmd/aad/groupsettingtemplate/groupsettingtemplate-get.mdx +0 -100
- package/docs/docs/cmd/aad/groupsettingtemplate/groupsettingtemplate-list.mdx +0 -86
- package/docs/docs/cmd/aad/license/license-list.mdx +0 -99
- package/docs/docs/cmd/aad/m365group/m365group-add.mdx +0 -243
- package/docs/docs/cmd/aad/m365group/m365group-conversation-list.mdx +0 -96
- package/docs/docs/cmd/aad/m365group/m365group-conversation-post-list.mdx +0 -117
- package/docs/docs/cmd/aad/m365group/m365group-get.mdx +0 -159
- package/docs/docs/cmd/aad/m365group/m365group-list.mdx +0 -167
- package/docs/docs/cmd/aad/m365group/m365group-recyclebinitem-clear.mdx +0 -38
- package/docs/docs/cmd/aad/m365group/m365group-recyclebinitem-list.mdx +0 -145
- package/docs/docs/cmd/aad/m365group/m365group-recyclebinitem-remove.mdx +0 -53
- package/docs/docs/cmd/aad/m365group/m365group-recyclebinitem-restore.mdx +0 -50
- package/docs/docs/cmd/aad/m365group/m365group-remove.mdx +0 -54
- package/docs/docs/cmd/aad/m365group/m365group-renew.mdx +0 -36
- package/docs/docs/cmd/aad/m365group/m365group-report-activitycounts.mdx +0 -91
- package/docs/docs/cmd/aad/m365group/m365group-report-activitydetail.mdx +0 -112
- package/docs/docs/cmd/aad/m365group/m365group-report-activityfilecounts.mdx +0 -89
- package/docs/docs/cmd/aad/m365group/m365group-report-activitygroupcounts.mdx +0 -89
- package/docs/docs/cmd/aad/m365group/m365group-report-activitystorage.mdx +0 -89
- package/docs/docs/cmd/aad/m365group/m365group-set.mdx +0 -80
- package/docs/docs/cmd/aad/m365group/m365group-teamify.mdx +0 -41
- package/docs/docs/cmd/aad/m365group/m365group-user-add.mdx +0 -59
- package/docs/docs/cmd/aad/m365group/m365group-user-list.mdx +0 -99
- package/docs/docs/cmd/aad/m365group/m365group-user-remove.mdx +0 -63
- package/docs/docs/cmd/aad/m365group/m365group-user-set.mdx +0 -69
- package/docs/docs/cmd/aad/oauth2grant/oauth2grant-add.mdx +0 -58
- package/docs/docs/cmd/aad/oauth2grant/oauth2grant-list.mdx +0 -98
- package/docs/docs/cmd/aad/oauth2grant/oauth2grant-remove.mdx +0 -56
- package/docs/docs/cmd/aad/oauth2grant/oauth2grant-set.mdx +0 -50
- package/docs/docs/cmd/aad/policy/policy-list.mdx +0 -115
- package/docs/docs/cmd/aad/siteclassification/siteclassification-disable.mdx +0 -42
- package/docs/docs/cmd/aad/siteclassification/siteclassification-enable.mdx +0 -57
- package/docs/docs/cmd/aad/siteclassification/siteclassification-get.mdx +0 -84
- package/docs/docs/cmd/aad/siteclassification/siteclassification-set.mdx +0 -64
- package/docs/docs/cmd/aad/sp/sp-add.mdx +0 -193
- package/docs/docs/cmd/aad/sp/sp-get.mdx +0 -221
- package/docs/docs/cmd/aad/sp/sp-list.mdx +0 -162
- package/docs/docs/cmd/aad/user/user-add.mdx +0 -192
- package/docs/docs/cmd/aad/user/user-get.mdx +0 -245
- package/docs/docs/cmd/aad/user/user-guest-add.mdx +0 -143
- package/docs/docs/cmd/aad/user/user-hibp.mdx +0 -132
- package/docs/docs/cmd/aad/user/user-license-add.mdx +0 -125
- package/docs/docs/cmd/aad/user/user-license-list.mdx +0 -115
- package/docs/docs/cmd/aad/user/user-license-remove.mdx +0 -47
- package/docs/docs/cmd/aad/user/user-list.mdx +0 -110
- package/docs/docs/cmd/aad/user/user-password-validate.mdx +0 -103
- package/docs/docs/cmd/aad/user/user-recyclebinitem-clear.mdx +0 -52
- package/docs/docs/cmd/aad/user/user-recyclebinitem-list.mdx +0 -94
- package/docs/docs/cmd/aad/user/user-recyclebinitem-remove.mdx +0 -55
- package/docs/docs/cmd/aad/user/user-recyclebinitem-restore.mdx +0 -119
- package/docs/docs/cmd/aad/user/user-remove.mdx +0 -64
- package/docs/docs/cmd/aad/user/user-set.mdx +0 -136
- package/docs/docs/cmd/aad/user/user-signin-list.mdx +0 -216
- package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +0 -132
- package/docs/docs/cmd/app/app-get.mdx +0 -225
- package/docs/docs/cmd/app/app-open.mdx +0 -85
- package/docs/docs/cmd/app/permission/permission-add.mdx +0 -57
- package/docs/docs/cmd/app/permission/permission-list.mdx +0 -93
- package/docs/docs/cmd/booking/business/business-get.mdx +0 -176
- package/docs/docs/cmd/booking/business/business-list.mdx +0 -76
- package/docs/docs/cmd/cli/cli-consent.mdx +0 -72
- package/docs/docs/cmd/cli/cli-doctor.mdx +0 -104
- package/docs/docs/cmd/cli/cli-issue.mdx +0 -74
- package/docs/docs/cmd/cli/cli-reconsent.mdx +0 -62
- package/docs/docs/cmd/cli/completion/completion-clink-update.mdx +0 -41
- package/docs/docs/cmd/cli/completion/completion-pwsh-setup.mdx +0 -42
- package/docs/docs/cmd/cli/completion/completion-pwsh-update.mdx +0 -35
- package/docs/docs/cmd/cli/completion/completion-sh-setup.mdx +0 -62
- package/docs/docs/cmd/cli/completion/completion-sh-update.mdx +0 -35
- package/docs/docs/cmd/cli/config/config-get.mdx +0 -80
- package/docs/docs/cmd/cli/config/config-list.mdx +0 -78
- package/docs/docs/cmd/cli/config/config-reset.mdx +0 -49
- package/docs/docs/cmd/cli/config/config-set.mdx +0 -52
- package/docs/docs/cmd/context/context-init.mdx +0 -27
- package/docs/docs/cmd/context/context-remove.mdx +0 -38
- package/docs/docs/cmd/context/option/option-list.mdx +0 -75
- package/docs/docs/cmd/context/option/option-remove.mdx +0 -41
- package/docs/docs/cmd/context/option/option-set.mdx +0 -35
- package/docs/docs/cmd/docs.mdx +0 -63
- package/docs/docs/cmd/file/convert/convert-pdf.mdx +0 -57
- package/docs/docs/cmd/file/file-add.mdx +0 -64
- package/docs/docs/cmd/file/file-list.mdx +0 -50
- package/docs/docs/cmd/flow/environment/environment-get.mdx +0 -175
- package/docs/docs/cmd/flow/environment/environment-list.mdx +0 -155
- package/docs/docs/cmd/flow/flow-disable.mdx +0 -58
- package/docs/docs/cmd/flow/flow-enable.mdx +0 -58
- package/docs/docs/cmd/flow/flow-export.mdx +0 -99
- package/docs/docs/cmd/flow/flow-get.mdx +0 -456
- package/docs/docs/cmd/flow/flow-list.mdx +0 -206
- package/docs/docs/cmd/flow/flow-remove.mdx +0 -67
- package/docs/docs/cmd/flow/owner/owner-ensure.mdx +0 -65
- package/docs/docs/cmd/flow/owner/owner-list.mdx +0 -104
- package/docs/docs/cmd/flow/owner/owner-remove.mdx +0 -71
- package/docs/docs/cmd/flow/run/run-cancel.mdx +0 -52
- package/docs/docs/cmd/flow/run/run-get.mdx +0 -235
- package/docs/docs/cmd/flow/run/run-list.mdx +0 -168
- package/docs/docs/cmd/flow/run/run-resubmit.mdx +0 -61
- package/docs/docs/cmd/graph/changelog/changelog-list.mdx +0 -122
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +0 -139
- package/docs/docs/cmd/graph/schemaextension/schemaextension-get.mdx +0 -104
- package/docs/docs/cmd/graph/schemaextension/schemaextension-list.mdx +0 -127
- package/docs/docs/cmd/graph/schemaextension/schemaextension-remove.mdx +0 -46
- package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +0 -71
- package/docs/docs/cmd/graph/subscription/subscription-add.mdx +0 -149
- package/docs/docs/cmd/login.mdx +0 -249
- package/docs/docs/cmd/logout.mdx +0 -37
- package/docs/docs/cmd/onedrive/onedrive-list.mdx +0 -258
- package/docs/docs/cmd/onedrive/report/report-activityfilecounts.mdx +0 -92
- package/docs/docs/cmd/onedrive/report/report-activityusercounts.mdx +0 -92
- package/docs/docs/cmd/onedrive/report/report-activityuserdetail.mdx +0 -105
- package/docs/docs/cmd/onedrive/report/report-usageaccountcounts.mdx +0 -95
- package/docs/docs/cmd/onedrive/report/report-usageaccountdetail.mdx +0 -105
- package/docs/docs/cmd/onedrive/report/report-usagefilecounts.mdx +0 -95
- package/docs/docs/cmd/onedrive/report/report-usagestorage.mdx +0 -90
- package/docs/docs/cmd/onenote/notebook/notebook-list.mdx +0 -162
- package/docs/docs/cmd/onenote/page/page-list.mdx +0 -154
- package/docs/docs/cmd/outlook/mail/mail-send.mdx +0 -139
- package/docs/docs/cmd/outlook/message/message-get.mdx +0 -205
- package/docs/docs/cmd/outlook/message/message-list.mdx +0 -175
- package/docs/docs/cmd/outlook/message/message-move.mdx +0 -61
- package/docs/docs/cmd/outlook/report/report-mailactivitycounts.mdx +0 -93
- package/docs/docs/cmd/outlook/report/report-mailactivityusercounts.mdx +0 -93
- package/docs/docs/cmd/outlook/report/report-mailactivityuserdetail.mdx +0 -107
- package/docs/docs/cmd/outlook/report/report-mailappusageappsusercounts.mdx +0 -96
- package/docs/docs/cmd/outlook/report/report-mailappusageusercounts.mdx +0 -97
- package/docs/docs/cmd/outlook/report/report-mailappusageuserdetail.mdx +0 -110
- package/docs/docs/cmd/outlook/report/report-mailappusageversionsusercounts.mdx +0 -94
- package/docs/docs/cmd/outlook/report/report-mailboxusagedetail.mdx +0 -102
- package/docs/docs/cmd/outlook/report/report-mailboxusagemailboxcount.mdx +0 -94
- package/docs/docs/cmd/outlook/report/report-mailboxusagequotastatusmailboxcounts.mdx +0 -93
- package/docs/docs/cmd/outlook/report/report-mailboxusagestorage.mdx +0 -89
- package/docs/docs/cmd/outlook/room/room-list.mdx +0 -125
- package/docs/docs/cmd/outlook/roomlist/roomlist-list.mdx +0 -91
- package/docs/docs/cmd/pa/app/app-consent-set.mdx +0 -51
- package/docs/docs/cmd/pa/app/app-export.mdx +0 -56
- package/docs/docs/cmd/pa/app/app-get.mdx +0 -265
- package/docs/docs/cmd/pa/app/app-list.mdx +0 -261
- package/docs/docs/cmd/pa/app/app-owner-set.mdx +0 -60
- package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +0 -85
- package/docs/docs/cmd/pa/app/app-permission-list.mdx +0 -132
- package/docs/docs/cmd/pa/app/app-permission-remove.mdx +0 -74
- package/docs/docs/cmd/pa/app/app-remove.mdx +0 -49
- package/docs/docs/cmd/pa/connector/connector-export.mdx +0 -60
- package/docs/docs/cmd/pa/connector/connector-list.mdx +0 -158
- package/docs/docs/cmd/pa/environment/environment-get.mdx +0 -185
- package/docs/docs/cmd/pa/environment/environment-list.mdx +0 -169
- package/docs/docs/cmd/planner/bucket/bucket-add.mdx +0 -122
- package/docs/docs/cmd/planner/bucket/bucket-get.mdx +0 -134
- package/docs/docs/cmd/planner/bucket/bucket-list.mdx +0 -117
- package/docs/docs/cmd/planner/bucket/bucket-remove.mdx +0 -85
- package/docs/docs/cmd/planner/bucket/bucket-set.mdx +0 -82
- package/docs/docs/cmd/planner/plan/plan-add.mdx +0 -247
- package/docs/docs/cmd/planner/plan/plan-get.mdx +0 -172
- package/docs/docs/cmd/planner/plan/plan-list.mdx +0 -128
- package/docs/docs/cmd/planner/plan/plan-remove.mdx +0 -60
- package/docs/docs/cmd/planner/plan/plan-set.mdx +0 -261
- package/docs/docs/cmd/planner/roster/roster-add.mdx +0 -96
- package/docs/docs/cmd/planner/roster/roster-get.mdx +0 -89
- package/docs/docs/cmd/planner/roster/roster-member-add.mdx +0 -104
- package/docs/docs/cmd/planner/roster/roster-member-get.mdx +0 -104
- package/docs/docs/cmd/planner/roster/roster-member-list.mdx +0 -93
- package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +0 -61
- package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +0 -126
- package/docs/docs/cmd/planner/roster/roster-remove.mdx +0 -59
- package/docs/docs/cmd/planner/task/task-add.mdx +0 -382
- package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +0 -105
- package/docs/docs/cmd/planner/task/task-checklistitem-list.mdx +0 -93
- package/docs/docs/cmd/planner/task/task-checklistitem-remove.mdx +0 -44
- package/docs/docs/cmd/planner/task/task-get.mdx +0 -205
- package/docs/docs/cmd/planner/task/task-list.mdx +0 -198
- package/docs/docs/cmd/planner/task/task-reference-add.mdx +0 -105
- package/docs/docs/cmd/planner/task/task-reference-list.mdx +0 -84
- package/docs/docs/cmd/planner/task/task-reference-remove.mdx +0 -47
- package/docs/docs/cmd/planner/task/task-remove.mdx +0 -103
- package/docs/docs/cmd/planner/task/task-set.mdx +0 -376
- package/docs/docs/cmd/planner/tenant/tenant-settings-list.mdx +0 -98
- package/docs/docs/cmd/planner/tenant/tenant-settings-set.mdx +0 -128
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx +0 -156
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.mdx +0 -152
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-remove.mdx +0 -57
- package/docs/docs/cmd/pp/card/card-clone.mdx +0 -103
- package/docs/docs/cmd/pp/card/card-get.mdx +0 -185
- package/docs/docs/cmd/pp/card/card-list.mdx +0 -167
- package/docs/docs/cmd/pp/card/card-remove.mdx +0 -86
- package/docs/docs/cmd/pp/chatbot/chatbot-get.mdx +0 -192
- package/docs/docs/cmd/pp/chatbot/chatbot-list.mdx +0 -132
- package/docs/docs/cmd/pp/chatbot/chatbot-remove.mdx +0 -56
- package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +0 -164
- package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +0 -162
- package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +0 -53
- package/docs/docs/cmd/pp/dataverse/dataverse-table-row-list.mdx +0 -134
- package/docs/docs/cmd/pp/dataverse/dataverse-table-row-remove.mdx +0 -65
- package/docs/docs/cmd/pp/environment/environment-get.mdx +0 -392
- package/docs/docs/cmd/pp/environment/environment-list.mdx +0 -384
- package/docs/docs/cmd/pp/gateway/gateway-get.mdx +0 -89
- package/docs/docs/cmd/pp/gateway/gateway-list.mdx +0 -87
- package/docs/docs/cmd/pp/managementapp/managementapp-add.mdx +0 -99
- package/docs/docs/cmd/pp/managementapp/managementapp-list.mdx +0 -72
- package/docs/docs/cmd/pp/solution/solution-get.mdx +0 -114
- package/docs/docs/cmd/pp/solution/solution-list.mdx +0 -98
- package/docs/docs/cmd/pp/solution/solution-publish.mdx +0 -56
- package/docs/docs/cmd/pp/solution/solution-publisher-add.mdx +0 -53
- package/docs/docs/cmd/pp/solution/solution-publisher-get.mdx +0 -116
- package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +0 -103
- package/docs/docs/cmd/pp/solution/solution-publisher-remove.mdx +0 -62
- package/docs/docs/cmd/pp/solution/solution-remove.mdx +0 -86
- package/docs/docs/cmd/pp/tenant/tenant-settings-list.mdx +0 -140
- package/docs/docs/cmd/pp/tenant/tenant-settings-set.mdx +0 -235
- package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +0 -145
- package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +0 -161
- package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +0 -144
- package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +0 -117
- package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.mdx +0 -49
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +0 -119
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +0 -116
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +0 -108
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.mdx +0 -47
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.mdx +0 -47
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.mdx +0 -155
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.mdx +0 -110
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.mdx +0 -94
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.mdx +0 -43
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.mdx +0 -70
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +0 -138
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +0 -131
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +0 -117
- package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +0 -212
- package/docs/docs/cmd/request.mdx +0 -172
- package/docs/docs/cmd/search/externalconnection/externalconnection-add.mdx +0 -51
- package/docs/docs/cmd/search/externalconnection/externalconnection-get.mdx +0 -102
- package/docs/docs/cmd/search/externalconnection/externalconnection-list.mdx +0 -88
- package/docs/docs/cmd/search/externalconnection/externalconnection-remove.mdx +0 -48
- package/docs/docs/cmd/search/externalconnection/externalconnection-schema-add.mdx +0 -35
- package/docs/docs/cmd/setup.mdx +0 -92
- package/docs/docs/cmd/skype/report/report-activitycounts.mdx +0 -90
- package/docs/docs/cmd/skype/report/report-activityusercounts.mdx +0 -91
- package/docs/docs/cmd/skype/report/report-activityuserdetail.mdx +0 -129
- package/docs/docs/cmd/spfx/package/package-generate.mdx +0 -68
- package/docs/docs/cmd/spfx/project/project-azuredevops-pipeline-add.mdx +0 -87
- package/docs/docs/cmd/spfx/project/project-doctor.mdx +0 -176
- package/docs/docs/cmd/spfx/project/project-externalize.mdx +0 -187
- package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +0 -94
- package/docs/docs/cmd/spfx/project/project-permissions-grant.mdx +0 -101
- package/docs/docs/cmd/spfx/project/project-rename.mdx +0 -51
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +0 -202
- package/docs/docs/cmd/spfx/spfx-doctor.mdx +0 -234
- package/docs/docs/cmd/spo/app/app-add.mdx +0 -63
- package/docs/docs/cmd/spo/app/app-deploy.mdx +0 -76
- package/docs/docs/cmd/spo/app/app-get.mdx +0 -65
- package/docs/docs/cmd/spo/app/app-install.mdx +0 -48
- package/docs/docs/cmd/spo/app/app-instance-list.mdx +0 -28
- package/docs/docs/cmd/spo/app/app-list.mdx +0 -49
- package/docs/docs/cmd/spo/app/app-remove.mdx +0 -67
- package/docs/docs/cmd/spo/app/app-retract.mdx +0 -67
- package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +0 -60
- package/docs/docs/cmd/spo/app/app-uninstall.mdx +0 -57
- package/docs/docs/cmd/spo/app/app-upgrade.mdx +0 -48
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +0 -66
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +0 -159
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +0 -123
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-remove.mdx +0 -81
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +0 -72
- package/docs/docs/cmd/spo/apppage/apppage-add.mdx +0 -41
- package/docs/docs/cmd/spo/apppage/apppage-set.mdx +0 -34
- package/docs/docs/cmd/spo/cdn/cdn-get.mdx +0 -48
- package/docs/docs/cmd/spo/cdn/cdn-origin-add.mdx +0 -45
- package/docs/docs/cmd/spo/cdn/cdn-origin-list.mdx +0 -48
- package/docs/docs/cmd/spo/cdn/cdn-origin-remove.mdx +0 -48
- package/docs/docs/cmd/spo/cdn/cdn-policy-list.mdx +0 -48
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.mdx +0 -48
- package/docs/docs/cmd/spo/cdn/cdn-set.mdx +0 -76
- package/docs/docs/cmd/spo/commandset/commandset-add.mdx +0 -175
- package/docs/docs/cmd/spo/commandset/commandset-get.mdx +0 -163
- package/docs/docs/cmd/spo/commandset/commandset-list.mdx +0 -123
- package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +0 -59
- package/docs/docs/cmd/spo/commandset/commandset-set.mdx +0 -87
- package/docs/docs/cmd/spo/contenttype/contenttype-add.mdx +0 -77
- package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +0 -73
- package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +0 -56
- package/docs/docs/cmd/spo/contenttype/contenttype-get.mdx +0 -71
- package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +0 -37
- package/docs/docs/cmd/spo/contenttype/contenttype-remove.mdx +0 -55
- package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +0 -66
- package/docs/docs/cmd/spo/contenttypehub/contenttypehub-get.mdx +0 -23
- package/docs/docs/cmd/spo/customaction/customaction-add.mdx +0 -146
- package/docs/docs/cmd/spo/customaction/customaction-clear.mdx +0 -47
- package/docs/docs/cmd/spo/customaction/customaction-get.mdx +0 -175
- package/docs/docs/cmd/spo/customaction/customaction-list.mdx +0 -51
- package/docs/docs/cmd/spo/customaction/customaction-remove.mdx +0 -90
- package/docs/docs/cmd/spo/customaction/customaction-set.mdx +0 -131
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.mdx +0 -119
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-list.mdx +0 -64
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +0 -81
- package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +0 -68
- package/docs/docs/cmd/spo/feature/feature-disable.mdx +0 -47
- package/docs/docs/cmd/spo/feature/feature-enable.mdx +0 -47
- package/docs/docs/cmd/spo/feature/feature-list.mdx +0 -37
- package/docs/docs/cmd/spo/field/field-add.mdx +0 -75
- package/docs/docs/cmd/spo/field/field-get.mdx +0 -55
- package/docs/docs/cmd/spo/field/field-list.mdx +0 -55
- package/docs/docs/cmd/spo/field/field-remove.mdx +0 -67
- package/docs/docs/cmd/spo/field/field-set.mdx +0 -74
- package/docs/docs/cmd/spo/file/file-add.mdx +0 -160
- package/docs/docs/cmd/spo/file/file-checkin.mdx +0 -58
- package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +0 -47
- package/docs/docs/cmd/spo/file/file-checkout.mdx +0 -40
- package/docs/docs/cmd/spo/file/file-copy.mdx +0 -83
- package/docs/docs/cmd/spo/file/file-get.mdx +0 -314
- package/docs/docs/cmd/spo/file/file-list.mdx +0 -134
- package/docs/docs/cmd/spo/file/file-move.mdx +0 -85
- package/docs/docs/cmd/spo/file/file-remove.mdx +0 -64
- package/docs/docs/cmd/spo/file/file-rename.mdx +0 -47
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +0 -62
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +0 -47
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +0 -61
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +0 -58
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +0 -58
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +0 -43
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +0 -40
- package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +0 -102
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +0 -50
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +0 -120
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +0 -119
- package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +0 -56
- package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +0 -118
- package/docs/docs/cmd/spo/file/file-version-clear.mdx +0 -59
- package/docs/docs/cmd/spo/file/file-version-get.mdx +0 -89
- package/docs/docs/cmd/spo/file/file-version-list.mdx +0 -89
- package/docs/docs/cmd/spo/file/file-version-remove.mdx +0 -62
- package/docs/docs/cmd/spo/file/file-version-restore.mdx +0 -62
- package/docs/docs/cmd/spo/folder/folder-add.mdx +0 -115
- package/docs/docs/cmd/spo/folder/folder-copy.mdx +0 -84
- package/docs/docs/cmd/spo/folder/folder-get.mdx +0 -55
- package/docs/docs/cmd/spo/folder/folder-list.mdx +0 -121
- package/docs/docs/cmd/spo/folder/folder-move.mdx +0 -84
- package/docs/docs/cmd/spo/folder/folder-remove.mdx +0 -47
- package/docs/docs/cmd/spo/folder/folder-rename.mdx +0 -44
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +0 -51
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +0 -47
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +0 -63
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +0 -61
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +0 -49
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +0 -46
- package/docs/docs/cmd/spo/group/group-add.mdx +0 -55
- package/docs/docs/cmd/spo/group/group-get.mdx +0 -49
- package/docs/docs/cmd/spo/group/group-list.mdx +0 -37
- package/docs/docs/cmd/spo/group/group-member-add.mdx +0 -164
- package/docs/docs/cmd/spo/group/group-member-list.mdx +0 -40
- package/docs/docs/cmd/spo/group/group-member-remove.mdx +0 -77
- package/docs/docs/cmd/spo/group/group-remove.mdx +0 -43
- package/docs/docs/cmd/spo/group/group-set.mdx +0 -73
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.mdx +0 -35
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.mdx +0 -40
- package/docs/docs/cmd/spo/homesite/homesite-get.mdx +0 -86
- package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +0 -75
- package/docs/docs/cmd/spo/homesite/homesite-set.mdx +0 -127
- package/docs/docs/cmd/spo/hubsite/hubsite-connect.mdx +0 -69
- package/docs/docs/cmd/spo/hubsite/hubsite-data-get.mdx +0 -137
- package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.mdx +0 -65
- package/docs/docs/cmd/spo/hubsite/hubsite-get.mdx +0 -190
- package/docs/docs/cmd/spo/hubsite/hubsite-list.mdx +0 -210
- package/docs/docs/cmd/spo/hubsite/hubsite-register.mdx +0 -133
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.mdx +0 -62
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.mdx +0 -56
- package/docs/docs/cmd/spo/hubsite/hubsite-set.mdx +0 -136
- package/docs/docs/cmd/spo/hubsite/hubsite-unregister.mdx +0 -55
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-get.mdx +0 -67
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.mdx +0 -78
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.mdx +0 -74
- package/docs/docs/cmd/spo/list/list-add.mdx +0 -435
- package/docs/docs/cmd/spo/list/list-contenttype-add.mdx +0 -194
- package/docs/docs/cmd/spo/list/list-contenttype-default-set.mdx +0 -56
- package/docs/docs/cmd/spo/list/list-contenttype-list.mdx +0 -164
- package/docs/docs/cmd/spo/list/list-contenttype-remove.mdx +0 -59
- package/docs/docs/cmd/spo/list/list-get.mdx +0 -295
- package/docs/docs/cmd/spo/list/list-list.mdx +0 -226
- package/docs/docs/cmd/spo/list/list-remove.mdx +0 -47
- package/docs/docs/cmd/spo/list/list-retentionlabel-ensure.mdx +0 -57
- package/docs/docs/cmd/spo/list/list-retentionlabel-get.mdx +0 -159
- package/docs/docs/cmd/spo/list/list-retentionlabel-remove.mdx +0 -56
- package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +0 -86
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +0 -65
- package/docs/docs/cmd/spo/list/list-roleinheritance-break.mdx +0 -75
- package/docs/docs/cmd/spo/list/list-roleinheritance-reset.mdx +0 -62
- package/docs/docs/cmd/spo/list/list-sensitivitylabel-ensure.mdx +0 -73
- package/docs/docs/cmd/spo/list/list-set.mdx +0 -249
- package/docs/docs/cmd/spo/list/list-sitescript-get.mdx +0 -169
- package/docs/docs/cmd/spo/list/list-view-add.mdx +0 -272
- package/docs/docs/cmd/spo/list/list-view-field-add.mdx +0 -74
- package/docs/docs/cmd/spo/list/list-view-field-remove.mdx +0 -65
- package/docs/docs/cmd/spo/list/list-view-field-set.mdx +0 -74
- package/docs/docs/cmd/spo/list/list-view-get.mdx +0 -247
- package/docs/docs/cmd/spo/list/list-view-list.mdx +0 -198
- package/docs/docs/cmd/spo/list/list-view-remove.mdx +0 -74
- package/docs/docs/cmd/spo/list/list-view-set.mdx +0 -86
- package/docs/docs/cmd/spo/list/list-webhook-add.mdx +0 -121
- package/docs/docs/cmd/spo/list/list-webhook-get.mdx +0 -118
- package/docs/docs/cmd/spo/list/list-webhook-list.mdx +0 -110
- package/docs/docs/cmd/spo/list/list-webhook-remove.mdx +0 -62
- package/docs/docs/cmd/spo/list/list-webhook-set.mdx +0 -69
- package/docs/docs/cmd/spo/listitem/listitem-add.mdx +0 -188
- package/docs/docs/cmd/spo/listitem/listitem-attachment-add.mdx +0 -110
- package/docs/docs/cmd/spo/listitem/listitem-attachment-get.mdx +0 -104
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +0 -111
- package/docs/docs/cmd/spo/listitem/listitem-attachment-remove.mdx +0 -58
- package/docs/docs/cmd/spo/listitem/listitem-attachment-set.mdx +0 -58
- package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +0 -71
- package/docs/docs/cmd/spo/listitem/listitem-batch-set.mdx +0 -71
- package/docs/docs/cmd/spo/listitem/listitem-get.mdx +0 -331
- package/docs/docs/cmd/spo/listitem/listitem-isrecord.mdx +0 -88
- package/docs/docs/cmd/spo/listitem/listitem-list.mdx +0 -193
- package/docs/docs/cmd/spo/listitem/listitem-record-declare.mdx +0 -115
- package/docs/docs/cmd/spo/listitem/listitem-record-lock.mdx +0 -56
- package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.mdx +0 -56
- package/docs/docs/cmd/spo/listitem/listitem-record-unlock.mdx +0 -56
- package/docs/docs/cmd/spo/listitem/listitem-remove.mdx +0 -62
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-ensure.mdx +0 -75
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-remove.mdx +0 -59
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +0 -89
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +0 -75
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.mdx +0 -78
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.mdx +0 -59
- package/docs/docs/cmd/spo/listitem/listitem-set.mdx +0 -186
- package/docs/docs/cmd/spo/mail/mail-send.mdx +0 -69
- package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +0 -144
- package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +0 -105
- package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +0 -106
- package/docs/docs/cmd/spo/navigation/navigation-node-remove.mdx +0 -47
- package/docs/docs/cmd/spo/navigation/navigation-node-set.mdx +0 -72
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +0 -65
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.mdx +0 -107
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.mdx +0 -83
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.mdx +0 -69
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.mdx +0 -49
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-set.mdx +0 -42
- package/docs/docs/cmd/spo/page/page-add.mdx +0 -110
- package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +0 -92
- package/docs/docs/cmd/spo/page/page-column-get.mdx +0 -129
- package/docs/docs/cmd/spo/page/page-column-list.mdx +0 -96
- package/docs/docs/cmd/spo/page/page-control-get.mdx +0 -133
- package/docs/docs/cmd/spo/page/page-control-list.mdx +0 -129
- package/docs/docs/cmd/spo/page/page-control-set.mdx +0 -60
- package/docs/docs/cmd/spo/page/page-copy.mdx +0 -165
- package/docs/docs/cmd/spo/page/page-get.mdx +0 -188
- package/docs/docs/cmd/spo/page/page-header-set.mdx +0 -90
- package/docs/docs/cmd/spo/page/page-list.mdx +0 -211
- package/docs/docs/cmd/spo/page/page-remove.mdx +0 -50
- package/docs/docs/cmd/spo/page/page-section-add.mdx +0 -69
- package/docs/docs/cmd/spo/page/page-section-get.mdx +0 -92
- package/docs/docs/cmd/spo/page/page-section-list.mdx +0 -93
- package/docs/docs/cmd/spo/page/page-set.mdx +0 -130
- package/docs/docs/cmd/spo/page/page-template-list.mdx +0 -126
- package/docs/docs/cmd/spo/page/page-text-add.mdx +0 -63
- package/docs/docs/cmd/spo/propertybag/propertybag-get.mdx +0 -94
- package/docs/docs/cmd/spo/propertybag/propertybag-list.mdx +0 -106
- package/docs/docs/cmd/spo/propertybag/propertybag-remove.mdx +0 -65
- package/docs/docs/cmd/spo/propertybag/propertybag-set.mdx +0 -69
- package/docs/docs/cmd/spo/report/report-activityfilecounts.mdx +0 -92
- package/docs/docs/cmd/spo/report/report-activitypages.mdx +0 -89
- package/docs/docs/cmd/spo/report/report-activityusercounts.mdx +0 -97
- package/docs/docs/cmd/spo/report/report-activityuserdetail.mdx +0 -110
- package/docs/docs/cmd/spo/report/report-siteusagedetail.mdx +0 -113
- package/docs/docs/cmd/spo/report/report-siteusagefilecounts.mdx +0 -95
- package/docs/docs/cmd/spo/report/report-siteusagepages.mdx +0 -90
- package/docs/docs/cmd/spo/report/report-siteusagesitecounts.mdx +0 -95
- package/docs/docs/cmd/spo/report/report-siteusagestorage.mdx +0 -90
- package/docs/docs/cmd/spo/roledefinition/roledefinition-add.mdx +0 -51
- package/docs/docs/cmd/spo/roledefinition/roledefinition-get.mdx +0 -139
- package/docs/docs/cmd/spo/roledefinition/roledefinition-list.mdx +0 -132
- package/docs/docs/cmd/spo/roledefinition/roledefinition-remove.mdx +0 -44
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.mdx +0 -118
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.mdx +0 -97
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.mdx +0 -48
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.mdx +0 -117
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.mdx +0 -48
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.mdx +0 -94
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.mdx +0 -116
- package/docs/docs/cmd/spo/site/site-add.mdx +0 -218
- package/docs/docs/cmd/spo/site/site-appcatalog-add.mdx +0 -44
- package/docs/docs/cmd/spo/site/site-appcatalog-list.mdx +0 -94
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +0 -46
- package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +0 -109
- package/docs/docs/cmd/spo/site/site-apppermission-get.mdx +0 -86
- package/docs/docs/cmd/spo/site/site-apppermission-list.mdx +0 -99
- package/docs/docs/cmd/spo/site/site-apppermission-remove.mdx +0 -56
- package/docs/docs/cmd/spo/site/site-apppermission-set.mdx +0 -118
- package/docs/docs/cmd/spo/site/site-chrome-set.mdx +0 -68
- package/docs/docs/cmd/spo/site/site-commsite-enable.mdx +0 -58
- package/docs/docs/cmd/spo/site/site-ensure.mdx +0 -198
- package/docs/docs/cmd/spo/site/site-get.mdx +0 -211
- package/docs/docs/cmd/spo/site/site-groupify.mdx +0 -132
- package/docs/docs/cmd/spo/site/site-hubsite-connect.mdx +0 -45
- package/docs/docs/cmd/spo/site/site-hubsite-disconnect.mdx +0 -45
- package/docs/docs/cmd/spo/site/site-hubsite-theme-sync.mdx +0 -36
- package/docs/docs/cmd/spo/site/site-inplacerecordsmanagement-set.mdx +0 -41
- package/docs/docs/cmd/spo/site/site-list.mdx +0 -310
- package/docs/docs/cmd/spo/site/site-recyclebinitem-clear.mdx +0 -52
- package/docs/docs/cmd/spo/site/site-recyclebinitem-list.mdx +0 -124
- package/docs/docs/cmd/spo/site/site-recyclebinitem-move.mdx +0 -47
- package/docs/docs/cmd/spo/site/site-recyclebinitem-remove.mdx +0 -52
- package/docs/docs/cmd/spo/site/site-recyclebinitem-restore.mdx +0 -35
- package/docs/docs/cmd/spo/site/site-remove.mdx +0 -76
- package/docs/docs/cmd/spo/site/site-rename.mdx +0 -157
- package/docs/docs/cmd/spo/site/site-set.mdx +0 -195
- package/docs/docs/cmd/spo/sitedesign/sitedesign-add.mdx +0 -183
- package/docs/docs/cmd/spo/sitedesign/sitedesign-apply.mdx +0 -169
- package/docs/docs/cmd/spo/sitedesign/sitedesign-get.mdx +0 -162
- package/docs/docs/cmd/spo/sitedesign/sitedesign-list.mdx +0 -121
- package/docs/docs/cmd/spo/sitedesign/sitedesign-remove.mdx +0 -49
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.mdx +0 -54
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.mdx +0 -92
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.mdx +0 -56
- package/docs/docs/cmd/spo/sitedesign/sitedesign-run-list.mdx +0 -107
- package/docs/docs/cmd/spo/sitedesign/sitedesign-run-status-get.mdx +0 -104
- package/docs/docs/cmd/spo/sitedesign/sitedesign-set.mdx +0 -197
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.mdx +0 -93
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-list.mdx +0 -92
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.mdx +0 -45
- package/docs/docs/cmd/spo/sitescript/sitescript-add.mdx +0 -117
- package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +0 -98
- package/docs/docs/cmd/spo/sitescript/sitescript-list.mdx +0 -87
- package/docs/docs/cmd/spo/sitescript/sitescript-remove.mdx +0 -49
- package/docs/docs/cmd/spo/sitescript/sitescript-set.mdx +0 -111
- package/docs/docs/cmd/spo/spo-get.mdx +0 -72
- package/docs/docs/cmd/spo/spo-search.mdx +0 -167
- package/docs/docs/cmd/spo/spo-set.mdx +0 -36
- package/docs/docs/cmd/spo/storageentity/storageentity-get.mdx +0 -89
- package/docs/docs/cmd/spo/storageentity/storageentity-list.mdx +0 -90
- package/docs/docs/cmd/spo/storageentity/storageentity-remove.mdx +0 -58
- package/docs/docs/cmd/spo/storageentity/storageentity-set.mdx +0 -60
- package/docs/docs/cmd/spo/tenant/tenant-appcatalog-add.mdx +0 -70
- package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.mdx +0 -66
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +0 -69
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +0 -156
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +0 -113
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +0 -53
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +0 -90
- package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +0 -183
- package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +0 -155
- package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +0 -112
- package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +0 -53
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +0 -76
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-list.mdx +0 -98
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.mdx +0 -54
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +0 -97
- package/docs/docs/cmd/spo/tenant/tenant-settings-list.mdx +0 -760
- package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +0 -318
- package/docs/docs/cmd/spo/term/term-add.mdx +0 -204
- package/docs/docs/cmd/spo/term/term-get.mdx +0 -176
- package/docs/docs/cmd/spo/term/term-group-add.mdx +0 -113
- package/docs/docs/cmd/spo/term/term-group-get.mdx +0 -121
- package/docs/docs/cmd/spo/term/term-group-list.mdx +0 -111
- package/docs/docs/cmd/spo/term/term-list.mdx +0 -278
- package/docs/docs/cmd/spo/term/term-set-add.mdx +0 -169
- package/docs/docs/cmd/spo/term/term-set-get.mdx +0 -145
- package/docs/docs/cmd/spo/term/term-set-list.mdx +0 -135
- package/docs/docs/cmd/spo/theme/theme-apply.mdx +0 -90
- package/docs/docs/cmd/spo/theme/theme-get.mdx +0 -114
- package/docs/docs/cmd/spo/theme/theme-list.mdx +0 -87
- package/docs/docs/cmd/spo/theme/theme-remove.mdx +0 -53
- package/docs/docs/cmd/spo/theme/theme-set.mdx +0 -95
- package/docs/docs/cmd/spo/user/user-ensure.mdx +0 -122
- package/docs/docs/cmd/spo/user/user-get.mdx +0 -137
- package/docs/docs/cmd/spo/user/user-list.mdx +0 -103
- package/docs/docs/cmd/spo/user/user-remove.mdx +0 -55
- package/docs/docs/cmd/spo/userprofile/userprofile-get.mdx +0 -649
- package/docs/docs/cmd/spo/userprofile/userprofile-set.mdx +0 -48
- package/docs/docs/cmd/spo/web/web-add.mdx +0 -138
- package/docs/docs/cmd/spo/web/web-clientsidewebpart-list.mdx +0 -83
- package/docs/docs/cmd/spo/web/web-get.mdx +0 -561
- package/docs/docs/cmd/spo/web/web-installedlanguage-list.mdx +0 -83
- package/docs/docs/cmd/spo/web/web-list.mdx +0 -135
- package/docs/docs/cmd/spo/web/web-reindex.mdx +0 -36
- package/docs/docs/cmd/spo/web/web-remove.mdx +0 -35
- package/docs/docs/cmd/spo/web/web-retentionlabel-list.mdx +0 -115
- package/docs/docs/cmd/spo/web/web-roleassignment-add.mdx +0 -65
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +0 -62
- package/docs/docs/cmd/spo/web/web-roleinheritance-break.mdx +0 -48
- package/docs/docs/cmd/spo/web/web-roleinheritance-reset.mdx +0 -41
- package/docs/docs/cmd/spo/web/web-set.mdx +0 -121
- package/docs/docs/cmd/status.mdx +0 -86
- package/docs/docs/cmd/teams/app/app-install.mdx +0 -57
- package/docs/docs/cmd/teams/app/app-list.mdx +0 -91
- package/docs/docs/cmd/teams/app/app-publish.mdx +0 -92
- package/docs/docs/cmd/teams/app/app-remove.mdx +0 -48
- package/docs/docs/cmd/teams/app/app-uninstall.mdx +0 -43
- package/docs/docs/cmd/teams/app/app-update.mdx +0 -48
- package/docs/docs/cmd/teams/cache/cache-remove.mdx +0 -58
- package/docs/docs/cmd/teams/channel/channel-add.mdx +0 -132
- package/docs/docs/cmd/teams/channel/channel-get.mdx +0 -122
- package/docs/docs/cmd/teams/channel/channel-list.mdx +0 -112
- package/docs/docs/cmd/teams/channel/channel-member-add.mdx +0 -62
- package/docs/docs/cmd/teams/channel/channel-member-list.mdx +0 -119
- package/docs/docs/cmd/teams/channel/channel-member-remove.mdx +0 -59
- package/docs/docs/cmd/teams/channel/channel-member-set.mdx +0 -121
- package/docs/docs/cmd/teams/channel/channel-remove.mdx +0 -70
- package/docs/docs/cmd/teams/channel/channel-set.mdx +0 -53
- package/docs/docs/cmd/teams/chat/chat-get.mdx +0 -131
- package/docs/docs/cmd/teams/chat/chat-list.mdx +0 -116
- package/docs/docs/cmd/teams/chat/chat-member-add.mdx +0 -66
- package/docs/docs/cmd/teams/chat/chat-member-list.mdx +0 -93
- package/docs/docs/cmd/teams/chat/chat-member-remove.mdx +0 -56
- package/docs/docs/cmd/teams/chat/chat-message-list.mdx +0 -121
- package/docs/docs/cmd/teams/chat/chat-message-send.mdx +0 -63
- package/docs/docs/cmd/teams/funsettings/funsettings-list.mdx +0 -82
- package/docs/docs/cmd/teams/funsettings/funsettings-set.mdx +0 -62
- package/docs/docs/cmd/teams/guestsettings/guestsettings-list.mdx +0 -76
- package/docs/docs/cmd/teams/guestsettings/guestsettings-set.mdx +0 -44
- package/docs/docs/cmd/teams/meeting/meeting-attendancereport-list.mdx +0 -82
- package/docs/docs/cmd/teams/meeting/meeting-get.mdx +0 -175
- package/docs/docs/cmd/teams/meeting/meeting-list.mdx +0 -205
- package/docs/docs/cmd/teams/meeting/meeting-transcript-list.mdx +0 -116
- package/docs/docs/cmd/teams/membersettings/membersettings-list.mdx +0 -88
- package/docs/docs/cmd/teams/membersettings/membersettings-set.mdx +0 -53
- package/docs/docs/cmd/teams/message/message-get.mdx +0 -163
- package/docs/docs/cmd/teams/message/message-list.mdx +0 -152
- package/docs/docs/cmd/teams/message/message-reply-list.mdx +0 -146
- package/docs/docs/cmd/teams/message/message-send.mdx +0 -132
- package/docs/docs/cmd/teams/messagingsettings/messagingsettings-list.mdx +0 -87
- package/docs/docs/cmd/teams/messagingsettings/messagingsettings-set.mdx +0 -53
- package/docs/docs/cmd/teams/report/report-deviceusagedistributionusercounts.mdx +0 -95
- package/docs/docs/cmd/teams/report/report-deviceusageusercounts.mdx +0 -96
- package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.mdx +0 -114
- package/docs/docs/cmd/teams/report/report-directroutingcalls.mdx +0 -115
- package/docs/docs/cmd/teams/report/report-pstncalls.mdx +0 -119
- package/docs/docs/cmd/teams/report/report-useractivitycounts.mdx +0 -99
- package/docs/docs/cmd/teams/report/report-useractivityusercounts.mdx +0 -93
- package/docs/docs/cmd/teams/report/report-useractivityuserdetail.mdx +0 -127
- package/docs/docs/cmd/teams/tab/tab-add.mdx +0 -120
- package/docs/docs/cmd/teams/tab/tab-get.mdx +0 -115
- package/docs/docs/cmd/teams/tab/tab-list.mdx +0 -115
- package/docs/docs/cmd/teams/tab/tab-remove.mdx +0 -51
- package/docs/docs/cmd/teams/team/team-add.mdx +0 -291
- package/docs/docs/cmd/teams/team/team-app-list.mdx +0 -108
- package/docs/docs/cmd/teams/team/team-archive.mdx +0 -59
- package/docs/docs/cmd/teams/team/team-clone.mdx +0 -59
- package/docs/docs/cmd/teams/team/team-get.mdx +0 -155
- package/docs/docs/cmd/teams/team/team-list.mdx +0 -174
- package/docs/docs/cmd/teams/team/team-remove.mdx +0 -60
- package/docs/docs/cmd/teams/team/team-set.mdx +0 -53
- package/docs/docs/cmd/teams/team/team-unarchive.mdx +0 -49
- package/docs/docs/cmd/teams/user/user-app-add.mdx +0 -39
- package/docs/docs/cmd/teams/user/user-app-list.mdx +0 -109
- package/docs/docs/cmd/teams/user/user-app-remove.mdx +0 -43
- package/docs/docs/cmd/teams/user/user-list.mdx +0 -95
- package/docs/docs/cmd/tenant/id/id-get.mdx +0 -74
- package/docs/docs/cmd/tenant/info/info-get.mdx +0 -101
- package/docs/docs/cmd/tenant/report/report-activeusercounts.mdx +0 -95
- package/docs/docs/cmd/tenant/report/report-activeuserdetail.mdx +0 -122
- package/docs/docs/cmd/tenant/report/report-office365activationcounts.mdx +0 -72
- package/docs/docs/cmd/tenant/report/report-office365activationsusercounts.mdx +0 -70
- package/docs/docs/cmd/tenant/report/report-office365activationsuserdetail.mdx +0 -76
- package/docs/docs/cmd/tenant/report/report-servicesusercounts.mdx +0 -101
- package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +0 -172
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.mdx +0 -173
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.mdx +0 -174
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.mdx +0 -126
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.mdx +0 -124
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.mdx +0 -127
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.mdx +0 -121
- package/docs/docs/cmd/todo/list/list-add.mdx +0 -85
- package/docs/docs/cmd/todo/list/list-get.mdx +0 -93
- package/docs/docs/cmd/todo/list/list-list.mdx +0 -82
- package/docs/docs/cmd/todo/list/list-remove.mdx +0 -44
- package/docs/docs/cmd/todo/list/list-set.mdx +0 -44
- package/docs/docs/cmd/todo/task/task-add.mdx +0 -178
- package/docs/docs/cmd/todo/task/task-get.mdx +0 -110
- package/docs/docs/cmd/todo/task/task-list.mdx +0 -115
- package/docs/docs/cmd/todo/task/task-remove.mdx +0 -48
- package/docs/docs/cmd/todo/task/task-set.mdx +0 -187
- package/docs/docs/cmd/util/accesstoken/accesstoken-get.mdx +0 -95
- package/docs/docs/cmd/version.mdx +0 -59
- package/docs/docs/cmd/viva/connections/connections-app-create.mdx +0 -81
- package/docs/docs/cmd/yammer/group/group-list.mdx +0 -174
- package/docs/docs/cmd/yammer/group/group-user-add.mdx +0 -60
- package/docs/docs/cmd/yammer/group/group-user-remove.mdx +0 -58
- package/docs/docs/cmd/yammer/message/message-add.mdx +0 -175
- package/docs/docs/cmd/yammer/message/message-get.mdx +0 -148
- package/docs/docs/cmd/yammer/message/message-like-set.mdx +0 -58
- package/docs/docs/cmd/yammer/message/message-list.mdx +0 -201
- package/docs/docs/cmd/yammer/message/message-remove.mdx +0 -55
- package/docs/docs/cmd/yammer/network/network-list.mdx +0 -218
- package/docs/docs/cmd/yammer/report/report-activitycounts.mdx +0 -91
- package/docs/docs/cmd/yammer/report/report-activityusercounts.mdx +0 -91
- package/docs/docs/cmd/yammer/report/report-activityuserdetail.mdx +0 -109
- package/docs/docs/cmd/yammer/report/report-deviceusagedistributionusercounts.mdx +0 -93
- package/docs/docs/cmd/yammer/report/report-deviceusageusercounts.mdx +0 -94
- package/docs/docs/cmd/yammer/report/report-deviceusageuserdetail.mdx +0 -111
- package/docs/docs/cmd/yammer/report/report-groupsactivitycounts.mdx +0 -91
- package/docs/docs/cmd/yammer/report/report-groupsactivitydetail.mdx +0 -110
- package/docs/docs/cmd/yammer/report/report-groupsactivitygroupcounts.mdx +0 -90
- package/docs/docs/cmd/yammer/user/user-get.mdx +0 -223
- package/docs/docs/cmd/yammer/user/user-list.mdx +0 -228
- package/docs/docs/cmd/yammer/yammer-search.mdx +0 -173
- package/eslint-rules/lib/index.js +0 -4
- package/eslint-rules/lib/rules/correct-command-class-name.js +0 -116
- package/eslint-rules/lib/rules/correct-command-name.js +0 -65
- package/eslint-rules/package-lock.json +0 -12
- package/eslint-rules/package.json +0 -5
|
@@ -25,7 +25,7 @@ class Page {
|
|
|
25
25
|
}
|
|
26
26
|
const pageName = this.getPageNameWithExtension(name);
|
|
27
27
|
const requestOptions = {
|
|
28
|
-
url: `${webUrl}/_api/web/
|
|
28
|
+
url: `${webUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl='${urlUtil_1.urlUtil.getServerRelativeSiteUrl(webUrl)}/SitePages/${formatting_1.formatting.encodeQueryParameter(pageName)}')?$expand=ListItemAllFields/ClientSideApplicationId`,
|
|
29
29
|
headers: {
|
|
30
30
|
'content-type': 'application/json;charset=utf-8',
|
|
31
31
|
accept: 'application/json;odata=nometadata'
|
|
@@ -39,7 +39,7 @@ class Page {
|
|
|
39
39
|
return clientsidepages_1.ClientSidePage.fromHtml(res.ListItemAllFields.CanvasContent1);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
static checkout(name, webUrl, logger,
|
|
42
|
+
static checkout(name, webUrl, logger, verbose) {
|
|
43
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
44
|
if (verbose) {
|
|
45
45
|
logger.log(`Checking out ${name} page...`);
|
|
@@ -88,10 +88,28 @@ class Page {
|
|
|
88
88
|
return output;
|
|
89
89
|
}
|
|
90
90
|
static getSectionInformation(section, isJSONOutput) {
|
|
91
|
-
|
|
92
|
-
order: section.order
|
|
93
|
-
columns: section.columns.map(column => this.getColumnsInformation(column, isJSONOutput))
|
|
91
|
+
const sectionOutput = {
|
|
92
|
+
order: section.order
|
|
94
93
|
};
|
|
94
|
+
sectionOutput.columns = section.columns.map(column => this.getColumnsInformation(column, isJSONOutput));
|
|
95
|
+
return sectionOutput;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Publish a modern page in SharePoint Online
|
|
99
|
+
* @param webUrl Absolute URL of the SharePoint site where the page is located
|
|
100
|
+
* @param pageName List relative url of the page to publish
|
|
101
|
+
*/
|
|
102
|
+
static publishPage(webUrl, pageName) {
|
|
103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
const filePath = `${urlUtil_1.urlUtil.getServerRelativeSiteUrl(webUrl)}/SitePages/${pageName}`;
|
|
105
|
+
const requestOptions = {
|
|
106
|
+
url: `${webUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl='${formatting_1.formatting.encodeQueryParameter(filePath)}')/Publish()`,
|
|
107
|
+
headers: {
|
|
108
|
+
accept: 'application/json;odata=nometadata'
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
yield request_1.default.post(requestOptions);
|
|
112
|
+
});
|
|
95
113
|
}
|
|
96
114
|
static getPageNameWithExtension(name) {
|
|
97
115
|
let pageName = name;
|
|
@@ -15,7 +15,6 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _SpoPageAddCommand_instances, _SpoPageAddCommand_initTelemetry, _SpoPageAddCommand_initOptions, _SpoPageAddCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const Auth_1 = require("../../../../Auth");
|
|
19
18
|
const request_1 = require("../../../../request");
|
|
20
19
|
const formatting_1 = require("../../../../utils/formatting");
|
|
21
20
|
const spo_1 = require("../../../../utils/spo");
|
|
@@ -24,9 +23,6 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
24
23
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
25
24
|
const commands_1 = require("../../commands");
|
|
26
25
|
const Page_1 = require("./Page");
|
|
27
|
-
const spoFileGetCommand = require("../file/file-get");
|
|
28
|
-
const spoListItemSetCommand = require("../listitem/listitem-set");
|
|
29
|
-
const Cli_1 = require("../../../../cli/Cli");
|
|
30
26
|
class SpoPageAddCommand extends SpoCommand_1.default {
|
|
31
27
|
get name() {
|
|
32
28
|
return commands_1.default.PAGE_ADD;
|
|
@@ -43,16 +39,14 @@ class SpoPageAddCommand extends SpoCommand_1.default {
|
|
|
43
39
|
}
|
|
44
40
|
commandAction(logger, args) {
|
|
45
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
const resource = Auth_1.Auth.getResourceFromUrl(args.options.webUrl);
|
|
47
42
|
let requestDigest = '';
|
|
48
43
|
let itemId = '';
|
|
49
44
|
let pageName = args.options.name;
|
|
50
|
-
const serverRelativeSiteUrl = urlUtil_1.urlUtil.getServerRelativeSiteUrl(args.options.webUrl);
|
|
51
45
|
const fileNameWithoutExtension = pageName.replace('.aspx', '');
|
|
52
46
|
let bannerImageUrl = '';
|
|
53
47
|
let canvasContent1 = '';
|
|
54
48
|
let layoutWebpartsContent = '';
|
|
55
|
-
const pageTitle = args.options.title ? args.options.title : (args.options.name.indexOf('.aspx') > -1 ? args.options.name.
|
|
49
|
+
const pageTitle = args.options.title ? args.options.title : (args.options.name.indexOf('.aspx') > -1 ? args.options.name.substring(0, args.options.name.indexOf('.aspx')) : args.options.name);
|
|
56
50
|
let pageId = null;
|
|
57
51
|
const pageDescription = args.options.description || "";
|
|
58
52
|
if (!pageName.endsWith('.aspx')) {
|
|
@@ -64,40 +58,24 @@ class SpoPageAddCommand extends SpoCommand_1.default {
|
|
|
64
58
|
const reqDigest = yield spo_1.spo.getRequestDigest(args.options.webUrl);
|
|
65
59
|
requestDigest = reqDigest.FormDigestValue;
|
|
66
60
|
let requestOptions = {
|
|
67
|
-
url: `${args.options.webUrl}/_api/
|
|
61
|
+
url: `${args.options.webUrl}/_api/sitepages/pages`,
|
|
62
|
+
responseType: 'json',
|
|
68
63
|
headers: {
|
|
69
|
-
'X-RequestDigest': requestDigest,
|
|
70
64
|
'content-type': 'application/json;odata=nometadata',
|
|
71
65
|
accept: 'application/json;odata=nometadata'
|
|
72
66
|
},
|
|
73
67
|
data: {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
68
|
+
PageLayoutType: args.options.layoutType || 'Article',
|
|
69
|
+
Name: pageName,
|
|
70
|
+
PromotedState: args.options.promoteAs === 'NewsPage' ? 2 : 0,
|
|
71
|
+
Title: pageTitle
|
|
72
|
+
}
|
|
78
73
|
};
|
|
79
74
|
const template = yield request_1.default.post(requestOptions);
|
|
80
75
|
itemId = template.UniqueId;
|
|
81
|
-
const
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
webUrl: args.options.webUrl,
|
|
85
|
-
listUrl: listServerRelativeUrl,
|
|
86
|
-
id: listItemId,
|
|
87
|
-
systemUpdate: true,
|
|
88
|
-
ContentTypeId: '0x0101009D1CB255DA76424F860D91F20E6C4118',
|
|
89
|
-
Title: pageTitle,
|
|
90
|
-
ClientSideApplicationId: 'b6917cb1-93a0-4b97-a84d-7cf49975d4ec',
|
|
91
|
-
PageLayoutType: layoutType,
|
|
92
|
-
verbose: this.verbose,
|
|
93
|
-
debug: this.debug
|
|
94
|
-
};
|
|
95
|
-
if (args.options.layoutType === 'Article') {
|
|
96
|
-
listItemSetOptions.PromotedState = 0;
|
|
97
|
-
listItemSetOptions.BannerImageUrl = `${resource}/_layouts/15/images/sitepagethumbnail.png, /_layouts/15/images/sitepagethumbnail.png`;
|
|
98
|
-
}
|
|
99
|
-
yield Cli_1.Cli.executeCommand(spoListItemSetCommand, { options: Object.assign(Object.assign({}, listItemSetOptions), { _: [] }) });
|
|
100
|
-
const pageProps = yield Page_1.Page.checkout(pageName, args.options.webUrl, logger, this.debug, this.verbose);
|
|
76
|
+
const file = yield spo_1.spo.getFileAsListItemByUrl(args.options.webUrl, serverRelativeFileUrl, logger, this.verbose);
|
|
77
|
+
const listItemId = file.Id;
|
|
78
|
+
const pageProps = yield Page_1.Page.checkout(pageName, args.options.webUrl, logger, this.verbose);
|
|
101
79
|
if (pageProps) {
|
|
102
80
|
pageId = pageProps.Id;
|
|
103
81
|
bannerImageUrl = pageProps.BannerImageUrl;
|
|
@@ -125,16 +103,11 @@ class SpoPageAddCommand extends SpoCommand_1.default {
|
|
|
125
103
|
break;
|
|
126
104
|
case 'NewsPage':
|
|
127
105
|
const listItemSetOptions = {
|
|
128
|
-
|
|
129
|
-
listUrl: listServerRelativeUrl,
|
|
130
|
-
id: listItemId,
|
|
131
|
-
systemUpdate: true,
|
|
132
|
-
PromotedState: 2,
|
|
133
|
-
FirstPublishedDate: new Date().toISOString(),
|
|
134
|
-
verbose: this.verbose,
|
|
135
|
-
debug: this.debug
|
|
106
|
+
FirstPublishedDate: new Date().toISOString()
|
|
136
107
|
};
|
|
137
|
-
|
|
108
|
+
const listUrl = urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, listServerRelativeUrl);
|
|
109
|
+
const requestUrl = `${args.options.webUrl}/_api/web/GetList('${formatting_1.formatting.encodeQueryParameter(listUrl)}')`;
|
|
110
|
+
yield spo_1.spo.systemUpdateListItem(requestUrl, listItemId, logger, this.verbose, listItemSetOptions);
|
|
138
111
|
break;
|
|
139
112
|
case 'Template':
|
|
140
113
|
requestOptions.url = `${args.options.webUrl}/_api/SitePages/Pages(${listItemId})/SavePageAsTemplate`;
|
|
@@ -246,20 +219,6 @@ class SpoPageAddCommand extends SpoCommand_1.default {
|
|
|
246
219
|
}
|
|
247
220
|
});
|
|
248
221
|
}
|
|
249
|
-
getFileListItemId(webUrl, serverRelativeFileUrl) {
|
|
250
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
251
|
-
const fileGetOptions = {
|
|
252
|
-
webUrl: webUrl,
|
|
253
|
-
url: serverRelativeFileUrl,
|
|
254
|
-
asListItem: true,
|
|
255
|
-
verbose: this.verbose,
|
|
256
|
-
debug: this.debug
|
|
257
|
-
};
|
|
258
|
-
const fileGetOutput = yield Cli_1.Cli.executeCommandWithOutput(spoFileGetCommand, { options: Object.assign(Object.assign({}, fileGetOptions), { _: [] }) });
|
|
259
|
-
const fileGetOutputJson = JSON.parse(fileGetOutput.stdout);
|
|
260
|
-
return fileGetOutputJson.Id;
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
222
|
}
|
|
264
223
|
_SpoPageAddCommand_instances = new WeakSet(), _SpoPageAddCommand_initTelemetry = function _SpoPageAddCommand_initTelemetry() {
|
|
265
224
|
this.telemetry.push((args) => {
|
|
@@ -62,7 +62,7 @@ class SpoPageControlSetCommand extends SpoCommand_1.default {
|
|
|
62
62
|
logger.logToStderr(`Control with ID ${args.options.id} found on the page`);
|
|
63
63
|
}
|
|
64
64
|
// Check out the page
|
|
65
|
-
const page = yield Page_1.Page.checkout(pageName, args.options.webUrl, logger, this.
|
|
65
|
+
const page = yield Page_1.Page.checkout(pageName, args.options.webUrl, logger, this.verbose);
|
|
66
66
|
// Update the web part data
|
|
67
67
|
const canvasContent = JSON.parse(page.CanvasContent1);
|
|
68
68
|
if (this.debug) {
|
|
@@ -65,7 +65,7 @@ class SpoPageSetCommand extends SpoCommand_1.default {
|
|
|
65
65
|
try {
|
|
66
66
|
const requestDigestResult = yield spo_1.spo.getRequestDigest(args.options.webUrl);
|
|
67
67
|
const requestDigest = requestDigestResult.FormDigestValue;
|
|
68
|
-
const page = yield Page_1.Page.checkout(args.options.name, args.options.webUrl, logger, this.
|
|
68
|
+
const page = yield Page_1.Page.checkout(args.options.name, args.options.webUrl, logger, this.verbose);
|
|
69
69
|
if (page) {
|
|
70
70
|
pageTitle = pageTitle || page.Title;
|
|
71
71
|
pageId = page.Id;
|
package/dist/utils/spo.js
CHANGED
|
@@ -1326,6 +1326,151 @@ exports.spo = {
|
|
|
1326
1326
|
const webProperties = yield request_1.default.get(requestOptions);
|
|
1327
1327
|
return webProperties;
|
|
1328
1328
|
});
|
|
1329
|
+
},
|
|
1330
|
+
/**
|
|
1331
|
+
* Gets a file as list item by url
|
|
1332
|
+
* @param absoluteListUrl The absolute url to the list
|
|
1333
|
+
* @param url The url of the file
|
|
1334
|
+
* @param logger The logger object
|
|
1335
|
+
* @param verbose If in verbose mode
|
|
1336
|
+
* @returns The list item object
|
|
1337
|
+
*/
|
|
1338
|
+
getFileAsListItemByUrl(absoluteListUrl, url, logger, verbose) {
|
|
1339
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1340
|
+
if (verbose && logger) {
|
|
1341
|
+
yield logger.logToStderr(`Getting the file properties with url ${url}`);
|
|
1342
|
+
}
|
|
1343
|
+
const serverRelativePath = urlUtil_1.urlUtil.getServerRelativePath(absoluteListUrl, url);
|
|
1344
|
+
const requestUrl = `${absoluteListUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl=@f)?$expand=ListItemAllFields&@f='${formatting_1.formatting.encodeQueryParameter(serverRelativePath)}'`;
|
|
1345
|
+
const requestOptions = {
|
|
1346
|
+
url: requestUrl,
|
|
1347
|
+
headers: {
|
|
1348
|
+
'accept': 'application/json;odata=nometadata'
|
|
1349
|
+
},
|
|
1350
|
+
responseType: 'json'
|
|
1351
|
+
};
|
|
1352
|
+
const file = yield request_1.default.get(requestOptions);
|
|
1353
|
+
return file.ListItemAllFields;
|
|
1354
|
+
});
|
|
1355
|
+
},
|
|
1356
|
+
/**
|
|
1357
|
+
* Updates a list item with system update
|
|
1358
|
+
* @param absoluteListUrl The absolute base URL without query parameters, pointing to the specific list where the item resides. This URL should represent the list.
|
|
1359
|
+
* @param itemId The id of the list item
|
|
1360
|
+
* @param properties An object of the properties that should be updated
|
|
1361
|
+
* @param contentTypeName The name of the content type to update
|
|
1362
|
+
* @param logger The logger object
|
|
1363
|
+
* @param verbose If in verbose mode
|
|
1364
|
+
* @returns The updated list item object
|
|
1365
|
+
*/
|
|
1366
|
+
systemUpdateListItem(absoluteListUrl, itemId, logger, verbose, properties, contentTypeName) {
|
|
1367
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1368
|
+
if (!properties && !contentTypeName) {
|
|
1369
|
+
// Neither properties nor contentTypeName provided, no need to proceed
|
|
1370
|
+
throw 'Either properties or contentTypeName must be provided for systemUpdateListItem.';
|
|
1371
|
+
}
|
|
1372
|
+
const parsedUrl = new URL(absoluteListUrl);
|
|
1373
|
+
const serverRelativeSiteMatch = absoluteListUrl.match(new RegExp('/sites/[^/]+'));
|
|
1374
|
+
const webUrl = `${parsedUrl.protocol}//${parsedUrl.host}${serverRelativeSiteMatch !== null && serverRelativeSiteMatch !== void 0 ? serverRelativeSiteMatch : ''}`;
|
|
1375
|
+
if (verbose && logger) {
|
|
1376
|
+
yield logger.logToStderr(`Getting list id...`);
|
|
1377
|
+
}
|
|
1378
|
+
const listRequestOptions = {
|
|
1379
|
+
url: `${absoluteListUrl}?$select=Id`,
|
|
1380
|
+
headers: {
|
|
1381
|
+
'accept': 'application/json;odata=nometadata'
|
|
1382
|
+
},
|
|
1383
|
+
responseType: 'json'
|
|
1384
|
+
};
|
|
1385
|
+
const list = yield request_1.default.get(listRequestOptions);
|
|
1386
|
+
const listId = list.Id;
|
|
1387
|
+
if (verbose && logger) {
|
|
1388
|
+
yield logger.logToStderr(`Getting request digest for systemUpdate request`);
|
|
1389
|
+
}
|
|
1390
|
+
const res = yield exports.spo.getRequestDigest(webUrl);
|
|
1391
|
+
const formDigestValue = res.FormDigestValue;
|
|
1392
|
+
const objectIdentity = yield exports.spo.requestObjectIdentity(webUrl, logger, verbose);
|
|
1393
|
+
let index = 0;
|
|
1394
|
+
const requestBodyOptions = properties ? Object.keys(properties).map(key => `
|
|
1395
|
+
<Method Name="ParseAndSetFieldValue" Id="${++index}" ObjectPathId="147">
|
|
1396
|
+
<Parameters>
|
|
1397
|
+
<Parameter Type="String">${key}</Parameter>
|
|
1398
|
+
<Parameter Type="String">${properties[key].toString()}</Parameter>
|
|
1399
|
+
</Parameters>
|
|
1400
|
+
</Method>`) : [];
|
|
1401
|
+
const additionalContentType = contentTypeName ? `
|
|
1402
|
+
<Method Name="ParseAndSetFieldValue" Id="${++index}" ObjectPathId="147">
|
|
1403
|
+
<Parameters>
|
|
1404
|
+
<Parameter Type="String">ContentType</Parameter>
|
|
1405
|
+
<Parameter Type="String">${contentTypeName}</Parameter>
|
|
1406
|
+
</Parameters>
|
|
1407
|
+
</Method>` : '';
|
|
1408
|
+
const requestBody = `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009">
|
|
1409
|
+
<Actions>
|
|
1410
|
+
${requestBodyOptions.join('')}${additionalContentType}
|
|
1411
|
+
<Method Name="SystemUpdate" Id="${++index}" ObjectPathId="147" />
|
|
1412
|
+
</Actions>
|
|
1413
|
+
<ObjectPaths>
|
|
1414
|
+
<Identity Id="147" Name="${objectIdentity}:list:${listId}:item:${itemId},1" />
|
|
1415
|
+
</ObjectPaths>
|
|
1416
|
+
</Request>`;
|
|
1417
|
+
const requestOptions = {
|
|
1418
|
+
url: `${webUrl}/_vti_bin/client.svc/ProcessQuery`,
|
|
1419
|
+
headers: {
|
|
1420
|
+
'Content-Type': 'text/xml',
|
|
1421
|
+
'X-RequestDigest': formDigestValue
|
|
1422
|
+
},
|
|
1423
|
+
data: requestBody
|
|
1424
|
+
};
|
|
1425
|
+
const response = yield request_1.default.post(requestOptions);
|
|
1426
|
+
if (response.indexOf("ErrorMessage") > -1) {
|
|
1427
|
+
throw `Error occurred in systemUpdate operation - ${response}`;
|
|
1428
|
+
}
|
|
1429
|
+
const id = Number(itemId);
|
|
1430
|
+
const requestOptionsItems = {
|
|
1431
|
+
url: `${absoluteListUrl}/items(${id})`,
|
|
1432
|
+
headers: {
|
|
1433
|
+
'accept': 'application/json;odata=nometadata'
|
|
1434
|
+
},
|
|
1435
|
+
responseType: 'json'
|
|
1436
|
+
};
|
|
1437
|
+
const itemsResponse = yield request_1.default.get(requestOptionsItems);
|
|
1438
|
+
return (itemsResponse);
|
|
1439
|
+
});
|
|
1440
|
+
},
|
|
1441
|
+
/**
|
|
1442
|
+
* Retrieves the ObjectIdentity from a SharePoint site
|
|
1443
|
+
* @param webUrl web url
|
|
1444
|
+
* @param logger The logger object
|
|
1445
|
+
* @param verbose If in verbose mode
|
|
1446
|
+
* @return The ObjectIdentity as string
|
|
1447
|
+
*/
|
|
1448
|
+
requestObjectIdentity(webUrl, logger, verbose) {
|
|
1449
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1450
|
+
const res = yield exports.spo.getRequestDigest(webUrl);
|
|
1451
|
+
const formDigestValue = res.FormDigestValue;
|
|
1452
|
+
const requestOptions = {
|
|
1453
|
+
url: `${webUrl}/_vti_bin/client.svc/ProcessQuery`,
|
|
1454
|
+
headers: {
|
|
1455
|
+
'X-RequestDigest': formDigestValue
|
|
1456
|
+
},
|
|
1457
|
+
data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><Query Id="1" ObjectPathId="5"><Query SelectAllProperties="false"><Properties><Property Name="ServerRelativeUrl" ScalarProperty="true" /></Properties></Query></Query></Actions><ObjectPaths><Property Id="5" ParentId="3" Name="Web" /><StaticProperty Id="3" TypeId="{3747adcd-a3c3-41b9-bfab-4a64dd2f1e0a}" Name="Current" /></ObjectPaths></Request>`
|
|
1458
|
+
};
|
|
1459
|
+
const response = yield request_1.default.post(requestOptions);
|
|
1460
|
+
if (verbose) {
|
|
1461
|
+
yield logger.logToStderr('Attempt to get _ObjectIdentity_ key values');
|
|
1462
|
+
}
|
|
1463
|
+
const json = JSON.parse(response);
|
|
1464
|
+
const contents = json.find(x => { return x.ErrorInfo; });
|
|
1465
|
+
if (contents && contents.ErrorInfo) {
|
|
1466
|
+
throw contents.ErrorInfo.ErrorMessage || 'ClientSvc unknown error';
|
|
1467
|
+
}
|
|
1468
|
+
const identityObject = json.find(x => { return x._ObjectIdentity_; });
|
|
1469
|
+
if (identityObject) {
|
|
1470
|
+
return identityObject._ObjectIdentity_;
|
|
1471
|
+
}
|
|
1472
|
+
throw 'Cannot proceed. _ObjectIdentity_ not found'; // this is not supposed to happen
|
|
1473
|
+
});
|
|
1329
1474
|
}
|
|
1330
1475
|
};
|
|
1331
1476
|
//# sourceMappingURL=spo.js.map
|