@pnp/cli-microsoft365 7.1.0-beta.aca68bd → 7.1.0-beta.ba486fa
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/.devcontainer/Dockerfile +0 -1
- package/.eslintrc.cjs +1 -0
- package/Dockerfile +0 -1
- package/dist/Auth.js +2 -2
- package/dist/Command.js +18 -28
- package/dist/appInsights.js +5 -9
- package/dist/cli/Cli.js +9 -4
- package/dist/m365/aad/commands/group/group-user-list.js +146 -0
- package/dist/m365/aad/commands/m365group/m365group-remove.js +109 -15
- package/dist/m365/aad/commands.js +1 -0
- package/dist/m365/cli/commands/cli-doctor.js +11 -6
- package/dist/m365/commands/setup.js +6 -1
- package/dist/m365/spo/commands/app/app-deploy.js +1 -1
- package/dist/m365/spo/commands/app/app-get.js +1 -1
- package/dist/m365/spo/commands/app/app-teamspackage-download.js +1 -1
- package/dist/m365/spo/commands/apppage/apppage-add.js +1 -1
- package/dist/m365/spo/commands/feature/feature-disable.js +8 -6
- package/dist/m365/spo/commands/feature/feature-enable.js +6 -5
- package/dist/m365/spo/commands/page/Page.js +1 -1
- package/dist/m365/spo/commands/page/page-add.js +1 -1
- package/dist/m365/spo/commands/page/page-get.js +1 -1
- package/dist/m365/spo/commands/page/page-header-set.js +1 -1
- package/dist/m365/spo/commands/page/page-remove.js +1 -1
- package/dist/m365/spo/commands/page/page-set.js +2 -2
- package/dist/m365/spo/commands/page/page-text-add.js +1 -1
- package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +15 -14
- package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +22 -22
- package/dist/m365/spo/commands/user/user-get.js +7 -1
- package/dist/m365/todo/commands/task/task-list.js +8 -10
- package/dist/m365/todo/commands/task/task-remove.js +36 -36
- package/dist/m365/todo/commands/task/task-set.js +11 -13
- package/dist/m365/yammer/commands/group/group-user-remove.js +22 -23
- package/dist/telemetry.js +30 -14
- package/dist/telemetryRunner.js +26 -0
- package/dist/utils/odata.js +20 -19
- package/dist/utils/prompt.js +16 -0
- package/docs/docs/cmd/aad/group/group-user-list.mdx +135 -0
- package/docs/docs/cmd/aad/license/license-list.mdx +21 -16
- package/docs/docs/cmd/aad/m365group/m365group-add.mdx +1 -1
- package/docs/docs/cmd/aad/m365group/m365group-remove.mdx +11 -1
- package/docs/docs/cmd/aad/user/user-add.mdx +2 -4
- package/docs/docs/cmd/aad/user/user-license-add.mdx +2 -4
- package/docs/docs/cmd/aad/user/user-license-list.mdx +3 -5
- package/docs/docs/cmd/aad/user/user-recyclebinitem-list.mdx +1 -3
- package/docs/docs/cmd/aad/user/user-recyclebinitem-restore.mdx +1 -3
- package/docs/docs/cmd/flow/environment/environment-get.mdx +3 -4
- package/docs/docs/cmd/flow/environment/environment-list.mdx +3 -4
- package/docs/docs/cmd/flow/owner/owner-list.mdx +2 -3
- package/docs/docs/cmd/flow/run/run-list.mdx +6 -8
- package/docs/docs/cmd/graph/schemaextension/schemaextension-list.mdx +2 -3
- package/docs/docs/cmd/onenote/page/page-list.mdx +6 -9
- package/docs/docs/cmd/outlook/message/message-get.mdx +5 -15
- package/docs/docs/cmd/outlook/message/message-list.mdx +5 -14
- package/docs/docs/cmd/outlook/room/room-list.mdx +3 -6
- package/docs/docs/cmd/outlook/roomlist/roomlist-list.mdx +1 -3
- package/docs/docs/cmd/pa/app/app-get.mdx +4 -7
- package/docs/docs/cmd/pa/app/app-list.mdx +4 -7
- package/docs/docs/cmd/pa/connector/connector-list.mdx +2 -4
- package/docs/docs/cmd/pa/environment/environment-get.mdx +2 -4
- package/docs/docs/cmd/pa/environment/environment-list.mdx +1 -3
- package/docs/docs/cmd/planner/plan/plan-add.mdx +4 -11
- package/docs/docs/cmd/planner/plan/plan-get.mdx +4 -9
- package/docs/docs/cmd/planner/plan/plan-list.mdx +3 -6
- package/docs/docs/cmd/planner/plan/plan-set.mdx +3 -9
- package/docs/docs/cmd/planner/roster/roster-member-add.mdx +2 -4
- package/docs/docs/cmd/planner/roster/roster-member-get.mdx +2 -4
- package/docs/docs/cmd/planner/roster/roster-member-list.mdx +1 -3
- package/docs/docs/cmd/planner/task/task-add.mdx +4 -14
- package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +2 -4
- package/docs/docs/cmd/planner/task/task-checklistitem-list.mdx +1 -3
- package/docs/docs/cmd/planner/task/task-get.mdx +0 -7
- package/docs/docs/cmd/planner/task/task-list.mdx +1 -5
- package/docs/docs/cmd/planner/task/task-reference-add.mdx +0 -2
- package/docs/docs/cmd/planner/task/task-reference-list.mdx +0 -2
- package/docs/docs/cmd/planner/task/task-set.mdx +4 -13
- package/docs/docs/cmd/planner/tenant/tenant-settings-list.mdx +1 -3
- package/docs/docs/cmd/planner/tenant/tenant-settings-set.mdx +3 -5
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx +6 -8
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.mdx +4 -7
- package/docs/docs/cmd/pp/card/card-get.mdx +4 -8
- package/docs/docs/cmd/pp/card/card-list.mdx +0 -4
- package/docs/docs/cmd/pp/chatbot/chatbot-get.mdx +4 -6
- package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +3 -14
- package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +3 -14
- package/docs/docs/cmd/pp/environment/environment-get.mdx +3 -5
- package/docs/docs/cmd/pp/environment/environment-list.mdx +2 -4
- package/docs/docs/cmd/pp/gateway/gateway-get.mdx +0 -3
- package/docs/docs/cmd/pp/gateway/gateway-list.mdx +1 -4
- package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +4 -0
- package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +3 -8
- package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +1 -3
- package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +1 -5
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +0 -2
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +1 -3
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +1 -3
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +3 -6
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +3 -5
- package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +4 -8
- package/docs/docs/cmd/spo/app/app-add.mdx +94 -7
- package/docs/docs/cmd/spo/app/app-deploy.mdx +11 -7
- package/docs/docs/cmd/spo/app/app-get.mdx +117 -8
- package/docs/docs/cmd/spo/app/app-install.mdx +9 -5
- package/docs/docs/cmd/spo/app/app-instance-list.mdx +85 -2
- package/docs/docs/cmd/spo/app/app-list.mdx +95 -3
- package/docs/docs/cmd/spo/app/app-remove.mdx +11 -7
- package/docs/docs/cmd/spo/app/app-retract.mdx +9 -5
- package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +12 -8
- package/docs/docs/cmd/spo/app/app-uninstall.mdx +11 -7
- package/docs/docs/cmd/spo/app/app-upgrade.mdx +9 -5
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +4 -2
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +9 -7
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +6 -6
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-remove.mdx +12 -6
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +4 -2
- package/docs/docs/cmd/spo/apppage/apppage-add.mdx +54 -5
- package/docs/docs/cmd/spo/apppage/apppage-set.mdx +8 -4
- package/docs/docs/cmd/spo/cdn/cdn-get.mdx +36 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-add.mdx +7 -3
- package/docs/docs/cmd/spo/cdn/cdn-origin-list.mdx +48 -3
- package/docs/docs/cmd/spo/cdn/cdn-origin-remove.mdx +8 -4
- package/docs/docs/cmd/spo/cdn/cdn-policy-list.mdx +53 -3
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.mdx +7 -3
- package/docs/docs/cmd/spo/cdn/cdn-set.mdx +7 -3
- package/docs/docs/cmd/spo/commandset/commandset-add.mdx +6 -6
- package/docs/docs/cmd/spo/commandset/commandset-get.mdx +3 -5
- package/docs/docs/cmd/spo/commandset/commandset-list.mdx +6 -5
- package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +7 -3
- package/docs/docs/cmd/spo/commandset/commandset-set.mdx +6 -4
- package/docs/docs/cmd/spo/contenttype/contenttype-add.mdx +148 -9
- package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +19 -15
- package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +12 -8
- package/docs/docs/cmd/spo/contenttype/contenttype-get.mdx +147 -8
- package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +115 -4
- package/docs/docs/cmd/spo/contenttype/contenttype-remove.mdx +8 -4
- package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +8 -4
- package/docs/docs/cmd/spo/contenttypehub/contenttypehub-get.mdx +44 -0
- package/docs/docs/cmd/spo/customaction/customaction-add.mdx +12 -8
- package/docs/docs/cmd/spo/customaction/customaction-clear.mdx +10 -7
- package/docs/docs/cmd/spo/customaction/customaction-get.mdx +11 -15
- package/docs/docs/cmd/spo/customaction/customaction-list.mdx +87 -5
- package/docs/docs/cmd/spo/customaction/customaction-remove.mdx +17 -13
- package/docs/docs/cmd/spo/customaction/customaction-set.mdx +27 -23
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.mdx +29 -14
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-list.mdx +66 -5
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +4 -0
- package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +78 -7
- package/docs/docs/cmd/spo/feature/feature-disable.mdx +10 -6
- package/docs/docs/cmd/spo/feature/feature-enable.mdx +9 -5
- package/docs/docs/cmd/spo/feature/feature-list.mdx +52 -0
- package/docs/docs/cmd/spo/field/field-add.mdx +177 -11
- package/docs/docs/cmd/spo/field/field-get.mdx +175 -9
- package/docs/docs/cmd/spo/field/field-list.mdx +135 -8
- package/docs/docs/cmd/spo/field/field-remove.mdx +16 -12
- package/docs/docs/cmd/spo/field/field-set.mdx +15 -11
- package/docs/docs/cmd/spo/file/file-add.mdx +31 -27
- package/docs/docs/cmd/spo/file/file-checkin.mdx +13 -9
- package/docs/docs/cmd/spo/file/file-checkout.mdx +9 -5
- package/docs/docs/cmd/spo/file/file-copy.mdx +5 -5
- package/docs/docs/cmd/spo/file/file-get.mdx +89 -18
- package/docs/docs/cmd/spo/file/file-list.mdx +5 -5
- package/docs/docs/cmd/spo/file/file-move.mdx +5 -5
- package/docs/docs/cmd/spo/file/file-remove.mdx +13 -9
- package/docs/docs/cmd/spo/file/file-rename.mdx +63 -5
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +4 -0
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +7 -3
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +9 -5
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +10 -6
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +133 -5
- package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +21 -3
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +18 -0
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +20 -3
- package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +2 -7
- package/docs/docs/cmd/spo/file/file-version-clear.mdx +7 -7
- package/docs/docs/cmd/spo/file/file-version-get.mdx +28 -6
- package/docs/docs/cmd/spo/file/file-version-list.mdx +28 -6
- package/docs/docs/cmd/spo/file/file-version-remove.mdx +8 -8
- package/docs/docs/cmd/spo/file/file-version-restore.mdx +8 -8
- package/docs/docs/cmd/spo/folder/folder-add.mdx +3 -3
- package/docs/docs/cmd/spo/folder/folder-copy.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-get.mdx +257 -3
- package/docs/docs/cmd/spo/folder/folder-list.mdx +3 -4
- package/docs/docs/cmd/spo/folder/folder-move.mdx +5 -5
- package/docs/docs/cmd/spo/folder/folder-remove.mdx +6 -2
- package/docs/docs/cmd/spo/folder/folder-rename.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +3 -3
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +13 -8
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +8 -4
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +4 -0
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +5 -1
- package/docs/docs/cmd/spo/group/group-add.mdx +78 -0
- package/docs/docs/cmd/spo/group/group-get.mdx +81 -3
- package/docs/docs/cmd/spo/group/group-list.mdx +74 -3
- package/docs/docs/cmd/spo/group/group-member-add.mdx +13 -21
- package/docs/docs/cmd/spo/group/group-member-list.mdx +80 -5
- package/docs/docs/cmd/spo/group/group-member-remove.mdx +4 -4
- package/docs/docs/cmd/spo/group/group-remove.mdx +10 -6
- package/docs/docs/cmd/spo/group/group-set.mdx +9 -5
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.mdx +36 -1
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.mdx +6 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-data-get.mdx +0 -2
- package/docs/docs/cmd/spo/list/list-add.mdx +0 -3
- package/docs/docs/cmd/spo/list/list-contenttype-add.mdx +0 -2
- package/docs/docs/cmd/spo/list/list-contenttype-list.mdx +0 -2
- package/docs/docs/cmd/spo/list/list-get.mdx +1 -4
- package/docs/docs/cmd/spo/list/list-list.mdx +0 -4
- package/docs/docs/cmd/spo/list/list-view-add.mdx +0 -3
- package/docs/docs/cmd/spo/list/list-view-get.mdx +9 -12
- package/docs/docs/cmd/spo/list/list-view-list.mdx +4 -7
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +8 -11
- package/docs/docs/cmd/spo/listitem/listitem-get.mdx +0 -2
- package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +4 -6
- package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +0 -2
- package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +4 -6
- package/docs/docs/cmd/spo/page/page-copy.mdx +4 -8
- package/docs/docs/cmd/spo/page/page-get.mdx +2 -5
- package/docs/docs/cmd/spo/page/page-list.mdx +1 -5
- package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +4 -4
- package/docs/docs/cmd/spo/sitescript/sitescript-set.mdx +6 -7
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +3 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +5 -3
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +4 -2
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +5 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +2 -0
- package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +2 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +5 -2
- package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +4 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +5 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +3 -1
- package/docs/docs/cmd/spo/user/user-get.mdx +6 -0
- package/docs/docs/cmd/teams/channel/channel-member-list.mdx +3 -5
- package/docs/docs/cmd/teams/channel/channel-member-set.mdx +0 -2
- package/docs/docs/cmd/teams/chat/chat-get.mdx +2 -4
- package/docs/docs/cmd/teams/chat/chat-list.mdx +1 -3
- package/docs/docs/cmd/teams/chat/chat-member-list.mdx +2 -4
- package/docs/docs/cmd/teams/message/message-get.mdx +0 -7
- package/docs/docs/cmd/teams/message/message-list.mdx +0 -6
- package/docs/docs/cmd/teams/message/message-reply-list.mdx +0 -6
- package/docs/docs/cmd/teams/tab/tab-add.mdx +10 -12
- package/docs/docs/cmd/teams/tab/tab-get.mdx +8 -10
- package/docs/docs/cmd/teams/tab/tab-list.mdx +4 -7
- package/docs/docs/cmd/teams/team/team-add.mdx +0 -7
- package/docs/docs/cmd/teams/team/team-get.mdx +0 -6
- package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +1 -1
- package/docs/docs/cmd/todo/task/task-add.mdx +9 -13
- package/docs/docs/cmd/todo/task/task-set.mdx +10 -14
- package/eslint-rules/lib/index.js +2 -1
- package/eslint-rules/lib/rules/no-by-server-relative-url-usage.js +55 -0
- package/npm-shrinkwrap.json +86 -82
- package/package.json +52 -31
|
@@ -139,14 +139,8 @@ m365 teams message list --teamId fce9e580-8bba-4638-ab5c-ab40016651e3 --channelI
|
|
|
139
139
|
policyViolation | null
|
|
140
140
|
eventDetail | null
|
|
141
141
|
id | 1672743172475
|
|
142
|
-
from | {"application":null,"device":null,"user":{"id":"78ccf530-bbf0-47e4-aae6-da5f8c6fb142","displayName":"John Doe","userIdentityType":"aadUser","tenantId":"92e59666-257b-49c3-b1fa-1bae8107f6ba"}}
|
|
143
142
|
body | First message!
|
|
144
|
-
channelIdentity | {"teamId":"fce9e580-8bba-4638-ab5c-ab40016651e3","channelId":"19:e2916df2b11046beba42d22da898383f@thread.tacv2"}
|
|
145
|
-
attachments | []
|
|
146
|
-
mentions | []
|
|
147
|
-
reactions | []
|
|
148
143
|
```
|
|
149
144
|
|
|
150
145
|
</TabItem>
|
|
151
146
|
</Tabs>
|
|
152
|
-
|
|
@@ -133,14 +133,8 @@ m365 teams message reply list --teamId 5f5d7b71-1161-44d8-bcc1-3da710eb4171 --ch
|
|
|
133
133
|
webUrl | https://teams.microsoft.com/l/message/19%388f7e66a8dfe42be92db19505ae912a8%40thread.tacv2/1540747442203?groupId=5f5d7b71-1161-44d8-bcc1-3da710eb4171&tenantId=92e59666-257b-49c3-b1fa-1bae8107f6ba&createdTime=1540747442203&parentMessageId=1666799520731
|
|
134
134
|
policyViolation | null
|
|
135
135
|
eventDetail | null
|
|
136
|
-
from | {"application":null,"device":null,"user":{"id":"78ccf530-bbf0-47e4-aae6-da5f8c6fb142","displayName":"John Doe","userIdentityType":"aadUser","tenantId":"92e59666-257b-49c3-b1fa-1bae8107f6ba"}}
|
|
137
136
|
body | First reply
|
|
138
|
-
channelIdentity | {"teamId":"5f5d7b71-1161-44d8-bcc1-3da710eb4171","channelId":"19:88f7e66a8dfe42be92db19505ae912a8@thread.skype"}
|
|
139
|
-
attachments | []
|
|
140
|
-
mentions | []
|
|
141
|
-
reactions | []
|
|
142
137
|
```
|
|
143
138
|
|
|
144
139
|
</TabItem>
|
|
145
140
|
</Tabs>
|
|
146
|
-
|
|
@@ -16,28 +16,28 @@ m365 teams tab add [options]
|
|
|
16
16
|
|
|
17
17
|
```md definition-list
|
|
18
18
|
`-i, --teamId <teamId>`
|
|
19
|
-
: The ID of the team to where the channel exists
|
|
19
|
+
: The ID of the team to where the channel exists.
|
|
20
20
|
|
|
21
21
|
`-c, --channelId <channelId>`
|
|
22
|
-
: The ID of the channel to add a tab to
|
|
22
|
+
: The ID of the channel to add a tab to.
|
|
23
23
|
|
|
24
24
|
`--appId <appId>`
|
|
25
|
-
: The ID of the Teams app that contains the Tab
|
|
25
|
+
: The ID of the Teams app that contains the Tab.
|
|
26
26
|
|
|
27
27
|
`--appName <appName>`
|
|
28
|
-
: The name of the Teams app that contains the Tab
|
|
28
|
+
: The name of the Teams app that contains the Tab.
|
|
29
29
|
|
|
30
30
|
`--contentUrl <contentUrl>`
|
|
31
|
-
: The URL used for rendering Tab contents
|
|
31
|
+
: The URL used for rendering Tab contents.
|
|
32
32
|
|
|
33
33
|
`--entityId [entityId]`
|
|
34
|
-
: A unique identifier for the Tab
|
|
34
|
+
: A unique identifier for the Tab.
|
|
35
35
|
|
|
36
36
|
`--removeUrl [removeUrl]`
|
|
37
|
-
: The URL displayed when a Tab is removed
|
|
37
|
+
: The URL displayed when a Tab is removed.
|
|
38
38
|
|
|
39
39
|
`--websiteUrl [websiteUrl]`
|
|
40
|
-
: The URL for showing tab contents outside of Teams
|
|
40
|
+
: The URL for showing tab contents outside of Teams.
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
<Global />
|
|
@@ -48,13 +48,13 @@ The corresponding app must already be installed in the team.
|
|
|
48
48
|
|
|
49
49
|
## Examples
|
|
50
50
|
|
|
51
|
-
Add teams tab for website
|
|
51
|
+
Add teams tab for website.
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
54
|
m365 teams tab add --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype --appId 06805b9e-77e3-4b93-ac81-525eb87513b8 --appName 'My Contoso Tab' --contentUrl 'https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/tabView'
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
Add teams tab for website with additional configuration which is unknown
|
|
57
|
+
Add teams tab for website with additional configuration which is unknown.
|
|
58
58
|
|
|
59
59
|
```sh
|
|
60
60
|
m365 teams tab add --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype --appId 06805b9e-77e3-4b93-ac81-525eb87513b8 --appName 'My Contoso Tab' --contentUrl 'https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/tabView' --test1 'value for test1'
|
|
@@ -112,9 +112,7 @@ m365 teams tab add --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:
|
|
|
112
112
|
id | 37d2294f-6dc0-4232-8718-d388f25ee696
|
|
113
113
|
displayName | My Contoso Tab
|
|
114
114
|
webUrl | https://teams.microsoft.com/l/channel/19%3aB3nCnLKwwCoGDEADyUgQ5kJ5Pkekujyjmwxp7uhQeAE1%40thread.tacv2/tab%3a%3a37d2294f-6dc0-4232-8718-d388f25ee696?label=%My%20Contoso%20Tab%27&groupId=aee5a2c9-b1df-45ac-9964-c708e760a045&tenantId=92e59666-257b-49c3-b1fa-1bae8107f6ba
|
|
115
|
-
configuration | {"entityId":null,"contentUrl":"https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/tabView","removeUrl":null,"websiteUrl":null}
|
|
116
115
|
```
|
|
117
116
|
|
|
118
117
|
</TabItem>
|
|
119
118
|
</Tabs>
|
|
120
|
-
|
|
@@ -16,22 +16,22 @@ m365 teams tab get [options]
|
|
|
16
16
|
|
|
17
17
|
```md definition-list
|
|
18
18
|
`--teamId [teamId]`
|
|
19
|
-
: The ID of the Microsoft Teams team where the tab is located. Specify either teamId or teamName but not both
|
|
19
|
+
: The ID of the Microsoft Teams team where the tab is located. Specify either teamId or teamName but not both.
|
|
20
20
|
|
|
21
21
|
`--teamName [teamName]`
|
|
22
|
-
: The display name of the Microsoft Teams team where the tab is located. Specify either teamId or teamName but not both
|
|
22
|
+
: The display name of the Microsoft Teams team where the tab is located. Specify either teamId or teamName but not both.
|
|
23
23
|
|
|
24
24
|
`--channelId [channelId]`
|
|
25
|
-
: The ID of the Microsoft Teams channel where the tab is located. Specify either channelId or channelName but not both
|
|
25
|
+
: The ID of the Microsoft Teams channel where the tab is located. Specify either channelId or channelName but not both.
|
|
26
26
|
|
|
27
27
|
`--channelName [channelName]`
|
|
28
|
-
: The display name of the Microsoft Teams channel where the tab is located. Specify either channelId or channelName but not both
|
|
28
|
+
: The display name of the Microsoft Teams channel where the tab is located. Specify either channelId or channelName but not both.
|
|
29
29
|
|
|
30
30
|
`-i, --id [id]`
|
|
31
|
-
: The ID of the Microsoft Teams tab. Specify either `id` or `name` but not both
|
|
31
|
+
: The ID of the Microsoft Teams tab. Specify either `id` or `name` but not both.
|
|
32
32
|
|
|
33
33
|
`-n, --name [name]`
|
|
34
|
-
: The display name of the Microsoft Teams tab. Specify either `id` or `name` but not both
|
|
34
|
+
: The display name of the Microsoft Teams tab. Specify either `id` or `name` but not both.
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
<Global />
|
|
@@ -42,13 +42,13 @@ You can only retrieve tabs for teams of which you are a member.
|
|
|
42
42
|
|
|
43
43
|
## Examples
|
|
44
44
|
|
|
45
|
-
Get a Microsoft Teams Tab with ID
|
|
45
|
+
Get a Microsoft Teams Tab with the specified ID.
|
|
46
46
|
|
|
47
47
|
```sh
|
|
48
48
|
m365 teams tab get --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype --id 1432c9da-8b9c-4602-9248-e0800f3e3f07
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
Get a Microsoft Teams Tab with
|
|
51
|
+
Get a Microsoft Teams Tab with the specified name.
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
54
|
m365 teams tab get --teamName "Team Name" --channelName "Channel Name" --name "Tab Name"
|
|
@@ -107,9 +107,7 @@ m365 teams tab get --teamName "Team Name" --channelName "Channel Name" --name "T
|
|
|
107
107
|
id | 34991fbf-59f4-48d9-b094-b9d64d550e23
|
|
108
108
|
displayName | Tab Name
|
|
109
109
|
webUrl | https://teams.microsoft.com/l/entity/1542629c-01b3-4a6d-8f76-1938b779e48d/_djb2_msteams_prefix_34991fbf-59f4-48d9-b094-b9d64d550e23?webUrl=https%3a%2f%2fteams.contoso.ai%2fmsteams%2fcontent%2ftab%2fteam%3ftheme%3d%7btheme%7d&label=My%20Contoso%20Tab&context=%7b%0d%0a++%22canvasUrl%22%3a+%22https%3a%2f%2fteams.contoso.ai%2fmsteams%2fcontent%2ftab%2fteam%3ftheme%3d%7btheme%7d%22%2c%0d%0a++%22channelId%22%3a+%2219%3aB3nCnLKwwCoGDEADyUgQ5kJ5Pkekujyjmwxp7uhQeAE1%40thread.tacv2%22%2c%0d%0a++%22subEntityId%22%3a+null%0d%0a%7d&groupId=aee5a2c9-b1df-45ac-9964-c708e760a045&tenantId=92e59666-257b-49c3-b1fa-1bae8107f6ba
|
|
110
|
-
configuration | {"entityId":surveys_list:19:B3nCnLKwwCoGDEADyUgQ5kJ5Pkekujyjmwxp7uhQeAE1@thread.tacv2:ps67c9jyf3a30j2j5eum72,"contentUrl":https://teams.contoso.ai/msteams/content/tab/team?theme={theme},"removeUrl":https://teams.contoso.ai/msteams/content/tabdelete?theme={theme},"websiteUrl":https://teams.contoso.ai/msteams/content/tab/team?theme={theme},"dateAdded":2022-10-31T12:17:58.632Z}
|
|
111
110
|
```
|
|
112
111
|
|
|
113
112
|
</TabItem>
|
|
114
113
|
</Tabs>
|
|
115
|
-
|
|
@@ -16,10 +16,10 @@ m365 teams tab list [options]
|
|
|
16
16
|
|
|
17
17
|
```md definition-list
|
|
18
18
|
`-i, --teamId <teamId>`
|
|
19
|
-
: The ID of the Microsoft Teams team where the channel is located
|
|
19
|
+
: The ID of the Microsoft Teams team where the channel is located.
|
|
20
20
|
|
|
21
21
|
`-c, --channelId <channelId>`
|
|
22
|
-
: The ID of the channel for which to list tabs
|
|
22
|
+
: The ID of the channel for which to list tabs.
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
<Global />
|
|
@@ -32,13 +32,13 @@ Tabs _Conversations_ and _Files_ are present in every team and therefore not inc
|
|
|
32
32
|
|
|
33
33
|
## Examples
|
|
34
34
|
|
|
35
|
-
List all tabs in a Microsoft Teams channel
|
|
35
|
+
List all tabs in a Microsoft Teams channel.
|
|
36
36
|
|
|
37
37
|
```sh
|
|
38
38
|
m365 teams tab list --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
Include all the values from the tab configuration and associated teams app
|
|
41
|
+
Include all the values from the tab configuration and associated teams app.
|
|
42
42
|
|
|
43
43
|
```sh
|
|
44
44
|
m365 teams tab list --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype --output json
|
|
@@ -105,11 +105,8 @@ m365 teams tab list --teamId 00000000-0000-0000-0000-000000000000 --channelId 19
|
|
|
105
105
|
id | 34991fbf-59f4-48d9-b094-b9d64d550e23
|
|
106
106
|
displayName | My Contoso Tab
|
|
107
107
|
webUrl | https://teams.microsoft.com/l/entity/1542629c-01b3-4a6d-8f76-1938b779e48d/_djb2_msteams_prefix_34991fbf-59f4-48d9-b094-b9d64d550e23?webUrl=https%3a%2f%2fteams.contoso.ai%2fmsteams%2fcontent%2ftab%2fteam%3ftheme%3d%7btheme%7d&label=My%20Contoso%20Tab&context=%7b%0d%0a++%22canvasUrl%22%3a+%22https%3a%2f%2fteams.contoso.ai%2fmsteams%2fcontent%2ftab%2fteam%3ftheme%3d%7btheme%7d%22%2c%0d%0a++%22channelId%22%3a+%2219%3aB3nCnLKwwCoGDEADyUgQ5kJ5Pkekujyjmwxp7uhQeAE1%40thread.tacv2%22%2c%0d%0a++%22subEntityId%22%3a+null%0d%0a%7d&groupId=aee5a2c9-b1df-45ac-9964-c708e760a045&tenantId=92e59666-257b-49c3-b1fa-1bae8107f6ba
|
|
108
|
-
configuration | {"entityId":surveys_list:19:B3nCnLKwwCoGDEADyUgQ5kJ5Pkekujyjmwxp7uhQeAE1@thread.tacv2:ps67c9jyf3a30j2j5eum72,"contentUrl":https://teams.contoso.ai/msteams/content/tab/team?theme={theme},"removeUrl":https://teams.contoso.ai/msteams/content/tabdelete?theme={theme},"websiteUrl":https://teams.contoso.ai/msteams/content/tab/team?theme={theme},"dateAdded":2022-10-31T12:17:58.632Z}
|
|
109
|
-
teamsApp | {"id":"1542629c-01b3-4a6d-8f76-1938b779e48d","externalId":null,"displayName":"My Contoso Tab","distributionMethod":"store"}
|
|
110
108
|
teamsAppTabId | 1542629c-01b3-4a6d-8f76-1938b779e48d
|
|
111
109
|
```
|
|
112
110
|
|
|
113
111
|
</TabItem>
|
|
114
112
|
</Tabs>
|
|
115
|
-
|
|
@@ -125,7 +125,6 @@ m365 teams team add --name "Architecture" --description "Architecture Discussion
|
|
|
125
125
|
attemptsCount | 1
|
|
126
126
|
targetResourceId | a40210cd-0060-4b91-aaa1-a44e0853d979
|
|
127
127
|
targetResourceLocation | /teams('a40210cd-0060-4b91-aaa1-a44e0853d979')
|
|
128
|
-
Value | {"apps":[],"channels":[],"WorkflowId":"westeurope.0837160b-803e-4279-9f2c-a5cc46ffc748"}
|
|
129
128
|
error | null
|
|
130
129
|
```
|
|
131
130
|
|
|
@@ -251,11 +250,9 @@ When we make use of the option `wait` the response will differ.
|
|
|
251
250
|
deletedDateTime | null
|
|
252
251
|
classification | null
|
|
253
252
|
createdDateTime | 2022-11-04T12:46:47Z
|
|
254
|
-
creationOptions | ["Team","ExchangeProvisioningFlags:3552"]
|
|
255
253
|
description | Architecture Discussion
|
|
256
254
|
displayName | Architecture
|
|
257
255
|
expirationDateTime | null
|
|
258
|
-
groupTypes | ["Unified"]
|
|
259
256
|
isAssignableToRole | null
|
|
260
257
|
mail | Architecture@contoso.onmicrosoft.com
|
|
261
258
|
mailEnabled | true
|
|
@@ -270,15 +267,11 @@ When we make use of the option `wait` the response will differ.
|
|
|
270
267
|
onPremisesSyncEnabled | null
|
|
271
268
|
preferredDataLocation | null
|
|
272
269
|
preferredLanguage | null
|
|
273
|
-
proxyAddresses | ["SMTP:Architecture@contoso.onmicrosoft.com"]
|
|
274
270
|
renewedDateTime | 2022-11-04T12:46:47Z
|
|
275
|
-
resourceBehaviorOptions | ["HideGroupInOutlook","SubscribeMembersToCalendarEventsDisabled","WelcomeEmailDisabled"]
|
|
276
|
-
resourceProvisioningOptions | ["Team"]
|
|
277
271
|
securityEnabled | false
|
|
278
272
|
securityIdentifier | S-1-12-1-3583116701-1220939791-2394329482-3974889708
|
|
279
273
|
theme | null
|
|
280
274
|
visibility | Public
|
|
281
|
-
onPremisesProvisioningErrors | []
|
|
282
275
|
```
|
|
283
276
|
|
|
284
277
|
</TabItem>
|
|
@@ -142,14 +142,8 @@ m365 teams team get --name "Team Name"
|
|
|
142
142
|
webUrl | https://teams.microsoft.com/l/team/19%3a2soiTJiLJmUrSi94Hr23ZwcN9uWFWjE3EGYb5bFsyy41%40thread.tacv2/conversations?groupId=2eaf7dcd-7e83-4c3a-94f7-932a1299c844&tenantId=92e59666-257b-49c3-b1fa-1bae8107f6ba
|
|
143
143
|
isArchived | false
|
|
144
144
|
isMembershipLimitedToOwners | false
|
|
145
|
-
discoverySettings | {"showInTeamsSearchAndSuggestions":true}
|
|
146
|
-
memberSettings | {"allowCreateUpdateChannels":true,"allowCreatePrivateChannels":true,"allowDeleteChannels":true,"allowAddRemoveApps":true,"allowCreateUpdateRemoveTabs":true,"allowCreateUpdateRemoveConnectors":true}
|
|
147
|
-
guestSettings | {"allowCreateUpdateChannels":false,"allowDeleteChannels":false}
|
|
148
|
-
messagingSettings | {"allowUserEditMessages":true,"allowUserDeleteMessages":true,"allowOwnerDeleteMessages":true,"allowTeamMentions":true,"allowChannelMentions":true}
|
|
149
|
-
funSettings | {"allowGiphy":true,"giphyContentRating":"strict","allowStickersAndMemes":true,"allowCustomMemes":true}
|
|
150
145
|
summary | null
|
|
151
146
|
```
|
|
152
147
|
|
|
153
148
|
</TabItem>
|
|
154
149
|
</Tabs>
|
|
155
|
-
|
|
@@ -16,7 +16,7 @@ m365 tenant security alerts list [options]
|
|
|
16
16
|
|
|
17
17
|
```md definition-list
|
|
18
18
|
`--vendor [vendor]`
|
|
19
|
-
: The vendor to return alerts for.
|
|
19
|
+
: The vendor to return alerts for. Allowed values: `Azure Advanced Threat Protection`, `Azure Security Center`, `Microsoft Cloud App Security`, `Azure Active Directory Identity Protection`, `Azure Sentinel`, `Microsoft Defender ATP`. If omitted, all alerts are returned.
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
<Global />
|
|
@@ -28,13 +28,13 @@ m365 todo task add [options]
|
|
|
28
28
|
: The body content of the task. In the UI this is called 'notes'.
|
|
29
29
|
|
|
30
30
|
`--bodyContentType [bodyContentType]`
|
|
31
|
-
: The type of the body content.
|
|
31
|
+
: The type of the body content. Allowed values: `text` and `html`. Defaults to `text`.
|
|
32
32
|
|
|
33
33
|
`--dueDateTime [dueDateTime]`
|
|
34
34
|
: The date when the task is due. This should be defined as a valid ISO 8601 string in the UTC time zone. Only date value is needed, time value is always ignored.
|
|
35
35
|
|
|
36
36
|
`--importance [importance]`
|
|
37
|
-
: The importance of the task.
|
|
37
|
+
: The importance of the task. Allowed values: `low`, `normal`, `high`. Defaults to `normal`.
|
|
38
38
|
|
|
39
39
|
`--reminderDateTime [reminderDateTime]`
|
|
40
40
|
: The date and time for a reminder alert of the task to occur. This should be defined as a valid ISO 8601 string in the UTC time zone.
|
|
@@ -46,10 +46,10 @@ m365 todo task add [options]
|
|
|
46
46
|
: The date and time when the task was finished. This should be defined as a valid ISO 8601 string. `2021-12-16T18:28:48.6964197Z`. This option can only be used when the `status` is set to `completed`.
|
|
47
47
|
|
|
48
48
|
`--startDateTime [startDateTime]`
|
|
49
|
-
: The date and time when the task is scheduled to start. This should be defined as a valid ISO 8601 string. `2021-12-16T18:28:48.6964197Z
|
|
49
|
+
: The date and time when the task is scheduled to start. This should be defined as a valid ISO 8601 string. e.g. `2021-12-16T18:28:48.6964197Z`.
|
|
50
50
|
|
|
51
51
|
`--status [status]`
|
|
52
|
-
: Indicates the state or progress of the task.
|
|
52
|
+
: Indicates the state or progress of the task. Allowed values: `notStarted`, `inProgress`, `completed`, `waitingOnOthers`, `deferred`.
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
<Global />
|
|
@@ -60,31 +60,31 @@ When you specify the values for `categories`, each category can correspond to th
|
|
|
60
60
|
|
|
61
61
|
## Examples
|
|
62
62
|
|
|
63
|
-
Add a task to Microsoft To Do tasks list with with a specific name
|
|
63
|
+
Add a task to Microsoft To Do tasks list with with a specific name.
|
|
64
64
|
|
|
65
65
|
```sh
|
|
66
66
|
m365 todo task add --title "New task" --listName "My task list"
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
Add a task to a Microsoft To Do tasks list with a specific id
|
|
69
|
+
Add a task to a Microsoft To Do tasks list with a specific id.
|
|
70
70
|
|
|
71
71
|
```sh
|
|
72
72
|
m365 todo task add --title "New task" --listId "AQMkADlhMTRkOGEzLWQ1M2QtNGVkNS04NjdmLWU0NzJhMjZmZWNmMwAuAAADKvwNgAMNPE_zFNRJXVrU1wEAhHKQZHItDEOVCn8U3xuA2AABmQeVPwAAAA=="
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
Create a new task with bodyContent and reminder and flag it as important
|
|
75
|
+
Create a new task with bodyContent and reminder and flag it as important.
|
|
76
76
|
|
|
77
77
|
```sh
|
|
78
78
|
m365 todo task add --title "New task" --listName "My task list" --bodyContent "I should not forget this" --reminderDateTime 2023-01-01T12:00:00Z --importance high
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
Create a new task with a specific due date
|
|
81
|
+
Create a new task with a specific due date.
|
|
82
82
|
|
|
83
83
|
```sh
|
|
84
84
|
m365 todo task add --title "New task" --listId "AQMkADlhMTRkOGEzLWQ1M2QtNGVkNS04NjdmLWU0NzJhMjZmZWNmMwAuAAADKvwNgAMNPE_zFNRJXVrU1wEAhHKQZHItDEOVCn8U3xuA2AABmQeVPwAAAA==" --dueDateTime 2023-01-01
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
Create a new task with categories, a completedDateTime, a startDateTime and a status
|
|
87
|
+
Create a new task with categories, a completedDateTime, a startDateTime and a status.
|
|
88
88
|
|
|
89
89
|
```sh
|
|
90
90
|
m365 todo task add --title "New task" --listName "My task list" --categories "Red category,Important" --completedDateTime 2023-12-01 --startDateTime 2023-12-01 --status "notStarted"
|
|
@@ -166,13 +166,9 @@ m365 todo task add --title "New task" --listName "My task list" --categories "Re
|
|
|
166
166
|
createdDateTime | 2022-10-29T10:54:06.3672421Z
|
|
167
167
|
lastModifiedDateTime | 2022-10-29T10:54:06.5078837Z
|
|
168
168
|
hasAttachments | false
|
|
169
|
-
categories | []
|
|
170
169
|
id | AAMkAGYzNjMxYTU4LTJjZjYtNDlhMi1iMzQ2LWVmMTU3YmUzOGM5MABGAAAAAAAw3-tXgryDSr5p162KnUPKBwDEwEFouXWWT50CfwqSN9cpAAEX8ECDAADEwEFouXWWT50CfwqSN9cpAAEX8GuPAAA=
|
|
171
|
-
body | {"content": "I should not forget this","contentType": "text"}
|
|
172
|
-
dueDateTime | {"dateTime": "2023-01-01T00:00:00.0000000","timeZone": "UTC"}
|
|
173
170
|
reminderDateTime | {"dateTime": "2023-01-01T12:00:00.0000000","timeZone": "UTC"}
|
|
174
171
|
```
|
|
175
172
|
|
|
176
173
|
</TabItem>
|
|
177
174
|
</Tabs>
|
|
178
|
-
|
|
@@ -34,10 +34,10 @@ m365 todo task set [options]
|
|
|
34
34
|
: The body content of the task. In the UI this is called 'notes'.
|
|
35
35
|
|
|
36
36
|
`--bodyContentType [bodyContentType]`
|
|
37
|
-
: The type of the body content.
|
|
37
|
+
: The type of the body content. Allowed values: `text` and `html`. Defaults to `text`.
|
|
38
38
|
|
|
39
39
|
`--importance [importance]`
|
|
40
|
-
: The importance of the task.
|
|
40
|
+
: The importance of the task. Allowed values: `low`, `normal`, `high`.
|
|
41
41
|
|
|
42
42
|
`--dueDateTime [dueDateTime]`
|
|
43
43
|
: The date and time when the task is due. This should be defined as a valid ISO 8601 string in the UTC time zone. Only date value is needed, time value is always ignored.
|
|
@@ -49,10 +49,10 @@ m365 todo task set [options]
|
|
|
49
49
|
: Comma-separated list of categories associated with the task.
|
|
50
50
|
|
|
51
51
|
`--completedDateTime [completedDateTime]`
|
|
52
|
-
: The date and time when the task was finished. This should be defined as a valid ISO 8601 string. `2021-12-16T18:28:48.6964197Z
|
|
52
|
+
: The date and time when the task was finished. This should be defined as a valid ISO 8601 string. e.g. `2021-12-16T18:28:48.6964197Z`.
|
|
53
53
|
|
|
54
54
|
`--startDateTime [startDateTime]`
|
|
55
|
-
: The date and time when the task is scheduled to start. This should be defined as a valid ISO 8601 string. `2021-12-16T18:28:48.6964197Z
|
|
55
|
+
: The date and time when the task is scheduled to start. This should be defined as a valid ISO 8601 string. e.g. `2021-12-16T18:28:48.6964197Z`.
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
<Global />
|
|
@@ -63,37 +63,37 @@ When you specify the values for `categories`, each category can correspond to th
|
|
|
63
63
|
|
|
64
64
|
## Examples
|
|
65
65
|
|
|
66
|
-
Update a task with title _New task_ to _Update doco_ in Microsoft To Do tasks list with a specific name
|
|
66
|
+
Update a task with title _New task_ to _Update doco_ in Microsoft To Do tasks list with a specific name.
|
|
67
67
|
|
|
68
68
|
```sh
|
|
69
69
|
m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMABGAAAAAADhr7P77n9xS6PdtDemRwpHBwCin1tvQMXzRKN1hQDz2S3VAAAXXsleAACin1tvQMXzRKN1hQDz2S3VAAAXXzr9AAA=" --title "Update doco" --listName "My task list"
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
Update a task with status from _notStarted_ to _inProgress_ in Microsoft To Do tasks list with a specific name
|
|
72
|
+
Update a task with status from _notStarted_ to _inProgress_ in Microsoft To Do tasks list with a specific name.
|
|
73
73
|
|
|
74
74
|
```sh
|
|
75
75
|
m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMABGAAAAAADhr7P77n9xS6PdtDemRwpHBwCin1tvQMXzRKN1hQDz2S3VAAAXXsleAACin1tvQMXzRKN1hQDz2S3VAAAXXzr9AAA=" --status "inProgress" --listName "My task list"
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
Update a task with bodyContent and reminder and flag it as important in Microsoft To Do tasks list with a specific name
|
|
78
|
+
Update a task with bodyContent and reminder and flag it as important in Microsoft To Do tasks list with a specific name.
|
|
79
79
|
|
|
80
80
|
```sh
|
|
81
81
|
m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMABGAAAAAADhr7P77n9xS6PdtDemRwpHBwCin1tvQMXzRKN1hQDz2S3VAAAXXsleAACin1tvQMXzRKN1hQDz2S3VAAAXXzr9AAA=" --listName "My task list" --bodyContent "I should not forget this" --reminderDateTime 2023-01-01T12:00:00Z --importance high
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
Update a task with due date in Microsoft To Do tasks list with list id
|
|
84
|
+
Update a task with due date in Microsoft To Do tasks list with list id.
|
|
85
85
|
|
|
86
86
|
```sh
|
|
87
87
|
m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMABGAAAAAADhr7P77n9xS6PdtDemRwpHBwCin1tvQMXzRKN1hQDz2S3VAAAXXsleAACin1tvQMXzRKN1hQDz2S3VAAAXXzr9AAA=" --listId "AQMkADlhMTRkOGEzLWQ1M2QtNGVkNS04NjdmLWU0NzJhMjZmZWNmMwAuAAADKvwNgAMNPE_zFNRJXVrU1wEAhHKQZHItDEOVCn8U3xuA2AABmQeVPwAAAA==" --dueDateTime 2023-01-01
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
Update a task to Microsoft To Do with several categories
|
|
90
|
+
Update a task to Microsoft To Do with several categories.
|
|
91
91
|
|
|
92
92
|
```sh
|
|
93
93
|
m365 todo task set --title "New task" --listName "My task list" --categories "Red category,Important"
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
Update a task to Microsoft To Do with a start date and set a reminder for the task
|
|
96
|
+
Update a task to Microsoft To Do with a start date and set a reminder for the task.
|
|
97
97
|
|
|
98
98
|
```sh
|
|
99
99
|
m365 todo task set --title "New task" --listName "My task list" --startDateTime "2023-12-16T18:28:48.6964197Z" --isReminderOn true
|
|
@@ -175,13 +175,9 @@ m365 todo task set --title "New task" --listName "My task list" --startDateTime
|
|
|
175
175
|
createdDateTime | 2022-10-29T11:03:20.9175176Z
|
|
176
176
|
lastModifiedDateTime | 2022-10-30T14:07:03.0718199Z
|
|
177
177
|
hasAttachments | false
|
|
178
|
-
categories | []
|
|
179
178
|
id | AAMkAGYzNjMxYTU4LTJjZjYtNDlhMi1iMzQ2LWVmMTU3YmUzOGM5MABGAAAAAAAw3-tXgryDSr5p162KnUPKBwDEwEFouXWWT50CfwqSN9cpAAL3xdLTAADEwEFouXWWT50CfwqSN9cpAAL3xhtSAAA=
|
|
180
|
-
body | {"content":"I should not forget this","contentType":"text"}
|
|
181
|
-
dueDateTime | {"dateTime": "2023-01-01T00:00:00.0000000","timeZone": "UTC"}
|
|
182
179
|
reminderDateTime | {"dateTime": "2023-01-01T12:00:00.0000000","timeZone": "UTC"}
|
|
183
180
|
```
|
|
184
181
|
|
|
185
182
|
</TabItem>
|
|
186
183
|
</Tabs>
|
|
187
|
-
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
module.exports.rules = {
|
|
2
2
|
'correct-command-class-name': require('./rules/correct-command-class-name'),
|
|
3
|
-
'correct-command-name': require('./rules/correct-command-name')
|
|
3
|
+
'correct-command-name': require('./rules/correct-command-name'),
|
|
4
|
+
'no-by-server-relative-url-usage': require('./rules/no-by-server-relative-url-usage')
|
|
4
5
|
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
function reportIncorrectEndpoint(context, node, urlEndpoint, pathEndpoint, updatedValue) {
|
|
2
|
+
context.report({
|
|
3
|
+
node,
|
|
4
|
+
messageId: 'incorrectEndpoint',
|
|
5
|
+
data: { urlEndpoint, pathEndpoint },
|
|
6
|
+
fix: fixer => fixer.replaceText(node, updatedValue),
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
meta: {
|
|
12
|
+
type: 'problem',
|
|
13
|
+
docs: {
|
|
14
|
+
description: "Prevent usage of 'ByServerRelativeUrl' endpoint",
|
|
15
|
+
recommended: true
|
|
16
|
+
},
|
|
17
|
+
fixable: 'code',
|
|
18
|
+
messages: {
|
|
19
|
+
incorrectEndpoint: `Avoid "{{ urlEndpoint }}" endpoint. Instead, use "{{ pathEndpoint }}". Reference issue #5333 for more information.`
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
create: context => {
|
|
23
|
+
return {
|
|
24
|
+
TemplateLiteral(node) {
|
|
25
|
+
const sourceCodeText = context.getSourceCode().getText(node);
|
|
26
|
+
const updatedValue = sourceCodeText
|
|
27
|
+
.replace(/GetFileByServerRelativeUrl\(/ig, 'GetFileByServerRelativePath(DecodedUrl=')
|
|
28
|
+
.replace(/GetFolderByServerRelativeUrl\(/ig, 'GetFolderByServerRelativePath(DecodedUrl=');
|
|
29
|
+
|
|
30
|
+
if (updatedValue !== sourceCodeText) {
|
|
31
|
+
const templateValue = node.quasis.map(quasi => quasi.value.raw).join('');
|
|
32
|
+
const urlEndpoint = templateValue.match(/GetFileByServerRelativeUrl\(/i) ? "GetFileByServerRelativeUrl('url')" : "GetFolderByServerRelativeUrl('url')";
|
|
33
|
+
const pathEndpoint = urlEndpoint.replace("Url('url')", "Path(DecodedUrl='url')");
|
|
34
|
+
|
|
35
|
+
reportIncorrectEndpoint(context, node, urlEndpoint, pathEndpoint, updatedValue);
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
VariableDeclarator(node) {
|
|
39
|
+
const { init } = node;
|
|
40
|
+
if (
|
|
41
|
+
init && init.type === 'Literal' &&
|
|
42
|
+
(String(init.value).match(/GetFileByServerRelativeUrl\(/i) || String(init.value).match(/GetFolderByServerRelativeUrl\(/i))
|
|
43
|
+
) {
|
|
44
|
+
const urlEndpoint = String(init.value).match(/GetFileByServerRelativeUrl\(/i) ? "GetFileByServerRelativeUrl('url')" : "GetFolderByServerRelativeUrl('url')";
|
|
45
|
+
const pathEndpoint = urlEndpoint.replace("Url('url')", "Path(DecodedUrl='url')");
|
|
46
|
+
const updatedValue = String(init.value)
|
|
47
|
+
.replace(/GetFileByServerRelativeUrl\(/i, 'GetFileByServerRelativePath(DecodedUrl=')
|
|
48
|
+
.replace(/GetFolderByServerRelativeUrl\(/i, 'GetFolderByServerRelativePath(DecodedUrl=');
|
|
49
|
+
|
|
50
|
+
reportIncorrectEndpoint(context, init, urlEndpoint, pathEndpoint, `'${updatedValue}'`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
};
|