@pnp/cli-microsoft365 6.1.0-beta.f4d612f → 6.1.0-beta.f818fbb

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 (61) hide show
  1. package/dist/m365/pp/commands/dataverse/dataverse-table-row-remove.js +133 -0
  2. package/dist/m365/pp/commands.js +1 -0
  3. package/dist/m365/spo/commands/list/{list-label-get.js → list-retentionlabel-get.js} +19 -15
  4. package/dist/m365/spo/commands/list/{list-label-set.js → list-retentionlabel-set.js} +19 -15
  5. package/dist/m365/spo/commands/page/clientsidepages.js +3 -3
  6. package/dist/m365/spo/commands/web/web-retentionlabel-list.js +63 -0
  7. package/dist/m365/spo/commands.js +3 -0
  8. package/docs/docs/cmd/pp/dataverse/dataverse-table-row-remove.md +61 -0
  9. package/docs/docs/cmd/spo/list/{list-label-get.md → list-retentionlabel-get.md} +17 -11
  10. package/docs/docs/cmd/spo/list/list-retentionlabel-set.md +65 -0
  11. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.md +9 -5
  12. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.md +42 -0
  13. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.md +25 -3
  14. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.md +22 -0
  15. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.md +6 -2
  16. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-set.md +5 -1
  17. package/docs/docs/cmd/spo/page/page-add.md +13 -9
  18. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.md +6 -2
  19. package/docs/docs/cmd/spo/page/page-column-get.md +68 -5
  20. package/docs/docs/cmd/spo/page/page-column-list.md +36 -4
  21. package/docs/docs/cmd/spo/page/page-control-get.md +70 -3
  22. package/docs/docs/cmd/spo/page/page-control-list.md +69 -3
  23. package/docs/docs/cmd/spo/page/page-control-set.md +11 -7
  24. package/docs/docs/cmd/spo/page/page-copy.md +65 -4
  25. package/docs/docs/cmd/spo/page/page-get.md +100 -4
  26. package/docs/docs/cmd/spo/page/page-header-set.md +17 -13
  27. package/docs/docs/cmd/spo/page/page-list.md +122 -1
  28. package/docs/docs/cmd/spo/page/page-remove.md +9 -5
  29. package/docs/docs/cmd/spo/page/page-section-add.md +10 -6
  30. package/docs/docs/cmd/spo/page/page-section-get.md +36 -4
  31. package/docs/docs/cmd/spo/page/page-section-list.md +38 -3
  32. package/docs/docs/cmd/spo/page/page-set.md +10 -10
  33. package/docs/docs/cmd/spo/page/page-template-list.md +58 -1
  34. package/docs/docs/cmd/spo/page/page-text-add.md +9 -5
  35. package/docs/docs/cmd/spo/propertybag/propertybag-get.md +28 -8
  36. package/docs/docs/cmd/spo/propertybag/propertybag-list.md +35 -7
  37. package/docs/docs/cmd/spo/propertybag/propertybag-remove.md +13 -9
  38. package/docs/docs/cmd/spo/propertybag/propertybag-set.md +13 -5
  39. package/docs/docs/cmd/spo/report/report-activityfilecounts.md +34 -2
  40. package/docs/docs/cmd/spo/report/report-activitypages.md +31 -2
  41. package/docs/docs/cmd/spo/report/report-activityusercounts.md +35 -2
  42. package/docs/docs/cmd/spo/report/report-activityuserdetail.md +40 -3
  43. package/docs/docs/cmd/spo/report/report-siteusagedetail.md +43 -3
  44. package/docs/docs/cmd/spo/report/report-siteusagefilecounts.md +33 -2
  45. package/docs/docs/cmd/spo/report/report-siteusagepages.md +32 -2
  46. package/docs/docs/cmd/spo/report/report-siteusagesitecounts.md +33 -2
  47. package/docs/docs/cmd/spo/report/report-siteusagestorage.md +32 -2
  48. package/docs/docs/cmd/spo/roledefinition/roledefinition-add.md +10 -6
  49. package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +80 -2
  50. package/docs/docs/cmd/spo/roledefinition/roledefinition-list.md +76 -2
  51. package/docs/docs/cmd/spo/roledefinition/roledefinition-remove.md +9 -5
  52. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.md +39 -2
  53. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.md +32 -0
  54. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +6 -2
  55. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +14 -74
  56. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +6 -2
  57. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.md +30 -0
  58. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.md +36 -2
  59. package/docs/docs/cmd/spo/web/web-retentionlabel-list.md +74 -0
  60. package/package.json +1 -1
  61. package/docs/docs/cmd/spo/list/list-label-set.md +0 -55
