@pnp/cli-microsoft365 5.8.0-beta.40c8ac8 → 5.8.0-beta.5250f08

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 (110) hide show
  1. package/dist/cli/Cli.js +1 -1
  2. package/dist/m365/aad/commands/app/app-get.js +4 -11
  3. package/dist/m365/aad/commands/app/app-remove.js +4 -11
  4. package/dist/m365/aad/commands/app/app-role-add.js +5 -10
  5. package/dist/m365/aad/commands/app/app-role-list.js +4 -24
  6. package/dist/m365/aad/commands/app/app-role-remove.js +4 -22
  7. package/dist/m365/aad/commands/app/app-set.js +4 -11
  8. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +4 -8
  9. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +4 -11
  10. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +4 -8
  11. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +4 -7
  12. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +4 -8
  13. package/dist/m365/aad/commands/o365group/o365group-teamify.js +4 -7
  14. package/dist/m365/aad/commands/o365group/o365group-user-add.js +4 -7
  15. package/dist/m365/aad/commands/o365group/o365group-user-remove.js +4 -7
  16. package/dist/m365/aad/commands/o365group/o365group-user-set.js +4 -7
  17. package/dist/m365/aad/commands/sp/sp-add.js +4 -8
  18. package/dist/m365/aad/commands/sp/sp-get.js +4 -8
  19. package/dist/m365/aad/commands/user/user-get.js +4 -9
  20. package/dist/m365/aad/commands/user/user-list.js +13 -2
  21. package/dist/m365/aad/commands/user/user-set.js +4 -7
  22. package/dist/m365/outlook/commands/message/message-list.js +4 -23
  23. package/dist/m365/outlook/commands/message/message-move.js +4 -31
  24. package/dist/m365/pa/commands/app/app-get.js +4 -7
  25. package/dist/m365/planner/commands/bucket/bucket-add.js +4 -7
  26. package/dist/m365/planner/commands/bucket/bucket-list.js +4 -7
  27. package/dist/m365/planner/commands/plan/plan-add.js +4 -7
  28. package/dist/m365/planner/commands/plan/plan-list.js +4 -7
  29. package/dist/m365/planner/commands/task/task-add.js +4 -13
  30. package/dist/m365/pp/commands/managementapp/managementapp-add.js +4 -11
  31. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +47 -0
  32. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021003_PKG_engines_node.js +48 -0
  33. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.0-beta.1.js +61 -0
  34. package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
  35. package/dist/m365/spo/commands/app/app-deploy.js +4 -7
  36. package/dist/m365/spo/commands/app/app-get.js +4 -7
  37. package/dist/m365/spo/commands/contenttype/contenttype-get.js +4 -7
  38. package/dist/m365/spo/commands/contenttype/contenttype-remove.js +5 -14
  39. package/dist/m365/spo/commands/file/file-checkin.js +4 -7
  40. package/dist/m365/spo/commands/file/file-checkout.js +4 -7
  41. package/dist/m365/spo/commands/file/file-get.js +4 -7
  42. package/dist/m365/spo/commands/file/file-remove.js +4 -7
  43. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +4 -7
  44. package/dist/m365/spo/commands/group/group-remove.js +4 -7
  45. package/dist/m365/spo/commands/group/group-user-add.js +4 -13
  46. package/dist/m365/spo/commands/group/group-user-list.js +4 -7
  47. package/dist/m365/spo/commands/group/group-user-remove.js +4 -7
  48. package/dist/m365/spo/commands/list/list-contenttype-add.js +4 -7
  49. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +4 -7
  50. package/dist/m365/spo/commands/list/list-contenttype-list.js +4 -7
  51. package/dist/m365/spo/commands/list/list-contenttype-remove.js +4 -7
  52. package/dist/m365/spo/commands/list/list-get.js +4 -7
  53. package/dist/m365/spo/commands/list/list-label-get.js +4 -7
  54. package/dist/m365/spo/commands/list/list-label-set.js +4 -4
  55. package/dist/m365/spo/commands/list/list-remove.js +4 -7
  56. package/dist/m365/spo/commands/list/list-sitescript-get.js +4 -7
  57. package/dist/m365/spo/commands/list/list-view-field-add.js +4 -19
  58. package/dist/m365/spo/commands/list/list-view-field-remove.js +4 -19
  59. package/dist/m365/spo/commands/list/list-view-field-set.js +4 -19
  60. package/dist/m365/spo/commands/list/list-view-get.js +4 -10
  61. package/dist/m365/spo/commands/list/list-view-list.js +4 -7
  62. package/dist/m365/spo/commands/list/list-view-remove.js +4 -13
  63. package/dist/m365/spo/commands/list/list-view-set.js +4 -13
  64. package/dist/m365/spo/commands/list/list-webhook-add.js +4 -7
  65. package/dist/m365/spo/commands/list/list-webhook-get.js +4 -7
  66. package/dist/m365/spo/commands/list/list-webhook-remove.js +4 -7
  67. package/dist/m365/spo/commands/list/list-webhook-set.js +4 -7
  68. package/dist/m365/spo/commands/listitem/listitem-add.js +4 -7
  69. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +4 -7
  70. package/dist/m365/spo/commands/listitem/listitem-get.js +4 -7
  71. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +4 -7
  72. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +4 -7
  73. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +4 -7
  74. package/dist/m365/spo/commands/listitem/listitem-remove.js +4 -7
  75. package/dist/m365/spo/commands/listitem/listitem-set.js +4 -7
  76. package/dist/m365/spo/commands/site/site-apppermission-add.js +4 -4
  77. package/dist/m365/spo/commands/site/site-apppermission-remove.js +4 -9
  78. package/dist/m365/spo/commands/site/site-apppermission-set.js +4 -4
  79. package/dist/m365/spo/commands/term/term-add.js +4 -7
  80. package/dist/m365/spo/commands/term/term-get.js +4 -7
  81. package/dist/m365/spo/commands/term/term-group-get.js +4 -7
  82. package/dist/m365/spo/commands/term/term-list.js +4 -13
  83. package/dist/m365/spo/commands/term/term-set-add.js +4 -7
  84. package/dist/m365/spo/commands/term/term-set-get.js +4 -13
  85. package/dist/m365/spo/commands/term/term-set-list.js +4 -7
  86. package/dist/m365/spo/commands/user/user-get.js +4 -9
  87. package/dist/m365/spo/commands/user/user-remove.js +4 -7
  88. package/dist/m365/teams/commands/app/app-install.js +4 -11
  89. package/dist/m365/teams/commands/app/app-update.js +4 -7
  90. package/dist/m365/teams/commands/channel/channel-add.js +4 -7
  91. package/dist/m365/teams/commands/channel/channel-get.js +4 -22
  92. package/dist/m365/teams/commands/channel/channel-list.js +4 -7
  93. package/dist/m365/teams/commands/channel/channel-member-list.js +4 -13
  94. package/dist/m365/teams/commands/channel/channel-member-set.js +4 -21
  95. package/dist/m365/teams/commands/channel/channel-remove.js +4 -7
  96. package/dist/m365/teams/commands/chat/chat-get.js +4 -17
  97. package/dist/m365/teams/commands/chat/chat-message-send.js +4 -17
  98. package/dist/m365/teams/commands/tab/tab-get.js +4 -19
  99. package/dist/m365/teams/commands/team/team-get.js +4 -7
  100. package/dist/m365/teams/commands/user/user-app-list.js +4 -7
  101. package/dist/m365/todo/commands/list/list-remove.js +4 -21
  102. package/dist/m365/todo/commands/list/list-set.js +4 -21
  103. package/dist/m365/todo/commands/task/task-add.js +4 -21
  104. package/dist/m365/todo/commands/task/task-list.js +4 -21
  105. package/dist/m365/todo/commands/task/task-remove.js +4 -21
  106. package/dist/m365/todo/commands/task/task-set.js +4 -7
  107. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  108. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +6 -6
  109. package/package.json +1 -1
  110. package/scripts/Register-CLIM365Completion.ps1 +1 -1
