@pnp/cli-microsoft365 6.2.0-beta.edaa477 → 6.3.0-beta.c3dc921

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 (66) hide show
  1. package/dist/m365/context/commands/option/option-remove.js +105 -0
  2. package/dist/m365/context/commands/option/option-set.js +84 -0
  3. package/dist/m365/context/commands.js +2 -0
  4. package/dist/m365/planner/commands/bucket/bucket-add.js +0 -6
  5. package/dist/m365/planner/commands/bucket/bucket-get.js +0 -6
  6. package/dist/m365/planner/commands/bucket/bucket-list.js +0 -6
  7. package/dist/m365/planner/commands/bucket/bucket-remove.js +0 -6
  8. package/dist/m365/planner/commands/bucket/bucket-set.js +0 -6
  9. package/dist/m365/planner/commands/plan/plan-add.js +0 -6
  10. package/dist/m365/planner/commands/plan/plan-get.js +0 -6
  11. package/dist/m365/planner/commands/plan/plan-list.js +0 -6
  12. package/dist/m365/planner/commands/plan/plan-remove.js +0 -6
  13. package/dist/m365/planner/commands/plan/plan-set.js +0 -6
  14. package/dist/m365/planner/commands/task/task-add.js +0 -6
  15. package/dist/m365/planner/commands/task/task-checklistitem-add.js +0 -6
  16. package/dist/m365/planner/commands/task/task-checklistitem-list.js +0 -6
  17. package/dist/m365/planner/commands/task/task-get.js +0 -6
  18. package/dist/m365/planner/commands/task/task-list.js +0 -6
  19. package/dist/m365/planner/commands/task/task-reference-list.js +0 -6
  20. package/dist/m365/planner/commands/task/task-set.js +0 -6
  21. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-get.js +110 -0
  22. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-remove.js +130 -0
  23. package/dist/m365/pp/commands/solution/solution-publish.js +156 -0
  24. package/dist/m365/pp/commands.js +3 -0
  25. package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +121 -0
  26. package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +141 -0
  27. package/dist/m365/spo/commands/file/file-sharinglink-add.js +141 -0
  28. package/dist/m365/spo/commands/file/file-sharinglink-list.js +2 -2
  29. package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +138 -0
  30. package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +157 -0
  31. package/dist/m365/spo/commands/list/list-add.js +3 -0
  32. package/dist/m365/spo/commands/list/list-retentionlabel-remove.js +146 -0
  33. package/dist/m365/spo/commands/list/list-set.js +3 -0
  34. package/dist/m365/spo/commands/listitem/listitem-list.js +1 -1
  35. package/dist/m365/spo/commands/listitem/listitem-retentionlabel-remove.js +2 -2
  36. package/dist/m365/spo/commands.js +6 -0
  37. package/dist/m365/teams/commands/message/message-send.js +81 -0
  38. package/dist/m365/teams/commands.js +1 -0
  39. package/dist/utils/formatting.js +22 -0
  40. package/docs/docs/cmd/aad/app/app-remove.md +11 -7
  41. package/docs/docs/cmd/context/option/option-remove.md +37 -0
  42. package/docs/docs/cmd/context/option/option-set.md +31 -0
  43. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.md +99 -0
  44. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-remove.md +53 -0
  45. package/docs/docs/cmd/pp/solution/solution-publish.md +52 -0
  46. package/docs/docs/cmd/spo/cdn/cdn-get.md +1 -1
  47. package/docs/docs/cmd/spo/cdn/cdn-origin-add.md +1 -1
  48. package/docs/docs/cmd/spo/cdn/cdn-origin-list.md +1 -1
  49. package/docs/docs/cmd/spo/cdn/cdn-origin-remove.md +1 -1
  50. package/docs/docs/cmd/spo/cdn/cdn-policy-list.md +1 -1
  51. package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +1 -1
  52. package/docs/docs/cmd/spo/cdn/cdn-set.md +1 -1
  53. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.md +47 -0
  54. package/docs/docs/cmd/spo/file/file-retentionlabel-remove.md +43 -0
  55. package/docs/docs/cmd/spo/file/file-sharinglink-add.md +89 -0
  56. package/docs/docs/cmd/spo/file/file-sharinglink-list.md +2 -2
  57. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.md +47 -0
  58. package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.md +43 -0
  59. package/docs/docs/cmd/spo/list/list-add.md +3 -9
  60. package/docs/docs/cmd/spo/list/list-retentionlabel-remove.md +52 -0
  61. package/docs/docs/cmd/spo/list/list-set.md +3 -3
  62. package/docs/docs/cmd/spo/listitem/listitem-get.md +11 -12
  63. package/docs/docs/cmd/spo/listitem/listitem-list.md +5 -5
  64. package/docs/docs/cmd/teams/message/message-send.md +119 -0
  65. package/npm-shrinkwrap.json +2 -2
  66. package/package.json +1 -1
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
+ };
16
+ var _SpoListRetentionLabelRemoveCommand_instances, _SpoListRetentionLabelRemoveCommand_initTelemetry, _SpoListRetentionLabelRemoveCommand_initOptions, _SpoListRetentionLabelRemoveCommand_initValidators, _SpoListRetentionLabelRemoveCommand_initOptionSets;
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const Cli_1 = require("../../../../cli/Cli");
19
+ const request_1 = require("../../../../request");
20
+ const formatting_1 = require("../../../../utils/formatting");
21
+ const urlUtil_1 = require("../../../../utils/urlUtil");
22
+ const validation_1 = require("../../../../utils/validation");
23
+ const SpoCommand_1 = require("../../../base/SpoCommand");
24
+ const commands_1 = require("../../commands");
25
+ class SpoListRetentionLabelRemoveCommand extends SpoCommand_1.default {
26
+ get name() {
27
+ return commands_1.default.LIST_RETENTIONLABEL_REMOVE;
28
+ }
29
+ get description() {
30
+ return 'Clears the retention label on the specified list or library.';
31
+ }
32
+ constructor() {
33
+ super();
34
+ _SpoListRetentionLabelRemoveCommand_instances.add(this);
35
+ __classPrivateFieldGet(this, _SpoListRetentionLabelRemoveCommand_instances, "m", _SpoListRetentionLabelRemoveCommand_initTelemetry).call(this);
36
+ __classPrivateFieldGet(this, _SpoListRetentionLabelRemoveCommand_instances, "m", _SpoListRetentionLabelRemoveCommand_initOptions).call(this);
37
+ __classPrivateFieldGet(this, _SpoListRetentionLabelRemoveCommand_instances, "m", _SpoListRetentionLabelRemoveCommand_initValidators).call(this);
38
+ __classPrivateFieldGet(this, _SpoListRetentionLabelRemoveCommand_instances, "m", _SpoListRetentionLabelRemoveCommand_initOptionSets).call(this);
39
+ }
40
+ commandAction(logger, args) {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ if (args.options.confirm) {
43
+ yield this.removeListRetentionLabel(logger, args);
44
+ }
45
+ else {
46
+ const result = yield Cli_1.Cli.prompt({
47
+ type: 'confirm',
48
+ name: 'continue',
49
+ default: false,
50
+ message: `Are you sure you want to remove the retention label from list '${args.options.listId || args.options.listTitle || args.options.listUrl}'?`
51
+ });
52
+ if (result.continue) {
53
+ yield this.removeListRetentionLabel(logger, args);
54
+ }
55
+ }
56
+ });
57
+ }
58
+ removeListRetentionLabel(logger, args) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ if (this.verbose) {
61
+ logger.logToStderr(`Clears the retention label from list ${args.options.listId || args.options.listTitle || args.options.listUrl} in site at ${args.options.webUrl}...`);
62
+ }
63
+ try {
64
+ const listServerRelativeUrl = yield this.getListServerRelativeUrl(args, logger);
65
+ const listAbsoluteUrl = urlUtil_1.urlUtil.getAbsoluteUrl(args.options.webUrl, listServerRelativeUrl);
66
+ const requestOptions = {
67
+ url: `${args.options.webUrl}/_api/SP_CompliancePolicy_SPPolicyStoreProxy_SetListComplianceTag`,
68
+ headers: {
69
+ 'accept': 'application/json;odata=nometadata'
70
+ },
71
+ data: {
72
+ listUrl: listAbsoluteUrl,
73
+ complianceTagValue: '',
74
+ blockDelete: false,
75
+ blockEdit: false,
76
+ syncToItems: false
77
+ },
78
+ responseType: 'json'
79
+ };
80
+ yield request_1.default.post(requestOptions);
81
+ }
82
+ catch (err) {
83
+ this.handleRejectedODataJsonPromise(err);
84
+ }
85
+ });
86
+ }
87
+ getListServerRelativeUrl(args, logger) {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ if (this.verbose) {
90
+ logger.logToStderr('Getting the list server relative URL');
91
+ }
92
+ if (args.options.listUrl) {
93
+ return urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
94
+ }
95
+ let listRestUrl = '';
96
+ if (args.options.listId) {
97
+ listRestUrl = `lists(guid'${formatting_1.formatting.encodeQueryParameter(args.options.listId)}')/`;
98
+ }
99
+ else {
100
+ listRestUrl = `lists/getByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.listTitle)}')/`;
101
+ }
102
+ const requestOptions = {
103
+ url: `${args.options.webUrl}/_api/web/${listRestUrl}?$expand=RootFolder&$select=RootFolder/ServerRelativeUrl`,
104
+ headers: {
105
+ 'accept': 'application/json;odata=nometadata'
106
+ },
107
+ responseType: 'json'
108
+ };
109
+ const listInstance = yield request_1.default.get(requestOptions);
110
+ return listInstance.RootFolder.ServerRelativeUrl;
111
+ });
112
+ }
113
+ }
114
+ _SpoListRetentionLabelRemoveCommand_instances = new WeakSet(), _SpoListRetentionLabelRemoveCommand_initTelemetry = function _SpoListRetentionLabelRemoveCommand_initTelemetry() {
115
+ this.telemetry.push((args) => {
116
+ Object.assign(this.telemetryProperties, {
117
+ listId: typeof args.options.listId !== 'undefined',
118
+ listTitle: typeof args.options.listTitle !== 'undefined',
119
+ listUrl: typeof args.options.listUrl !== 'undefined',
120
+ confirm: !!args.options.confirm
121
+ });
122
+ });
123
+ }, _SpoListRetentionLabelRemoveCommand_initOptions = function _SpoListRetentionLabelRemoveCommand_initOptions() {
124
+ this.options.unshift({
125
+ option: '-u, --webUrl <webUrl>'
126
+ }, {
127
+ option: '-t, --listTitle [listTitle]'
128
+ }, {
129
+ option: '-i, --listId [listId]'
130
+ }, {
131
+ option: '-l, --listUrl [listUrl]'
132
+ }, {
133
+ option: '--confirm'
134
+ });
135
+ }, _SpoListRetentionLabelRemoveCommand_initValidators = function _SpoListRetentionLabelRemoveCommand_initValidators() {
136
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
137
+ if (args.options.listId && !validation_1.validation.isValidGuid(args.options.listId)) {
138
+ return `${args.options.listId} is not a valid GUID`;
139
+ }
140
+ return validation_1.validation.isValidSharePointUrl(args.options.webUrl);
141
+ }));
142
+ }, _SpoListRetentionLabelRemoveCommand_initOptionSets = function _SpoListRetentionLabelRemoveCommand_initOptionSets() {
143
+ this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
144
+ };
145
+ module.exports = new SpoListRetentionLabelRemoveCommand();
146
+ //# sourceMappingURL=list-retentionlabel-remove.js.map
@@ -67,6 +67,9 @@ class SpoListSetCommand extends SpoCommand_1.default {
67
67
  }