@@ -0,0 +1,133 @@
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 _PpDataverseTableRowRemoveCommand_instances, _PpDataverseTableRowRemoveCommand_initTelemetry, _PpDataverseTableRowRemoveCommand_initOptions, _PpDataverseTableRowRemoveCommand_initValidators, _PpDataverseTableRowRemoveCommand_initOptionSets;
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const powerPlatform_1 = require("../../../../utils/powerPlatform");
19
+ const PowerPlatformCommand_1 = require("../../../base/PowerPlatformCommand");
20
+ const commands_1 = require("../../commands");
21
+ const request_1 = require("../../../../request");
22
+ const validation_1 = require("../../../../utils/validation");
23
+ const Cli_1 = require("../../../../cli/Cli");
24
+ class PpDataverseTableRowRemoveCommand extends PowerPlatformCommand_1.default {
25
+ get name() {
26
+ return commands_1.default.DATAVERSE_TABLE_ROW_REMOVE;
27
+ }
28
+ get description() {
29
+ return 'Removes a specific row from a dataverse table in the specified Power Platform environment.';
30
+ }
31
+ constructor() {
32
+ super();
33
+ _PpDataverseTableRowRemoveCommand_instances.add(this);
34
+ __classPrivateFieldGet(this, _PpDataverseTableRowRemoveCommand_instances, "m", _PpDataverseTableRowRemoveCommand_initTelemetry).call(this);
35
+ __classPrivateFieldGet(this, _PpDataverseTableRowRemoveCommand_instances, "m", _PpDataverseTableRowRemoveCommand_initOptions).call(this);
36
+ __classPrivateFieldGet(this, _PpDataverseTableRowRemoveCommand_instances, "m", _PpDataverseTableRowRemoveCommand_initValidators).call(this);
37
+ __classPrivateFieldGet(this, _PpDataverseTableRowRemoveCommand_instances, "m", _PpDataverseTableRowRemoveCommand_initOptionSets).call(this);
38
+ }
39
+ commandAction(logger, args) {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ if (this.verbose) {
42
+ logger.logToStderr(`Removing row '${args.options.id}' from table '${args.options.tableName || args.options.entitySetName}'...`);
43
+ }
44
+ if (args.options.confirm) {
45
+ yield this.deleteTableRow(logger, args);
46
+ }
47
+ else {
48
+ const result = yield Cli_1.Cli.prompt({
49
+ type: 'confirm',
50
+ name: 'continue',
51
+ default: false,
52
+ message: `Are you sure you want to remove row '${args.options.id}' from table '${args.options.tableName || args.options.entitySetName}'?`
53
+ });
54
+ if (result.continue) {
55
+ yield this.deleteTableRow(logger, args);
56
+ }
57
+ }
58
+ });
59
+ }
60
+ deleteTableRow(logger, args) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ try {
63
+ const dynamicsApiUrl = yield powerPlatform_1.powerPlatform.getDynamicsInstanceApiUrl(args.options.environment, args.options.asAdmin);
64
+ const entitySetName = yield this.getEntitySetName(dynamicsApiUrl, args);
65
+ if (this.verbose) {
66
+ logger.logToStderr('Entity set name is: ' + entitySetName);
67
+ }
68
+ const requestOptions = {
69
+ url: `${dynamicsApiUrl}/api/data/v9.1/${entitySetName}(${args.options.id})`,
70
+ headers: {
71
+ accept: 'application/json;odata.metadata=none'
72
+ },
73
+ responseType: 'json'
74
+ };
75
+ yield request_1.default.delete(requestOptions);
76
+ }
77
+ catch (err) {
78
+ this.handleRejectedODataJsonPromise(err);
79
+ }
80
+ });
81
+ }
82
+ getEntitySetName(dynamicsApiUrl, args) {
83
+ return __awaiter(this, void 0, void 0, function* () {
84
+ if (args.options.entitySetName) {
85
+ return args.options.entitySetName;
86
+ }
87
+ const requestOptions = {
88
+ url: `${dynamicsApiUrl}/api/data/v9.0/EntityDefinitions(LogicalName='${args.options.tableName}')?$select=EntitySetName`,
89
+ headers: {
90
+ accept: 'application/json;odata.metadata=none'
91
+ },
92
+ responseType: 'json'
93
+ };
94
+ const response = yield request_1.default.get(requestOptions);
95
+ return response.EntitySetName;
96
+ });
97
+ }
98
+ }
99
+ _PpDataverseTableRowRemoveCommand_instances = new WeakSet(), _PpDataverseTableRowRemoveCommand_initTelemetry = function _PpDataverseTableRowRemoveCommand_initTelemetry() {
100
+ this.telemetry.push((args) => {
101
+ Object.assign(this.telemetryProperties, {
102
+ entitySetName: typeof args.options.entitySetName !== 'undefined',
103
+ tableName: typeof args.options.tableName !== 'undefined',
104
+ asAdmin: !!args.options.asAdmin,
105
+ confirm: !!args.options.confirm
106
+ });
107
+ });
108
+ }, _PpDataverseTableRowRemoveCommand_initOptions = function _PpDataverseTableRowRemoveCommand_initOptions() {
109
+ this.options.unshift({
110
+ option: '-e, --environment <environment>'
111
+ }, {
112
+ option: '-i, --id <id>'
113
+ }, {
114
+ option: '--entitySetName [entitySetName]'
115
+ }, {
116
+ option: '--tableName [tableName]'
117
+ }, {
118
+ option: '--asAdmin'
119
+ }, {
120
+ option: '--confirm'
121
+ });
122
+ }, _PpDataverseTableRowRemoveCommand_initValidators = function _PpDataverseTableRowRemoveCommand_initValidators() {
123
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
124
+ if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
125
+ return `${args.options.id} is not a valid GUID`;
126
+ }
127
+ return true;
128
+ }));
129
+ }, _PpDataverseTableRowRemoveCommand_initOptionSets = function _PpDataverseTableRowRemoveCommand_initOptionSets() {
130
+ this.optionSets.push({ options: ['entitySetName', 'tableName'] });
131
+ };
132
+ module.exports = new PpDataverseTableRowRemoveCommand();
133
+ //# sourceMappingURL=dataverse-table-row-remove.js.map
@@ -13,6 +13,7 @@ exports.default = {
13
13
  DATAVERSE_TABLE_GET: `${prefix} dataverse table get`,
14
14
  DATAVERSE_TABLE_REMOVE: `${prefix} dataverse table remove`,
15
15
  DATAVERSE_TABLE_ROW_LIST: `${prefix} dataverse table row list`,
16
+ DATAVERSE_TABLE_ROW_REMOVE: `${prefix} dataverse table row remove`,
16
17
  ENVIRONMENT_GET: `${prefix} environment get`,
17
18
  ENVIRONMENT_LIST: `${prefix} environment list`,
18
19
  GATEWAY_GET: `${prefix} gateway get`,
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
13
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
14
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
15
  };