@@ -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 _SpoGroupUserAddCommand_instances, _SpoGroupUserAddCommand_initTelemetry, _SpoGroupUserAddCommand_initOptions, _SpoGroupUserAddCommand_initValidators;
16
+ var _SpoGroupUserAddCommand_instances, _SpoGroupUserAddCommand_initTelemetry, _SpoGroupUserAddCommand_initOptions, _SpoGroupUserAddCommand_initValidators, _SpoGroupUserAddCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const cli_1 = require("../../../../cli");
19
19
  const Command_1 = require("../../../../Command");
@@ -29,6 +29,7 @@ class SpoGroupUserAddCommand extends SpoCommand_1.default {
29
29
  __classPrivateFieldGet(this, _SpoGroupUserAddCommand_instances, "m", _SpoGroupUserAddCommand_initTelemetry).call(this);
30
30
  __classPrivateFieldGet(this, _SpoGroupUserAddCommand_instances, "m", _SpoGroupUserAddCommand_initOptions).call(this);
31
31
  __classPrivateFieldGet(this, _SpoGroupUserAddCommand_instances, "m", _SpoGroupUserAddCommand_initValidators).call(this);
32
+ __classPrivateFieldGet(this, _SpoGroupUserAddCommand_instances, "m", _SpoGroupUserAddCommand_initOptionSets).call(this);
32
33
  }
33
34
  get name() {
34
35
  return commands_1.default.GROUP_USER_ADD;
@@ -171,23 +172,13 @@ _SpoGroupUserAddCommand_instances = new WeakSet(), _SpoGroupUserAddCommand_initT
171
172
  if (isValidSharePointUrl !== true) {
172
173
  return isValidSharePointUrl;
173
174
  }
174
- if (!args.options.groupId && !args.options.groupName) {
175
- return 'Specify either groupId or groupName';
176
- }
177
- if (args.options.groupId && args.options.groupName) {
178
- return 'Specify either groupId or groupName but not both';
179
- }
180
- if (!args.options.userName && !args.options.email) {
181
- return 'Specify either userName or email';
182
- }
183
- if (args.options.userName && args.options.email) {
184
- return 'Specify either userName or email but not both';
185
- }
186
175
  if (args.options.groupId && isNaN(args.options.groupId)) {
187
176
  return `Specified groupId ${args.options.groupId} is not a number`;
188
177
  }
189
178
  return true;
190
179
  }));
180
+ }, _SpoGroupUserAddCommand_initOptionSets = function _SpoGroupUserAddCommand_initOptionSets() {
181
+ this.optionSets.push(['groupId', 'groupName'], ['userName', 'email']);
191
182
  };
192
183
  module.exports = new SpoGroupUserAddCommand();
193
184
  //# sourceMappingURL=group-user-add.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 _SpoGroupUserListCommand_instances, _SpoGroupUserListCommand_initTelemetry, _SpoGroupUserListCommand_initOptions, _SpoGroupUserListCommand_initValidators;
16
+ var _SpoGroupUserListCommand_instances, _SpoGroupUserListCommand_initTelemetry, _SpoGroupUserListCommand_initOptions, _SpoGroupUserListCommand_initValidators, _SpoGroupUserListCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const utils_1 = require("../../../../utils");
@@ -26,6 +26,7 @@ class SpoGroupUserListCommand extends SpoCommand_1.default {
26
26
  __classPrivateFieldGet(this, _SpoGroupUserListCommand_instances, "m", _SpoGroupUserListCommand_initTelemetry).call(this);
27
27
  __classPrivateFieldGet(this, _SpoGroupUserListCommand_instances, "m", _SpoGroupUserListCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _SpoGroupUserListCommand_instances, "m", _SpoGroupUserListCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _SpoGroupUserListCommand_instances, "m", _SpoGroupUserListCommand_initOptionSets).call(this);
29
30
  }