68
68
  commandAction(logger, args) {
69
69
  return __awaiter(this, void 0, void 0, function* () {
70
+ if (args.options.schemaXml) {
71
+ this.warn(logger, `Option 'schemaXml' is deprecated.`);
72
+ }
70
73
  if (this.verbose) {
71
74
  logger.logToStderr(`Updating list in site at ${args.options.webUrl}...`);
72
75
  }
@@ -177,7 +177,7 @@ _SpoListItemListCommand_instances = new WeakSet(), _SpoListItemListCommand_initT
177
177
  return true;
178
178
  }));
179
179
  }, _SpoListItemListCommand_initOptionSets = function _SpoListItemListCommand_initOptionSets() {
180
- this.optionSets.push({ options: ['listId', 'listTitle'] });
180
+ this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
181
181
  }, _SpoListItemListCommand_initTypes = function _SpoListItemListCommand_initTypes() {
182
182
  this.types.string.push('webUrl', 'camlQuery', 'pageSize', 'pageNumber', 'fields', 'filter');
183
183
  };
@@ -47,7 +47,7 @@ class SpoListItemRetentionLabelRemoveCommand extends SpoCommand_1.default {
47
47
  type: 'confirm',
48
48
  name: 'continue',
49
49
  default: false,
50
- message: `Are you sure you want to remove the retentionlabel from list item ${args.options.listItemId} from list ${args.options.listId || args.options.listTitle || args.options.listUrl} located in site ${args.options.webUrl}?`
50
+ message: `Are you sure you want to remove the retentionlabel from list item ${args.options.listItemId} from list '${args.options.listId || args.options.listTitle || args.options.listUrl}' located in site ${args.options.webUrl}?`
51
51
  });
