@pnp/cli-microsoft365 4.1.0-beta.6c0929c → 4.1.0-beta.7fbe6cd

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.
Files changed (26) hide show
  1. package/dist/m365/aad/commands/o365group/{o365group-restore.js → o365group-recyclebinitem-restore.js} +10 -10
  2. package/dist/m365/aad/commands/o365group/o365group-teamify.js +48 -12
  3. package/dist/m365/aad/commands/serviceprincipal/serviceprincipal-get.js +116 -0
  4. package/dist/m365/aad/commands/siteclassification/siteclassification-enable.js +2 -2
  5. package/dist/m365/aad/commands/siteclassification/siteclassification-get.js +1 -1
  6. package/dist/m365/aad/commands/siteclassification/siteclassification-set.js +2 -2
  7. package/dist/m365/aad/commands.js +2 -0
  8. package/dist/m365/pa/commands/connector/connector-export.js +2 -2
  9. package/dist/m365/spfx/commands/project/project-upgrade/Utils.js +1 -1
  10. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002017_DEVDEP_microsoft_rush_stack_compiler_3_7.js +2 -2
  11. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9.js +17 -0
  12. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015007_FILE_config_copy_assets_json.js +17 -0
  13. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.13.0-beta.20.js → upgrade-1.13.0-rc.1.js} +43 -25
  14. package/dist/m365/spfx/commands/project/project-upgrade.js +1 -1
  15. package/dist/m365/spo/commands/contenttype/contenttype-add.js +21 -1
  16. package/dist/m365/teams/commands/user/user-app-list.js +8 -6
  17. package/docs/docs/cmd/aad/o365group/{o365group-restore.md → o365group-recyclebinitem-restore.md} +7 -1
  18. package/docs/docs/cmd/aad/o365group/o365group-teamify.md +12 -3
  19. package/docs/docs/cmd/aad/serviceprincipal/serviceprincipal-get.md +42 -0
  20. package/docs/docs/cmd/aad/siteclassification/siteclassification-enable.md +0 -5
  21. package/docs/docs/cmd/aad/siteclassification/siteclassification-get.md +0 -5
  22. package/docs/docs/cmd/aad/siteclassification/siteclassification-set.md +0 -4
  23. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  24. package/npm-shrinkwrap.json +483 -479
  25. package/package.json +20 -20
  26. package/dist/m365/teams/UserTeamsApp.js +0 -3
@@ -4,17 +4,15 @@ const request_1 = require("../../../../request");
4
4
  const Utils_1 = require("../../../../Utils");
5
5
  const GraphCommand_1 = require("../../../base/GraphCommand");
6
6
  const commands_1 = require("../../commands");