30
31
  get name() {
31
32
  return commands_1.default.GROUP_USER_LIST;
@@ -75,17 +76,13 @@ _SpoGroupUserListCommand_instances = new WeakSet(), _SpoGroupUserListCommand_ini
75
76
  });
76
77
  }, _SpoGroupUserListCommand_initValidators = function _SpoGroupUserListCommand_initValidators() {
77
78
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
78
- if (args.options.groupId && args.options.groupName) {
79
- return 'Use either "groupName" or "groupId", but not both';
80
- }
81
- if (!args.options.groupId && !args.options.groupName) {
82
- return 'Either "groupName" or "groupId" is required';
83
- }
84
79
  if (args.options.groupId && isNaN(args.options.groupId)) {
85
80
  return `Specified "groupId" ${args.options.groupId} is not valid`;
86
81
  }
87
82
  return utils_1.validation.isValidSharePointUrl(args.options.webUrl);
88
83
  }));
84
+ }, _SpoGroupUserListCommand_initOptionSets = function _SpoGroupUserListCommand_initOptionSets() {
85
+ this.optionSets.push(['groupName', 'groupId']);
89
86
  };
90
87
  module.exports = new SpoGroupUserListCommand();
91
88
  //# sourceMappingURL=group-user-list.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 _SpoGroupUserRemoveCommand_instances, _SpoGroupUserRemoveCommand_initTelemetry, _SpoGroupUserRemoveCommand_initOptions, _SpoGroupUserRemoveCommand_initValidators;
16
+ var _SpoGroupUserRemoveCommand_instances, _SpoGroupUserRemoveCommand_initTelemetry, _SpoGroupUserRemoveCommand_initOptions, _SpoGroupUserRemoveCommand_initValidators, _SpoGroupUserRemoveCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const cli_1 = require("../../../../cli");
19
19
  const request_1 = require("../../../../request");
@@ -27,6 +27,7 @@ class SpoGroupUserRemoveCommand extends SpoCommand_1.default {
27
27
  __classPrivateFieldGet(this, _SpoGroupUserRemoveCommand_instances, "m", _SpoGroupUserRemoveCommand_initTelemetry).call(this);
28
28
  __classPrivateFieldGet(this, _SpoGroupUserRemoveCommand_instances, "m", _SpoGroupUserRemoveCommand_initOptions).call(this);
29
29
  __classPrivateFieldGet(this, _SpoGroupUserRemoveCommand_instances, "m", _SpoGroupUserRemoveCommand_initValidators).call(this);
30
+ __classPrivateFieldGet(this, _SpoGroupUserRemoveCommand_instances, "m", _SpoGroupUserRemoveCommand_initOptionSets).call(this);
30
31
  }
31
32
  get name() {
32
33
  return commands_1.default.GROUP_USER_REMOVE;
@@ -101,17 +102,13 @@ _SpoGroupUserRemoveCommand_instances = new WeakSet(), _SpoGroupUserRemoveCommand
101
102
  });
102
103
  }, _SpoGroupUserRemoveCommand_initValidators = function _SpoGroupUserRemoveCommand_initValidators() {
103
104
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
104
- if (args.options.groupId && args.options.groupName) {
105
- return 'Use either "groupName" or "groupId", but not both';
106
- }
107
- if (!args.options.groupId && !args.options.groupName) {
108
- return 'Either "groupName" or "groupId" is required';
109
- }
110
105
  if (args.options.groupId && isNaN(args.options.groupId)) {
111
106
  return `Specified "groupId" ${args.options.groupId} is not valid`;
112
107
  }
113
108
  return utils_1.validation.isValidSharePointUrl(args.options.webUrl);
114
109
  }));
110
+ }, _SpoGroupUserRemoveCommand_initOptionSets = function _SpoGroupUserRemoveCommand_initOptionSets() {
111
+ this.optionSets.push(['groupName', 'groupId']);
115
112
  };
116
113
  module.exports = new SpoGroupUserRemoveCommand();
117
114
  //# sourceMappingURL=group-user-remove.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 _SpoListContentTypeAddCommand_instances, _SpoListContentTypeAddCommand_initTelemetry, _SpoListContentTypeAddCommand_initOptions, _SpoListContentTypeAddCommand_initValidators, _SpoListContentTypeAddCommand_initTypes;
16
+ var _SpoListContentTypeAddCommand_instances, _SpoListContentTypeAddCommand_initTelemetry, _SpoListContentTypeAddCommand_initOptions, _SpoListContentTypeAddCommand_initValidators, _SpoListContentTypeAddCommand_initTypes, _SpoListContentTypeAddCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const utils_1 = require("../../../../utils");
@@ -27,6 +27,7 @@ class SpoListContentTypeAddCommand extends SpoCommand_1.default {
27
27
  __classPrivateFieldGet(this, _SpoListContentTypeAddCommand_instances, "m", _SpoListContentTypeAddCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListContentTypeAddCommand_instances, "m", _SpoListContentTypeAddCommand_initValidators).call(this);
29
29
  __classPrivateFieldGet(this, _SpoListContentTypeAddCommand_instances, "m", _SpoListContentTypeAddCommand_initTypes).call(this);
30
+ __classPrivateFieldGet(this, _SpoListContentTypeAddCommand_instances, "m", _SpoListContentTypeAddCommand_initOptionSets).call(this);
30
31
  }
31
32
  get name() {
32
33
  return commands_1.default.LIST_CONTENTTYPE_ADD;
@@ -96,16 +97,12 @@ _SpoListContentTypeAddCommand_instances = new WeakSet(), _SpoListContentTypeAddC
96
97
  return `${args.options.listId} is not a valid GUID`;
97
98
  }
98
99
  }
99
- if (args.options.listId && args.options.listTitle) {
100
- return 'Specify listId or listTitle, but not both';
101
- }
102
- if (!args.options.listId && !args.options.listTitle) {
103
- return 'Specify listId or listTitle, one is required';
104
- }
105
100
  return true;
106
101
  }));