52
52
  if (result.continue) {
53
53
  yield this.removeListItemRetentionLabel(logger, args);
@@ -58,7 +58,7 @@ class SpoListItemRetentionLabelRemoveCommand extends SpoCommand_1.default {
58
58
  removeListItemRetentionLabel(logger, args) {
59
59
  return __awaiter(this, void 0, void 0, function* () {
60
60
  if (this.verbose) {
61
- logger.logToStderr(`Removing retention label from list ${args.options.listId || args.options.listTitle || args.options.listUrl} in site at ${args.options.webUrl}...`);
61
+ logger.logToStderr(`Removing retention label from list item ${args.options.listItemId} from list '${args.options.listId || args.options.listTitle || args.options.listUrl}' in site at ${args.options.webUrl}...`);
62
62
  }
63
63
  try {
64
64
  let url = `${args.options.webUrl}/_api/web`;
@@ -57,11 +57,14 @@ exports.default = {
57
57
  FILE_MOVE: `${prefix} file move`,
58
58
  FILE_REMOVE: `${prefix} file remove`,
59
59
  FILE_RENAME: `${prefix} file rename`,
60
+ FILE_RETENTIONLABEL_ENSURE: `${prefix} file retentionlabel ensure`,
61
+ FILE_RETENTIONLABEL_REMOVE: `${prefix} file retentionlabel remove`,
60
62
  FILE_ROLEASSIGNMENT_ADD: `${prefix} file roleassignment add`,
61
63
  FILE_ROLEASSIGNMENT_REMOVE: `${prefix} file roleassignment remove`,
62
64
  FILE_ROLEINHERITANCE_BREAK: `${prefix} file roleinheritance break`,
63
65
  FILE_ROLEINHERITANCE_RESET: `${prefix} file roleinheritance reset`,
64
66
  FILE_SHARINGINFO_GET: `${prefix} file sharinginfo get`,
67
+ FILE_SHARINGLINK_ADD: `${prefix} file sharinglink add`,
65
68
  FILE_SHARINGLINK_GET: `${prefix} file sharinglink get`,
66
69
  FILE_SHARINGLINK_LIST: `${prefix} file sharinglink list`,
67
70
  FILE_SHARINGLINK_REMOVE: `${prefix} file sharinglink remove`,
@@ -77,6 +80,8 @@ exports.default = {
77
80
  FOLDER_MOVE: `${prefix} folder move`,
78
81
  FOLDER_REMOVE: `${prefix} folder remove`,
79
82
  FOLDER_RENAME: `${prefix} folder rename`,
83
+ FOLDER_RETENTIONLABEL_ENSURE: `${prefix} folder retentionlabel ensure`,
84
+ FOLDER_RETENTIONLABEL_REMOVE: `${prefix} folder retentionlabel remove`,
80
85
  FOLDER_ROLEASSIGNMENT_REMOVE: `${prefix} folder roleassignment remove`,
81
86
  FOLDER_ROLEASSIGNMENT_ADD: `${prefix} folder roleassignment add`,
82
87
  FOLDER_ROLEINHERITANCE_BREAK: `${prefix} folder roleinheritance break`,
@@ -120,6 +125,7 @@ exports.default = {
120
125
  LIST_REMOVE: `${prefix} list remove`,
121
126
  LIST_RETENTIONLABEL_ENSURE: `${prefix} list retentionlabel ensure`,
122
127
  LIST_RETENTIONLABEL_GET: `${prefix} list retentionlabel get`,
128
+ LIST_RETENTIONLABEL_REMOVE: `${prefix} list retentionlabel remove`,
123
129
  LIST_ROLEASSIGNMENT_REMOVE: `${prefix} list roleassignment remove`,
124
130
  LIST_ROLEASSIGNMENT_ADD: `${prefix} list roleassignment add`,
125
131
  LIST_ROLEINHERITANCE_BREAK: `${prefix} list roleinheritance break`,
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
+ };
16
+ var _TeamsMessageSendCommand_instances, _TeamsMessageSendCommand_initOptions, _TeamsMessageSendCommand_initValidators;
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const request_1 = require("../../../../request");
19
+ const validation_1 = require("../../../../utils/validation");
20
+ const GraphCommand_1 = require("../../../base/GraphCommand");
21
+ const commands_1 = require("../../commands");
22
+ class TeamsMessageSendCommand extends GraphCommand_1.default {
23
+ get name() {
24
+ return commands_1.default.MESSAGE_SEND;
25
+ }
26
+ get description() {
27
+ return 'Sends a message to a channel in a Microsoft Teams team';
28
+ }
29
+ constructor() {
30
+ super();
31
+ _TeamsMessageSendCommand_instances.add(this);
32
+ __classPrivateFieldGet(this, _TeamsMessageSendCommand_instances, "m", _TeamsMessageSendCommand_initOptions).call(this);
33
+ __classPrivateFieldGet(this, _TeamsMessageSendCommand_instances, "m", _TeamsMessageSendCommand_initValidators).call(this);
34
+ }
35
+ commandAction(logger, args) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ try {
38
+ const requestOptions = {
39
+ url: `${this.resource}/v1.0/teams/${args.options.teamId}/channels/${args.options.channelId}/messages`,
40
+ headers: {
41
+ accept: 'application/json;odata.metadata=none',
42
+ 'content-type': 'application/json'
43
+ },
44
+ responseType: 'json',
45
+ data: {
46
+ body: {
47
+ contentType: 'html',
48
+ content: args.options.message
49
+ }
50
+ }
51
+ };
52
+ const response = yield request_1.default.post(requestOptions);
53
+ logger.log(response);
54
+ }
55
+ catch (err) {
56
+ this.handleRejectedODataJsonPromise(err);
57
+ }
58
+ });
59
+ }
60
+ }
61
+ _TeamsMessageSendCommand_instances = new WeakSet(), _TeamsMessageSendCommand_initOptions = function _TeamsMessageSendCommand_initOptions() {
62
+ this.options.unshift({
63
+ option: '-i, --teamId <teamId>'
64
+ }, {
65
+ option: '-c, --channelId <channelId>'
66
+ }, {
67
+ option: '-m, --message <message>'
68
+ });
69
+ }, _TeamsMessageSendCommand_initValidators = function _TeamsMessageSendCommand_initValidators() {
70
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
71
+ if (!validation_1.validation.isValidGuid(args.options.teamId)) {
72
+ return `${args.options.teamId} is not a valid GUID`;
73
+ }
74
+ if (!validation_1.validation.isValidTeamsChannelId(args.options.channelId)) {
75
+ return `${args.options.channelId} is not a valid Teams ChannelId`;
76
+ }
77
+ return true;
78
+ }));
79
+ };
80
+ module.exports = new TeamsMessageSendCommand();
81
+ //# sourceMappingURL=message-send.js.map
@@ -35,6 +35,7 @@ exports.default = {
35
35
  MESSAGE_GET: `${prefix} message get`,
36
36
  MESSAGE_LIST: `${prefix} message list`,
37
37
  MESSAGE_REPLY_LIST: `${prefix} message reply list`,
38
+ MESSAGE_SEND: `${prefix} message send`,
38
39
  MESSAGINGSETTINGS_LIST: `${prefix} messagingsettings list`,
39
40
  MESSAGINGSETTINGS_SET: `${prefix} messagingsettings set`,
40
41
  REPORT_DEVICEUSAGEDISTRIBUTIONUSERCOUNTS: `${prefix} report deviceusagedistributionusercounts`,
@@ -110,6 +110,28 @@ exports.formatting = {
110
110
  default:
111
111
  return value;
112
112
  }
113
+ },
114
+ /**
115
+ * Converts an object into an xml:
116
+ * @obj the actual objec
117
+ * @returns A string containing the xml
118
+ */
119
+ objectToXml(obj) {
120
+ let xml = '';
121
+ for (const prop in obj) {
122
+ xml += "<" + prop + ">";
123
+ if (obj[prop] instanceof Array) {
124
+ for (const array in obj[prop]) {
125
+ xml += this.objectToXml(new Object(obj[prop][array]));
126
+ }
127
+ }
128
+ else {
129
+ xml += obj[prop];
130
+ }
131
+ xml += "</" + prop + ">";
132
+ }
133
+ xml = xml.replace(/<\/?[0-9]{1,}>/g, '');
134
+ return xml;
113
135
  }
114
136
  };
115
137
  //# sourceMappingURL=formatting.js.map
@@ -11,16 +11,16 @@ m365 aad app remove [options]
11
11
  ## Options
12
12
 
13
13
  `--appId [appId]`
14
- : Application (client) ID of the Azure AD application registration to remove. Specify either `appId`, `objectId` or `name`
14
+ : Application (client) ID of the Azure AD application registration to remove. Specify either `appId`, `objectId` or `name` but not multiple.
15
15
 
16
16
  `--objectId [objectId]`
17
- : Object ID of the Azure AD application registration to remove. Specify either `appId`, `objectId` or `name`
17
+ : Object ID of the Azure AD application registration to remove. Specify either `appId`, `objectId` or `name` but not multiple.
18
18
 
19
19
  `--name [name]`
20
- : Name of the Azure AD application registration to remove. Specify either `appId`, `objectId` or `name`
20
+ : Name of the Azure AD application registration to remove. Specify either `appId`, `objectId` or `name` but not multiple.
21
21
 
22
- `--confirm`:
23
- : Don't prompt for confirmation to remove the app
22
+ `--confirm`
23
+ : Don't prompt for confirmation to remove the app.
24
24
 
25
25
  --8<-- "docs/cmd/_global.md"
26
26
 
@@ -32,13 +32,13 @@ If the command finds multiple Azure AD application registrations with the specif
32
32
 
33
33
  ## Examples
34
34
 
35
- Remove the Azure AD application registration by its app (client) ID
35
+ Remove the Azure AD application registration by its app (client) ID.
36
36
 
37
37
  ```sh
38
38
  m365 aad app remove --appId d75be2e1-0204-4f95-857d-51a37cf40be8
39
39
  ```
40
40
 
41
- Remove the Azure AD application registration by its object ID
41
+ Remove the Azure AD application registration by its object ID.
42
42
 
43
43
  ```sh
44
44
  m365 aad app remove --objectId d75be2e1-0204-4f95-857d-51a37cf40be8
@@ -49,3 +49,7 @@ Remove the Azure AD application registration by its name. Will NOT prompt for co
49
49
  ```sh
50
50
  m365 aad app remove --name "My app" --confirm
51
51
  ```
52
+
53
+ ## Response
54
+
55
+ The command won't return a response on success.
@@ -0,0 +1,37 @@
1
+ # context option remove
2
+
3
+ Removes an already available name from local context file.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 context option remove [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-n, --name <name>`
14
+ : The name of the option which will be deleted from the context
15
+
16
+ `--confirm`
17
+ : Don't prompt for confirming removing the option
18
+
19
+ --8<-- "docs/cmd/_global.md"
20
+
21
+ ## Examples
22
+
23
+ Removes an already available name from the local context file
24
+
25
+ ```sh
26
+ m365 context option remove --name "listName"
27
+ ```
28
+
29
+ Removes an already available name from the local context file without confirmation
30
+
31
+ ```sh
32
+ m365 context option remove --name "listName" --confirm
33
+ ```
34
+
35
+ ## Response
36
+
37
+ The command won't return a response on success.
@@ -0,0 +1,31 @@
1
+ # context option set
2
+
3
+ Allows to add a new name for the option and value to the local context file.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 context option set [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-n, --name <name>`
14
+ : The option name for which we will define the value
15
+
16
+ `-v, --value <value>`
17
+ : Default value for the option
18
+
19
+ --8<-- "docs/cmd/_global.md"
20
+
21
+ ## Examples
22
+
23
+ Define a new default value for name listName in the context
24
+
25
+ ```sh
26
+ m365 context option set --name 'listName' --value 'testList'
27
+ ```
28
+
29
+ ## Response
30
+
31
+ The command won't return a response on success.
@@ -0,0 +1,99 @@
1
+ # pp aibuildermodel get
2
+
3
+ Gets a specific AI builder models in the specified Power Platform environment
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ pp aibuildermodel get [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-e, --environment <environment>`
14
+ : The name of the environment
15
+
16
+ `-i, --id [id]`
17
+ : The id of the AI Builder model. Specify either `id` or `name` but not both
18
+
19
+ `-n, --name [name]`
20
+ : The name of the AI Builder model. Specify either `id` or `name` but not both
21
+
22
+ `--asAdmin`
23
+ : Run the command as admin for environments you do not have explicitly assigned permissions to
24
+
25
+ --8<-- "docs/cmd/_global.md"
26
+
27
+ ## Examples
28
+
29
+ Get an AI Builder model in a specific environment
30
+
31
+ ```sh
32
+ m365 pp aibuildermodel get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "Document Processing 11/29/2022, 12:58:43 PM"
33
+ ```
34
+
35
+ Get an AI Builder models in a specific environment by id as admin
36
+
37
+ ```sh
38
+ m365 pp aibuildermodel get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "08ffffbe-ec1c-4e64-b64b-dd1db926c613" --asAdmin
39
+ ```
40
+
41
+ ## Response
42
+
43
+ === "JSON"
44
+
45
+ ```json
46
+ {
47
+ "statecode": 0,
48
+ "_msdyn_templateid_value": "10707e4e-1d56-e911-8194-000d3a6cd5a5",
49
+ "msdyn_modelcreationcontext": "{}",
50
+ "createdon": "2022-11-29T11:58:45Z",
51
+ "_ownerid_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
52
+ "modifiedon": "2022-11-29T11:58:45Z",
53
+ "msdyn_sharewithorganizationoncreate": false,
54
+ "msdyn_aimodelidunique": "b0328b67-47e2-4202-8189-e617ec9a88bd",
55
+ "solutionid": "fd140aae-4df4-11dd-bd17-0019b9312238",
56
+ "ismanaged": false,
57
+ "versionnumber": 1458121,
58
+ "msdyn_name": "Document Processing 11/29/2022, 12:58:43 PM",
59
+ "introducedversion": "1.0",
60
+ "statuscode": 0,
61
+ "_modifiedby_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
62
+ "overwritetime": "1900-01-01T00:00:00Z",
63
+ "componentstate": 0,
64
+ "_createdby_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
65
+ "_owningbusinessunit_value": "6da087c1-1c4d-ed11-bba1-000d3a2caf7f",
66
+ "_owninguser_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
67
+ "msdyn_aimodelid": "08ffffbe-ec1c-4e64-b64b-dd1db926c613",
68
+ "_msdyn_activerunconfigurationid_value": null,
69
+ "overriddencreatedon": null,
70
+ "_msdyn_retrainworkflowid_value": null,
71
+ "importsequencenumber": null,
72
+ "_msdyn_scheduleinferenceworkflowid_value": null,
73
+ "_modifiedonbehalfby_value": null,
74
+ "utcconversiontimezonecode": null,
75
+ "_createdonbehalfby_value": null,
76
+ "_owningteam_value": null,
77
+ "timezoneruleversionnumber": null,
78
+ "iscustomizable": {
79
+ "Value": true,
80
+ "CanBeChanged": true,
81
+ "ManagedPropertyLogicalName": "iscustomizableanddeletable"
82
+ }
83
+ }
84
+ ```
85
+
86
+ === "Text"
87
+
88
+ ```text
89
+ createdon modifiedon msdyn_aimodelid msdyn_name
90
+ -------------------- -------------------- ------------------------------------ -------------------------------------------
91
+ 2022-10-25T14:44:48Z 2022-10-25T14:44:48Z 08ffffbe-ec1c-4e64-b64b-dd1db926c613 Document Processing 11/29/2022, 12:58:43 PM
92
+ ```
93
+
94
+ === "CSV"
95
+
96
+ ```csv
97
+ msdyn_name,msdyn_aimodelid,createdon,modifiedon
98
+ "Document Processing 11/29/2022, 12:58:43 PM",08ffffbe-ec1c-4e64-b64b-dd1db926c613,2022-11-29T11:58:45Z,2022-11-29T11:58:45Z
99
+ ```
@@ -0,0 +1,53 @@
1
+ # pp aibuildermodel remove
2
+
3
+ Removes the specified Microsoft Power Platform aibuildermodel in the specified Power Platform environment
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 pp aibuildermodel remove [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-e, --environment <environment>`
14
+ : The name of the environment.
15
+
16
+ `-i, --id [id]`
17
+ : The id of the AI builder model. Specify either `id` or `name` but not both.
18
+
19
+ `-n, --name [name]`
20
+ : The name of the AI builder model. Specify either `id` or `name` but not both.
21
+
22
+ `--asAdmin`
23
+ : Run the command as admin for environments you do not have explicitly assigned permissions to.
24
+
25
+ `--confirm`
26
+ : Don't prompt for confirmation.
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Examples
31
+
32
+ Removes the AI builder model owned by the currently signed-in user based on the name parameter
33
+
34
+ ```sh
35
+ m365 pp aibuildermodel remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name "AI Builder Model Name"
36
+ ```
37
+
38
+ Removes the AI builder model owned by the currently signed-in user based on the name parameter without confirmation
39
+
40
+ ```sh
41
+ m365 pp aibuildermodel remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name "AI Builder Model Name" --confirm
42
+ ```
43
+
44
+ Removes the AI builder model owned by another user based on the id parameter
45
+
46
+ ```sh
47
+ m365 pp aibuildermodel remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --id 9d9a13d0-6255-ed11-bba2-000d3adf774e --asAdmin
48
+ ```
49
+
50
+
51
+ ## Response
52
+
53
+ The command won't return a response on success.
@@ -0,0 +1,52 @@
1
+ # pp solution publish
2
+
3
+ Publishes the components of a solution in a given Power Platform environment
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 pp solution publish [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-e, --environment <environment>`
14
+ : The name of the environment.
15
+
16
+ `-i, --id [id]`
17
+ : The id of the solution. Specify either `id` or `name` but not both.
18
+
19
+ `-n, --name [name]`
20
+ : The unique name (not the display name) of the solution. Specify either `id` or `name` but not both.
21
+
22
+ `--asAdmin`
23
+ : Run the command as admin for environments you do not have explicitly assigned permissions to.
24
+
25
+ `--wait`
26
+ : Wait for the job to complete
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Examples
31
+
32
+ Publishes the components of a specified solution with a specific name, owned by the currently signed-in user
33
+
34
+ ```sh
35
+ m365 pp solution publish --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name "Solution Name"
36
+ ```
37
+
38
+ Publishes the components of a specified solution owned by the currently signed-in user based on the id parameter and waits for completion
39
+
40
+ ```sh
41
+ m365 pp solution publish --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --id 00000001-0000-0000-0001-00000000009b --wait
42
+ ```
43
+
44
+ Publishes the components of a specified solution owned by another user based on the name parameter
45
+
46
+ ```sh
47
+ m365 pp solution publish --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name "Solution Name" --asAdmin
48
+ ```
49
+
50
+ ## Response
51
+
52
+ The command won't return a response on success.
@@ -38,4 +38,4 @@ m365 spo cdn get --type Private
38
38
 
39
39
  ## More information
40
40
 
41
- - General availability of Microsoft 365 CDN: [https://dev.office.com/blogs/general-availability-of-office-365-cdn](https://dev.office.com/blogs/general-availability-of-office-365-cdn)
41
+ - Use Microsoft 365 CDN with SharePoint Online: [https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide](https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide)