@pnp/cli-microsoft365 7.0.0-beta.31d0077 → 7.0.0-beta.602a03f
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/README.md +7 -5
- package/dist/Command.js +1 -1
- package/dist/cli/Cli.js +23 -8
- package/dist/m365/aad/commands/app/app-remove.js +3 -3
- package/dist/m365/aad/commands/app/app-role-remove.js +2 -2
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +3 -3
- package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +3 -3
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +3 -3
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-remove.js +3 -3
- package/dist/m365/aad/commands/o365group/o365group-remove.js +3 -3
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +3 -3
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +2 -2
- package/dist/m365/aad/commands/siteclassification/siteclassification-disable.js +3 -3
- package/dist/m365/aad/commands/user/user-get.js +7 -1
- package/dist/m365/aad/commands/user/user-license-remove.js +3 -3
- package/dist/m365/aad/commands/user/user-list.js +3 -6
- package/dist/m365/aad/commands/user/user-recyclebinitem-clear.js +3 -3
- package/dist/m365/aad/commands/user/user-recyclebinitem-remove.js +3 -3
- package/dist/m365/aad/commands/user/user-remove.js +3 -3
- package/dist/m365/aad/commands/user/user-set.js +20 -20
- package/dist/m365/booking/commands/business/business-get.js +14 -15
- package/dist/m365/cli/commands/config/config-set.js +1 -1
- package/dist/m365/context/commands/context-remove.js +3 -3
- package/dist/m365/context/commands/option/option-remove.js +3 -3
- package/dist/m365/file/commands/file-list.js +1 -1
- package/dist/m365/flow/commands/flow-export.js +1 -1
- package/dist/m365/flow/commands/flow-remove.js +3 -3
- package/dist/m365/flow/commands/owner/owner-ensure.js +1 -1
- package/dist/m365/flow/commands/owner/owner-list.js +1 -1
- package/dist/m365/flow/commands/owner/owner-remove.js +4 -4
- package/dist/m365/flow/commands/run/run-cancel.js +4 -4
- package/dist/m365/flow/commands/run/run-get.js +1 -1
- package/dist/m365/flow/commands/run/run-list.js +1 -1
- package/dist/m365/flow/commands/run/run-resubmit.js +4 -4
- package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +3 -3
- package/dist/m365/pa/commands/app/app-consent-set.js +4 -4
- package/dist/m365/pa/commands/app/app-export.js +3 -3
- package/dist/m365/pa/commands/app/app-list.js +5 -5
- package/dist/m365/pa/commands/app/app-owner-set.js +115 -0
- package/dist/m365/pa/commands/app/app-permission-list.js +104 -0
- package/dist/m365/pa/commands/app/app-remove.js +3 -3
- package/dist/m365/pa/commands.js +2 -0
- package/dist/m365/planner/commands/bucket/bucket-add.js +14 -10
- package/dist/m365/planner/commands/bucket/bucket-get.js +25 -19
- package/dist/m365/planner/commands/bucket/bucket-list.js +14 -10
- package/dist/m365/planner/commands/bucket/bucket-remove.js +29 -23
- package/dist/m365/planner/commands/bucket/bucket-set.js +26 -28
- package/dist/m365/planner/commands/plan/plan-remove.js +3 -3
- package/dist/m365/planner/commands/roster/roster-member-add.js +3 -14
- package/dist/m365/planner/commands/roster/roster-member-remove.js +4 -4
- package/dist/m365/planner/commands/roster/roster-remove.js +3 -3
- package/dist/m365/planner/commands/task/task-checklistitem-remove.js +3 -3
- package/dist/m365/planner/commands/task/task-reference-remove.js +3 -3
- package/dist/m365/planner/commands/task/task-remove.js +3 -3
- package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-get.js +2 -2
- package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-list.js +2 -2
- package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-remove.js +6 -6
- package/dist/m365/pp/commands/card/card-clone.js +3 -3
- package/dist/m365/pp/commands/card/card-get.js +2 -2
- package/dist/m365/pp/commands/card/card-list.js +2 -2
- package/dist/m365/pp/commands/card/card-remove.js +6 -6
- package/dist/m365/pp/commands/chatbot/chatbot-get.js +2 -2
- package/dist/m365/pp/commands/chatbot/chatbot-list.js +3 -3
- package/dist/m365/pp/commands/chatbot/chatbot-remove.js +6 -6
- package/dist/m365/pp/commands/dataverse/dataverse-table-get.js +2 -2
- package/dist/m365/pp/commands/dataverse/dataverse-table-list.js +2 -2
- package/dist/m365/pp/commands/dataverse/dataverse-table-remove.js +5 -5
- package/dist/m365/pp/commands/dataverse/dataverse-table-row-list.js +2 -2
- package/dist/m365/pp/commands/dataverse/dataverse-table-row-remove.js +5 -5
- package/dist/m365/pp/commands/solution/solution-get.js +2 -2
- package/dist/m365/pp/commands/solution/solution-list.js +2 -2
- package/dist/m365/pp/commands/solution/solution-publish.js +3 -3
- package/dist/m365/pp/commands/solution/solution-publisher-add.js +2 -2
- package/dist/m365/pp/commands/solution/solution-publisher-get.js +2 -2
- package/dist/m365/pp/commands/solution/solution-publisher-list.js +2 -2
- package/dist/m365/pp/commands/solution/solution-publisher-remove.js +6 -6
- package/dist/m365/pp/commands/solution/solution-remove.js +6 -6
- package/dist/m365/purview/commands/retentionevent/retentionevent-remove.js +22 -20
- package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-remove.js +22 -20
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-remove.js +3 -3
- package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +38 -37
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.0-beta.1.js +23 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-externalize/rules/DynamicRule.js +59 -51
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.0-beta.1.js +61 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
- package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
- package/dist/m365/spo/commands/app/app-remove.js +3 -3
- package/dist/m365/spo/commands/app/app-retract.js +3 -3
- package/dist/m365/spo/commands/app/app-uninstall.js +3 -3
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-remove.js +3 -3
- package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +3 -3
- package/dist/m365/spo/commands/commandset/commandset-remove.js +3 -3
- package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +4 -4
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +1 -1
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-clear.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -3
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +3 -3
- package/dist/m365/spo/commands/externaluser/externaluser-list.js +1 -1
- package/dist/m365/spo/commands/field/field-remove.js +3 -3
- package/dist/m365/spo/commands/file/file-add.js +1 -1
- package/dist/m365/spo/commands/file/file-checkin.js +1 -1
- package/dist/m365/spo/commands/file/file-checkout-undo.js +4 -4
- package/dist/m365/spo/commands/file/file-checkout.js +1 -1
- package/dist/m365/spo/commands/file/file-list.js +3 -14
- package/dist/m365/spo/commands/file/file-move.js +1 -1
- package/dist/m365/spo/commands/file/file-remove.js +3 -3
- package/dist/m365/spo/commands/file/file-rename.js +1 -1
- package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +4 -4
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +3 -3
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +3 -3
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +3 -3
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +1 -1
- package/dist/m365/spo/commands/file/file-sharinglink-clear.js +3 -3
- package/dist/m365/spo/commands/file/file-sharinglink-remove.js +3 -3
- package/dist/m365/spo/commands/file/file-version-clear.js +3 -3
- package/dist/m365/spo/commands/file/file-version-remove.js +3 -3
- package/dist/m365/spo/commands/file/file-version-restore.js +3 -3
- package/dist/m365/spo/commands/folder/folder-get.js +1 -1
- package/dist/m365/spo/commands/folder/folder-list.js +1 -1
- package/dist/m365/spo/commands/folder/folder-remove.js +34 -32
- package/dist/m365/spo/commands/folder/folder-rename.js +1 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +5 -5
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +4 -4
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +4 -4
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +4 -4
- package/dist/m365/spo/commands/group/group-member-remove.js +3 -3
- package/dist/m365/spo/commands/group/group-remove.js +3 -3
- package/dist/m365/spo/commands/homesite/homesite-remove.js +3 -3
- package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +1 -1
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +2 -2
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +3 -3
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +3 -3
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +3 -3
- package/dist/m365/spo/commands/list/list-add.js +0 -9
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +3 -3
- package/dist/m365/spo/commands/list/list-list.js +1 -1
- package/dist/m365/spo/commands/list/list-remove.js +3 -3
- package/dist/m365/spo/commands/list/list-retentionlabel-ensure.js +0 -4
- package/dist/m365/spo/commands/list/list-retentionlabel-get.js +0 -4
- package/dist/m365/spo/commands/list/list-retentionlabel-remove.js +3 -3
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +9 -47
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +3 -3
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +3 -3
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +3 -3
- package/dist/m365/spo/commands/list/list-set.js +0 -9
- package/dist/m365/spo/commands/list/list-view-field-remove.js +3 -3
- package/dist/m365/spo/commands/list/list-view-remove.js +3 -3
- package/dist/m365/spo/commands/list/list-webhook-remove.js +3 -3
- package/dist/m365/spo/commands/listitem/listitem-add.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-list.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-remove.js +3 -3
- package/dist/m365/spo/commands/listitem/listitem-retentionlabel-remove.js +3 -3
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +3 -3
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +3 -3
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +3 -3
- package/dist/m365/spo/commands/navigation/navigation-node-remove.js +3 -3
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +2 -2
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +3 -3
- package/dist/m365/spo/commands/page/page-remove.js +35 -33
- package/dist/m365/spo/commands/propertybag/propertybag-get.js +1 -1
- package/dist/m365/spo/commands/propertybag/propertybag-list.js +1 -1
- package/dist/m365/spo/commands/propertybag/propertybag-remove.js +4 -4
- package/dist/m365/spo/commands/propertybag/propertybag-set.js +1 -1
- package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +28 -26
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +2 -2
- package/dist/m365/spo/commands/site/site-apppermission-add.js +3 -3
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +3 -3
- package/dist/m365/spo/commands/site/site-commsite-enable.js +9 -18
- package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +3 -3
- package/dist/m365/spo/commands/site/site-list.js +1 -1
- package/dist/m365/spo/commands/site/site-recyclebinitem-clear.js +3 -3
- package/dist/m365/spo/commands/site/site-recyclebinitem-move.js +3 -3
- package/dist/m365/spo/commands/site/site-recyclebinitem-remove.js +3 -3
- package/dist/m365/spo/commands/site/site-remove.js +3 -3
- package/dist/m365/spo/commands/site/site-set.js +10 -2
- package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +3 -3
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +3 -3
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +3 -3
- package/dist/m365/spo/commands/sitescript/sitescript-remove.js +3 -3
- package/dist/m365/spo/commands/storageentity/storageentity-remove.js +3 -3
- package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +12 -15
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-remove.js +3 -3
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +80 -2
- package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +3 -3
- package/dist/m365/spo/commands/tenant/tenant-commandset-set.js +107 -24
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +51 -51
- package/dist/m365/spo/commands/theme/theme-get.js +1 -2
- package/dist/m365/spo/commands/theme/theme-remove.js +3 -3
- package/dist/m365/spo/commands/user/user-get.js +5 -5
- package/dist/m365/spo/commands/user/user-remove.js +3 -3
- package/dist/m365/spo/commands/web/web-remove.js +3 -3
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +3 -3
- package/dist/m365/spo/commands/web/web-roleinheritance-break.js +3 -3
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +3 -3
- package/dist/m365/spo/commands.js +0 -2
- package/dist/m365/teams/commands/app/app-remove.js +3 -3
- package/dist/m365/teams/commands/app/app-uninstall.js +3 -3
- package/dist/m365/teams/commands/cache/cache-remove.js +3 -3
- package/dist/m365/teams/commands/channel/channel-member-remove.js +3 -3
- package/dist/m365/teams/commands/channel/channel-remove.js +3 -3
- package/dist/m365/teams/commands/chat/chat-get.js +4 -4
- package/dist/m365/teams/commands/chat/chat-member-add.js +117 -0
- package/dist/m365/teams/commands/chat/chat-member-remove.js +3 -3
- package/dist/m365/teams/commands/chat/chat-message-send.js +4 -4
- package/dist/m365/teams/commands/meeting/meeting-get.js +16 -24
- package/dist/m365/teams/commands/meeting/meeting-list.js +2 -15
- package/dist/m365/teams/commands/tab/tab-remove.js +6 -6
- package/dist/m365/teams/commands/team/team-app-list.js +1 -1
- package/dist/m365/teams/commands/team/team-remove.js +3 -3
- package/dist/m365/teams/commands/user/user-app-remove.js +3 -3
- package/dist/m365/teams/commands.js +1 -0
- package/dist/m365/todo/commands/list/list-remove.js +3 -3
- package/dist/m365/todo/commands/task/task-remove.js +3 -3
- package/dist/m365/yammer/commands/group/group-user-remove.js +3 -3
- package/dist/m365/yammer/commands/message/message-like-set.js +3 -3
- package/dist/m365/yammer/commands/message/message-list.js +1 -1
- package/dist/m365/yammer/commands/message/message-remove.js +3 -3
- package/dist/utils/spo.js +74 -0
- package/docs/docs/_clisettings.mdx +17 -0
- package/docs/docs/cmd/_global.mdx +1 -1
- package/docs/docs/cmd/aad/app/app-remove.mdx +2 -2
- package/docs/docs/cmd/aad/app/app-role-remove.mdx +2 -2
- package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/aad/groupsetting/groupsetting-remove.mdx +2 -2
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-clear.mdx +2 -2
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-remove.mdx +2 -2
- package/docs/docs/cmd/aad/o365group/o365group-remove.mdx +3 -3
- package/docs/docs/cmd/aad/o365group/o365group-report-activitycounts.mdx +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-report-activitydetail.mdx +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-report-activityfilecounts.mdx +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-report-activitygroupcounts.mdx +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-report-activitystorage.mdx +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-user-remove.mdx +2 -2
- package/docs/docs/cmd/aad/oauth2grant/oauth2grant-remove.mdx +2 -2
- package/docs/docs/cmd/aad/siteclassification/siteclassification-disable.mdx +2 -2
- package/docs/docs/cmd/aad/user/user-get.mdx +118 -25
- package/docs/docs/cmd/aad/user/user-license-remove.mdx +1 -1
- package/docs/docs/cmd/aad/user/user-list.mdx +0 -9
- package/docs/docs/cmd/aad/user/user-recyclebinitem-clear.mdx +2 -2
- package/docs/docs/cmd/aad/user/user-recyclebinitem-remove.mdx +2 -2
- package/docs/docs/cmd/aad/user/user-remove.mdx +1 -1
- package/docs/docs/cmd/aad/user/user-set.mdx +11 -11
- package/docs/docs/cmd/context/context-remove.mdx +2 -2
- package/docs/docs/cmd/context/option/option-remove.mdx +2 -2
- package/docs/docs/cmd/file/file-list.mdx +1 -1
- package/docs/docs/cmd/flow/flow-export.mdx +1 -1
- package/docs/docs/cmd/flow/flow-remove.mdx +3 -3
- package/docs/docs/cmd/flow/owner/owner-ensure.mdx +1 -1
- package/docs/docs/cmd/flow/owner/owner-list.mdx +1 -1
- package/docs/docs/cmd/flow/owner/owner-remove.mdx +3 -3
- package/docs/docs/cmd/flow/run/run-cancel.mdx +1 -1
- package/docs/docs/cmd/flow/run/run-get.mdx +1 -1
- package/docs/docs/cmd/flow/run/run-list.mdx +1 -1
- package/docs/docs/cmd/flow/run/run-resubmit.mdx +3 -3
- package/docs/docs/cmd/graph/schemaextension/schemaextension-remove.mdx +2 -2
- package/docs/docs/cmd/onedrive/report/report-activityfilecounts.mdx +1 -1
- package/docs/docs/cmd/onedrive/report/report-activityusercounts.mdx +1 -1
- package/docs/docs/cmd/onedrive/report/report-activityuserdetail.mdx +1 -1
- package/docs/docs/cmd/onedrive/report/report-usageaccountcounts.mdx +1 -1
- package/docs/docs/cmd/onedrive/report/report-usageaccountdetail.mdx +1 -1
- package/docs/docs/cmd/onedrive/report/report-usagefilecounts.mdx +1 -1
- package/docs/docs/cmd/onedrive/report/report-usagestorage.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailactivitycounts.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailactivityusercounts.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailactivityuserdetail.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailappusageappsusercounts.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailappusageusercounts.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailappusageuserdetail.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailappusageversionsusercounts.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailboxusagedetail.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailboxusagemailboxcount.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailboxusagequotastatusmailboxcounts.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailboxusagestorage.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-consent-set.mdx +4 -4
- package/docs/docs/cmd/pa/app/app-export.mdx +3 -3
- package/docs/docs/cmd/pa/app/app-get.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-list.mdx +3 -3
- package/docs/docs/cmd/pa/app/app-owner-set.mdx +60 -0
- package/docs/docs/cmd/pa/app/app-permission-list.mdx +132 -0
- package/docs/docs/cmd/pa/app/app-remove.mdx +2 -2
- package/docs/docs/cmd/planner/bucket/bucket-add.mdx +21 -4
- package/docs/docs/cmd/planner/bucket/bucket-get.mdx +22 -5
- package/docs/docs/cmd/planner/bucket/bucket-list.mdx +21 -4
- package/docs/docs/cmd/planner/bucket/bucket-remove.mdx +23 -6
- package/docs/docs/cmd/planner/bucket/bucket-set.mdx +22 -5
- package/docs/docs/cmd/planner/plan/plan-remove.mdx +2 -2
- package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +2 -2
- package/docs/docs/cmd/planner/roster/roster-remove.mdx +2 -2
- package/docs/docs/cmd/planner/task/task-checklistitem-remove.mdx +2 -2
- package/docs/docs/cmd/planner/task/task-reference-remove.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-remove.mdx +2 -2
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx +5 -5
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.mdx +5 -5
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-remove.mdx +5 -5
- package/docs/docs/cmd/pp/card/card-clone.mdx +7 -7
- package/docs/docs/cmd/pp/card/card-get.mdx +7 -7
- package/docs/docs/cmd/pp/card/card-list.mdx +5 -5
- package/docs/docs/cmd/pp/card/card-remove.mdx +10 -10
- package/docs/docs/cmd/pp/chatbot/chatbot-get.mdx +7 -7
- package/docs/docs/cmd/pp/chatbot/chatbot-list.mdx +5 -5
- package/docs/docs/cmd/pp/chatbot/chatbot-remove.mdx +5 -5
- package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +3 -3
- package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +3 -3
- package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +4 -4
- package/docs/docs/cmd/pp/dataverse/dataverse-table-row-list.mdx +6 -6
- package/docs/docs/cmd/pp/dataverse/dataverse-table-row-remove.mdx +7 -7
- package/docs/docs/cmd/pp/solution/solution-get.mdx +6 -6
- package/docs/docs/cmd/pp/solution/solution-list.mdx +4 -4
- package/docs/docs/cmd/pp/solution/solution-publish.mdx +4 -4
- package/docs/docs/cmd/pp/solution/solution-publisher-add.mdx +3 -3
- package/docs/docs/cmd/pp/solution/solution-publisher-get.mdx +6 -6
- package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +4 -4
- package/docs/docs/cmd/pp/solution/solution-publisher-remove.mdx +6 -6
- package/docs/docs/cmd/pp/solution/solution-remove.mdx +10 -10
- package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.mdx +1 -1
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.mdx +1 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/search/externalconnection/externalconnection-remove.mdx +2 -2
- package/docs/docs/cmd/skype/report/report-activitycounts.mdx +1 -1
- package/docs/docs/cmd/skype/report/report-activityusercounts.mdx +1 -1
- package/docs/docs/cmd/skype/report/report-activityuserdetail.mdx +1 -1
- package/docs/docs/cmd/spfx/project/project-externalize.mdx +1 -1
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
- package/docs/docs/cmd/spo/app/app-remove.mdx +2 -2
- package/docs/docs/cmd/spo/app/app-retract.mdx +2 -2
- package/docs/docs/cmd/spo/app/app-uninstall.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-remove.mdx +4 -4
- package/docs/docs/cmd/spo/cdn/cdn-origin-remove.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +3 -3
- package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-remove.mdx +3 -3
- package/docs/docs/cmd/spo/customaction/customaction-clear.mdx +2 -2
- package/docs/docs/cmd/spo/customaction/customaction-remove.mdx +3 -3
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +1 -1
- package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +1 -1
- package/docs/docs/cmd/spo/field/field-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkin.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-checkout.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-list.mdx +5 -9
- package/docs/docs/cmd/spo/file/file-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-version-clear.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-version-remove.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-version-restore.mdx +3 -3
- package/docs/docs/cmd/spo/folder/folder-get.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-list.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-remove.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-rename.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +3 -3
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +4 -4
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +4 -4
- package/docs/docs/cmd/spo/group/group-remove.mdx +1 -1
- package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +2 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-data-get.mdx +2 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.mdx +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.mdx +2 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-unregister.mdx +2 -2
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.mdx +2 -2
- package/docs/docs/cmd/spo/list/list-add.mdx +0 -3
- package/docs/docs/cmd/spo/list/list-contenttype-remove.mdx +2 -2
- package/docs/docs/cmd/spo/list/list-list.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-remove.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-retentionlabel-ensure.mdx +0 -6
- package/docs/docs/cmd/spo/list/list-retentionlabel-get.mdx +0 -6
- package/docs/docs/cmd/spo/list/list-retentionlabel-remove.mdx +2 -2
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-roleinheritance-break.mdx +2 -2
- package/docs/docs/cmd/spo/list/list-roleinheritance-reset.mdx +2 -2
- package/docs/docs/cmd/spo/list/list-set.mdx +0 -3
- package/docs/docs/cmd/spo/list/list-view-remove.mdx +2 -2
- package/docs/docs/cmd/spo/list/list-webhook-remove.mdx +2 -2
- package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +7 -7
- package/docs/docs/cmd/spo/listitem/listitem-list.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-remove.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +2 -2
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.mdx +2 -2
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.mdx +2 -2
- package/docs/docs/cmd/spo/navigation/navigation-node-remove.mdx +2 -2
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.mdx +3 -3
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.mdx +2 -2
- package/docs/docs/cmd/spo/page/page-remove.mdx +3 -3
- package/docs/docs/cmd/spo/propertybag/propertybag-get.mdx +1 -1
- package/docs/docs/cmd/spo/propertybag/propertybag-list.mdx +1 -1
- package/docs/docs/cmd/spo/propertybag/propertybag-remove.mdx +3 -3
- package/docs/docs/cmd/spo/propertybag/propertybag-set.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-activityfilecounts.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-activitypages.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-activityusercounts.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-activityuserdetail.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-siteusagedetail.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-siteusagefilecounts.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-siteusagepages.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-siteusagesitecounts.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-siteusagestorage.mdx +1 -1
- package/docs/docs/cmd/spo/roledefinition/roledefinition-remove.mdx +2 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.mdx +2 -2
- package/docs/docs/cmd/spo/site/site-add.mdx +35 -0
- package/docs/docs/cmd/spo/site/site-appcatalog-add.mdx +5 -1
- package/docs/docs/cmd/spo/site/site-appcatalog-list.mdx +14 -0
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +4 -0
- package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +68 -0
- package/docs/docs/cmd/spo/site/site-apppermission-get.mdx +55 -0
- package/docs/docs/cmd/spo/site/site-apppermission-list.mdx +55 -0
- package/docs/docs/cmd/spo/site/site-apppermission-remove.mdx +5 -1
- package/docs/docs/cmd/spo/site/site-apppermission-set.mdx +66 -0
- package/docs/docs/cmd/spo/site/site-chrome-set.mdx +4 -0
- package/docs/docs/cmd/spo/site/site-commsite-enable.mdx +11 -1
- package/docs/docs/cmd/spo/site/site-ensure.mdx +70 -0
- package/docs/docs/cmd/spo/site/site-get.mdx +179 -0
- package/docs/docs/cmd/spo/site/site-groupify.mdx +54 -0
- package/docs/docs/cmd/spo/site/site-hubsite-connect.mdx +4 -0
- package/docs/docs/cmd/spo/site/site-hubsite-disconnect.mdx +6 -2
- package/docs/docs/cmd/spo/site/site-hubsite-theme-sync.mdx +5 -1
- package/docs/docs/cmd/spo/site/site-inplacerecordsmanagement-set.mdx +4 -0
- package/docs/docs/cmd/spo/site/site-list.mdx +305 -2
- package/docs/docs/cmd/spo/site/site-recyclebinitem-clear.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-recyclebinitem-list.mdx +80 -0
- package/docs/docs/cmd/spo/site/site-recyclebinitem-move.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-recyclebinitem-remove.mdx +2 -2
- package/docs/docs/cmd/spo/site/site-recyclebinitem-restore.mdx +4 -0
- package/docs/docs/cmd/spo/site/site-remove.mdx +5 -1
- package/docs/docs/cmd/spo/site/site-rename.mdx +92 -0
- package/docs/docs/cmd/spo/site/site-set.mdx +13 -0
- package/docs/docs/cmd/spo/sitedesign/sitedesign-add.mdx +116 -0
- package/docs/docs/cmd/spo/sitedesign/sitedesign-apply.mdx +125 -0
- package/docs/docs/cmd/spo/sitedesign/sitedesign-get.mdx +117 -0
- package/docs/docs/cmd/spo/sitedesign/sitedesign-list.mdx +94 -0
- package/docs/docs/cmd/spo/sitedesign/sitedesign-remove.mdx +6 -2
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.mdx +4 -0
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.mdx +54 -0
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.mdx +6 -2
- package/docs/docs/cmd/spo/sitedesign/sitedesign-run-list.mdx +66 -0
- package/docs/docs/cmd/spo/sitedesign/sitedesign-run-status-get.mdx +65 -0
- package/docs/docs/cmd/spo/sitedesign/sitedesign-set.mdx +117 -0
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.mdx +61 -0
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-list.mdx +60 -0
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.mdx +6 -2
- package/docs/docs/cmd/spo/sitescript/sitescript-add.mdx +75 -0
- package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +62 -0
- package/docs/docs/cmd/spo/sitescript/sitescript-list.mdx +60 -0
- package/docs/docs/cmd/spo/sitescript/sitescript-remove.mdx +6 -2
- package/docs/docs/cmd/spo/sitescript/sitescript-set.mdx +63 -0
- package/docs/docs/cmd/spo/storageentity/storageentity-get.mdx +53 -0
- package/docs/docs/cmd/spo/storageentity/storageentity-list.mdx +54 -0
- package/docs/docs/cmd/spo/storageentity/storageentity-remove.mdx +6 -2
- package/docs/docs/cmd/spo/storageentity/storageentity-set.mdx +4 -0
- package/docs/docs/cmd/spo/tenant/tenant-appcatalog-add.mdx +4 -0
- package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.mdx +35 -0
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +2 -2
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +12 -3
- package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +2 -2
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +24 -12
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-list.mdx +67 -0
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.mdx +5 -1
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +50 -0
- package/docs/docs/cmd/spo/tenant/tenant-settings-list.mdx +729 -0
- package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +5 -0
- package/docs/docs/cmd/spo/theme/theme-apply.mdx +35 -0
- package/docs/docs/cmd/spo/theme/theme-get.mdx +74 -0
- package/docs/docs/cmd/spo/theme/theme-list.mdx +52 -0
- package/docs/docs/cmd/spo/theme/theme-remove.mdx +6 -2
- package/docs/docs/cmd/spo/theme/theme-set.mdx +4 -0
- package/docs/docs/cmd/spo/user/user-get.mdx +6 -6
- package/docs/docs/cmd/spo/user/user-remove.mdx +2 -2
- package/docs/docs/cmd/spo/userprofile/userprofile-get.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-remove.mdx +2 -2
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +2 -2
- package/docs/docs/cmd/spo/web/web-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-roleinheritance-reset.mdx +2 -2
- package/docs/docs/cmd/teams/app/app-remove.mdx +2 -2
- package/docs/docs/cmd/teams/app/app-uninstall.mdx +1 -1
- package/docs/docs/cmd/teams/cache/cache-remove.mdx +1 -1
- package/docs/docs/cmd/teams/channel/channel-member-remove.mdx +1 -1
- package/docs/docs/cmd/teams/channel/channel-remove.mdx +3 -3
- package/docs/docs/cmd/teams/chat/chat-member-add.mdx +66 -0
- package/docs/docs/cmd/teams/chat/chat-member-remove.mdx +2 -2
- package/docs/docs/cmd/teams/report/report-deviceusagedistributionusercounts.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-deviceusageusercounts.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-useractivitycounts.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-useractivityusercounts.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-useractivityuserdetail.mdx +1 -1
- package/docs/docs/cmd/teams/tab/tab-remove.mdx +2 -2
- package/docs/docs/cmd/teams/team/team-remove.mdx +2 -2
- package/docs/docs/cmd/teams/user/user-app-remove.mdx +1 -1
- package/docs/docs/cmd/tenant/report/report-activeusercounts.mdx +1 -1
- package/docs/docs/cmd/tenant/report/report-activeuserdetail.mdx +1 -1
- package/docs/docs/cmd/tenant/report/report-servicesusercounts.mdx +1 -1
- package/docs/docs/cmd/todo/list/list-remove.mdx +2 -2
- package/docs/docs/cmd/todo/task/task-remove.mdx +1 -1
- package/docs/docs/cmd/yammer/group/group-user-remove.mdx +2 -2
- package/docs/docs/cmd/yammer/message/message-like-set.mdx +2 -2
- package/docs/docs/cmd/yammer/message/message-list.mdx +1 -1
- package/docs/docs/cmd/yammer/message/message-remove.mdx +2 -2
- package/docs/docs/cmd/yammer/report/report-activitycounts.mdx +1 -1
- package/docs/docs/cmd/yammer/report/report-activityusercounts.mdx +1 -1
- package/docs/docs/cmd/yammer/report/report-activityuserdetail.mdx +1 -1
- package/docs/docs/cmd/yammer/report/report-deviceusagedistributionusercounts.mdx +1 -1
- package/docs/docs/cmd/yammer/report/report-deviceusageusercounts.mdx +1 -1
- package/docs/docs/cmd/yammer/report/report-deviceusageuserdetail.mdx +1 -1
- package/docs/docs/cmd/yammer/report/report-groupsactivitycounts.mdx +1 -1
- package/docs/docs/cmd/yammer/report/report-groupsactivitydetail.mdx +1 -1
- package/docs/docs/cmd/yammer/report/report-groupsactivitygroupcounts.mdx +1 -1
- package/npm-shrinkwrap.json +212 -212
- package/package.json +10 -10
|
@@ -62,7 +62,7 @@ class PaAppRemoveCommand extends PowerAppsCommand_1.default {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
|
-
if (args.options.
|
|
65
|
+
if (args.options.force) {
|
|
66
66
|
yield removePaApp();
|
|
67
67
|
}
|
|
68
68
|
else {
|
|
@@ -82,14 +82,14 @@ class PaAppRemoveCommand extends PowerAppsCommand_1.default {
|
|
|
82
82
|
_PaAppRemoveCommand_instances = new WeakSet(), _PaAppRemoveCommand_initTelemetry = function _PaAppRemoveCommand_initTelemetry() {
|
|
83
83
|
this.telemetry.push((args) => {
|
|
84
84
|
Object.assign(this.telemetryProperties, {
|
|
85
|
-
|
|
85
|
+
force: typeof args.options.force !== 'undefined'
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
88
|
}, _PaAppRemoveCommand_initOptions = function _PaAppRemoveCommand_initOptions() {
|
|
89
89
|
this.options.unshift({
|
|
90
90
|
option: '-n, --name <name>'
|
|
91
91
|
}, {
|
|
92
|
-
option: '--
|
|
92
|
+
option: '-f, --force'
|
|
93
93
|
});
|
|
94
94
|
}, _PaAppRemoveCommand_initValidators = function _PaAppRemoveCommand_initValidators() {
|
|
95
95
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
package/dist/m365/pa/commands.js
CHANGED
|
@@ -7,6 +7,8 @@ exports.default = {
|
|
|
7
7
|
APP_LIST: `${prefix} app list`,
|
|
8
8
|
APP_REMOVE: `${prefix} app remove`,
|
|
9
9
|
APP_CONSENT_SET: `${prefix} app consent set`,
|
|
10
|
+
APP_OWNER_SET: `${prefix} app owner set`,
|
|
11
|
+
APP_PERMISSION_LIST: `${prefix} app permission list`,
|
|
10
12
|
CONNECTOR_EXPORT: `${prefix} connector export`,
|
|
11
13
|
CONNECTOR_LIST: `${prefix} connector list`,
|
|
12
14
|
ENVIRONMENT_GET: `${prefix} environment get`,
|
|
@@ -68,9 +68,13 @@ class PlannerBucketAddCommand extends GraphCommand_1.default {
|
|
|
68
68
|
if (args.options.planId) {
|
|
69
69
|
return args.options.planId;
|
|
70
70
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
if (args.options.planTitle) {
|
|
72
|
+
const groupId = yield this.getGroupId(args);
|
|
73
|
+
const plan = yield planner_1.planner.getPlanByTitle(args.options.planTitle, groupId);
|
|
74
|
+
return plan.id;
|
|
75
|
+
}
|
|
76
|
+
const plans = yield planner_1.planner.getPlansByRosterId(args.options.rosterId);
|
|
77
|
+
return plans[0].id;
|
|
74
78
|
});
|
|
75
79
|
}
|
|
76
80
|
getGroupId(args) {
|
|
@@ -88,6 +92,7 @@ _PlannerBucketAddCommand_instances = new WeakSet(), _PlannerBucketAddCommand_ini
|
|
|
88
92
|
Object.assign(this.telemetryProperties, {
|
|
89
93
|
planId: typeof args.options.planId !== 'undefined',
|
|
90
94
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
95
|
+
rosterId: typeof args.options.rosterId !== 'undefined',
|
|
91
96
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
92
97
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
93
98
|
orderHint: typeof args.options.orderHint !== 'undefined'
|
|
@@ -100,6 +105,8 @@ _PlannerBucketAddCommand_instances = new WeakSet(), _PlannerBucketAddCommand_ini
|
|
|
100
105
|
option: "--planId [planId]"
|
|
101
106
|
}, {
|
|
102
107
|
option: "--planTitle [planTitle]"
|
|
108
|
+
}, {
|
|
109
|
+
option: '--rosterId [rosterId]'
|
|
103
110
|
}, {
|
|
104
111
|
option: "--ownerGroupId [ownerGroupId]"
|
|
105
112
|
}, {
|
|
@@ -109,19 +116,16 @@ _PlannerBucketAddCommand_instances = new WeakSet(), _PlannerBucketAddCommand_ini
|
|
|
109
116
|
});
|
|
110
117
|
}, _PlannerBucketAddCommand_initValidators = function _PlannerBucketAddCommand_initValidators() {
|
|
111
118
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
112
|
-
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
113
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
114
|
-
}
|
|
115
|
-
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
116
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
117
|
-
}
|
|
118
119
|
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
119
120
|
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
120
121
|
}
|
|
121
122
|
return true;
|
|
122
123
|
}));
|
|
123
124
|
}, _PlannerBucketAddCommand_initOptionSets = function _PlannerBucketAddCommand_initOptionSets() {
|
|
124
|
-
this.optionSets.push({ options: ['planId', 'planTitle'] }
|
|
125
|
+
this.optionSets.push({ options: ['planId', 'planTitle', 'rosterId'] }, {
|
|
126
|
+
options: ['ownerGroupId', 'ownerGroupName'],
|
|
127
|
+
runsWhen: (args) => args.options.planTitle !== undefined
|
|
128
|
+
});
|
|
125
129
|
};
|
|
126
130
|
module.exports = new PlannerBucketAddCommand();
|
|
127
131
|
//# sourceMappingURL=bucket-add.js.map
|
|
@@ -75,13 +75,17 @@ class PlannerBucketGetCommand extends GraphCommand_1.default {
|
|
|
75
75
|
}
|
|
76
76
|
getPlanId(args) {
|
|
77
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
const { planId, planTitle } = args.options;
|
|
78
|
+
const { planId, planTitle, rosterId } = args.options;
|
|
79
79
|
if (planId) {
|
|
80
80
|
return planId;
|
|
81
81
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
if (planTitle) {
|
|
83
|
+
const groupId = yield this.getGroupId(args);
|
|
84
|
+
const plan = yield planner_1.planner.getPlanByTitle(planTitle, groupId);
|
|
85
|
+
return plan.id;
|
|
86
|
+
}
|
|
87
|
+
const plans = yield planner_1.planner.getPlansByRosterId(rosterId);
|
|
88
|
+
return plans[0].id;
|
|
85
89
|
});
|
|
86
90
|
}
|
|
87
91
|
getBucketById(id) {
|
|
@@ -114,6 +118,7 @@ _PlannerBucketGetCommand_instances = new WeakSet(), _PlannerBucketGetCommand_ini
|
|
|
114
118
|
name: typeof args.options.name !== 'undefined',
|
|
115
119
|
planId: typeof args.options.planId !== 'undefined',
|
|
116
120
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
121
|
+
rosterId: typeof args.options.rosterId !== 'undefined',
|
|
117
122
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
118
123
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined'
|
|
119
124
|
});
|
|
@@ -127,6 +132,8 @@ _PlannerBucketGetCommand_instances = new WeakSet(), _PlannerBucketGetCommand_ini
|
|
|
127
132
|
option: '--planId [planId]'
|
|
128
133
|
}, {
|
|
129
134
|
option: "--planTitle [planTitle]"
|
|
135
|
+
}, {
|
|
136
|
+
option: '--rosterId [rosterId]'
|
|
130
137
|
}, {
|
|
131
138
|
option: '--ownerGroupId [ownerGroupId]'
|
|
132
139
|
}, {
|
|
@@ -135,24 +142,12 @@ _PlannerBucketGetCommand_instances = new WeakSet(), _PlannerBucketGetCommand_ini
|
|
|
135
142
|
}, _PlannerBucketGetCommand_initValidators = function _PlannerBucketGetCommand_initValidators() {
|
|
136
143
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
137
144
|
if (args.options.id) {
|
|
138
|
-
if (args.options.planId || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
139
|
-
return 'Don\'t specify planId, planTitle, ownerGroupId or ownerGroupName when using id';
|
|
145
|
+
if (args.options.planId || args.options.planTitle || args.options.rosterId || args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
146
|
+
return 'Don\'t specify planId, planTitle, rosterId, ownerGroupId or ownerGroupName when using id';
|
|
140
147
|
}
|
|
141
148
|
}
|
|
142
149
|
if (args.options.name) {
|
|
143
|
-
if (!args.options.planId && !args.options.planTitle) {
|
|
144
|
-
return 'Specify either planId or planTitle when using name';
|
|
145
|
-
}
|
|
146
|
-
if (args.options.planId && args.options.planTitle) {
|
|
147
|
-
return 'Specify either planId or planTitle when using name but not both';
|
|
148
|
-
}
|
|
149
150
|
if (args.options.planTitle) {
|
|
150
|
-
if (!args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
151
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
152
|
-
}
|
|
153
|
-
if (args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
154
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
155
|
-
}
|
|
156
151
|
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
157
152
|
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
158
153
|
}
|
|
@@ -162,11 +157,22 @@ _PlannerBucketGetCommand_instances = new WeakSet(), _PlannerBucketGetCommand_ini
|
|
|
162
157
|
return 'Don\'t specify ownerGroupId or ownerGroupName when using planId';
|
|
163
158
|
}
|
|
164
159
|
}
|
|
160
|
+
if (args.options.rosterId) {
|
|
161
|
+
if (args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
162
|
+
return 'Don\'t specify ownerGroupId or ownerGroupName when using rosterId';
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
165
|
}
|
|
166
166
|
return true;
|
|
167
167
|
}));
|
|
168
168
|
}, _PlannerBucketGetCommand_initOptionSets = function _PlannerBucketGetCommand_initOptionSets() {
|
|
169
|
-
this.optionSets.push({ options: ['id', 'name'] }
|
|
169
|
+
this.optionSets.push({ options: ['id', 'name'] }, {
|
|
170
|
+
options: ['planId', 'planTitle', 'rosterId'],
|
|
171
|
+
runsWhen: (args) => args.options.name !== undefined
|
|
172
|
+
}, {
|
|
173
|
+
options: ['ownerGroupId', 'ownerGroupName'],
|
|
174
|
+
runsWhen: (args) => args.options.planTitle !== undefined
|
|
175
|
+
});
|
|
170
176
|
};
|
|
171
177
|
module.exports = new PlannerBucketGetCommand();
|
|
172
178
|
//# sourceMappingURL=bucket-get.js.map
|
|
@@ -56,9 +56,13 @@ class PlannerBucketListCommand extends GraphCommand_1.default {
|
|
|
56
56
|
if (args.options.planId) {
|
|
57
57
|
return args.options.planId;
|
|
58
58
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
if (args.options.planTitle) {
|
|
60
|
+
const groupId = yield this.getGroupId(args);
|
|
61
|
+
const plan = yield planner_1.planner.getPlanByTitle(args.options.planTitle, groupId);
|
|
62
|
+
return plan.id;
|
|
63
|
+
}
|
|
64
|
+
const plans = yield planner_1.planner.getPlansByRosterId(args.options.rosterId);
|
|
65
|
+
return plans[0].id;
|
|
62
66
|
});
|
|
63
67
|
}
|
|
64
68
|
getGroupId(args) {
|
|
@@ -76,6 +80,7 @@ _PlannerBucketListCommand_instances = new WeakSet(), _PlannerBucketListCommand_i
|
|
|
76
80
|
Object.assign(this.telemetryProperties, {
|
|
77
81
|
planId: typeof args.options.planId !== 'undefined',
|
|
78
82
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
83
|
+
rosterId: typeof args.options.rosterId !== 'undefined',
|
|
79
84
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
80
85
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined'
|
|
81
86
|
});
|
|
@@ -85,6 +90,8 @@ _PlannerBucketListCommand_instances = new WeakSet(), _PlannerBucketListCommand_i
|
|
|
85
90
|
option: '--planId [planId]'
|
|
86
91
|
}, {
|
|
87
92
|
option: "--planTitle [planTitle]"
|
|
93
|
+
}, {
|
|
94
|
+
option: '--rosterId [rosterId]'
|
|
88
95
|
}, {
|
|
89
96
|
option: '--ownerGroupId [ownerGroupId]'
|
|
90
97
|
}, {
|
|
@@ -92,19 +99,16 @@ _PlannerBucketListCommand_instances = new WeakSet(), _PlannerBucketListCommand_i
|
|
|
92
99
|
});
|
|
93
100
|
}, _PlannerBucketListCommand_initValidators = function _PlannerBucketListCommand_initValidators() {
|
|
94
101
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
96
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
97
|
-
}
|
|
98
|
-
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
99
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
100
|
-
}
|
|
101
102
|
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
102
103
|
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
103
104
|
}
|
|
104
105
|
return true;
|
|
105
106
|
}));
|
|
106
107
|
}, _PlannerBucketListCommand_initOptionSets = function _PlannerBucketListCommand_initOptionSets() {
|
|
107
|
-
this.optionSets.push({ options: ['planId', 'planTitle'] }
|
|
108
|
+
this.optionSets.push({ options: ['planId', 'planTitle', 'rosterId'] }, {
|
|
109
|
+
options: ['ownerGroupId', 'ownerGroupName'],
|
|
110
|
+
runsWhen: (args) => args.options.planTitle !== undefined
|
|
111
|
+
});
|
|
108
112
|
};
|
|
109
113
|
module.exports = new PlannerBucketListCommand();
|
|
110
114
|
//# sourceMappingURL=bucket-list.js.map
|
|
@@ -56,7 +56,7 @@ class PlannerBucketRemoveCommand extends GraphCommand_1.default {
|
|
|
56
56
|
this.handleRejectedODataJsonPromise(err);
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
if (args.options.
|
|
59
|
+
if (args.options.force) {
|
|
60
60
|
yield removeBucket();
|
|
61
61
|
}
|
|
62
62
|
else {
|
|
@@ -105,13 +105,17 @@ class PlannerBucketRemoveCommand extends GraphCommand_1.default {
|
|
|
105
105
|
}
|
|
106
106
|
getPlanId(args) {
|
|
107
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
const { planId, planTitle } = args.options;
|
|
108
|
+
const { planId, planTitle, rosterId } = args.options;
|
|
109
109
|
if (planId) {
|
|
110
110
|
return planId;
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
if (planTitle) {
|
|
113
|
+
const groupId = yield this.getGroupId(args);
|
|
114
|
+
const plan = yield planner_1.planner.getPlanByTitle(planTitle, groupId);
|
|
115
|
+
return plan.id;
|
|
116
|
+
}
|
|
117
|
+
const plans = yield planner_1.planner.getPlansByRosterId(rosterId);
|
|
118
|
+
return plans[0].id;
|
|
115
119
|
});
|
|
116
120
|
}
|
|
117
121
|
getGroupId(args) {
|
|
@@ -132,9 +136,10 @@ _PlannerBucketRemoveCommand_instances = new WeakSet(), _PlannerBucketRemoveComma
|
|
|
132
136
|
name: typeof args.options.name !== 'undefined',
|
|
133
137
|
planId: typeof args.options.planId !== 'undefined',
|
|
134
138
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
139
|
+
rosterId: typeof args.options.rosterId !== 'undefined',
|
|
135
140
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
136
141
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
137
|
-
|
|
142
|
+
force: args.options.force || false
|
|
138
143
|
});
|
|
139
144
|
});
|
|
140
145
|
}, _PlannerBucketRemoveCommand_initOptions = function _PlannerBucketRemoveCommand_initOptions() {
|
|
@@ -146,48 +151,49 @@ _PlannerBucketRemoveCommand_instances = new WeakSet(), _PlannerBucketRemoveComma
|
|
|
146
151
|
option: '--planId [planId]'
|
|
147
152
|
}, {
|
|
148
153
|
option: "--planTitle [planTitle]"
|
|
154
|
+
}, {
|
|
155
|
+
option: '--rosterId [rosterId]'
|
|
149
156
|
}, {
|
|
150
157
|
option: '--ownerGroupId [ownerGroupId]'
|
|
151
158
|
}, {
|
|
152
159
|
option: '--ownerGroupName [ownerGroupName]'
|
|
153
160
|
}, {
|
|
154
|
-
option: '--
|
|
161
|
+
option: '-f, --force'
|
|
155
162
|
});
|
|
156
163
|
}, _PlannerBucketRemoveCommand_initValidators = function _PlannerBucketRemoveCommand_initValidators() {
|
|
157
164
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
158
165
|
if (args.options.id) {
|
|
159
|
-
if (args.options.planId || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
160
|
-
return 'Don\'t specify planId, planTitle, ownerGroupId or ownerGroupName when using id';
|
|
166
|
+
if (args.options.planId || args.options.planTitle || args.options.rosterId || args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
167
|
+
return 'Don\'t specify planId, planTitle, rosterId, ownerGroupId or ownerGroupName when using id';
|
|
161
168
|
}
|
|
162
169
|
}
|
|
163
170
|
else {
|
|
164
|
-
if (!args.options.planId && !args.options.planTitle) {
|
|
165
|
-
return 'Specify either planId or planTitle when using name';
|
|
166
|
-
}
|
|
167
|
-
if (args.options.planId && args.options.planTitle) {
|
|
168
|
-
return 'Specify either planId or planTitle when using name but not both';
|
|
169
|
-
}
|
|
170
171
|
if (args.options.planTitle) {
|
|
171
|
-
if (!args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
172
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
173
|
-
}
|
|
174
|
-
if (args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
175
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
176
|
-
}
|
|
177
172
|
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
178
173
|
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
179
174
|
}
|
|
180
175
|
}
|
|
181
|
-
else {
|
|
176
|
+
else if (args.options.planId) {
|
|
182
177
|
if (args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
183
178
|
return 'Don\'t specify ownerGroupId or ownerGroupName when using planId';
|
|
184
179
|
}
|
|
185
180
|
}
|
|
181
|
+
else {
|
|
182
|
+
if (args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
183
|
+
return 'Don\'t specify ownerGroupId or ownerGroupName when using rosterId';
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
186
|
}
|
|
187
187
|
return true;
|
|
188
188
|
}));
|
|
189
189
|
}, _PlannerBucketRemoveCommand_initOptionSets = function _PlannerBucketRemoveCommand_initOptionSets() {
|
|
190
|
-
this.optionSets.push({ options: ['id', 'name'] }
|
|
190
|
+
this.optionSets.push({ options: ['id', 'name'] }, {
|
|
191
|
+
options: ['planId', 'planTitle', 'rosterId'],
|
|
192
|
+
runsWhen: (args) => args.options.name !== undefined
|
|
193
|
+
}, {
|
|
194
|
+
options: ['ownerGroupId', 'ownerGroupName'],
|
|
195
|
+
runsWhen: (args) => args.options.planTitle !== undefined
|
|
196
|
+
});
|
|
191
197
|
};
|
|
192
198
|
module.exports = new PlannerBucketRemoveCommand();
|
|
193
199
|
//# sourceMappingURL=bucket-remove.js.map
|
|
@@ -96,13 +96,17 @@ class PlannerBucketSetCommand extends GraphCommand_1.default {
|
|
|
96
96
|
}
|
|
97
97
|
getPlanId(args) {
|
|
98
98
|
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
-
const { planId, planTitle } = args.options;
|
|
99
|
+
const { planId, planTitle, rosterId } = args.options;
|
|
100
100
|
if (planId) {
|
|
101
101
|
return planId;
|
|
102
102
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
if (planTitle) {
|
|
104
|
+
const groupId = yield this.getGroupId(args);
|
|
105
|
+
const plan = yield planner_1.planner.getPlanByTitle(planTitle, groupId);
|
|
106
|
+
return plan.id;
|
|
107
|
+
}
|
|
108
|
+
const plans = yield planner_1.planner.getPlansByRosterId(rosterId);
|
|
109
|
+
return plans[0].id;
|
|
106
110
|
});
|
|
107
111
|
}
|
|
108
112
|
getGroupId(args) {
|
|
@@ -123,6 +127,7 @@ _PlannerBucketSetCommand_instances = new WeakSet(), _PlannerBucketSetCommand_ini
|
|
|
123
127
|
name: typeof args.options.name !== 'undefined',
|
|
124
128
|
planId: typeof args.options.planId !== 'undefined',
|
|
125
129
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
130
|
+
rosterId: typeof args.options.rosterId !== 'undefined',
|
|
126
131
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
127
132
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
128
133
|
newName: typeof args.options.newName !== 'undefined',
|
|
@@ -138,6 +143,8 @@ _PlannerBucketSetCommand_instances = new WeakSet(), _PlannerBucketSetCommand_ini
|
|
|
138
143
|
option: '--planId [planId]'
|
|
139
144
|
}, {
|
|
140
145
|
option: "--planTitle [planTitle]"
|
|
146
|
+
}, {
|
|
147
|
+
option: '--rosterId [rosterId]'
|
|
141
148
|
}, {
|
|
142
149
|
option: '--ownerGroupId [ownerGroupId]'
|
|
143
150
|
}, {
|
|
@@ -149,33 +156,18 @@ _PlannerBucketSetCommand_instances = new WeakSet(), _PlannerBucketSetCommand_ini
|
|
|
149
156
|
});
|
|
150
157
|
}, _PlannerBucketSetCommand_initValidators = function _PlannerBucketSetCommand_initValidators() {
|
|
151
158
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
152
|
-
if (args.options.id) {
|
|
153
|
-
|
|
154
|
-
return 'Don\'t specify planId, planTitle, ownerGroupId or ownerGroupName when using id';
|
|
155
|
-
}
|
|
159
|
+
if (args.options.id && (args.options.planId || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName || args.options.rosterId)) {
|
|
160
|
+
return 'Don\'t specify planId, planTitle, ownerGroupId, ownerGroupName or rosterId when using id';
|
|
156
161
|
}
|
|
157
162
|
if (args.options.name) {
|
|
158
|
-
if (
|
|
159
|
-
return
|
|
163
|
+
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
164
|
+
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
160
165
|
}
|
|
161
|
-
if (args.options.planId && args.options.
|
|
162
|
-
return '
|
|
163
|
-
}
|
|
164
|
-
if (args.options.planTitle) {
|
|
165
|
-
if (!args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
166
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
167
|
-
}
|
|
168
|
-
if (args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
169
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
170
|
-
}
|
|
171
|
-
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
172
|
-
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
173
|
-
}
|
|
166
|
+
if (args.options.planId && (args.options.ownerGroupId || args.options.ownerGroupName)) {
|
|
167
|
+
return 'Don\'t specify ownerGroupId or ownerGroupName when using planId';
|
|
174
168
|
}
|
|
175
|
-
if (args.options.
|
|
176
|
-
|
|
177
|
-
return 'Don\'t specify ownerGroupId or ownerGroupName when using planId';
|
|
178
|
-
}
|
|
169
|
+
if (args.options.rosterId && (args.options.ownerGroupId || args.options.ownerGroupName)) {
|
|
170
|
+
return 'Don\'t specify ownerGroupId or ownerGroupName when using rosterId';
|
|
179
171
|
}
|
|
180
172
|
}
|
|
181
173
|
if (!args.options.newName && !args.options.orderHint) {
|
|
@@ -184,7 +176,13 @@ _PlannerBucketSetCommand_instances = new WeakSet(), _PlannerBucketSetCommand_ini
|
|
|
184
176
|
return true;
|
|
185
177
|
}));
|
|
186
178
|
}, _PlannerBucketSetCommand_initOptionSets = function _PlannerBucketSetCommand_initOptionSets() {
|
|
187
|
-
this.optionSets.push({ options: ['id', 'name'] }
|
|
179
|
+
this.optionSets.push({ options: ['id', 'name'] }, {
|
|
180
|
+
options: ['planId', 'planTitle', 'rosterId'],
|
|
181
|
+
runsWhen: (args) => args.options.name !== undefined
|
|
182
|
+
}, {
|
|
183
|
+
options: ['ownerGroupId', 'ownerGroupName'],
|
|
184
|
+
runsWhen: (args) => args.options.planTitle !== undefined
|
|
185
|
+
});
|
|
188
186
|
};
|
|
189
187
|
module.exports = new PlannerBucketSetCommand();
|
|
190
188
|
//# sourceMappingURL=bucket-set.js.map
|
|
@@ -56,7 +56,7 @@ class PlannerPlanRemoveCommand extends GraphCommand_1.default {
|
|
|
56
56
|
this.handleRejectedODataJsonPromise(err);
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
if (args.options.
|
|
59
|
+
if (args.options.force) {
|
|
60
60
|
yield removePlan();
|
|
61
61
|
}
|
|
62
62
|
else {
|
|
@@ -100,7 +100,7 @@ _PlannerPlanRemoveCommand_instances = new WeakSet(), _PlannerPlanRemoveCommand_i
|
|
|
100
100
|
title: typeof args.options.title !== 'undefined',
|
|
101
101
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
102
102
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
103
|
-
|
|
103
|
+
force: !!args.options.force
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
106
|
}, _PlannerPlanRemoveCommand_initOptions = function _PlannerPlanRemoveCommand_initOptions() {
|
|
@@ -113,7 +113,7 @@ _PlannerPlanRemoveCommand_instances = new WeakSet(), _PlannerPlanRemoveCommand_i
|
|
|
113
113
|
}, {
|
|
114
114
|
option: '--ownerGroupName [ownerGroupName]'
|
|
115
115
|
}, {
|
|
116
|
-
option: '--
|
|
116
|
+
option: '-f, --force'
|
|
117
117
|
});
|
|
118
118
|
}, _PlannerPlanRemoveCommand_initValidators = function _PlannerPlanRemoveCommand_initValidators() {
|
|
119
119
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -19,8 +19,7 @@ const request_1 = require("../../../../request");
|
|
|
19
19
|
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
21
|
const commands_1 = require("../../commands");
|
|
22
|
-
const
|
|
23
|
-
const Cli_1 = require("../../../../cli/Cli");
|
|
22
|
+
const aadUser_1 = require("../../../../utils/aadUser");
|
|
24
23
|
class PlannerRosterMemberAddCommand extends GraphCommand_1.default {
|
|
25
24
|
get name() {
|
|
26
25
|
return commands_1.default.ROSTER_MEMBER_ADD;
|
|
@@ -69,18 +68,8 @@ class PlannerRosterMemberAddCommand extends GraphCommand_1.default {
|
|
|
69
68
|
if (args.options.userId) {
|
|
70
69
|
return args.options.userId;
|
|
71
70
|
}
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
output: 'json',
|
|
75
|
-
debug: args.options.debug,
|
|
76
|
-
verbose: args.options.verbose
|
|
77
|
-
};
|
|
78
|
-
const aadUserGetOutput = yield Cli_1.Cli.executeCommandWithOutput(AadUserGetCommand, { options: Object.assign(Object.assign({}, aadUserGetCommandoptions), { _: [] }) });
|
|
79
|
-
if (this.verbose) {
|
|
80
|
-
logger.logToStderr(aadUserGetOutput.stderr);
|
|
81
|
-
}
|
|
82
|
-
const aadUserGetJsonOutput = JSON.parse(aadUserGetOutput.stdout);
|
|
83
|
-
return aadUserGetJsonOutput.id;
|
|
71
|
+
const userId = yield aadUser_1.aadUser.getUserIdByUpn(args.options.userName);
|
|
72
|
+
return userId;
|
|
84
73
|
});
|
|
85
74
|
}
|
|
86
75
|
}
|
|
@@ -42,7 +42,7 @@ class PlannerRosterMemberRemoveCommand extends GraphCommand_1.default {
|
|
|
42
42
|
if (this.verbose) {
|
|
43
43
|
logger.logToStderr(`Removing member ${args.options.userName || args.options.userId} from the Microsoft Planner Roster`);
|
|
44
44
|
}
|
|
45
|
-
if (args.options.
|
|
45
|
+
if (args.options.force) {
|
|
46
46
|
yield this.removeRosterMember(args);
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
@@ -89,7 +89,7 @@ class PlannerRosterMemberRemoveCommand extends GraphCommand_1.default {
|
|
|
89
89
|
}
|
|
90
90
|
removeLastMemberConfirmation(args) {
|
|
91
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
-
if (!args.options.
|
|
92
|
+
if (!args.options.force) {
|
|
93
93
|
const rosterMembers = yield odata_1.odata.getAllItems(`${this.resource}/beta/planner/rosters/${args.options.rosterId}/members?$select=Id`);
|
|
94
94
|
if (rosterMembers.length === 1) {
|
|
95
95
|
const result = yield Cli_1.Cli.prompt({
|
|
@@ -110,7 +110,7 @@ _PlannerRosterMemberRemoveCommand_instances = new WeakSet(), _PlannerRosterMembe
|
|
|
110
110
|
Object.assign(this.telemetryProperties, {
|
|
111
111
|
userId: typeof args.options.userId !== 'undefined',
|
|
112
112
|
userName: typeof args.options.userName !== 'undefined',
|
|
113
|
-
|
|
113
|
+
force: !!args.options.force
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
}, _PlannerRosterMemberRemoveCommand_initOptions = function _PlannerRosterMemberRemoveCommand_initOptions() {
|
|
@@ -121,7 +121,7 @@ _PlannerRosterMemberRemoveCommand_instances = new WeakSet(), _PlannerRosterMembe
|
|
|
121
121
|
}, {
|
|
122
122
|
option: '--userName [userName]'
|
|
123
123
|
}, {
|
|
124
|
-
option: '--
|
|
124
|
+
option: '-f, --force'
|
|
125
125
|
});
|
|
126
126
|
}, _PlannerRosterMemberRemoveCommand_initOptionSets = function _PlannerRosterMemberRemoveCommand_initOptionSets() {
|
|
127
127
|
this.optionSets.push({ options: ['userId', 'userName'] });
|
|
@@ -34,7 +34,7 @@ class PlannerRosterRemoveCommand extends GraphCommand_1.default {
|
|
|
34
34
|
}
|
|
35
35
|
commandAction(logger, args) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
if (args.options.
|
|
37
|
+
if (args.options.force) {
|
|
38
38
|
yield this.removeRoster(args, logger);
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
@@ -74,14 +74,14 @@ class PlannerRosterRemoveCommand extends GraphCommand_1.default {
|
|
|
74
74
|
_PlannerRosterRemoveCommand_instances = new WeakSet(), _PlannerRosterRemoveCommand_initTelemetry = function _PlannerRosterRemoveCommand_initTelemetry() {
|
|
75
75
|
this.telemetry.push((args) => {
|
|
76
76
|
Object.assign(this.telemetryProperties, {
|
|
77
|
-
|
|
77
|
+
force: !!args.options.force
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
}, _PlannerRosterRemoveCommand_initOptions = function _PlannerRosterRemoveCommand_initOptions() {
|
|
81
81
|
this.options.unshift({
|
|
82
82
|
option: '--id <id>'
|
|
83
83
|
}, {
|
|
84
|
-
option: '--
|
|
84
|
+
option: '-f, --force'
|
|
85
85
|
});
|
|
86
86
|
};
|
|
87
87
|
module.exports = new PlannerRosterRemoveCommand();
|
|
@@ -35,7 +35,7 @@ class PlannerTaskChecklistItemRemoveCommand extends GraphCommand_1.default {
|
|
|
35
35
|
}
|
|
36
36
|
commandAction(logger, args) {
|
|
37
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
if (args.options.
|
|
38
|
+
if (args.options.force) {
|
|
39
39
|
yield this.removeChecklistitem(args);
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
@@ -95,11 +95,11 @@ class PlannerTaskChecklistItemRemoveCommand extends GraphCommand_1.default {
|
|
|
95
95
|
_PlannerTaskChecklistItemRemoveCommand_instances = new WeakSet(), _PlannerTaskChecklistItemRemoveCommand_initTelemetry = function _PlannerTaskChecklistItemRemoveCommand_initTelemetry() {
|
|
96
96
|
this.telemetry.push((args) => {
|
|
97
97
|
Object.assign(this.telemetryProperties, {
|
|
98
|
-
|
|
98
|
+
force: (!(!args.options.force)).toString()
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
101
|
}, _PlannerTaskChecklistItemRemoveCommand_initOptions = function _PlannerTaskChecklistItemRemoveCommand_initOptions() {
|
|
102
|
-
this.options.unshift({ option: '-i, --id <id>' }, { option: '--taskId <taskId>' }, { option: '--
|
|
102
|
+
this.options.unshift({ option: '-i, --id <id>' }, { option: '--taskId <taskId>' }, { option: '-f, --force' });
|
|
103
103
|
};
|
|
104
104
|
module.exports = new PlannerTaskChecklistItemRemoveCommand();
|
|
105
105
|
//# sourceMappingURL=task-checklistitem-remove.js.map
|
|
@@ -37,7 +37,7 @@ class PlannerTaskReferenceRemoveCommand extends GraphCommand_1.default {
|
|
|
37
37
|
}
|
|
38
38
|
commandAction(logger, args) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
if (args.options.
|
|
40
|
+
if (args.options.force) {
|
|
41
41
|
yield this.removeReference(logger, args);
|
|
42
42
|
}
|
|
43
43
|
else {
|
|
@@ -116,11 +116,11 @@ _PlannerTaskReferenceRemoveCommand_instances = new WeakSet(), _PlannerTaskRefere
|
|
|
116
116
|
Object.assign(this.telemetryProperties, {
|
|
117
117
|
url: typeof args.options.url !== 'undefined',
|
|
118
118
|
alias: typeof args.options.alias !== 'undefined',
|
|
119
|
-
|
|
119
|
+
force: (!(!args.options.force)).toString()
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
}, _PlannerTaskReferenceRemoveCommand_initOptions = function _PlannerTaskReferenceRemoveCommand_initOptions() {
|
|
123
|
-
this.options.unshift({ option: '-u, --url [url]' }, { option: '--alias [alias]' }, { option: '-i, --taskId <taskId>' }, { option: '--
|
|
123
|
+
this.options.unshift({ option: '-u, --url [url]' }, { option: '--alias [alias]' }, { option: '-i, --taskId <taskId>' }, { option: '-f, --force' });
|
|
124
124
|
}, _PlannerTaskReferenceRemoveCommand_initValidators = function _PlannerTaskReferenceRemoveCommand_initValidators() {
|
|
125
125
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
126
126
|
if (args.options.url && args.options.url.indexOf('https://') !== 0 && args.options.url.indexOf('http://') !== 0) {
|
|
@@ -58,7 +58,7 @@ class PlannerTaskRemoveCommand extends GraphCommand_1.default {
|
|
|
58
58
|
this.handleRejectedODataJsonPromise(err);
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
if (args.options.
|
|
61
|
+
if (args.options.force) {
|
|
62
62
|
yield removeTask();
|
|
63
63
|
}
|
|
64
64
|
else {
|
|
@@ -158,11 +158,11 @@ _PlannerTaskRemoveCommand_instances = new WeakSet(), _PlannerTaskRemoveCommand_i
|
|
|
158
158
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
159
159
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
160
160
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
161
|
-
|
|
161
|
+
force: !!args.options.force
|
|
162
162
|
});
|
|
163
163
|
});
|
|
164
164
|
}, _PlannerTaskRemoveCommand_initOptions = function _PlannerTaskRemoveCommand_initOptions() {
|
|
165
|
-
this.options.unshift({ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '--
|
|
165
|
+
this.options.unshift({ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '-f, --force' });
|
|
166
166
|
}, _PlannerTaskRemoveCommand_initValidators = function _PlannerTaskRemoveCommand_initValidators() {
|
|
167
167
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
168
168
|
if (args.options.id) {
|