7
- class AadO365GroupRestoreCommand extends GraphCommand_1.default {
7
+ class AadO365GroupRecycleBinItemRestoreCommand extends GraphCommand_1.default {
8
8
  get name() {
9
- return commands_1.default.O365GROUP_RESTORE;
9
+ return commands_1.default.O365GROUP_RECYCLEBINITEM_RESTORE;
10
10
  }
11
11
  get description() {
12
12
  return 'Restores a deleted Microsoft 365 Group';
13
13
  }
14
- getTelemetryProperties(args) {
15
- const telemetryProps = super.getTelemetryProperties(args);
16
- telemetryProps.id = (!(!args.options.id)).toString();
17
- return telemetryProps;
14
+ alias() {
15
+ return [commands_1.default.O365GROUP_RESTORE];
18
16
  }
19
17
  commandAction(logger, args, cb) {
20
18
  if (this.verbose) {
@@ -23,8 +21,10 @@ class AadO365GroupRestoreCommand extends GraphCommand_1.default {
23
21
  const requestOptions = {
24
22
  url: `${this.resource}/v1.0/directory/deleteditems/${args.options.id}/restore/`,
25
23
  headers: {
26
- 'accept': 'application/json;odata.metadata=none'
27
- }
24
+ 'accept': 'application/json;odata.metadata=none',
25
+ 'content-type': 'application/json'
26
+ },
27
+ responseType: 'json'
28
28
  };
29
29
  request_1.default
30
30
  .post(requestOptions)
@@ -46,5 +46,5 @@ class AadO365GroupRestoreCommand extends GraphCommand_1.default {
46
46
  return true;
47
47
  }
48
48
  }
49
- module.exports = new AadO365GroupRestoreCommand();
50
- //# sourceMappingURL=o365group-restore.js.map
49
+ module.exports = new AadO365GroupRecycleBinItemRestoreCommand();
50
+ //# sourceMappingURL=o365group-recyclebinitem-restore.js.map
@@ -11,6 +11,30 @@ class AadO365GroupTeamifyCommand extends GraphCommand_1.default {
11
11
  get description() {
12
12
  return 'Creates a new Microsoft Teams team under existing Microsoft 365 group';
13
13
  }
14
+ getGroupId(args) {
15
+ if (args.options.groupId) {
16
+ return Promise.resolve(args.options.groupId);
17
+ }
18
+ const requestOptions = {
19
+ url: `${this.resource}/v1.0/groups?$filter=mailNickname eq '${encodeURIComponent(args.options.mailNickname)}'`,
20
+ headers: {
21
+ accept: 'application/json;odata.metadata=none'
22
+ },
23
+ responseType: 'json'
24
+ };
25
+ return request_1.default
26
+ .get(requestOptions)
27
+ .then(response => {
28
+ const groupItem = response.value[0];
29
+ if (!groupItem) {
30
+ return Promise.reject(`The specified Microsoft 365 Group does not exist`);
31
+ }
32
+ if (response.value.length > 1) {
33
+ return Promise.reject(`Multiple Microsoft 365 Groups with name ${args.options.mailNickname} found: ${response.value.map(x => x.id)}`);
34
+ }
35
+ return Promise.resolve(groupItem.id);
36
+ });
37
+ }
14
38
  commandAction(logger, args, cb) {
15
39
  const data = {
16
40
  "memberSettings": {
@@ -26,29 +50,41 @@ class AadO365GroupTeamifyCommand extends GraphCommand_1.default {
26
50
  "giphyContentRating": "strict"
27
51
  }
28
52
  };
29
- const requestOptions = {
30
- url: `${this.resource}/v1.0/groups/${encodeURIComponent(args.options.groupId)}/team`,
31
- headers: {
32
- accept: 'application/json;odata.metadata=none'
33
- },
34
- data: data,
35
- responseType: 'json'
36
- };
37
- request_1.default
38
- .put(requestOptions)
53
+ this
54
+ .getGroupId(args)
55
+ .then((groupId) => {
56
+ const requestOptions = {
57
+ url: `${this.resource}/v1.0/groups/${encodeURIComponent(groupId)}/team`,
58
+ headers: {
59
+ accept: 'application/json;odata.metadata=none'
60
+ },
61
+ data: data,
62
+ responseType: 'json'
63
+ };
64
+ return request_1.default.put(requestOptions);
65
+ })
39
66
  .then(_ => cb(), (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
40
67
  }
41
68
  options() {
42
69
  const options = [
43
70
  {
44
- option: '-i, --groupId <groupId>'
71
+ option: '-i, --groupId [groupId]'
72
+ },
73
+ {
74
+ option: '--mailNickname [mailNickname]'
45
75
  }
46
76
  ];
47
77
  const parentOptions = super.options();
48
78
  return options.concat(parentOptions);
49
79
  }
50
80
  validate(args) {
51
- if (!Utils_1.default.isValidGuid(args.options.groupId)) {
81
+ if (args.options.groupId && args.options.mailNickname) {
82
+ return 'Specify either groupId or mailNickname, but not both.';
83
+ }
84
+ if (!args.options.groupId && !args.options.mailNickname) {
85
+ return 'Specify groupId or mailNickname, one is required';
86
+ }
87
+ if (args.options.groupId && !Utils_1.default.isValidGuid(args.options.groupId)) {
52
88
  return `${args.options.groupId} is not a valid GUID`;
53
89
  }
54
90
  return true;
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const request_1 = require("../../../../request");
4
+ const Utils_1 = require("../../../../Utils");
5
+ const GraphCommand_1 = require("../../../base/GraphCommand");
6
+ const commands_1 = require("../../commands");
7
+ class AadServicePrincipalGetCommand extends GraphCommand_1.default {
8
+ get name() {
9
+ return commands_1.default.SERVICEPRINCIPAL_GET;
10
+ }
11
+ get description() {
12
+ return 'Retrieves a service principal from Azure AD directory';
13
+ }
14
+ getTelemetryProperties(args) {
15
+ const telemetryProps = super.getTelemetryProperties(args);
16
+ telemetryProps.id = typeof args.options.id !== 'undefined';
17
+ telemetryProps.appId = typeof args.options.appId !== 'undefined';
18
+ telemetryProps.name = typeof args.options.name !== 'undefined';
19
+ return telemetryProps;
20
+ }
21
+ getServicePrincipalId(args) {
22
+ if (args.options.id) {
23
+ return Promise.resolve(args.options.id);
24
+ }
25
+ let requestURL = '';
26
+ if (args.options.appId) {
27
+ requestURL = `${this.resource}/v1.0/serviceprincipals?$filter=appId eq '${encodeURIComponent(args.options.appId)}'&$select=id`;
28
+ }
29
+ else {
30
+ requestURL = `${this.resource}/v1.0/serviceprincipals?$filter=displayName eq '${encodeURIComponent(args.options.name)}'&$select=id`;
31
+ }
32
+ const requestOptions = {
33
+ url: requestURL,
34
+ headers: {
35
+ accept: 'application/json;odata.metadata=none',
36
+ ConsistencyLevel: 'eventual'
37
+ },
38
+ responseType: 'json'
39
+ };
40
+ return request_1.default
41
+ .get(requestOptions)
42
+ .then(response => {
43
+ const servicePrincipalItem = response.value[0];
44
+ if (!servicePrincipalItem) {
45
+ return Promise.reject(`The specified service principal doesn't exist in Azure AD`);
46
+ }
47
+ if (response.value.length > 1 && args.options.name) {
48
+ return Promise.reject(`Multiple service principals with name ${args.options.name} found: ${response.value.map(x => x.id)}`);
49
+ }
50
+ if (response.value.length > 1 && args.options.appId) {
51
+ return Promise.reject(`Multiple service principals with appId ${args.options.appId} found: ${response.value.map(x => x.id)}`);
52
+ }
53
+ return Promise.resolve(servicePrincipalItem.id);
54
+ });
55
+ }
56
+ commandAction(logger, args, cb) {
57
+ this
58
+ .getServicePrincipalId(args)
59
+ .then((servicePrincipalId) => {
60
+ const requestOptions = {
61
+ url: `${this.resource}/v1.0/serviceprincipals/${encodeURIComponent(servicePrincipalId)}`,
62
+ headers: {
63
+ accept: 'application/json;odata.metadata=none',
64
+ ConsistencyLevel: 'eventual'
65
+ },
66
+ responseType: 'json'
67
+ };
68
+ return request_1.default.get(requestOptions);
69
+ })
70
+ .then((res) => {
71
+ logger.log(res);
72
+ cb();
73
+ }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
74
+ }
75
+ options() {
76
+ const options = [
77
+ {
78
+ option: '-i, --id [id]'
79
+ },
80
+ {
81
+ option: '--appId [appId]'
82
+ },
83
+ {
84
+ option: '--n, --name [name]'
85
+ }
86
+ ];
87
+ const parentOptions = super.options();
88
+ return options.concat(parentOptions);
89
+ }
90
+ validate(args) {
91
+ if (args.options.id && args.options.appId && args.options.name) {
92
+ return 'Specify either id, appId or name, but not all.';
93
+ }
94
+ if (args.options.id && args.options.appId) {
95
+ return 'Specify either id or appId, but not both.';
96
+ }
97
+ if (args.options.appId && args.options.name) {
98
+ return 'Specify either appId or name, but not both.';
99
+ }
100
+ if (args.options.name && args.options.id) {
101
+ return 'Specify either id or name, but not both.';
102
+ }
103
+ if (!args.options.id && !args.options.appId && !args.options.name) {
104
+ return 'Specify id, appId or name, one is required';
105
+ }
106
+ if (args.options.id && !Utils_1.default.isValidGuid(args.options.id)) {
107
+ return `${args.options.id} is not a valid GUID`;
108
+ }
109
+ if (args.options.appId && !Utils_1.default.isValidGuid(args.options.appId)) {
110
+ return `${args.options.appId} is not a valid GUID`;
111
+ }
112
+ return true;
113
+ }
114
+ }
115
+ module.exports = new AadServicePrincipalGetCommand();
116
+ //# sourceMappingURL=serviceprincipal-get.js.map
@@ -19,7 +19,7 @@ class AadSiteClassificationEnableCommand extends GraphCommand_1.default {
19
19
  }
20
20
  commandAction(logger, args, cb) {
21
21
  const requestOptions = {
22
- url: `${this.resource}/beta/directorySettingTemplates`,
22
+ url: `${this.resource}/v1.0/groupSettingTemplates`,
23
23
  headers: {
24
24
  accept: 'application/json;odata.metadata=none'
25
25
  },
@@ -88,7 +88,7 @@ class AadSiteClassificationEnableCommand extends GraphCommand_1.default {
88
88
  }
89
89
  });
90
90
  const requestOptions = {
91
- url: `${this.resource}/beta/settings`,
91
+ url: `${this.resource}/v1.0/groupSettings`,
92
92
  headers: {
93
93
  accept: 'application/json;odata.metadata=none',
94
94
  'content-type': 'application/json'
@@ -14,7 +14,7 @@ class AadSiteClassificationGetCommand extends GraphCommand_1.default {
14
14
  }
15
15
  commandAction(logger, args, cb) {
16
16
  const requestOptions = {
17
- url: `${this.resource}/beta/settings`,
17
+ url: `${this.resource}/v1.0/groupSettings`,
18
18
  headers: {
19
19
  accept: 'application/json;odata.metadata=none'
20
20
  },
@@ -21,7 +21,7 @@ class AadSiteClassificationSetCommand extends GraphCommand_1.default {
21
21
  }
22
22
  commandAction(logger, args, cb) {
23
23
  const requestOptions = {
24
- url: `${this.resource}/beta/settings`,
24
+ url: `${this.resource}/v1.0/groupSettings`,
25
25
  headers: {
26
26
  accept: 'application/json;odata.metadata=none'
27
27
  },
@@ -105,7 +105,7 @@ class AadSiteClassificationSetCommand extends GraphCommand_1.default {
105
105
  }
106
106
  });
107
107
  const requestOptions = {
108
- url: `${this.resource}/beta/settings/${unifiedGroupSetting[0].id}`,
108
+ url: `${this.resource}/v1.0/groupSettings/${unifiedGroupSetting[0].id}`,
109
109
  headers: {
110
110
  accept: 'application/json;odata.metadata=none',
111
111
  'content-type': 'application/json'
@@ -22,6 +22,7 @@ exports.default = {
22
22
  O365GROUP_LIST: `${prefix} o365group list`,
23
23
  O365GROUP_RECYCLEBINITEM_CLEAR: `${prefix} o365group recyclebinitem clear`,
24
24
  O365GROUP_RECYCLEBINITEM_LIST: `${prefix} o365group recyclebinitem list`,
25
+ O365GROUP_RECYCLEBINITEM_RESTORE: `${prefix} o365group recyclebinitem restore`,
25
26
  O365GROUP_SET: `${prefix} o365group set`,
26
27
  O365GROUP_TEAMIFY: `${prefix} o365group teamify`,
27
28
  O365GROUP_REMOVE: `${prefix} o365group remove`,
@@ -41,6 +42,7 @@ exports.default = {
41
42
  OAUTH2GRANT_REMOVE: `${prefix} oauth2grant remove`,
42
43
  OAUTH2GRANT_SET: `${prefix} oauth2grant set`,
43
44
  POLICY_LIST: `${prefix} policy list`,
45
+ SERVICEPRINCIPAL_GET: `${prefix} serviceprincipal get`,
44
46
  SITECLASSIFICATION_DISABLE: `${prefix} siteclassification disable`,
45
47
  SITECLASSIFICATION_ENABLE: `${prefix} siteclassification enable`,
46
48
  SITECLASSIFICATION_GET: `${prefix} siteclassification get`,
@@ -80,7 +80,7 @@ class PaConnectorExportCommand extends AzmgmtCommand_1.default {
80
80
  .get({
81
81
  url: connector.properties.apiDefinitions.originalSwaggerUrl,
82
82
  headers: {
83
- 'x-anonymous': true
83
+ 'x-anonymous': 'true'
84
84
  }
85
85
  });
86
86
  }
@@ -111,7 +111,7 @@ class PaConnectorExportCommand extends AzmgmtCommand_1.default {
111
111
  url: connector.properties.iconUri,
112
112
  responseType: 'arraybuffer',
113
113
  headers: {
114
- 'x-anonymous': true
114
+ 'x-anonymous': 'true'
115
115
  }
116
116
  });
117
117
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Utils = void 0;
4
4
  const fs = require("fs");
5
5
  const path = require("path");
6
- const stripJsonComments = require('strip-json-comments');
6
+ const stripJsonComments = require("strip-json-comments");
7
7
  class Utils {
8
8
  static removeSingleLineComments(s) {
9
9
  return stripJsonComments(s);
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FN002017_DEVDEP_microsoft_rush_stack_compiler_3_7 = void 0;
4
4
  const DependencyRule_1 = require("./DependencyRule");
5
5
  class FN002017_DEVDEP_microsoft_rush_stack_compiler_3_7 extends DependencyRule_1.DependencyRule {
6
- constructor(packageVersion) {
7
- super('@microsoft/rush-stack-compiler-3.7', packageVersion, true);
6
+ constructor(packageVersion, add = true) {
7
+ super('@microsoft/rush-stack-compiler-3.7', packageVersion, true, false, add);
8
8
  }
9
9
  get id() {
10
10
  return 'FN002017';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9 = void 0;
4
+ const DependencyRule_1 = require("./DependencyRule");
5
+ class FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9 extends DependencyRule_1.DependencyRule {
6
+ constructor(packageVersion) {
7
+ super('@microsoft/rush-stack-compiler-3.9', packageVersion, true);
8
+ }
9
+ get id() {
10
+ return 'FN002018';
11
+ }
12
+ get supersedes() {
13
+ return ['FN002010', 'FN002011', 'FN002012', 'FN002017'];
14
+ }
15
+ }
16
+ exports.FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9 = FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9;
17
+ //# sourceMappingURL=FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9.js.map
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FN015007_FILE_config_copy_assets_json = void 0;
4
+ const FileAddRemoveRule_1 = require("./FileAddRemoveRule");
5
+ class FN015007_FILE_config_copy_assets_json extends FileAddRemoveRule_1.FileAddRemoveRule {
6
+ constructor(add) {
7
+ super('./config/copy-assets.json', add);
8
+ }
9
+ get id() {
10
+ return 'FN015007';
11
+ }
12
+ get supersedes() {
13
+ return ['FN004001', 'FN004002'];
14
+ }
15
+ }
16
+ exports.FN015007_FILE_config_copy_assets_json = FN015007_FILE_config_copy_assets_json;
17
+ //# sourceMappingURL=FN015007_FILE_config_copy_assets_json.js.map
@@ -4,11 +4,14 @@ const FN001001_DEP_microsoft_sp_core_library_1 = require("./rules/FN001001_DEP_m
4
4
  const FN001002_DEP_microsoft_sp_lodash_subset_1 = require("./rules/FN001002_DEP_microsoft_sp_lodash_subset");
5
5
  const FN001003_DEP_microsoft_sp_office_ui_fabric_core_1 = require("./rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core");
6
6
  const FN001004_DEP_microsoft_sp_webpart_base_1 = require("./rules/FN001004_DEP_microsoft_sp_webpart_base");
7
+ const FN001008_DEP_react_1 = require("./rules/FN001008_DEP_react");
8
+ const FN001009_DEP_react_dom_1 = require("./rules/FN001009_DEP_react_dom");
7
9
  const FN001011_DEP_microsoft_sp_dialog_1 = require("./rules/FN001011_DEP_microsoft_sp_dialog");
8
10
  const FN001012_DEP_microsoft_sp_application_base_1 = require("./rules/FN001012_DEP_microsoft_sp_application_base");
9
11
  const FN001013_DEP_microsoft_decorators_1 = require("./rules/FN001013_DEP_microsoft_decorators");
10
12
  const FN001014_DEP_microsoft_sp_listview_extensibility_1 = require("./rules/FN001014_DEP_microsoft_sp_listview_extensibility");
11
13
  const FN001021_DEP_microsoft_sp_property_pane_1 = require("./rules/FN001021_DEP_microsoft_sp_property_pane");
14
+ const FN001022_DEP_office_ui_fabric_react_1 = require("./rules/FN001022_DEP_office_ui_fabric_react");
12
15
  const FN001023_DEP_microsoft_sp_component_base_1 = require("./rules/FN001023_DEP_microsoft_sp_component_base");
13
16
  const FN001024_DEP_microsoft_sp_diagnostics_1 = require("./rules/FN001024_DEP_microsoft_sp_diagnostics");
14
17
  const FN001025_DEP_microsoft_sp_dynamic_data_1 = require("./rules/FN001025_DEP_microsoft_sp_dynamic_data");
@@ -23,41 +26,56 @@ const FN002001_DEVDEP_microsoft_sp_build_web_1 = require("./rules/FN002001_DEVDE
23
26
  const FN002002_DEVDEP_microsoft_sp_module_interfaces_1 = require("./rules/FN002002_DEVDEP_microsoft_sp_module_interfaces");
24
27
  const FN002003_DEVDEP_microsoft_sp_webpart_workbench_1 = require("./rules/FN002003_DEVDEP_microsoft_sp_webpart_workbench");
25
28
  const FN002009_DEVDEP_microsoft_sp_tslint_rules_1 = require("./rules/FN002009_DEVDEP_microsoft_sp_tslint_rules");
29
+ const FN002015_DEVDEP_types_react_1 = require("./rules/FN002015_DEVDEP_types_react");
30
+ const FN002017_DEVDEP_microsoft_rush_stack_compiler_3_7_1 = require("./rules/FN002017_DEVDEP_microsoft_rush_stack_compiler_3_7");
31
+ const FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9_1 = require("./rules/FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9");
26
32
  const FN006004_CFG_PS_developer_1 = require("./rules/FN006004_CFG_PS_developer");
27
33
  const FN007002_CFG_S_initialPage_1 = require("./rules/FN007002_CFG_S_initialPage");
28
34
  const FN007003_CFG_S_api_1 = require("./rules/FN007003_CFG_S_api");
35
+ const FN008002_CFG_TSL_removeRule_1 = require("./rules/FN008002_CFG_TSL_removeRule");
29
36
  const FN010001_YORC_version_1 = require("./rules/FN010001_YORC_version");
37
+ const FN012017_TSC_extends_1 = require("./rules/FN012017_TSC_extends");
30
38
  const FN014007_CODE_launch_localWorkbench_1 = require("./rules/FN014007_CODE_launch_localWorkbench");
39
+ const FN015007_FILE_config_copy_assets_json_1 = require("./rules/FN015007_FILE_config_copy_assets_json");
31
40
  const FN024001_NPMIGNORE_file_1 = require("./rules/FN024001_NPMIGNORE_file");
32
41
  module.exports = [
33
- new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.13.0-beta.20'),
34
- new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.13.0-beta.20'),
35
- new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.13.0-beta.20'),
36
- new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.13.0-beta.20'),
37
- new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.13.0-beta.20'),
38
- new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.13.0-beta.20'),
39
- new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.13.0-beta.20'),
40
- new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.13.0-beta.20'),
41
- new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.13.0-beta.20'),
42
- new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.13.0-beta.20'),
43
- new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.13.0-beta.20'),
44
- new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.13.0-beta.20'),
45
- new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.13.0-beta.20'),
46
- new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.13.0-beta.20'),
47
- new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.13.0-beta.20'),
48
- new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.13.0-beta.20'),
49
- new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.13.0-beta.20'),
50
- new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.13.0-beta.20'),
51
- new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.13.0-beta.20'),
52
- new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.13.0-beta.20'),
53
- new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.13.0-beta.20'),
42
+ new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.13.0-rc.1'),
43
+ new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.13.0-rc.1'),
44
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.13.0-rc.1'),
45
+ new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.13.0-rc.1'),
46
+ new FN001008_DEP_react_1.FN001008_DEP_react('16.13.1'),
47
+ new FN001009_DEP_react_dom_1.FN001009_DEP_react_dom('16.13.1'),
48
+ new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.13.0-rc.1'),
49
+ new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.13.0-rc.1'),
50
+ new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.13.0-rc.1'),
51
+ new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.13.0-rc.1'),
52
+ new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.13.0-rc.1'),
53
+ new FN001022_DEP_office_ui_fabric_react_1.FN001022_DEP_office_ui_fabric_react('7.174.1'),
54
+ new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.13.0-rc.1'),
55
+ new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.13.0-rc.1'),
56
+ new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.13.0-rc.1'),
57
+ new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.13.0-rc.1'),
58
+ new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.13.0-rc.1'),
59
+ new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.13.0-rc.1'),
60
+ new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.13.0-rc.1'),
61
+ new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.13.0-rc.1'),
62
+ new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.13.0-rc.1'),
63
+ new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.13.0-rc.1'),
64
+ new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.13.0-rc.1'),
65
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.13.0-rc.1'),
54
66
  new FN002003_DEVDEP_microsoft_sp_webpart_workbench_1.FN002003_DEVDEP_microsoft_sp_webpart_workbench('', false),
55
- new FN002009_DEVDEP_microsoft_sp_tslint_rules_1.FN002009_DEVDEP_microsoft_sp_tslint_rules('1.13.0-beta.20'),
56
- new FN006004_CFG_PS_developer_1.FN006004_CFG_PS_developer('1.13.0-beta.20'),
67
+ new FN002009_DEVDEP_microsoft_sp_tslint_rules_1.FN002009_DEVDEP_microsoft_sp_tslint_rules('1.13.0-rc.1'),
68
+ new FN002015_DEVDEP_types_react_1.FN002015_DEVDEP_types_react('16.9.51'),
69
+ new FN002017_DEVDEP_microsoft_rush_stack_compiler_3_7_1.FN002017_DEVDEP_microsoft_rush_stack_compiler_3_7('', false),
70
+ new FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9_1.FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9('0.4.47'),
71
+ new FN006004_CFG_PS_developer_1.FN006004_CFG_PS_developer('1.13.0-rc.1'),
57
72
  new FN007002_CFG_S_initialPage_1.FN007002_CFG_S_initialPage('https://enter-your-SharePoint-site/_layouts/workbench.aspx'),
58
73
  new FN007003_CFG_S_api_1.FN007003_CFG_S_api(),
59
- new FN010001_YORC_version_1.FN010001_YORC_version('1.13.0-beta.20'),
74
+ new FN008002_CFG_TSL_removeRule_1.FN008002_CFG_TSL_removeRule('no-use-before-declare'),
75
+ new FN010001_YORC_version_1.FN010001_YORC_version('1.13.0-rc.1'),
76
+ new FN012017_TSC_extends_1.FN012017_TSC_extends('./node_modules/@microsoft/rush-stack-compiler-3.9/includes/tsconfig-web.json'),
60
77
  new FN014007_CODE_launch_localWorkbench_1.FN014007_CODE_launch_localWorkbench(),
78
+ new FN015007_FILE_config_copy_assets_json_1.FN015007_FILE_config_copy_assets_json(false),
61
79
  new FN024001_NPMIGNORE_file_1.FN024001_NPMIGNORE_file()
62
80
  ];
63
- //# sourceMappingURL=upgrade-1.13.0-beta.20.js.map
81
+ //# sourceMappingURL=upgrade-1.13.0-rc.1.js.map
@@ -43,7 +43,7 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
43
43
  '1.11.0',
44
44
  '1.12.0',
45
45
  '1.12.1',
46
- '1.13.0-beta.20'
46
+ '1.13.0-rc.1'
47
47
  ];
48
48
  }
49
49
  get name() {
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const cli_1 = require("../../../../cli");
3
4
  const Command_1 = require("../../../../Command");
4
5
  const config_1 = require("../../../../config");
5
6
  const request_1 = require("../../../../request");
6
7
  const Utils_1 = require("../../../../Utils");
7
8
  const SpoCommand_1 = require("../../../base/SpoCommand");
8
9
  const commands_1 = require("../../commands");
10
+ const SpoContentTypeGetCommand = require("./contenttype-get");
9
11
  class SpoContentTypeAddCommand extends SpoCommand_1.default {
10
12
  get name() {
11
13
  return commands_1.default.CONTENTTYPE_ADD;
@@ -52,7 +54,25 @@ class SpoContentTypeAddCommand extends SpoCommand_1.default {
52
54
  cb(new Command_1.CommandError(response.ErrorInfo.ErrorMessage));
53
55
  return;
54
56
  }
55
- cb();
57
+ const options = {
58
+ webUrl: args.options.webUrl,
59
+ listTitle: args.options.listTitle,
60
+ id: args.options.id,
61
+ output: 'json',
62
+ debug: this.debug,
63
+ verbose: this.verbose
64
+ };
65
+ cli_1.Cli.executeCommandWithOutput(SpoContentTypeGetCommand, { options: Object.assign(Object.assign({}, options), { _: [] }) })
66
+ .then((res) => {
67
+ if (this.debug) {
68
+ logger.logToStderr(res.stderr);
69
+ }
70
+ logger.log(JSON.parse(res.stdout));
71
+ cb();
72
+ }, (err) => {
73
+ cb(err.error);
74
+ });
75
+ return;
56
76
  }, (err) => this.handleRejectedPromise(err, logger, cb));
57
77
  }
58
78
  getParentInfo(listTitle, webUrl, logger) {
@@ -23,7 +23,7 @@ class TeamsUserAppListCommand extends GraphItemsListCommand_1.GraphItemsListComm
23
23
  .getUserId(args)
24
24
  .then((_userId) => {
25
25
  userId = _userId.value;
26
- const endpoint = `${this.resource}/v1.0/users/${encodeURIComponent(userId)}/teamwork/installedApps`;
26
+ const endpoint = `${this.resource}/v1.0/users/${encodeURIComponent(userId)}/teamwork/installedApps?$expand=teamsAppDefinition`;
27
27
  return this.getAllItems(endpoint, logger, true);
28
28
  })
29
29
  .then(() => {
@@ -39,7 +39,9 @@ class TeamsUserAppListCommand extends GraphItemsListCommand_1.GraphItemsListComm
39
39
  logger.log(this.items.map(i => {
40
40
  return {
41
41
  id: i.id,
42
- appId: i.appId
42
+ appId: i.appId,
43
+ displayName: i.teamsAppDefinition.displayName,
44
+ version: i.teamsAppDefinition.version
43
45
  };
44
46
  }));
45
47
  }
@@ -62,10 +64,10 @@ class TeamsUserAppListCommand extends GraphItemsListCommand_1.GraphItemsListComm
62
64
  options() {
63
65
  const options = [
64
66
  {
65
- option: '--userId'
67
+ option: '--userId [userId]'
66
68
  },
67
69
  {
68
- option: '--userName'
70
+ option: '--userName [userName]'
69
71
  }
70
72
  ];
71
73
  const parentOptions = super.options();
@@ -73,10 +75,10 @@ class TeamsUserAppListCommand extends GraphItemsListCommand_1.GraphItemsListComm
73
75
  }
74
76
  validate(args) {
75
77
  if (!args.options.userId && !args.options.userName) {
76
- return `--userId or --userName need to be provided`;
78
+ return `userId or userName need to be provided`;
77
79
  }
78
80
  if (args.options.userId && args.options.userName) {
79
- return `Please specify either --userId or --userName, not both`;
81
+ return `Please specify either userId or userName, not both`;
80
82
  }
81
83
  if (args.options.userId && !Utils_1.default.isValidGuid(args.options.userId)) {
82
84
  return `${args.options.userId} is not a valid GUID`;
@@ -4,6 +4,12 @@ Restores a deleted Microsoft 365 Group
4
4
 
5
5
  ## Usage
6
6
 
7
+ ```sh
8
+ m365 aad o365group recyclebinitem restore [options]
9
+ ```
10
+
11
+ ## Alias
12
+
7
13
  ```sh
8
14
  m365 aad o365group restore [options]
9
15
  ```
@@ -20,5 +26,5 @@ m365 aad o365group restore [options]
20
26
  Restores the Microsoft 365 Group with id _28beab62-7540-4db1-a23f-29a6018a3848_
21
27
 
22
28
  ```sh
23
- m365 aad o365group restore --id 28beab62-7540-4db1-a23f-29a6018a3848
29
+ m365 aad o365group recyclebinitem restore --id 28beab62-7540-4db1-a23f-29a6018a3848
24
30
  ```
@@ -10,15 +10,24 @@ m365 aad o365group teamify [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-i, --groupId <groupId>`
14
- : The ID of the Microsoft 365 Group to connect to Microsoft Teams
13
+ `-i, --groupId [groupId]`
14
+ : The ID of the Microsoft 365 Group to connect to Microsoft Teams. Specify either groupId or mailNickname but not both
15
+
16
+ `--mailNickname [mailNickname]`
17
+ : The mail alias of the Microsoft 365 Group to connect to Microsoft Teams. Specify either groupId or mailNickname but not both
15
18
 
16
19
  --8<-- "docs/cmd/_global.md"
17
20
 
18
21
  ## Examples
19
22
 
20
- Creates a new Microsoft Teams team under existing Microsoft 365 group
23
+ Creates a new Microsoft Teams team under existing Microsoft 365 group with id _e3f60f99-0bad-481f-9e9f-ff0f572fbd03_
21
24
 
22
25
  ```sh
23
26
  m365 aad o365group teamify --groupId e3f60f99-0bad-481f-9e9f-ff0f572fbd03
27
+ ```
28
+
29
+ Creates a new Microsoft Teams team under existing Microsoft 365 group with mailNickname _GroupName_
30
+
31
+ ```sh
32
+ m365 aad o365group teamify --mailNickname GroupName
24
33
  ```