@pnp/cli-microsoft365 6.5.0-beta.f7a958f → 6.5.0-beta.f8b8018

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 CHANGED
@@ -15,8 +15,8 @@
15
15
  alt="GitHub" />
16
16
  </a>
17
17
 
18
- <a href="https://discord.gg/35HTFJ544b">
19
- <img src="https://img.shields.io/badge/Discord-Join-7289da?style=flat-square"
18
+ <a href="https://aka.ms/cli-m365/discord">
19
+ <img src="https://img.shields.io/badge/Discord-aka.ms/cli--m365/discord-7289da?style=flat-square"
20
20
  alt="Discord" />
21
21
  </a>
22
22
 
@@ -219,7 +219,7 @@ Checkout our [Wiki](https://github.com/pnp/cli-microsoft365/wiki) for guides on
219
219
  Join our community
220
220
  </h4>
221
221
  <p align="center">
222
- <a href="https://discord.gg/35HTFJ544b">
222
+ <a href="https://aka.ms/cli-m365/discord">
223
223
  <img alt="Discord" src="./docs/docs/images/discord-logo.png" width="100"/>
224
224
  </a>
225
225
  </p>
@@ -32,36 +32,36 @@ const FN010010_YORC_sdkVersions_teams_js_1 = require("./rules/FN010010_YORC_sdkV
32
32
  const FN014008_CODE_launch_hostedWorkbench_type_1 = require("./rules/FN014008_CODE_launch_hostedWorkbench_type");
33
33
  const FN014009_CODE_launch_hostedWorkbench_url_1 = require("./rules/FN014009_CODE_launch_hostedWorkbench_url");
34
34
  module.exports = [
35
- new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.17.0-beta.3'),
36
- new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.17.0-beta.3'),
37
- new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.17.0-beta.3'),
38
- new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.17.0-beta.3'),
39
- new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.17.0-beta.3'),
40
- new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.17.0-beta.3'),
41
- new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.17.0-beta.3'),
42
- new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.17.0-beta.3'),
43
- new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.17.0-beta.3'),
44
- new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.17.0-beta.3'),
45
- new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.17.0-beta.3'),
46
- new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.17.0-beta.3'),
47
- new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.17.0-beta.3'),
48
- new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.17.0-beta.3'),
49
- new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.17.0-beta.3'),
50
- new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.17.0-beta.3'),
51
- new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.17.0-beta.3'),
52
- new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.17.0-beta.3'),
53
- new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.17.0-beta.3'),
54
- new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.17.0-beta.3'),
55
- new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.17.0-beta.3'),
56
- new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.17.0-beta.3'),
57
- new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.17.0-beta.3'),
58
- new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.17.0-beta.3'),
35
+ new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.17.0-rc.1'),
36
+ new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.17.0-rc.1'),
37
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.17.0-rc.1'),
38
+ new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.17.0-rc.1'),
39
+ new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.17.0-rc.1'),
40
+ new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.17.0-rc.1'),
41
+ new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.17.0-rc.1'),
42
+ new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.17.0-rc.1'),
43
+ new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.17.0-rc.1'),
44
+ new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.17.0-rc.1'),
45
+ new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.17.0-rc.1'),
46
+ new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.17.0-rc.1'),
47
+ new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.17.0-rc.1'),
48
+ new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.17.0-rc.1'),
49
+ new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.17.0-rc.1'),
50
+ new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.17.0-rc.1'),
51
+ new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.17.0-rc.1'),
52
+ new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.17.0-rc.1'),
53
+ new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.17.0-rc.1'),
54
+ new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.17.0-rc.1'),
55
+ new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.17.0-rc.1'),
56
+ new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.17.0-rc.1'),
57
+ new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.17.0-rc.1'),
58
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.17.0-rc.1'),
59
59
  new FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5_1.FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5('0.4.0'),
60
60
  new FN002024_DEVDEP_eslint_1.FN002024_DEVDEP_eslint('8.7.0'),
61
61
  new FN007002_CFG_S_initialPage_1.FN007002_CFG_S_initialPage('https://{tenantDomain}/_layouts/workbench.aspx'),
62
- new FN010001_YORC_version_1.FN010001_YORC_version('1.17.0-beta.3'),
62
+ new FN010001_YORC_version_1.FN010001_YORC_version('1.17.0-rc.1'),
63
63
  new FN010010_YORC_sdkVersions_teams_js_1.FN010010_YORC_sdkVersions_teams_js('2.9.1'),
64
64
  new FN014008_CODE_launch_hostedWorkbench_type_1.FN014008_CODE_launch_hostedWorkbench_type('edge'),
65
65
  new FN014009_CODE_launch_hostedWorkbench_url_1.FN014009_CODE_launch_hostedWorkbench_url('https://{tenantDomain}/_layouts/workbench.aspx')
66
66
  ];
67
- //# sourceMappingURL=upgrade-1.17.0-beta.3.js.map
67
+ //# sourceMappingURL=upgrade-1.17.0-rc.1.js.map
@@ -77,7 +77,7 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
77
77
  '1.15.2',
78
78
  '1.16.0',
79
79
  '1.16.1',
80
- '1.17.0-beta.3'
80
+ '1.17.0-rc.1'
81
81
  ];
82
82
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initTelemetry).call(this);
83
83
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initOptions).call(this);
@@ -108,6 +108,15 @@ class TodoTaskSetCommand extends GraphCommand_1.default {
108
108
  if (options.reminderDateTime) {
109
109
  requestBody.reminderDateTime = this.getDateTimeTimeZone(options.reminderDateTime);
110
110
  }
111
+ if (options.categories) {
112
+ requestBody.categories = options.categories.split(',');
113
+ }
114
+ if (options.completedDateTime) {
115
+ requestBody.completedDateTime = this.getDateTimeTimeZone(options.completedDateTime);
116
+ }
117
+ if (options.startDateTime) {
118
+ requestBody.startDateTime = this.getDateTimeTimeZone(options.startDateTime);
119
+ }
111
120
  return requestBody;
112
121
  }