107
102
  }, _SpoListContentTypeAddCommand_initTypes = function _SpoListContentTypeAddCommand_initTypes() {
108
103
  this.types.string.push('contentTypeId', 'c');
104
+ }, _SpoListContentTypeAddCommand_initOptionSets = function _SpoListContentTypeAddCommand_initOptionSets() {
105
+ this.optionSets.push(['listId', 'listTitle']);
109
106
  };
110
107
  module.exports = new SpoListContentTypeAddCommand();
111
108
  //# sourceMappingURL=list-contenttype-add.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 _SpoListContentTypeDefaultSetCommand_instances, _SpoListContentTypeDefaultSetCommand_initTelemetry, _SpoListContentTypeDefaultSetCommand_initOptions, _SpoListContentTypeDefaultSetCommand_initValidators, _SpoListContentTypeDefaultSetCommand_initTypes;
16
+ var _SpoListContentTypeDefaultSetCommand_instances, _SpoListContentTypeDefaultSetCommand_initTelemetry, _SpoListContentTypeDefaultSetCommand_initOptions, _SpoListContentTypeDefaultSetCommand_initValidators, _SpoListContentTypeDefaultSetCommand_initTypes, _SpoListContentTypeDefaultSetCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const utils_1 = require("../../../../utils");
@@ -27,6 +27,7 @@ class SpoListContentTypeDefaultSetCommand extends SpoCommand_1.default {
27
27
  __classPrivateFieldGet(this, _SpoListContentTypeDefaultSetCommand_instances, "m", _SpoListContentTypeDefaultSetCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListContentTypeDefaultSetCommand_instances, "m", _SpoListContentTypeDefaultSetCommand_initValidators).call(this);
29
29
  __classPrivateFieldGet(this, _SpoListContentTypeDefaultSetCommand_instances, "m", _SpoListContentTypeDefaultSetCommand_initTypes).call(this);
30
+ __classPrivateFieldGet(this, _SpoListContentTypeDefaultSetCommand_instances, "m", _SpoListContentTypeDefaultSetCommand_initOptionSets).call(this);
30
31
  }
31
32
  get name() {
32
33
  return commands_1.default.LIST_CONTENTTYPE_DEFAULT_SET;
@@ -180,16 +181,12 @@ _SpoListContentTypeDefaultSetCommand_instances = new WeakSet(), _SpoListContentT
180
181
  return `${args.options.listId} is not a valid GUID`;
181
182
  }
182
183
  }
183
- if (args.options.listId && args.options.listTitle) {
184
- return 'Specify listId or listTitle, but not both';
185
- }
186
- if (!args.options.listId && !args.options.listTitle) {
187
- return 'Specify listId or listTitle, one is required';
188
- }
189
184
  return true;
190
185
  }));
191
186
  }, _SpoListContentTypeDefaultSetCommand_initTypes = function _SpoListContentTypeDefaultSetCommand_initTypes() {
192
187
  this.types.string.push('contentTypeId', 'c');
188
+ }, _SpoListContentTypeDefaultSetCommand_initOptionSets = function _SpoListContentTypeDefaultSetCommand_initOptionSets() {
189
+ this.optionSets.push(['listId', 'listTitle']);
193
190
  };
194
191
  module.exports = new SpoListContentTypeDefaultSetCommand();
195
192
  //# sourceMappingURL=list-contenttype-default-set.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 _SpoListContentTypeListCommand_instances, _SpoListContentTypeListCommand_initTelemetry, _SpoListContentTypeListCommand_initOptions, _SpoListContentTypeListCommand_initValidators;
16
+ var _SpoListContentTypeListCommand_instances, _SpoListContentTypeListCommand_initTelemetry, _SpoListContentTypeListCommand_initOptions, _SpoListContentTypeListCommand_initValidators, _SpoListContentTypeListCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const utils_1 = require("../../../../utils");
@@ -26,6 +26,7 @@ class SpoListContentTypeListCommand extends SpoCommand_1.default {
26
26
  __classPrivateFieldGet(this, _SpoListContentTypeListCommand_instances, "m", _SpoListContentTypeListCommand_initTelemetry).call(this);
27
27
  __classPrivateFieldGet(this, _SpoListContentTypeListCommand_instances, "m", _SpoListContentTypeListCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListContentTypeListCommand_instances, "m", _SpoListContentTypeListCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _SpoListContentTypeListCommand_instances, "m", _SpoListContentTypeListCommand_initOptionSets).call(this);
29
30
  }
30
31
  get name() {
31
32
  return commands_1.default.LIST_CONTENTTYPE_LIST;
@@ -90,14 +91,10 @@ _SpoListContentTypeListCommand_instances = new WeakSet(), _SpoListContentTypeLis
90
91
  return `${args.options.listId} is not a valid GUID`;
91
92
  }
92
93
  }
93
- if (args.options.listId && args.options.listTitle) {
94
- return 'Specify listId or listTitle, but not both';
95
- }
96
- if (!args.options.listId && !args.options.listTitle) {
97
- return 'Specify listId or listTitle, one is required';
98
- }
99
94
  return true;
100
95
  }));
96
+ }, _SpoListContentTypeListCommand_initOptionSets = function _SpoListContentTypeListCommand_initOptionSets() {
97
+ this.optionSets.push(['listId', 'listTitle']);
101
98
  };
102
99
  module.exports = new SpoListContentTypeListCommand();
103
100
  //# sourceMappingURL=list-contenttype-list.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 _SpoListContentTypeRemoveCommand_instances, _SpoListContentTypeRemoveCommand_initTelemetry, _SpoListContentTypeRemoveCommand_initOptions, _SpoListContentTypeRemoveCommand_initValidators, _SpoListContentTypeRemoveCommand_initTypes;
16
+ var _SpoListContentTypeRemoveCommand_instances, _SpoListContentTypeRemoveCommand_initTelemetry, _SpoListContentTypeRemoveCommand_initOptions, _SpoListContentTypeRemoveCommand_initValidators, _SpoListContentTypeRemoveCommand_initTypes, _SpoListContentTypeRemoveCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const cli_1 = require("../../../../cli");
19
19
  const request_1 = require("../../../../request");