16
- var _SpoListLabelGetCommand_instances, _SpoListLabelGetCommand_initTelemetry, _SpoListLabelGetCommand_initOptions, _SpoListLabelGetCommand_initValidators, _SpoListLabelGetCommand_initOptionSets;
16
+ var _SpoListRetentionLabelGetCommand_instances, _SpoListRetentionLabelGetCommand_initTelemetry, _SpoListRetentionLabelGetCommand_initOptions, _SpoListRetentionLabelGetCommand_initValidators, _SpoListRetentionLabelGetCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const formatting_1 = require("../../../../utils/formatting");
@@ -21,23 +21,27 @@ const urlUtil_1 = require("../../../../utils/urlUtil");
21
21
  const validation_1 = require("../../../../utils/validation");
22
22
  const SpoCommand_1 = require("../../../base/SpoCommand");
23
23
  const commands_1 = require("../../commands");
24
- class SpoListLabelGetCommand extends SpoCommand_1.default {
24
+ class SpoListRetentionLabelGetCommand extends SpoCommand_1.default {
25
25
  get name() {
26
- return commands_1.default.LIST_LABEL_GET;
26
+ return commands_1.default.LIST_RETENTIONLABEL_GET;
27
+ }
28
+ alias() {
29
+ return [commands_1.default.LIST_LABEL_GET];
27
30
  }
28
31
  get description() {
29
- return 'Gets label set on the specified list';
32
+ return 'Gets the default retention label set on the specified list or library.';
30
33
  }
31
34
  constructor() {
32
35
  super();
33
- _SpoListLabelGetCommand_instances.add(this);
34
- __classPrivateFieldGet(this, _SpoListLabelGetCommand_instances, "m", _SpoListLabelGetCommand_initTelemetry).call(this);
35
- __classPrivateFieldGet(this, _SpoListLabelGetCommand_instances, "m", _SpoListLabelGetCommand_initOptions).call(this);
36
- __classPrivateFieldGet(this, _SpoListLabelGetCommand_instances, "m", _SpoListLabelGetCommand_initValidators).call(this);
37
- __classPrivateFieldGet(this, _SpoListLabelGetCommand_instances, "m", _SpoListLabelGetCommand_initOptionSets).call(this);
36
+ _SpoListRetentionLabelGetCommand_instances.add(this);
37
+ __classPrivateFieldGet(this, _SpoListRetentionLabelGetCommand_instances, "m", _SpoListRetentionLabelGetCommand_initTelemetry).call(this);
38
+ __classPrivateFieldGet(this, _SpoListRetentionLabelGetCommand_instances, "m", _SpoListRetentionLabelGetCommand_initOptions).call(this);
39
+ __classPrivateFieldGet(this, _SpoListRetentionLabelGetCommand_instances, "m", _SpoListRetentionLabelGetCommand_initValidators).call(this);
40
+ __classPrivateFieldGet(this, _SpoListRetentionLabelGetCommand_instances, "m", _SpoListRetentionLabelGetCommand_initOptionSets).call(this);
38
41
  }
39
42
  commandAction(logger, args) {
40
43
  return __awaiter(this, void 0, void 0, function* () {
44
+ this.showDeprecationWarning(logger, commands_1.default.LIST_LABEL_GET, commands_1.default.LIST_RETENTIONLABEL_GET);
41
45
  try {
42
46
  if (this.verbose) {
43
47
  logger.logToStderr(`Getting label set on the list ${args.options.listId || args.options.listTitle || args.options.listUrl} in site at ${args.options.webUrl}...`);
@@ -96,7 +100,7 @@ class SpoListLabelGetCommand extends SpoCommand_1.default {
96
100
  });
97
101
  }
98
102
  }
99
- _SpoListLabelGetCommand_instances = new WeakSet(), _SpoListLabelGetCommand_initTelemetry = function _SpoListLabelGetCommand_initTelemetry() {
103
+ _SpoListRetentionLabelGetCommand_instances = new WeakSet(), _SpoListRetentionLabelGetCommand_initTelemetry = function _SpoListRetentionLabelGetCommand_initTelemetry() {
100
104
  this.telemetry.push((args) => {
101
105
  Object.assign(this.telemetryProperties, {
102
106
  listId: (!(!args.options.listId)).toString(),
@@ -104,7 +108,7 @@ _SpoListLabelGetCommand_instances = new WeakSet(), _SpoListLabelGetCommand_initT
104
108
  listUrl: (!(!args.options.listUrl)).toString()
105
109
  });
106
110
  });
107
- }, _SpoListLabelGetCommand_initOptions = function _SpoListLabelGetCommand_initOptions() {
111
+ }, _SpoListRetentionLabelGetCommand_initOptions = function _SpoListRetentionLabelGetCommand_initOptions() {
108
112
  this.options.unshift({
109
113
  option: '-u, --webUrl <webUrl>'
110
114
  }, {
@@ -114,7 +118,7 @@ _SpoListLabelGetCommand_instances = new WeakSet(), _SpoListLabelGetCommand_initT
114
118
  }, {
115
119
  option: '--listUrl [listUrl]'
116
120
  });
117
- }, _SpoListLabelGetCommand_initValidators = function _SpoListLabelGetCommand_initValidators() {
121
+ }, _SpoListRetentionLabelGetCommand_initValidators = function _SpoListRetentionLabelGetCommand_initValidators() {
118
122
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
119
123
  const isValidSharePointUrl = validation_1.validation.isValidSharePointUrl(args.options.webUrl);
120
124
  if (isValidSharePointUrl !== true) {
@@ -127,8 +131,8 @@ _SpoListLabelGetCommand_instances = new WeakSet(), _SpoListLabelGetCommand_initT
127
131
  }
128
132
  return true;
129
133
  }));
130
- }, _SpoListLabelGetCommand_initOptionSets = function _SpoListLabelGetCommand_initOptionSets() {
134
+ }, _SpoListRetentionLabelGetCommand_initOptionSets = function _SpoListRetentionLabelGetCommand_initOptionSets() {
131
135
  this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
132
136
  };
133
- module.exports = new SpoListLabelGetCommand();
134
- //# sourceMappingURL=list-label-get.js.map
137
+ module.exports = new SpoListRetentionLabelGetCommand();
138
+ //# sourceMappingURL=list-retentionlabel-get.js.map
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
13
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
14
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
15
  };
16
- var _SpoListLabelSetCommand_instances, _SpoListLabelSetCommand_initTelemetry, _SpoListLabelSetCommand_initOptions, _SpoListLabelSetCommand_initValidators, _SpoListLabelSetCommand_initOptionSets;
16
+ var _SpoListRetentionLabelSetCommand_instances, _SpoListRetentionLabelSetCommand_initTelemetry, _SpoListRetentionLabelSetCommand_initOptions, _SpoListRetentionLabelSetCommand_initValidators, _SpoListRetentionLabelSetCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const formatting_1 = require("../../../../utils/formatting");
@@ -21,23 +21,27 @@ const urlUtil_1 = require("../../../../utils/urlUtil");
21
21
  const validation_1 = require("../../../../utils/validation");
22
22
  const SpoCommand_1 = require("../../../base/SpoCommand");
23
23
  const commands_1 = require("../../commands");
24
- class SpoListLabelSetCommand extends SpoCommand_1.default {
24
+ class SpoListRetentionLabelSetCommand extends SpoCommand_1.default {
25
25
  get name() {
26
- return commands_1.default.LIST_LABEL_SET;
26
+ return commands_1.default.LIST_RETENTIONLABEL_SET;
27
+ }
28
+ alias() {
29
+ return [commands_1.default.LIST_LABEL_SET];
27
30
  }
28
31
  get description() {
29
- return 'Sets classification label on the specified list';
32
+ return 'Sets a default retention label on the specified list or library.';
30
33
  }
31
34
  constructor() {
32
35
  super();
33
- _SpoListLabelSetCommand_instances.add(this);
34
- __classPrivateFieldGet(this, _SpoListLabelSetCommand_instances, "m", _SpoListLabelSetCommand_initTelemetry).call(this);
35
- __classPrivateFieldGet(this, _SpoListLabelSetCommand_instances, "m", _SpoListLabelSetCommand_initOptions).call(this);
36
- __classPrivateFieldGet(this, _SpoListLabelSetCommand_instances, "m", _SpoListLabelSetCommand_initValidators).call(this);
37
- __classPrivateFieldGet(this, _SpoListLabelSetCommand_instances, "m", _SpoListLabelSetCommand_initOptionSets).call(this);
36
+ _SpoListRetentionLabelSetCommand_instances.add(this);
37
+ __classPrivateFieldGet(this, _SpoListRetentionLabelSetCommand_instances, "m", _SpoListRetentionLabelSetCommand_initTelemetry).call(this);
38
+ __classPrivateFieldGet(this, _SpoListRetentionLabelSetCommand_instances, "m", _SpoListRetentionLabelSetCommand_initOptions).call(this);
39
+ __classPrivateFieldGet(this, _SpoListRetentionLabelSetCommand_instances, "m", _SpoListRetentionLabelSetCommand_initValidators).call(this);
40
+ __classPrivateFieldGet(this, _SpoListRetentionLabelSetCommand_instances, "m", _SpoListRetentionLabelSetCommand_initOptionSets).call(this);
38
41
  }
39
42
  commandAction(logger, args) {
40
43
  return __awaiter(this, void 0, void 0, function* () {
44
+ this.showDeprecationWarning(logger, commands_1.default.LIST_LABEL_SET, commands_1.default.LIST_RETENTIONLABEL_SET);
41
45
  try {
42
46
  let listRestUrl = '';
43
47
  let listServerRelativeUrl = '';
@@ -86,7 +90,7 @@ class SpoListLabelSetCommand extends SpoCommand_1.default {
86
90
  });
87
91
  }
88
92
  }
89
- _SpoListLabelSetCommand_instances = new WeakSet(), _SpoListLabelSetCommand_initTelemetry = function _SpoListLabelSetCommand_initTelemetry() {
93
+ _SpoListRetentionLabelSetCommand_instances = new WeakSet(), _SpoListRetentionLabelSetCommand_initTelemetry = function _SpoListRetentionLabelSetCommand_initTelemetry() {
90
94
  this.telemetry.push((args) => {
91
95
  Object.assign(this.telemetryProperties, {
92
96
  listId: (!(!args.options.listId)).toString(),
@@ -97,7 +101,7 @@ _SpoListLabelSetCommand_instances = new WeakSet(), _SpoListLabelSetCommand_initT
97
101
  blockEdit: args.options.blockEdit || false
98
102
  });
99
103
  });
100
- }, _SpoListLabelSetCommand_initOptions = function _SpoListLabelSetCommand_initOptions() {
104
+ }, _SpoListRetentionLabelSetCommand_initOptions = function _SpoListRetentionLabelSetCommand_initOptions() {
101
105
  this.options.unshift({
102
106
  option: '-u, --webUrl <webUrl>'
103
107
  }, {
@@ -115,15 +119,15 @@ _SpoListLabelSetCommand_instances = new WeakSet(), _SpoListLabelSetCommand_initT
115
119
  }, {
116
120
  option: '--blockEdit'
117
121
  });
118
- }, _SpoListLabelSetCommand_initValidators = function _SpoListLabelSetCommand_initValidators() {
122
+ }, _SpoListRetentionLabelSetCommand_initValidators = function _SpoListRetentionLabelSetCommand_initValidators() {
119
123
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
120
124
  if (args.options.listId && !validation_1.validation.isValidGuid(args.options.listId)) {
121
125
  return `${args.options.listId} is not a valid GUID`;
122
126
  }
123
127
  return validation_1.validation.isValidSharePointUrl(args.options.webUrl);
124
128
  }));
125
- }, _SpoListLabelSetCommand_initOptionSets = function _SpoListLabelSetCommand_initOptionSets() {
129
+ }, _SpoListRetentionLabelSetCommand_initOptionSets = function _SpoListRetentionLabelSetCommand_initOptionSets() {
126
130
  this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
127
131
  };
128
- module.exports = new SpoListLabelSetCommand();
129
- //# sourceMappingURL=list-label-set.js.map
132
+ module.exports = new SpoListRetentionLabelSetCommand();
133
+ //# sourceMappingURL=list-retentionlabel-set.js.map
@@ -573,7 +573,7 @@ class CanvasColumn extends CanvasControl {
573
573
  position: {
574
574
  sectionFactor: this.factor,
575
575
  sectionIndex: this.order,
576
- zoneIndex: this.section ? this.section.order : 0,
576
+ zoneIndex: this.section ? this.section.order : 0
577
577
  },
578
578
  };
579
579
  }
@@ -632,7 +632,7 @@ class ClientSideText extends ClientSidePart {
632
632
  controlIndex: this.order,
633
633
  sectionFactor: this.column ? this.column.factor : 0,
634
634
  sectionIndex: this.column ? this.column.order : 0,
635
- zoneIndex: this.column && this.column.section ? this.column.section.order : 0,
635
+ zoneIndex: this.column && this.column.section ? this.column.section.order : 0
636
636
  },
637
637
  };