113
122
  }
@@ -122,7 +131,10 @@ _TodoTaskSetCommand_instances = new WeakSet(), _TodoTaskSetCommand_initTelemetry
122
131
  bodyContentType: args.options.bodyContentType,
123
132
  dueDateTime: typeof args.options.dueDateTime !== 'undefined',
124
133
  importance: args.options.importance,
125
- reminderDateTime: typeof args.options.reminderDateTime !== 'undefined'
134
+ reminderDateTime: typeof args.options.reminderDateTime !== 'undefined',
135
+ categories: typeof args.options.categories !== 'undefined',
136
+ completedDateTime: typeof args.options.completedDateTime !== 'undefined',
137
+ startDateTime: typeof args.options.startDateTime !== 'undefined'
126
138
  });
127
139
  });
128
140
  }, _TodoTaskSetCommand_initOptions = function _TodoTaskSetCommand_initOptions() {
@@ -149,6 +161,12 @@ _TodoTaskSetCommand_instances = new WeakSet(), _TodoTaskSetCommand_initTelemetry
149
161
  autocomplete: ['low', 'normal', 'high']
150
162
  }, {
151
163
  option: '--reminderDateTime [reminderDateTime]'
164
+ }, {
165
+ option: '--categories [categories]'
166
+ }, {
167
+ option: '--completedDateTime [completedDateTime]'
168
+ }, {
169
+ option: '--startDateTime [startDateTime]'
152
170
  });
153
171
  }, _TodoTaskSetCommand_initValidators = function _TodoTaskSetCommand_initValidators() {
154
172
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
@@ -172,6 +190,12 @@ _TodoTaskSetCommand_instances = new WeakSet(), _TodoTaskSetCommand_initTelemetry
172
190
  if (args.options.reminderDateTime && !validation_1.validation.isValidISODateTime(args.options.reminderDateTime)) {
173
191
  return `'${args.options.reminderDateTime}' is not a valid ISO date string`;
174
192
  }
193
+ if (args.options.completedDateTime && !validation_1.validation.isValidISODateTime(args.options.completedDateTime)) {
194
+ return `'${args.options.completedDateTime}' is not a valid datetime.`;
195
+ }
196
+ if (args.options.startDateTime && !validation_1.validation.isValidISODateTime(args.options.startDateTime)) {
197
+ return `'${args.options.startDateTime}' is not a valid datetime.`;
198
+ }
175
199
  return true;
176
200
  }));