@@ -28,6 +28,7 @@ class SpoListContentTypeRemoveCommand extends SpoCommand_1.default {
28
28
  __classPrivateFieldGet(this, _SpoListContentTypeRemoveCommand_instances, "m", _SpoListContentTypeRemoveCommand_initOptions).call(this);
29
29
  __classPrivateFieldGet(this, _SpoListContentTypeRemoveCommand_instances, "m", _SpoListContentTypeRemoveCommand_initValidators).call(this);
30
30
  __classPrivateFieldGet(this, _SpoListContentTypeRemoveCommand_instances, "m", _SpoListContentTypeRemoveCommand_initTypes).call(this);
31
+ __classPrivateFieldGet(this, _SpoListContentTypeRemoveCommand_instances, "m", _SpoListContentTypeRemoveCommand_initOptionSets).call(this);
31
32
  }
32
33
  get name() {
33
34
  return commands_1.default.LIST_CONTENTTYPE_REMOVE;
@@ -115,16 +116,12 @@ _SpoListContentTypeRemoveCommand_instances = new WeakSet(), _SpoListContentTypeR
115
116
  return `${args.options.listId} is not a valid GUID`;
116
117
  }
117
118
  }
118
- if (args.options.listId && args.options.listTitle) {
119
- return 'Specify listId or listTitle, but not both';
120
- }
121
- if (!args.options.listId && !args.options.listTitle) {
122
- return 'Specify listId or listTitle, one is required';
123
- }
124
119
  return true;
125
120
  }));
126
121
  }, _SpoListContentTypeRemoveCommand_initTypes = function _SpoListContentTypeRemoveCommand_initTypes() {
127
122
  this.types.string.push('contentTypeId', 'c');
123
+ }, _SpoListContentTypeRemoveCommand_initOptionSets = function _SpoListContentTypeRemoveCommand_initOptionSets() {
124
+ this.optionSets.push(['listId', 'listTitle']);
128
125
  };
129
126
  module.exports = new SpoListContentTypeRemoveCommand();
130
127
  //# sourceMappingURL=list-contenttype-remove.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 _SpoListGetCommand_instances, _SpoListGetCommand_initTelemetry, _SpoListGetCommand_initOptions, _SpoListGetCommand_initValidators;
16
+ var _SpoListGetCommand_instances, _SpoListGetCommand_initTelemetry, _SpoListGetCommand_initOptions, _SpoListGetCommand_initValidators, _SpoListGetCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const utils_1 = require("../../../../utils");
@@ -27,6 +27,7 @@ class SpoListGetCommand extends SpoCommand_1.default {
27
27
  __classPrivateFieldGet(this, _SpoListGetCommand_instances, "m", _SpoListGetCommand_initTelemetry).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListGetCommand_instances, "m", _SpoListGetCommand_initOptions).call(this);
29
29
  __classPrivateFieldGet(this, _SpoListGetCommand_instances, "m", _SpoListGetCommand_initValidators).call(this);
30
+ __classPrivateFieldGet(this, _SpoListGetCommand_instances, "m", _SpoListGetCommand_initOptionSets).call(this);
30
31
  }
31
32
  get name() {
32
33
  return commands_1.default.LIST_GET;
@@ -99,14 +100,10 @@ _SpoListGetCommand_instances = new WeakSet(), _SpoListGetCommand_initTelemetry =
99
100
  return `${args.options.id} is not a valid GUID`;
100
101
  }
101
102
  }
102
- if (args.options.id && args.options.title) {
103
- return 'Specify id or title, but not both';
104
- }
105
- if (!args.options.id && !args.options.title) {
106
- return 'Specify id or title, one is required';
107
- }
108
103
  return true;
109
104
  }));
105
+ }, _SpoListGetCommand_initOptionSets = function _SpoListGetCommand_initOptionSets() {
106
+ this.optionSets.push(['id', 'title']);
110
107
  };
111
108
  module.exports = new SpoListGetCommand();
112
109
  //# sourceMappingURL=list-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 _SpoListLabelGetCommand_instances, _SpoListLabelGetCommand_initTelemetry, _SpoListLabelGetCommand_initOptions, _SpoListLabelGetCommand_initValidators;
16
+ var _SpoListLabelGetCommand_instances, _SpoListLabelGetCommand_initTelemetry, _SpoListLabelGetCommand_initOptions, _SpoListLabelGetCommand_initValidators, _SpoListLabelGetCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const utils_1 = require("../../../../utils");
@@ -26,6 +26,7 @@ class SpoListLabelGetCommand extends SpoCommand_1.default {
26
26
  __classPrivateFieldGet(this, _SpoListLabelGetCommand_instances, "m", _SpoListLabelGetCommand_initTelemetry).call(this);
27
27
  __classPrivateFieldGet(this, _SpoListLabelGetCommand_instances, "m", _SpoListLabelGetCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListLabelGetCommand_instances, "m", _SpoListLabelGetCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _SpoListLabelGetCommand_instances, "m", _SpoListLabelGetCommand_initOptionSets).call(this);
29
30
  }
30
31
  get name() {
31
32
  return commands_1.default.LIST_LABEL_GET;
@@ -112,14 +113,10 @@ _SpoListLabelGetCommand_instances = new WeakSet(), _SpoListLabelGetCommand_initT
112
113
  return `${args.options.listId} is not a valid GUID`;
113
114
  }
114
115
  }
115
- if (args.options.listId && args.options.listTitle) {
116
- return 'Specify listId or listTitle, but not both';
117
- }
118
- if (!args.options.listId && !args.options.listTitle) {
119
- return 'Specify listId or listTitle, one is required';
120
- }
121
116
  return true;
122
117
  }));
118
+ }, _SpoListLabelGetCommand_initOptionSets = function _SpoListLabelGetCommand_initOptionSets() {
119
+ this.optionSets.push(['listId', 'listTitle']);
123
120
  };
124
121
  module.exports = new SpoListLabelGetCommand();