638
638
  }
@@ -755,7 +755,7 @@ class ClientSideWebpart extends ClientSidePart {
755
755
  controlIndex: this.order,
756
756
  sectionFactor: this.column ? this.column.factor : 0,
757
757
  sectionIndex: this.column ? this.column.order : 0,
758
- zoneIndex: this.column && this.column.section ? this.column.section.order : 0,
758
+ zoneIndex: this.column && this.column.section ? this.column.section.order : 0
759
759
  },
760
760
  webPartId: this.webPartId,
761
761
  };
@@ -0,0 +1,63 @@
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 _SpoWebRetentionLabelListCommand_instances, _SpoWebRetentionLabelListCommand_initOptions, _SpoWebRetentionLabelListCommand_initValidators;
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const odata_1 = require("../../../../utils/odata");
19
+ const validation_1 = require("../../../../utils/validation");
20
+ const SpoCommand_1 = require("../../../base/SpoCommand");
21
+ const commands_1 = require("../../commands");
22
+ const formatting_1 = require("../../../../utils/formatting");
23
+ class SpoWebRetentionLabelListCommand extends SpoCommand_1.default {
24
+ get name() {
25
+ return commands_1.default.WEB_RETENTIONLABEL_LIST;
26
+ }
27
+ get description() {
28
+ return `Get a list of retention labels that are available on a site.`;
29
+ }
30
+ defaultProperties() {
31
+ return ['TagId', 'TagName'];
32
+ }
33
+ constructor() {
34
+ super();
35
+ _SpoWebRetentionLabelListCommand_instances.add(this);
36
+ __classPrivateFieldGet(this, _SpoWebRetentionLabelListCommand_instances, "m", _SpoWebRetentionLabelListCommand_initOptions).call(this);
37
+ __classPrivateFieldGet(this, _SpoWebRetentionLabelListCommand_instances, "m", _SpoWebRetentionLabelListCommand_initValidators).call(this);
38
+ }
39
+ commandAction(logger, args) {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ if (this.verbose) {
42
+ logger.logToStderr(`Retrieving all retention labels that are available on ${args.options.webUrl}...`);
43
+ }
44
+ const requestUrl = `${args.options.webUrl}/_api/SP.CompliancePolicy.SPPolicyStoreProxy.GetAvailableTagsForSite(siteUrl=@a1)?@a1='${formatting_1.formatting.encodeQueryParameter(args.options.webUrl)}'`;
45
+ try {
46
+ const response = yield odata_1.odata.getAllItems(requestUrl);
47
+ logger.log(response);
48
+ }
49
+ catch (err) {
50
+ this.handleRejectedODataJsonPromise(err);
51
+ }
52
+ });
53
+ }
54
+ }
55
+ _SpoWebRetentionLabelListCommand_instances = new WeakSet(), _SpoWebRetentionLabelListCommand_initOptions = function _SpoWebRetentionLabelListCommand_initOptions() {
56
+ this.options.unshift({
57
+ option: '-u, --webUrl <webUrl>'
58
+ });
59
+ }, _SpoWebRetentionLabelListCommand_initValidators = function _SpoWebRetentionLabelListCommand_initValidators() {
60
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.webUrl); }));
61
+ };
62
+ module.exports = new SpoWebRetentionLabelListCommand();
63
+ //# sourceMappingURL=web-retentionlabel-list.js.map
@@ -115,6 +115,8 @@ exports.default = {
115
115
  LIST_LABEL_SET: `${prefix} list label set`,
116
116
  LIST_LIST: `${prefix} list list`,
117
117
  LIST_REMOVE: `${prefix} list remove`,
118
+ LIST_RETENTIONLABEL_GET: `${prefix} list retentionlabel get`,
119
+ LIST_RETENTIONLABEL_SET: `${prefix} list retentionlabel set`,
118
120
  LIST_ROLEASSIGNMENT_REMOVE: `${prefix} list roleassignment remove`,
119
121
  LIST_ROLEASSIGNMENT_ADD: `${prefix} list roleassignment add`,
120
122
  LIST_ROLEINHERITANCE_BREAK: `${prefix} list roleinheritance break`,
@@ -288,6 +290,7 @@ exports.default = {
288
290
  WEB_LIST: `${prefix} web list`,
289
291
  WEB_REINDEX: `${prefix} web reindex`,
290
292
  WEB_REMOVE: `${prefix} web remove`,
293
+ WEB_RETENTIONLABEL_LIST: `${prefix} web retentionlabel list`,
291
294
  WEB_ROLEASSIGNMENT_REMOVE: `${prefix} web roleassignment remove`,
292
295
  WEB_ROLEASSIGNMENT_ADD: `${prefix} web roleassignment add`,
293
296
  WEB_ROLEINHERITANCE_BREAK: `${prefix} web roleinheritance break`,
@@ -0,0 +1,61 @@
1
+ # pp dataverse table row remove
2
+
3
+ Removes a row from a dataverse table in a given environment.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ pp dataverse table row remove [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-e, --environment <environment>`
14
+ : The name of the environment to remove a row from a table from.
15
+
16
+ `-i, --id <id>`
17
+ : The id of the row to remove.
18
+
19
+ `--entitySetName [entitySetName]`
20
+ : The entity set name of the table. Specify either `entitySetName` or `tableName` but not both
21
+
22
+ `--tableName [tableName]`
23
+ : The name of the table. Specify either `entitySetName` or `tableName` but not both
24
+
25
+ `--confirm`
26
+ : Don't prompt for confirmation
27
+
28
+ `--asAdmin`
29
+ : Set, to remove the row from the dataverse table as admin for environments you are not a member of.
30
+
31
+ --8<-- "docs/cmd/_global.md"
32
+
33
+ ## Examples
34
+
35
+ Removes a row from a dataverse table in a given environment
36
+
37
+ ```sh
38
+ m365 pp dataverse table row remove --environment "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --tableName "aadusers" --id "21d01cf4-356c-ed11-9561-000d3a4bbea4"
39
+ ```
40
+
41
+ Removes a row from a dataverse table in a given environment as Admin
42
+
43
+ ```sh
44
+ m365 pp dataverse table row remove --environment "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --tableName "aadusers" --id "21d01cf4-356c-ed11-9561-000d3a4bbea4" --asAdmin
45
+ ```
46
+
47
+ Removes a row from a dataverse table in a given environment without prompting for confirmation
48
+
49
+ ```sh
50
+ m365 pp dataverse table row remove --environment "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --tableName "aadusers" --id "21d01cf4-356c-ed11-9561-000d3a4bbea4" --confirm
51
+ ```
52
+
53
+ Removes a row from a dataverse table in a given environment based on the entity set name without prompting for confirmation
54
+
55
+ ```sh
56
+ m365 pp dataverse table row remove --environment "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --entitySetName "cr6c3_accounts" --id "21d01cf4-356c-ed11-9561-000d3a4bbea4" --confirm
57
+ ```
58
+
59
+ ## Response
60
+
61
+ The command won't return a response on success.
@@ -1,11 +1,17 @@
1
- # spo list label get
1
+ # spo list retentionlabel get
2
2
 
3
- Gets label set on the specified list
3
+ Gets the default retention label set on the specified list or library.
4
4
 
5
5
  ## Usage
6
6
 
7
7
  ```sh
8
- m365 spo list label get [options]
8
+ m365 spo list retentionlabel get [options]
9
+ ```
10
+
11
+ ## Alias
12
+
13
+ ```sh
14
+ m365 spo list label get [options]
9
15
  ```
10
16
 
11
17
  ## Options
@@ -26,28 +32,28 @@ m365 spo list label get [options]
26
32
 
27
33
  ## Examples
28
34
 
29
- Gets label set on the list with specified title located in the specified site.
35
+ Gets retention label set on the list with specified title located in the specified site.
30
36
 
31
37
  ```sh
32
- m365 spo list label get --listTitle ContosoList --webUrl https://contoso.sharepoint.com/sites/project-x
38
+ m365 spo list retentionlabel get --listTitle ContosoList --webUrl https://contoso.sharepoint.com/sites/project-x
33
39
  ```
34
40
 
35
- Gets label set on the list with specified id located in the specified site.
41
+ Gets retention label set on the list with specified id located in the specified site.
36
42
 
37
43
  ```sh
38
- m365 spo list label get --listId cc27a922-8224-4296-90a5-ebbc54da2e85 --webUrl https://contoso.sharepoint.com/sites/project-x
44
+ m365 spo list retentionlabel get --listId cc27a922-8224-4296-90a5-ebbc54da2e85 --webUrl https://contoso.sharepoint.com/sites/project-x
39
45
  ```
40
46
 
41
- Gets label set on the list with specified server relative url located in the specified site.
47
+ Gets retention label set on the list with specified server relative url located in the specified site.
42
48
 
43
49
  ```sh
44
- m365 spo list label get --listUrl 'sites/project-x/Documents' --webUrl https://contoso.sharepoint.com/sites/project-x
50
+ m365 spo list retentionlabel get --listUrl 'sites/project-x/Documents' --webUrl https://contoso.sharepoint.com/sites/project-x
45
51
  ```
46
52
 
47
- Gets label set on the list with specified site-relative URL located in the specified site.
53
+ Gets retention label set on the list with specified site-relative URL located in the specified site.
48
54
 
49
55
  ```sh
50
- m365 spo list label get --listUrl 'Shared Documents' --webUrl https://contoso.sharepoint.com/sites/project-x
56
+ m365 spo list retentionlabel get --listUrl 'Shared Documents' --webUrl https://contoso.sharepoint.com/sites/project-x
51
57
  ```
52
58
 
53
59
  ## Response
@@ -0,0 +1,65 @@
1
+ # spo list retentionlabel set
2
+
3
+ Sets a default retention label on the specified list or library.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo list retentionlabel set [options]
9
+ ```
10
+
11
+ ## Alias
12
+
13
+ ```sh
14
+ m365 spo list label set [options]
15
+ ```
16
+
17
+ ## Options
18
+
19
+ `-u, --webUrl <webUrl>`
20
+ : The URL of the site where the list is located
21
+
22
+ `--label <label>`
23
+ : The label to set on the list
24
+
25
+ `-t, --listTitle [listTitle]`
26
+ : The title of the list on which to set the label. Specify only one of `listTitle`, `listId` or `listUrl`
27
+
28
+ `-l, --listId [listId]`
29
+ : The ID of the list on which to set the label. Specify only one of `listTitle`, `listId` or `listUrl`
30
+
31
+ `--listUrl [listUrl]`
32
+ : Server- or web-relative URL of the list on which to set the label. Specify only one of `listTitle`, `listId` or `listUrl`
33
+
34
+ `--syncToItems`
35
+ : Specify, to set the label on all existing items in the list
36
+
37
+ `--blockDelete`
38
+ : Specify, to disallow deleting items in the list
39
+
40
+ `--blockEdit`
41
+ : Specify, to disallow editing items in the list
42
+
43
+ --8<-- "docs/cmd/_global.md"
44
+
45
+ ## Remarks
46
+
47
+ A list retention label is a default label that will be applied to all new items in the list. If you specify `syncToItems`, it is also synced to existing items.
48
+
49
+ ## Examples
50
+
51
+ Sets retention label "Some label" on the list _Shared Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
52
+
53
+ ```sh
54
+ m365 spo list retentionlabel set --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl 'Shared Documents' --label 'Some label'
55
+ ```
56
+
57
+ Sets retention label "Some label" and disables editing and deleting items on the list and all existing items for list for list _Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
58
+
59
+ ```sh
60
+ m365 spo list retentionlabel set --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'Documents' --label 'Some label' --blockEdit --blockDelete --syncToItems
61
+ ```
62
+
63
+ ## Response
64
+
65
+ The command won't return a response on success.
@@ -11,13 +11,13 @@ m365 spo orgassetslibrary add [options]
11
11
  ## Options
12
12
 
13
13
  `--libraryUrl <libraryUrl>`
14
- : The URL of the library to promote
14
+ : The URL of the library to promote.
15
15
 
16
16
  `--thumbnailUrl <thumbnailUrl>`
17
- : The URL of the thumbnail to render
17
+ : The URL of the thumbnail to render.
18
18
 
19
19
  `--cdnType [cdnType]`
20
- : Specifies the CDN type. `Public,Private`. Default is `Private`
20
+ : Specifies the CDN type. Allowed values `Public`, `Private`. Default `Private`.
21
21
 
22
22
  --8<-- "docs/cmd/_global.md"
23
23
 
@@ -29,11 +29,15 @@ m365 spo orgassetslibrary add [options]
29
29
  Promotes an existing library to become an organization assets library
30
30
 
31
31
  ```sh
32
- m365 spo orgassetslibrary add --libraryUrl "https://contoso.sharepoint.com/assets"
32
+ m365 spo orgassetslibrary add --libraryUrl "https://contoso.sharepoint.com/SiteAssets"
33
33
  ```
34
34
 
35
35
  Promotes an existing library to become an organization assets library with Thumbnail
36
36
 
37
37
  ```sh
38
- m365 spo orgassetslibrary --libraryUrl "https://contoso.sharepoint.com/assets" --thumbnailUrl "https://contoso.sharepoint.com/assets/logo.png"
38
+ m365 spo orgassetslibrary --libraryUrl "https://contoso.sharepoint.com/SiteAssets" --thumbnailUrl "https://contoso.sharepoint.com/assets/logo.png"
39
39
  ```
40
+
41
+ ## Response
42
+
43
+ The command won't return a response on success.