177
201
  }, _TodoTaskSetCommand_initOptionSets = function _TodoTaskSetCommand_initOptionSets() {
@@ -56,7 +56,7 @@ m365 spo list view remove --webUrl https://contoso.sharepoint.com/sites/project-
56
56
  Remove view with title _MyView_ from a list with url _/sites/project-x/lists/Events_ located in site _https://contoso.sharepoint.com/sites/project-x_
57
57
 
58
58
  ```sh
59
- m365 spo list view remove --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl '/sites/project-x/lists/Events' --viewTitle MyView
59
+ m365 spo list view remove --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl '/sites/project-x/lists/Events' --title MyView
60
60
  ```
61
61
 
62
62
  Remove view with ID _cc27a922-8224-4296-90a5-ebbc54da2e81_ from a list with title _Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_ without being asked for confirmation
@@ -58,13 +58,13 @@ Update view formatting of the specified list view
58
58
  === "PowerShell"
59
59
 
60
60
  ```sh
61
- m365 spo list view set --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'My List' --viewTitle 'All items' --CustomFormatter '{\"schema\":\"https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json\",\"additionalRowClass\": \"=if([$DueDate] &lt;= @now, ''sp-field-severity--severeWarning'', '''')\"}'
61
+ m365 spo list view set --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'My List' --title 'All items' --CustomFormatter '{\"schema\":\"https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json\",\"additionalRowClass\": \"=if([$DueDate] &lt;= @now, ''sp-field-severity--severeWarning'', '''')\"}'
62
62
  ```
63
63
 
64
64
  === "Bash"
65
65
 
66
66
  ```sh
67
- m365 spo list view set --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'My List' --viewTitle 'All items' --CustomFormatter "{\"schema\":\"https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json\",\"additionalRowClass\": \"=if([$DueDate] &lt;= @now, 'sp-field-severity--severeWarning', '')\"}"
67
+ m365 spo list view set --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'My List' --title 'All items' --CustomFormatter "{\"schema\":\"https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json\",\"additionalRowClass\": \"=if([$DueDate] &lt;= @now, 'sp-field-severity--severeWarning', '')\"}"
68
68
  ```
69
69
 
70
70
  ## Response
@@ -40,8 +40,21 @@ m365 todo task set [options]
40
40
  `--reminderDateTime [reminderDateTime]`
41
41
  : 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.
42
42
 
43
+ `--categories [categories]`
44
+ : Comma-separated list of categories associated with the task.
45
+
46
+ `--completedDateTime [completedDateTime]`
47
+ : 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`
48
+
49
+ `--startDateTime [startDateTime]`
50
+ : 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`
51
+
43
52
  --8<-- "docs/cmd/_global.md"
44
53
 
54
+ ## Remarks
55
+
56
+ When you specify the values for `categories`, each category can correspond to the displayName property of an [outlookCategory](https://learn.microsoft.com/en-us/graph/api/resources/outlookcategory?view=graph-rest-1.0). It is permissible to use distinct names.
57
+
45
58
  ## Examples
46
59
 
47
60
  Update a task with title _New task_ to _Update doco_ in Microsoft To Do tasks list with a specific name
@@ -68,6 +81,18 @@ Update a task with due date in Microsoft To Do tasks list with list id
68
81
  m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMABGAAAAAADhr7P77n9xS6PdtDemRwpHBwCin1tvQMXzRKN1hQDz2S3VAAAXXsleAACin1tvQMXzRKN1hQDz2S3VAAAXXzr9AAA=" --listId "AQMkADlhMTRkOGEzLWQ1M2QtNGVkNS04NjdmLWU0NzJhMjZmZWNmMwAuAAADKvwNgAMNPE_zFNRJXVrU1wEAhHKQZHItDEOVCn8U3xuA2AABmQeVPwAAAA==" --dueDateTime 2023-01-01
69
82
  ```
70
83
 
84
+ Update a task to Microsoft To Do with several categories
85
+
86
+ ```sh
87
+ m365 todo task set --title "New task" --listName "My task list" --categories "Red category,Important"
88
+ ```
89
+
90
+ Update a task to Microsoft To Do with a start date and set a reminder for the task
91
+
92
+ ```sh
93
+ m365 todo task set --title "New task" --listName "My task list" --startDateTime "2023-12-16T18:28:48.6964197Z" --isReminderOn true
94
+ ```
95
+
71
96
  ## Response
72
97
 
73
98
  === "JSON"
@@ -121,3 +146,28 @@ m365 todo task set --id "AAMkADU3Y2E0OTMxLTllYTQtNGFlZS1hZGM0LWI1NjZjY2FhM2RhMAB
121
146
  importance,isReminderOn,status,title,createdDateTime,lastModifiedDateTime,hasAttachments,categories,id,body,dueDateTime,reminderDateTime
122
147
  high,1,notStarted,Update doco,2022-10-29T11:03:20.9175176Z,2022-10-30T14:09:14.7687057Z,,[],AAMkAGYzNjMxYTU4LTJjZjYtNDlhMi1iMzQ2LWVmMTU3YmUzOGM5MABGAAAAAAAw3-tXgryDSr5p162KnUPKBwDEwEFouXWWT50CfwqSN9cpAAL3xdLTAADEwEFouXWWT50CfwqSN9cpAAL3xhtSAAA=,"{""content"":""I should not forget this"",""contentType"":""text""}","{""dateTime"":""2023-01-01T00:00:00.0000000"",""timeZone"":""UTC""}","{""dateTime"":""2023-01-01T12:00:00.0000000"",""timeZone"":""UTC""}"
123
148
  ```
149
+
150
+ === "Markdown"
151
+
152
+ ```md
153
+ # todo task set --id "AAMkAGYzNjMxYTU4LTJjZjYtNDlhMi1iMzQ2LWVmMTU3YmUzOGM5MABGAAAAAAAw3-tXgryDSr5p162KnUPKBwDEwEFouXWWT50CfwqSN9cpAAL3xdLTAADEwEFouXWWT50CfwqSN9cpAAL3xhtSAAA=" --title "Update doco" --listName "My task list" --status "notStarted"
154
+
155
+ Date: 4/3/2023
156
+
157
+ ## Update doco (AAMkAGYzNjMxYTU4LTJjZjYtNDlhMi1iMzQ2LWVmMTU3YmUzOGM5MABGAAAAAAAw3-tXgryDSr5p162KnUPKBwDEwEFouXWWT50CfwqSN9cpAAL3xdLTAADEwEFouXWWT50CfwqSN9cpAAL3xhtSAAA=)
158
+
159
+ Property | Value
160
+ ---------|-------
161
+ importance | high
162
+ isReminderOn | true
163
+ status | notStarted
164
+ title | Update doco
165
+ createdDateTime | 2022-10-29T11:03:20.9175176Z
166
+ lastModifiedDateTime | 2022-10-30T14:07:03.0718199Z
167
+ hasAttachments | false
168
+ categories | []
169
+ id | AAMkAGYzNjMxYTU4LTJjZjYtNDlhMi1iMzQ2LWVmMTU3YmUzOGM5MABGAAAAAAAw3-tXgryDSr5p162KnUPKBwDEwEFouXWWT50CfwqSN9cpAAL3xdLTAADEwEFouXWWT50CfwqSN9cpAAL3xhtSAAA=
170
+ body | {"content":"I should not forget this","contentType":"text"}
171
+ dueDateTime | {"dateTime": "2023-01-01T00:00:00.0000000","timeZone": "UTC"}
172
+ reminderDateTime | {"dateTime": "2023-01-01T12:00:00.0000000","timeZone": "UTC"}
173
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "6.5.0-beta.f7a958f",
3
+ "version": "6.5.0-beta.f8b8018",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -183,6 +183,7 @@
183
183
  "Romão, Douglas <douglas.romao@trentim.com>",
184
184
  "Rozinov, Roman <roman.rozinov@sogeti.com>",
185
185
  "Saatçi, Hüseyin <huseyins@comodo.net>",
186
+ "Sanap, Ganesh <ganeshsanap120694@gmail.com>",
186
187
  "Schaeflein, Paul <paul@schaeflein.net>",
187
188
  "Schot, Albert-Jan <appie@digiwijs.nl>",
188
189
  "Schouten, Robert <robert.schouten@wortell.nl>",