125
122
  //# sourceMappingURL=list-label-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;
16
+ var _SpoListLabelSetCommand_instances, _SpoListLabelSetCommand_initTelemetry, _SpoListLabelSetCommand_initOptions, _SpoListLabelSetCommand_initValidators, _SpoListLabelSetCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const utils_1 = require("../../../../utils");
@@ -26,6 +26,7 @@ class SpoListLabelSetCommand extends SpoCommand_1.default {
26
26
  __classPrivateFieldGet(this, _SpoListLabelSetCommand_instances, "m", _SpoListLabelSetCommand_initTelemetry).call(this);
27
27
  __classPrivateFieldGet(this, _SpoListLabelSetCommand_instances, "m", _SpoListLabelSetCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListLabelSetCommand_instances, "m", _SpoListLabelSetCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _SpoListLabelSetCommand_instances, "m", _SpoListLabelSetCommand_initOptionSets).call(this);
29
30
  }
30
31
  get name() {
31
32
  return commands_1.default.LIST_LABEL_SET;
@@ -112,14 +113,13 @@ _SpoListLabelSetCommand_instances = new WeakSet(), _SpoListLabelSetCommand_initT
112
113
  });
113
114
  }, _SpoListLabelSetCommand_initValidators = function _SpoListLabelSetCommand_initValidators() {
114
115
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
115
- if (!args.options.listId && !args.options.listTitle && !args.options.listUrl) {
116
- return `Specify listId or listTitle or listUrl.`;
117
- }
118
116
  if (args.options.listId && !utils_1.validation.isValidGuid(args.options.listId)) {
119
117
  return `${args.options.listId} is not a valid GUID`;
120
118
  }
121
119
  return utils_1.validation.isValidSharePointUrl(args.options.webUrl);
122
120
  }));
121
+ }, _SpoListLabelSetCommand_initOptionSets = function _SpoListLabelSetCommand_initOptionSets() {
122
+ this.optionSets.push(['listId', 'listTitle', 'listUrl']);
123
123
  };
124
124
  module.exports = new SpoListLabelSetCommand();
125
125
  //# sourceMappingURL=list-label-set.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 _SpoListRemoveCommand_instances, _SpoListRemoveCommand_initTelemetry, _SpoListRemoveCommand_initOptions, _SpoListRemoveCommand_initValidators;
16
+ var _SpoListRemoveCommand_instances, _SpoListRemoveCommand_initTelemetry, _SpoListRemoveCommand_initOptions, _SpoListRemoveCommand_initValidators, _SpoListRemoveCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const cli_1 = require("../../../../cli");
19
19
  const request_1 = require("../../../../request");
@@ -27,6 +27,7 @@ class SpoListRemoveCommand extends SpoCommand_1.default {
27
27
  __classPrivateFieldGet(this, _SpoListRemoveCommand_instances, "m", _SpoListRemoveCommand_initTelemetry).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListRemoveCommand_instances, "m", _SpoListRemoveCommand_initOptions).call(this);
29
29
  __classPrivateFieldGet(this, _SpoListRemoveCommand_instances, "m", _SpoListRemoveCommand_initValidators).call(this);
30
+ __classPrivateFieldGet(this, _SpoListRemoveCommand_instances, "m", _SpoListRemoveCommand_initOptionSets).call(this);
30
31
  }
31
32
  get name() {
32
33
  return commands_1.default.LIST_REMOVE;
@@ -111,14 +112,10 @@ _SpoListRemoveCommand_instances = new WeakSet(), _SpoListRemoveCommand_initTelem
111
112
  !utils_1.validation.isValidGuid(args.options.id)) {
112
113
  return `${args.options.id} is not a valid GUID`;
113
114
  }
114
- if (args.options.id && args.options.title) {
115
- return 'Specify id or title, but not both';
116
- }
117
- if (!args.options.id && !args.options.title) {
118
- return 'Specify id or title';
119
- }
120
115
  return true;
121
116
  }));
117
+ }, _SpoListRemoveCommand_initOptionSets = function _SpoListRemoveCommand_initOptionSets() {
118
+ this.optionSets.push(['id', 'title']);
122
119
  };
123
120
  module.exports = new SpoListRemoveCommand();
124
121
  //# sourceMappingURL=list-remove.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 _SpoListSiteScriptGetCommand_instances, _SpoListSiteScriptGetCommand_initTelemetry, _SpoListSiteScriptGetCommand_initOptions, _SpoListSiteScriptGetCommand_initValidators;
16
+ var _SpoListSiteScriptGetCommand_instances, _SpoListSiteScriptGetCommand_initTelemetry, _SpoListSiteScriptGetCommand_initOptions, _SpoListSiteScriptGetCommand_initValidators, _SpoListSiteScriptGetCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const Command_1 = require("../../../../Command");
19
19
  const request_1 = require("../../../../request");
@@ -27,6 +27,7 @@ class SpoListSiteScriptGetCommand extends SpoCommand_1.default {
27
27
  __classPrivateFieldGet(this, _SpoListSiteScriptGetCommand_instances, "m", _SpoListSiteScriptGetCommand_initTelemetry).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListSiteScriptGetCommand_instances, "m", _SpoListSiteScriptGetCommand_initOptions).call(this);
29
29
  __classPrivateFieldGet(this, _SpoListSiteScriptGetCommand_instances, "m", _SpoListSiteScriptGetCommand_initValidators).call(this);
30
+ __classPrivateFieldGet(this, _SpoListSiteScriptGetCommand_instances, "m", _SpoListSiteScriptGetCommand_initOptionSets).call(this);
30
31
  }
31
32
  get name() {
32
33
  return commands_1.default.LIST_SITESCRIPT_GET;
@@ -116,14 +117,10 @@ _SpoListSiteScriptGetCommand_instances = new WeakSet(), _SpoListSiteScriptGetCom
116
117
  return `${args.options.listId} is not a valid GUID`;
117
118
  }
118
119
  }
119
- if (args.options.listId && args.options.listTitle) {
120
- return 'Specify listId or listTitle, but not both';
121
- }
122
- if (!args.options.listId && !args.options.listTitle) {
123
- return 'Specify listId or listTitle, one is required';
124
- }
125
120
  return true;
126
121
  }));
122
+ }, _SpoListSiteScriptGetCommand_initOptionSets = function _SpoListSiteScriptGetCommand_initOptionSets() {
123
+ this.optionSets.push(['listId', 'listTitle']);
127
124
  };
128
125
  module.exports = new SpoListSiteScriptGetCommand();
129
126
  //# sourceMappingURL=list-sitescript-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 _SpoListViewFieldAddCommand_instances, _SpoListViewFieldAddCommand_initTelemetry, _SpoListViewFieldAddCommand_initOptions, _SpoListViewFieldAddCommand_initValidators;
16
+ var _SpoListViewFieldAddCommand_instances, _SpoListViewFieldAddCommand_initTelemetry, _SpoListViewFieldAddCommand_initOptions, _SpoListViewFieldAddCommand_initValidators, _SpoListViewFieldAddCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const utils_1 = require("../../../../utils");
@@ -26,6 +26,7 @@ class SpoListViewFieldAddCommand extends SpoCommand_1.default {
26
26
  __classPrivateFieldGet(this, _SpoListViewFieldAddCommand_instances, "m", _SpoListViewFieldAddCommand_initTelemetry).call(this);
27
27
  __classPrivateFieldGet(this, _SpoListViewFieldAddCommand_instances, "m", _SpoListViewFieldAddCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListViewFieldAddCommand_instances, "m", _SpoListViewFieldAddCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _SpoListViewFieldAddCommand_instances, "m", _SpoListViewFieldAddCommand_initOptionSets).call(this);
29
30
  }
30
31
  get name() {
31
32
  return commands_1.default.LIST_VIEW_FIELD_ADD;
@@ -158,26 +159,10 @@ _SpoListViewFieldAddCommand_instances = new WeakSet(), _SpoListViewFieldAddComma
158
159
  return `${args.options.fieldPosition} is not a number`;
159
160
  }
160
161
  }
161
- if (args.options.listId && args.options.listTitle) {
162
- return 'Specify listId or listTitle, but not both';
163
- }
164
- if (!args.options.listId && !args.options.listTitle) {
165
- return 'Specify listId or listTitle, one is required';
166
- }
167
- if (args.options.viewId && args.options.viewTitle) {
168
- return 'Specify viewId or viewTitle, but not both';
169
- }
170
- if (!args.options.viewId && !args.options.viewTitle) {
171
- return 'Specify viewId or viewTitle, one is required';
172
- }
173
- if (args.options.fieldId && args.options.fieldTitle) {
174
- return 'Specify fieldId or fieldTitle, but not both';
175
- }
176
- if (!args.options.fieldId && !args.options.fieldTitle) {
177
- return 'Specify fieldId or fieldTitle, one is required';
178
- }
179
162
  return true;
180
163
  }));
164
+ }, _SpoListViewFieldAddCommand_initOptionSets = function _SpoListViewFieldAddCommand_initOptionSets() {
165
+ this.optionSets.push(['listId', 'listTitle'], ['viewId', 'viewTitle'], ['fieldId', 'fieldTitle']);
181
166
  };
182
167
  module.exports = new SpoListViewFieldAddCommand();
183
168
  //# sourceMappingURL=list-view-field-add.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 _SpoListViewFieldRemoveCommand_instances, _SpoListViewFieldRemoveCommand_initTelemetry, _SpoListViewFieldRemoveCommand_initOptions, _SpoListViewFieldRemoveCommand_initValidators;
16
+ var _SpoListViewFieldRemoveCommand_instances, _SpoListViewFieldRemoveCommand_initTelemetry, _SpoListViewFieldRemoveCommand_initOptions, _SpoListViewFieldRemoveCommand_initValidators, _SpoListViewFieldRemoveCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const cli_1 = require("../../../../cli");
19
19
  const request_1 = require("../../../../request");
@@ -27,6 +27,7 @@ class SpoListViewFieldRemoveCommand extends SpoCommand_1.default {
27
27
  __classPrivateFieldGet(this, _SpoListViewFieldRemoveCommand_instances, "m", _SpoListViewFieldRemoveCommand_initTelemetry).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListViewFieldRemoveCommand_instances, "m", _SpoListViewFieldRemoveCommand_initOptions).call(this);
29
29
  __classPrivateFieldGet(this, _SpoListViewFieldRemoveCommand_instances, "m", _SpoListViewFieldRemoveCommand_initValidators).call(this);
30
+ __classPrivateFieldGet(this, _SpoListViewFieldRemoveCommand_instances, "m", _SpoListViewFieldRemoveCommand_initOptionSets).call(this);
30
31
  }
31
32
  get name() {
32
33
  return commands_1.default.LIST_VIEW_FIELD_REMOVE;
@@ -145,26 +146,10 @@ _SpoListViewFieldRemoveCommand_instances = new WeakSet(), _SpoListViewFieldRemov
145
146
  return `${args.options.viewId} is not a valid GUID`;
146
147
  }
147
148
  }
148
- if (args.options.listId && args.options.listTitle) {
149
- return 'Specify listId or listTitle, but not both';
150
- }
151
- if (!args.options.listId && !args.options.listTitle) {
152
- return 'Specify listId or listTitle, one is required';
153
- }
154
- if (args.options.viewId && args.options.viewTitle) {
155
- return 'Specify viewId or viewTitle, but not both';
156
- }
157
- if (!args.options.viewId && !args.options.viewTitle) {
158
- return 'Specify viewId or viewTitle, one is required';
159
- }
160
- if (args.options.fieldId && args.options.fieldTitle) {
161
- return 'Specify fieldId or fieldTitle, but not both';
162
- }
163
- if (!args.options.fieldId && !args.options.fieldTitle) {
164
- return 'Specify fieldId or fieldTitle, one is required';
165
- }
166
149
  return true;
167
150
  }));
151
+ }, _SpoListViewFieldRemoveCommand_initOptionSets = function _SpoListViewFieldRemoveCommand_initOptionSets() {
152
+ this.optionSets.push(['listId', 'listTitle'], ['viewId', 'viewTitle'], ['fieldId', 'fieldTitle']);
168
153
  };
169
154
  module.exports = new SpoListViewFieldRemoveCommand();
170
155
  //# sourceMappingURL=list-view-field-remove.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 _SpoListViewFieldSetCommand_instances, _SpoListViewFieldSetCommand_initTelemetry, _SpoListViewFieldSetCommand_initOptions, _SpoListViewFieldSetCommand_initValidators;
16
+ var _SpoListViewFieldSetCommand_instances, _SpoListViewFieldSetCommand_initTelemetry, _SpoListViewFieldSetCommand_initOptions, _SpoListViewFieldSetCommand_initValidators, _SpoListViewFieldSetCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const utils_1 = require("../../../../utils");
@@ -26,6 +26,7 @@ class SpoListViewFieldSetCommand extends SpoCommand_1.default {
26
26
  __classPrivateFieldGet(this, _SpoListViewFieldSetCommand_instances, "m", _SpoListViewFieldSetCommand_initTelemetry).call(this);
27
27
  __classPrivateFieldGet(this, _SpoListViewFieldSetCommand_instances, "m", _SpoListViewFieldSetCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListViewFieldSetCommand_instances, "m", _SpoListViewFieldSetCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _SpoListViewFieldSetCommand_instances, "m", _SpoListViewFieldSetCommand_initOptionSets).call(this);
29
30
  }
30
31
  get name() {
31
32
  return commands_1.default.LIST_VIEW_FIELD_SET;
@@ -128,26 +129,10 @@ _SpoListViewFieldSetCommand_instances = new WeakSet(), _SpoListViewFieldSetComma
128
129
  if (isNaN(position)) {
129
130
  return `${args.options.fieldPosition} is not a number`;
130
131
  }
131
- if (args.options.listId && args.options.listTitle) {
132
- return 'Specify listId or listTitle, but not both';
133
- }
134
- if (!args.options.listId && !args.options.listTitle) {
135
- return 'Specify listId or listTitle, one is required';
136
- }
137
- if (args.options.viewId && args.options.viewTitle) {
138
- return 'Specify viewId or viewTitle, but not both';
139
- }
140
- if (!args.options.viewId && !args.options.viewTitle) {
141
- return 'Specify viewId or viewTitle, one is required';
142
- }
143
- if (args.options.fieldId && args.options.fieldTitle) {
144
- return 'Specify fieldId or fieldTitle, but not both';
145
- }
146
- if (!args.options.fieldId && !args.options.fieldTitle) {
147
- return 'Specify fieldId or fieldTitle, one is required';
148
- }
149
132
  return true;
150
133
  }));
134
+ }, _SpoListViewFieldSetCommand_initOptionSets = function _SpoListViewFieldSetCommand_initOptionSets() {
135
+ this.optionSets.push(['listId', 'listTitle'], ['viewId', 'viewTitle'], ['fieldId', 'fieldTitle']);
151
136
  };
152
137
  module.exports = new SpoListViewFieldSetCommand();
153
138
  //# sourceMappingURL=list-view-field-set.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 _SpoListViewGetCommand_instances, _SpoListViewGetCommand_initTelemetry, _SpoListViewGetCommand_initOptions, _SpoListViewGetCommand_initValidators;
16
+ var _SpoListViewGetCommand_instances, _SpoListViewGetCommand_initTelemetry, _SpoListViewGetCommand_initOptions, _SpoListViewGetCommand_initValidators, _SpoListViewGetCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const utils_1 = require("../../../../utils");
@@ -26,6 +26,7 @@ class SpoListViewGetCommand extends SpoCommand_1.default {
26
26
  __classPrivateFieldGet(this, _SpoListViewGetCommand_instances, "m", _SpoListViewGetCommand_initTelemetry).call(this);
27
27
  __classPrivateFieldGet(this, _SpoListViewGetCommand_instances, "m", _SpoListViewGetCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListViewGetCommand_instances, "m", _SpoListViewGetCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _SpoListViewGetCommand_instances, "m", _SpoListViewGetCommand_initOptionSets).call(this);
29
30
  }
30
31
  get name() {
31
32
  return commands_1.default.LIST_VIEW_GET;
@@ -92,25 +93,18 @@ _SpoListViewGetCommand_instances = new WeakSet(), _SpoListViewGetCommand_initTel
92
93
  if (isValidSharePointUrl !== true) {
93
94
  return isValidSharePointUrl;
94
95
  }
95
- if (!args.options.listId && !args.options.listTitle && !args.options.listUrl) {
96
- return `Specify listId, listTitle or listUrl`;
97
- }
98
96
  if (args.options.listId &&
99
97
  !utils_1.validation.isValidGuid(args.options.listId)) {
100
98
  return `${args.options.listId} in option listId is not a valid GUID`;
101
99
  }
102
- if (!args.options.viewId && !args.options.viewTitle) {
103
- return `Specify viewId or viewTitle`;
104
- }
105
- if (args.options.viewId && args.options.viewTitle) {
106
- return `Specify viewId or viewTitle but not both`;
107
- }
108
100
  if (args.options.viewId &&
109
101
  !utils_1.validation.isValidGuid(args.options.viewId)) {
110
102
  return `${args.options.viewId} in option viewId is not a valid GUID`;
111
103
  }
112
104
  return true;
113
105
  }));
106
+ }, _SpoListViewGetCommand_initOptionSets = function _SpoListViewGetCommand_initOptionSets() {
107
+ this.optionSets.push(['listId', 'listTitle', 'listUrl'], ['viewId', 'viewTitle']);
114
108
  };
115
109
  module.exports = new SpoListViewGetCommand();
116
110
  //# sourceMappingURL=list-view-get.js.map