@pnp/cli-microsoft365 6.0.0-beta.e9e0f02 → 6.0.0-beta.f1889e3

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 (191) hide show
  1. package/dist/Auth.js +1 -2
  2. package/dist/cli/Cli.js +1 -1
  3. package/dist/m365/aad/commands/app/app-add.js +4 -4
  4. package/dist/m365/aad/commands/app/app-get.js +4 -11
  5. package/dist/m365/aad/commands/app/app-remove.js +4 -11
  6. package/dist/m365/aad/commands/app/app-role-add.js +5 -10
  7. package/dist/m365/aad/commands/app/app-role-list.js +4 -24
  8. package/dist/m365/aad/commands/app/app-role-remove.js +4 -22
  9. package/dist/m365/aad/commands/app/app-set.js +4 -11
  10. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +4 -8
  11. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +4 -11
  12. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +4 -8
  13. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +4 -7
  14. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +4 -8
  15. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +0 -3
  16. package/dist/m365/aad/commands/o365group/o365group-teamify.js +4 -7
  17. package/dist/m365/aad/commands/o365group/o365group-user-add.js +4 -7
  18. package/dist/m365/aad/commands/o365group/o365group-user-remove.js +4 -7
  19. package/dist/m365/aad/commands/o365group/o365group-user-set.js +4 -7
  20. package/dist/m365/aad/commands/sp/sp-add.js +4 -8
  21. package/dist/m365/aad/commands/sp/sp-get.js +4 -8
  22. package/dist/m365/aad/commands/user/user-get.js +4 -9
  23. package/dist/m365/aad/commands/user/user-list.js +13 -2
  24. package/dist/m365/aad/commands/user/user-set.js +4 -7
  25. package/dist/m365/aad/commands.js +0 -1
  26. package/dist/m365/booking/commands/business/business-get.js +86 -0
  27. package/dist/m365/booking/commands/business/business-list.js +30 -0
  28. package/dist/m365/booking/commands.js +8 -0
  29. package/dist/m365/cli/commands/config/config-set.js +0 -1
  30. package/dist/m365/commands/commands.js +1 -0
  31. package/dist/m365/commands/request.js +153 -0
  32. package/dist/m365/graph/Changelog.js +3 -0
  33. package/dist/m365/graph/commands/changelog/changelog-list.js +160 -0
  34. package/dist/m365/graph/commands.js +1 -0
  35. package/dist/m365/onenote/commands/notebook/notebook-list.js +139 -0
  36. package/dist/m365/onenote/commands.js +7 -0
  37. package/dist/m365/outlook/commands/mail/mail-send.js +22 -6
  38. package/dist/m365/outlook/commands/message/message-list.js +4 -23
  39. package/dist/m365/outlook/commands/message/message-move.js +4 -31
  40. package/dist/m365/outlook/commands.js +1 -2
  41. package/dist/m365/pa/commands/app/app-get.js +4 -7
  42. package/dist/m365/planner/commands/bucket/bucket-add.js +4 -7
  43. package/dist/m365/planner/commands/bucket/bucket-list.js +4 -7
  44. package/dist/m365/planner/commands/plan/plan-add.js +4 -7
  45. package/dist/m365/planner/commands/plan/plan-list.js +4 -7
  46. package/dist/m365/planner/commands/task/task-add.js +4 -13
  47. package/dist/m365/planner/commands/task/task-get.js +7 -0
  48. package/dist/m365/pp/commands/environment/environment-list.js +1 -1
  49. package/dist/m365/pp/commands/managementapp/managementapp-add.js +4 -11
  50. package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +101 -0
  51. package/dist/m365/search/commands.js +2 -1
  52. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.16.0-beta.1.js +23 -0
  53. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  54. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +47 -0
  55. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021003_PKG_engines_node.js +48 -0
  56. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.0-beta.1.js +61 -0
  57. package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
  58. package/dist/m365/spfx/commands/spfx-doctor.js +90 -79
  59. package/dist/m365/spo/commands/app/app-deploy.js +4 -7
  60. package/dist/m365/spo/commands/app/app-get.js +4 -7
  61. package/dist/m365/spo/commands/contenttype/contenttype-get.js +4 -7
  62. package/dist/m365/spo/commands/contenttype/contenttype-remove.js +5 -14
  63. package/dist/m365/spo/commands/field/field-set.js +2 -9
  64. package/dist/m365/spo/commands/file/file-checkin.js +4 -7
  65. package/dist/m365/spo/commands/file/file-checkout.js +4 -7
  66. package/dist/m365/spo/commands/file/file-get.js +4 -7
  67. package/dist/m365/spo/commands/file/file-remove.js +4 -7
  68. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +4 -7
  69. package/dist/m365/spo/commands/group/group-remove.js +4 -7
  70. package/dist/m365/spo/commands/group/group-user-add.js +4 -13
  71. package/dist/m365/spo/commands/group/group-user-list.js +4 -7
  72. package/dist/m365/spo/commands/group/group-user-remove.js +4 -7
  73. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +1 -1
  74. package/dist/m365/spo/commands/list/list-contenttype-add.js +4 -7
  75. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +4 -7
  76. package/dist/m365/spo/commands/list/list-contenttype-list.js +4 -7
  77. package/dist/m365/spo/commands/list/list-contenttype-remove.js +4 -7
  78. package/dist/m365/spo/commands/list/list-get.js +4 -7
  79. package/dist/m365/spo/commands/list/list-label-get.js +4 -7
  80. package/dist/m365/spo/commands/list/list-label-set.js +4 -4
  81. package/dist/m365/spo/commands/list/list-remove.js +4 -7
  82. package/dist/m365/spo/commands/list/list-roleassignment-add.js +9 -0
  83. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +57 -28
  84. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +46 -21
  85. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +42 -17
  86. package/dist/m365/spo/commands/list/list-sitescript-get.js +4 -7
  87. package/dist/m365/spo/commands/list/list-view-field-add.js +4 -19
  88. package/dist/m365/spo/commands/list/list-view-field-remove.js +4 -19
  89. package/dist/m365/spo/commands/list/list-view-field-set.js +4 -19
  90. package/dist/m365/spo/commands/list/list-view-get.js +4 -10
  91. package/dist/m365/spo/commands/list/list-view-list.js +4 -7
  92. package/dist/m365/spo/commands/list/list-view-remove.js +4 -13
  93. package/dist/m365/spo/commands/list/list-view-set.js +4 -13
  94. package/dist/m365/spo/commands/list/list-webhook-add.js +4 -7
  95. package/dist/m365/spo/commands/list/list-webhook-get.js +4 -7
  96. package/dist/m365/spo/commands/list/list-webhook-remove.js +4 -7
  97. package/dist/m365/spo/commands/list/list-webhook-set.js +4 -7
  98. package/dist/m365/spo/commands/listitem/listitem-add.js +4 -7
  99. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +4 -7
  100. package/dist/m365/spo/commands/listitem/listitem-get.js +4 -7
  101. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +4 -7
  102. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +4 -7
  103. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +4 -7
  104. package/dist/m365/spo/commands/listitem/listitem-remove.js +4 -7
  105. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +206 -0
  106. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +46 -21
  107. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +45 -17
  108. package/dist/m365/spo/commands/listitem/listitem-set.js +4 -7
  109. package/dist/m365/spo/commands/site/site-apppermission-add.js +4 -4
  110. package/dist/m365/spo/commands/site/site-apppermission-remove.js +4 -9
  111. package/dist/m365/spo/commands/site/site-apppermission-set.js +4 -4
  112. package/dist/m365/spo/commands/term/term-add.js +4 -7
  113. package/dist/m365/spo/commands/term/term-get.js +4 -7
  114. package/dist/m365/spo/commands/term/term-group-get.js +4 -7
  115. package/dist/m365/spo/commands/term/term-list.js +4 -13
  116. package/dist/m365/spo/commands/term/term-set-add.js +4 -7
  117. package/dist/m365/spo/commands/term/term-set-get.js +4 -13
  118. package/dist/m365/spo/commands/term/term-set-list.js +4 -7
  119. package/dist/m365/spo/commands/user/user-get.js +4 -9
  120. package/dist/m365/spo/commands/user/user-remove.js +4 -7
  121. package/dist/m365/spo/commands/web/web-roleassignment-add.js +187 -0
  122. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +170 -0
  123. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +43 -13
  124. package/dist/m365/spo/commands.js +3 -0
  125. package/dist/m365/teams/commands/app/app-install.js +4 -11
  126. package/dist/m365/teams/commands/app/app-update.js +4 -7
  127. package/dist/m365/teams/commands/channel/channel-add.js +4 -7
  128. package/dist/m365/teams/commands/channel/channel-get.js +4 -22
  129. package/dist/m365/teams/commands/channel/channel-list.js +4 -7
  130. package/dist/m365/teams/commands/channel/channel-member-add.js +0 -4
  131. package/dist/m365/teams/commands/channel/channel-member-list.js +4 -17
  132. package/dist/m365/teams/commands/channel/channel-member-remove.js +0 -4
  133. package/dist/m365/teams/commands/channel/channel-member-set.js +4 -21
  134. package/dist/m365/teams/commands/channel/channel-remove.js +4 -7
  135. package/dist/m365/teams/commands/chat/chat-get.js +4 -17
  136. package/dist/m365/teams/commands/chat/chat-message-send.js +4 -17
  137. package/dist/m365/teams/commands/tab/tab-get.js +6 -21
  138. package/dist/m365/teams/commands/team/team-get.js +4 -7
  139. package/dist/m365/teams/commands/team/team-remove.js +5 -8
  140. package/dist/m365/teams/commands/team/team-unarchive.js +4 -7
  141. package/dist/m365/teams/commands/user/user-app-list.js +4 -7
  142. package/dist/m365/teams/commands.js +0 -3
  143. package/dist/m365/todo/commands/list/list-remove.js +4 -21
  144. package/dist/m365/todo/commands/list/list-set.js +4 -21
  145. package/dist/m365/todo/commands/task/task-add.js +4 -21
  146. package/dist/m365/todo/commands/task/task-list.js +4 -21
  147. package/dist/m365/todo/commands/task/task-remove.js +4 -21
  148. package/dist/m365/todo/commands/task/task-set.js +4 -7
  149. package/dist/request.js +6 -2
  150. package/dist/settingsNames.js +0 -1
  151. package/dist/utils/fsUtil.js +2 -4
  152. package/dist/utils/md.js +1 -1
  153. package/docs/docs/cmd/aad/app/app-add.md +1 -1
  154. package/docs/docs/cmd/aad/app/app-set.md +1 -1
  155. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-restore.md +1 -7
  156. package/docs/docs/cmd/adaptivecard/adaptivecard-send.md +0 -20
  157. package/docs/docs/cmd/booking/business/business-get.md +33 -0
  158. package/docs/docs/cmd/booking/business/business-list.md +21 -0
  159. package/docs/docs/cmd/cli/completion/completion-clink-update.md +1 -1
  160. package/docs/docs/cmd/cli/completion/completion-pwsh-setup.md +1 -1
  161. package/docs/docs/cmd/cli/completion/completion-pwsh-update.md +1 -1
  162. package/docs/docs/cmd/cli/completion/completion-sh-setup.md +1 -1
  163. package/docs/docs/cmd/cli/completion/completion-sh-update.md +1 -1
  164. package/docs/docs/cmd/graph/changelog/changelog-list.md +53 -0
  165. package/docs/docs/cmd/onenote/notebook/notebook-list.md +70 -0
  166. package/docs/docs/cmd/outlook/mail/mail-send.md +45 -8
  167. package/docs/docs/cmd/pp/environment/environment-list.md +1 -1
  168. package/docs/docs/cmd/request.md +76 -0
  169. package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +40 -0
  170. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  171. package/docs/docs/cmd/spfx/spfx-doctor.md +3 -3
  172. package/docs/docs/cmd/spo/field/field-set.md +0 -3
  173. package/docs/docs/cmd/spo/hubsite/hubsite-unregister.md +2 -2
  174. package/docs/docs/cmd/spo/list/list-roleassignment-add.md +2 -2
  175. package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +5 -2
  176. package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +9 -0
  177. package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +9 -0
  178. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.md +67 -0
  179. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +15 -6
  180. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.md +9 -0
  181. package/docs/docs/cmd/spo/site/site-add.md +2 -2
  182. package/docs/docs/cmd/spo/site/site-groupify.md +0 -6
  183. package/docs/docs/cmd/spo/web/web-roleassignment-add.md +57 -0
  184. package/docs/docs/cmd/spo/web/web-roleassignment-remove.md +54 -0
  185. package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +9 -0
  186. package/docs/docs/cmd/teams/channel/channel-member-add.md +0 -6
  187. package/docs/docs/cmd/teams/channel/channel-member-list.md +0 -6
  188. package/docs/docs/cmd/teams/channel/channel-member-remove.md +0 -6
  189. package/npm-shrinkwrap.json +200 -161
  190. package/package.json +11 -10
  191. 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 _SpoListViewSetCommand_instances, _SpoListViewSetCommand_initTelemetry, _SpoListViewSetCommand_initOptions, _SpoListViewSetCommand_initValidators;
16
+ var _SpoListViewSetCommand_instances, _SpoListViewSetCommand_initTelemetry, _SpoListViewSetCommand_initOptions, _SpoListViewSetCommand_initValidators, _SpoListViewSetCommand_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 SpoListViewSetCommand extends SpoCommand_1.default {
26
26
  __classPrivateFieldGet(this, _SpoListViewSetCommand_instances, "m", _SpoListViewSetCommand_initTelemetry).call(this);
27
27
  __classPrivateFieldGet(this, _SpoListViewSetCommand_instances, "m", _SpoListViewSetCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListViewSetCommand_instances, "m", _SpoListViewSetCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _SpoListViewSetCommand_instances, "m", _SpoListViewSetCommand_initOptionSets).call(this);
29
30
  }
30
31
  allowUnknownOptions() {
31
32
  return true;
@@ -106,28 +107,18 @@ _SpoListViewSetCommand_instances = new WeakSet(), _SpoListViewSetCommand_initTel
106
107
  if (isValidSharePointUrl !== true) {
107
108
  return isValidSharePointUrl;
108
109
  }
109
- if (!args.options.listId && !args.options.listTitle) {
110
- return `Specify listId or listTitle`;
111
- }
112
- if (args.options.listId && args.options.listTitle) {
113
- return `Specify listId or listTitle but not both`;
114
- }
115
110
  if (args.options.listId &&
116
111
  !utils_1.validation.isValidGuid(args.options.listId)) {
117
112
  return `${args.options.listId} in option listId is not a valid GUID`;
118
113
  }
119
- if (!args.options.id && !args.options.title) {
120
- return `Specify id or title`;
121
- }
122
- if (args.options.id && args.options.title) {
123
- return `Specify id or title but not both`;
124
- }
125
114
  if (args.options.id &&
126
115
  !utils_1.validation.isValidGuid(args.options.id)) {
127
116
  return `${args.options.id} in option id is not a valid GUID`;
128
117
  }
129
118
  return true;
130
119
  }));
120
+ }, _SpoListViewSetCommand_initOptionSets = function _SpoListViewSetCommand_initOptionSets() {
121
+ this.optionSets.push(['listId', 'listTitle'], ['id', 'title']);
131
122
  };
132
123
  module.exports = new SpoListViewSetCommand();
133
124
  //# sourceMappingURL=list-view-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 _SpoListWebhookAddCommand_instances, _SpoListWebhookAddCommand_initTelemetry, _SpoListWebhookAddCommand_initOptions, _SpoListWebhookAddCommand_initValidators;
16
+ var _SpoListWebhookAddCommand_instances, _SpoListWebhookAddCommand_initTelemetry, _SpoListWebhookAddCommand_initOptions, _SpoListWebhookAddCommand_initValidators, _SpoListWebhookAddCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const utils_1 = require("../../../../utils");
@@ -30,6 +30,7 @@ class SpoListWebhookAddCommand extends SpoCommand_1.default {
30
30
  __classPrivateFieldGet(this, _SpoListWebhookAddCommand_instances, "m", _SpoListWebhookAddCommand_initTelemetry).call(this);
31
31
  __classPrivateFieldGet(this, _SpoListWebhookAddCommand_instances, "m", _SpoListWebhookAddCommand_initOptions).call(this);
32
32
  __classPrivateFieldGet(this, _SpoListWebhookAddCommand_instances, "m", _SpoListWebhookAddCommand_initValidators).call(this);
33
+ __classPrivateFieldGet(this, _SpoListWebhookAddCommand_instances, "m", _SpoListWebhookAddCommand_initOptionSets).call(this);
33
34
  }
34
35
  get name() {
35
36
  return commands_1.default.LIST_WEBHOOK_ADD;
@@ -112,12 +113,6 @@ _SpoListWebhookAddCommand_instances = new WeakSet(), _SpoListWebhookAddCommand_i
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
  const parsedDateTime = Date.parse(args.options.expirationDateTime);
122
117
  if (args.options.expirationDateTime && !(!parsedDateTime) !== true) {
123
118
  return `Provide the date in one of the following formats:
@@ -131,6 +126,8 @@ _SpoListWebhookAddCommand_instances = new WeakSet(), _SpoListWebhookAddCommand_i
131
126
  }
132
127
  return true;
133
128
  }));
129
+ }, _SpoListWebhookAddCommand_initOptionSets = function _SpoListWebhookAddCommand_initOptionSets() {
130
+ this.optionSets.push(['listId', 'listTitle']);
134
131
  };
135
132
  module.exports = new SpoListWebhookAddCommand();
136
133
  //# sourceMappingURL=list-webhook-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 _SpoListWebhookGetCommand_instances, _SpoListWebhookGetCommand_initTelemetry, _SpoListWebhookGetCommand_initOptions, _SpoListWebhookGetCommand_initValidators;
16
+ var _SpoListWebhookGetCommand_instances, _SpoListWebhookGetCommand_initTelemetry, _SpoListWebhookGetCommand_initOptions, _SpoListWebhookGetCommand_initValidators, _SpoListWebhookGetCommand_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 SpoListWebhookGetCommand extends SpoCommand_1.default {
26
26
  __classPrivateFieldGet(this, _SpoListWebhookGetCommand_instances, "m", _SpoListWebhookGetCommand_initTelemetry).call(this);
27
27
  __classPrivateFieldGet(this, _SpoListWebhookGetCommand_instances, "m", _SpoListWebhookGetCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListWebhookGetCommand_instances, "m", _SpoListWebhookGetCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _SpoListWebhookGetCommand_instances, "m", _SpoListWebhookGetCommand_initOptionSets).call(this);
29
30
  }
30
31
  get name() {
31
32
  return commands_1.default.LIST_WEBHOOK_GET;
@@ -98,14 +99,10 @@ _SpoListWebhookGetCommand_instances = new WeakSet(), _SpoListWebhookGetCommand_i
98
99
  return `${args.options.listId} is not a valid GUID`;
99
100
  }
100
101
  }
101
- if (args.options.listId && args.options.listTitle) {
102
- return 'Specify listId or listTitle, but not both';
103
- }
104
- if (!args.options.listId && !args.options.listTitle) {
105
- return 'Specify listId or listTitle, one is required';
106
- }
107
102
  return true;
108
103
  }));
104
+ }, _SpoListWebhookGetCommand_initOptionSets = function _SpoListWebhookGetCommand_initOptionSets() {
105
+ this.optionSets.push(['listId', 'listTitle']);
109
106
  };
110
107
  module.exports = new SpoListWebhookGetCommand();
111
108
  //# sourceMappingURL=list-webhook-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 _SpoListWebhookRemoveCommand_instances, _SpoListWebhookRemoveCommand_initTelemetry, _SpoListWebhookRemoveCommand_initOptions, _SpoListWebhookRemoveCommand_initValidators;
16
+ var _SpoListWebhookRemoveCommand_instances, _SpoListWebhookRemoveCommand_initTelemetry, _SpoListWebhookRemoveCommand_initOptions, _SpoListWebhookRemoveCommand_initValidators, _SpoListWebhookRemoveCommand_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 SpoListWebhookRemoveCommand extends SpoCommand_1.default {
27
27
  __classPrivateFieldGet(this, _SpoListWebhookRemoveCommand_instances, "m", _SpoListWebhookRemoveCommand_initTelemetry).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListWebhookRemoveCommand_instances, "m", _SpoListWebhookRemoveCommand_initOptions).call(this);
29
29
  __classPrivateFieldGet(this, _SpoListWebhookRemoveCommand_instances, "m", _SpoListWebhookRemoveCommand_initValidators).call(this);
30
+ __classPrivateFieldGet(this, _SpoListWebhookRemoveCommand_instances, "m", _SpoListWebhookRemoveCommand_initOptionSets).call(this);
30
31
  }
31
32
  get name() {
32
33
  return commands_1.default.LIST_WEBHOOK_REMOVE;
@@ -119,14 +120,10 @@ _SpoListWebhookRemoveCommand_instances = new WeakSet(), _SpoListWebhookRemoveCom
119
120
  return `${args.options.listId} is not a valid GUID`;
120
121
  }
121
122
  }
122
- if (args.options.listId && args.options.listTitle) {
123
- return 'Specify listId or listTitle, but not both';
124
- }
125
- if (!args.options.listId && !args.options.listTitle) {
126
- return 'Specify listId or listTitle, one is required';
127
- }
128
123
  return true;
129
124
  }));
125
+ }, _SpoListWebhookRemoveCommand_initOptionSets = function _SpoListWebhookRemoveCommand_initOptionSets() {
126
+ this.optionSets.push(['listId', 'listTitle']);
130
127
  };
131
128
  module.exports = new SpoListWebhookRemoveCommand();
132
129
  //# sourceMappingURL=list-webhook-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 _SpoListWebhookSetCommand_instances, _SpoListWebhookSetCommand_initTelemetry, _SpoListWebhookSetCommand_initOptions, _SpoListWebhookSetCommand_initValidators;
16
+ var _SpoListWebhookSetCommand_instances, _SpoListWebhookSetCommand_initTelemetry, _SpoListWebhookSetCommand_initOptions, _SpoListWebhookSetCommand_initValidators, _SpoListWebhookSetCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const chalk = require("chalk");
19
19
  const request_1 = require("../../../../request");
@@ -27,6 +27,7 @@ class SpoListWebhookSetCommand extends SpoCommand_1.default {
27
27
  __classPrivateFieldGet(this, _SpoListWebhookSetCommand_instances, "m", _SpoListWebhookSetCommand_initTelemetry).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListWebhookSetCommand_instances, "m", _SpoListWebhookSetCommand_initOptions).call(this);
29
29
  __classPrivateFieldGet(this, _SpoListWebhookSetCommand_instances, "m", _SpoListWebhookSetCommand_initValidators).call(this);
30
+ __classPrivateFieldGet(this, _SpoListWebhookSetCommand_instances, "m", _SpoListWebhookSetCommand_initOptionSets).call(this);
30
31
  }
31
32
  get name() {
32
33
  return commands_1.default.LIST_WEBHOOK_SET;
@@ -108,12 +109,6 @@ _SpoListWebhookSetCommand_instances = new WeakSet(), _SpoListWebhookSetCommand_i
108
109
  return `${args.options.listId} is not a valid GUID`;
109
110
  }
110
111
  }
111
- if (args.options.listId && args.options.listTitle) {
112
- return 'Specify listId or listTitle, but not both';
113
- }
114
- if (!args.options.listId && !args.options.listTitle) {
115
- return 'Specify listId or listTitle, one is required';
116
- }
117
112
  if (!args.options.notificationUrl && !args.options.expirationDateTime) {
118
113
  return 'Specify notificationUrl, expirationDateTime or both, at least one is required';
119
114
  }
@@ -127,6 +122,8 @@ _SpoListWebhookSetCommand_instances = new WeakSet(), _SpoListWebhookSetCommand_i
127
122
  }
128
123
  return true;
129
124
  }));
125
+ }, _SpoListWebhookSetCommand_initOptionSets = function _SpoListWebhookSetCommand_initOptionSets() {
126
+ this.optionSets.push(['listId', 'listTitle']);
130
127
  };
131
128
  module.exports = new SpoListWebhookSetCommand();
132
129
  //# sourceMappingURL=list-webhook-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 _SpoListItemAddCommand_instances, _SpoListItemAddCommand_initTelemetry, _SpoListItemAddCommand_initOptions, _SpoListItemAddCommand_initValidators, _SpoListItemAddCommand_initTypes;
16
+ var _SpoListItemAddCommand_instances, _SpoListItemAddCommand_initTelemetry, _SpoListItemAddCommand_initOptions, _SpoListItemAddCommand_initValidators, _SpoListItemAddCommand_initTypes, _SpoListItemAddCommand_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 SpoListItemAddCommand extends SpoCommand_1.default {
27
27
  __classPrivateFieldGet(this, _SpoListItemAddCommand_instances, "m", _SpoListItemAddCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListItemAddCommand_instances, "m", _SpoListItemAddCommand_initValidators).call(this);
29
29
  __classPrivateFieldGet(this, _SpoListItemAddCommand_instances, "m", _SpoListItemAddCommand_initTypes).call(this);
30
+ __classPrivateFieldGet(this, _SpoListItemAddCommand_instances, "m", _SpoListItemAddCommand_initOptionSets).call(this);
30
31
  }
31
32
  allowUnknownOptions() {
32
33
  return true;
@@ -211,12 +212,6 @@ _SpoListItemAddCommand_instances = new WeakSet(), _SpoListItemAddCommand_initTel
211
212
  if (isValidSharePointUrl !== true) {
212
213
  return isValidSharePointUrl;
213
214
  }
214
- if (!args.options.listId && !args.options.listTitle) {
215
- return `Specify listId or listTitle`;
216
- }
217
- if (args.options.listId && args.options.listTitle) {
218
- return `Specify listId or listTitle but not both`;
219
- }
220
215
  if (args.options.listId &&
221
216
  !utils_1.validation.isValidGuid(args.options.listId)) {
222
217
  return `${args.options.listId} in option listId is not a valid GUID`;
@@ -225,6 +220,8 @@ _SpoListItemAddCommand_instances = new WeakSet(), _SpoListItemAddCommand_initTel
225
220
  }));
226
221
  }, _SpoListItemAddCommand_initTypes = function _SpoListItemAddCommand_initTypes() {
227
222
  this.types.string.push('webUrl', 'listId', 'listTitle', 'contentType', 'folder');
223
+ }, _SpoListItemAddCommand_initOptionSets = function _SpoListItemAddCommand_initOptionSets() {
224
+ this.optionSets.push(['listId', 'listTitle']);
228
225
  };
229
226
  module.exports = new SpoListItemAddCommand();
230
227
  //# sourceMappingURL=listitem-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 _SpoListItemAttachmentListCommand_instances, _SpoListItemAttachmentListCommand_initTelemetry, _SpoListItemAttachmentListCommand_initOptions, _SpoListItemAttachmentListCommand_initValidators;
16
+ var _SpoListItemAttachmentListCommand_instances, _SpoListItemAttachmentListCommand_initTelemetry, _SpoListItemAttachmentListCommand_initOptions, _SpoListItemAttachmentListCommand_initValidators, _SpoListItemAttachmentListCommand_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 SpoListItemAttachmentListCommand extends SpoCommand_1.default {
26
26
  __classPrivateFieldGet(this, _SpoListItemAttachmentListCommand_instances, "m", _SpoListItemAttachmentListCommand_initTelemetry).call(this);
27
27
  __classPrivateFieldGet(this, _SpoListItemAttachmentListCommand_instances, "m", _SpoListItemAttachmentListCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListItemAttachmentListCommand_instances, "m", _SpoListItemAttachmentListCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _SpoListItemAttachmentListCommand_instances, "m", _SpoListItemAttachmentListCommand_initOptionSets).call(this);
29
30
  }
30
31
  get name() {
31
32
  return commands_1.default.LISTITEM_ATTACHMENT_LIST;
@@ -88,12 +89,6 @@ _SpoListItemAttachmentListCommand_instances = new WeakSet(), _SpoListItemAttachm
88
89
  if (isValidSharePointUrl !== true) {
89
90
  return isValidSharePointUrl;
90
91
  }
91
- if (!args.options.listId && !args.options.listTitle) {
92
- return `Specify listId or listTitle`;
93
- }
94
- if (args.options.listId && args.options.listTitle) {
95
- return `Specify listId or listTitle but not both`;
96
- }
97
92
  if (args.options.listId && !utils_1.validation.isValidGuid(args.options.listId)) {
98
93
  return `${args.options.listId} in option listId is not a valid GUID`;
99
94
  }
@@ -102,6 +97,8 @@ _SpoListItemAttachmentListCommand_instances = new WeakSet(), _SpoListItemAttachm
102
97
  }
103
98
  return true;
104
99
  }));
100
+ }, _SpoListItemAttachmentListCommand_initOptionSets = function _SpoListItemAttachmentListCommand_initOptionSets() {
101
+ this.optionSets.push(['listId', 'listTitle']);
105
102
  };
106
103
  module.exports = new SpoListItemAttachmentListCommand();
107
104
  //# sourceMappingURL=listitem-attachment-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 _SpoListItemGetCommand_instances, _SpoListItemGetCommand_initTelemetry, _SpoListItemGetCommand_initOptions, _SpoListItemGetCommand_initValidators, _SpoListItemGetCommand_initTypes;
16
+ var _SpoListItemGetCommand_instances, _SpoListItemGetCommand_initTelemetry, _SpoListItemGetCommand_initOptions, _SpoListItemGetCommand_initValidators, _SpoListItemGetCommand_initTypes, _SpoListItemGetCommand_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 SpoListItemGetCommand extends SpoCommand_1.default {
27
27
  __classPrivateFieldGet(this, _SpoListItemGetCommand_instances, "m", _SpoListItemGetCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListItemGetCommand_instances, "m", _SpoListItemGetCommand_initValidators).call(this);
29
29
  __classPrivateFieldGet(this, _SpoListItemGetCommand_instances, "m", _SpoListItemGetCommand_initTypes).call(this);
30
+ __classPrivateFieldGet(this, _SpoListItemGetCommand_instances, "m", _SpoListItemGetCommand_initOptionSets).call(this);
30
31
  }
31
32
  allowUnknownOptions() {
32
33
  return true;
@@ -89,12 +90,6 @@ _SpoListItemGetCommand_instances = new WeakSet(), _SpoListItemGetCommand_initTel
89
90
  if (isValidSharePointUrl !== true) {
90
91
  return isValidSharePointUrl;
91
92
  }
92
- if (!args.options.listId && !args.options.listTitle) {
93
- return `Specify listId or listTitle`;
94
- }
95
- if (args.options.listId && args.options.listTitle) {
96
- return `Specify listId or listTitle but not both`;
97
- }
98
93
  if (args.options.listId &&
99
94
  !utils_1.validation.isValidGuid(args.options.listId)) {
100
95
  return `${args.options.listId} in option listId is not a valid GUID`;
@@ -106,6 +101,8 @@ _SpoListItemGetCommand_instances = new WeakSet(), _SpoListItemGetCommand_initTel
106
101
  }));
107
102
  }, _SpoListItemGetCommand_initTypes = function _SpoListItemGetCommand_initTypes() {
108
103
  this.types.string.push('webUrl', 'listId', 'listTitle', 'id', 'properties');
104
+ }, _SpoListItemGetCommand_initOptionSets = function _SpoListItemGetCommand_initOptionSets() {
105
+ this.optionSets.push(['listId', 'listTitle']);
109
106
  };
110
107
  module.exports = new SpoListItemGetCommand();
111
108
  //# sourceMappingURL=listitem-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 _SpoListItemIsRecordCommand_instances, _SpoListItemIsRecordCommand_initTelemetry, _SpoListItemIsRecordCommand_initOptions, _SpoListItemIsRecordCommand_initValidators;
16
+ var _SpoListItemIsRecordCommand_instances, _SpoListItemIsRecordCommand_initTelemetry, _SpoListItemIsRecordCommand_initOptions, _SpoListItemIsRecordCommand_initValidators, _SpoListItemIsRecordCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const Auth_1 = require("../../../../Auth");
19
19
  const Command_1 = require("../../../../Command");
@@ -29,6 +29,7 @@ class SpoListItemIsRecordCommand extends SpoCommand_1.default {
29
29
  __classPrivateFieldGet(this, _SpoListItemIsRecordCommand_instances, "m", _SpoListItemIsRecordCommand_initTelemetry).call(this);
30
30
  __classPrivateFieldGet(this, _SpoListItemIsRecordCommand_instances, "m", _SpoListItemIsRecordCommand_initOptions).call(this);
31
31
  __classPrivateFieldGet(this, _SpoListItemIsRecordCommand_instances, "m", _SpoListItemIsRecordCommand_initValidators).call(this);
32
+ __classPrivateFieldGet(this, _SpoListItemIsRecordCommand_instances, "m", _SpoListItemIsRecordCommand_initOptionSets).call(this);
32
33
  }
33
34
  get name() {
34
35
  return commands_1.default.LISTITEM_ISRECORD;
@@ -148,18 +149,14 @@ _SpoListItemIsRecordCommand_instances = new WeakSet(), _SpoListItemIsRecordComma
148
149
  if (isValidSharePointUrl !== true) {
149
150
  return isValidSharePointUrl;
150
151
  }
151
- if (!args.options.listId && !args.options.listTitle) {
152
- return `Specify listId or listTitle`;
153
- }
154
- if (args.options.listId && args.options.listTitle) {
155
- return `Specify listId or listTitle but not both`;
156
- }
157
152
  if (args.options.listId &&
158
153
  !utils_1.validation.isValidGuid(args.options.listId)) {
159
154
  return `${args.options.listId} in option listId is not a valid GUID`;
160
155
  }
161
156
  return true;
162
157
  }));
158
+ }, _SpoListItemIsRecordCommand_initOptionSets = function _SpoListItemIsRecordCommand_initOptionSets() {
159
+ this.optionSets.push(['listId', 'listTitle']);
163
160
  };
164
161
  module.exports = new SpoListItemIsRecordCommand();
165
162
  //# sourceMappingURL=listitem-isrecord.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 _SpoListItemRecordDeclareCommand_instances, _SpoListItemRecordDeclareCommand_initTelemetry, _SpoListItemRecordDeclareCommand_initOptions, _SpoListItemRecordDeclareCommand_initValidators;
16
+ var _SpoListItemRecordDeclareCommand_instances, _SpoListItemRecordDeclareCommand_initTelemetry, _SpoListItemRecordDeclareCommand_initOptions, _SpoListItemRecordDeclareCommand_initValidators, _SpoListItemRecordDeclareCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const Command_1 = require("../../../../Command");
19
19
  const config_1 = require("../../../../config");
@@ -28,6 +28,7 @@ class SpoListItemRecordDeclareCommand extends SpoCommand_1.default {
28
28
  __classPrivateFieldGet(this, _SpoListItemRecordDeclareCommand_instances, "m", _SpoListItemRecordDeclareCommand_initTelemetry).call(this);
29
29
  __classPrivateFieldGet(this, _SpoListItemRecordDeclareCommand_instances, "m", _SpoListItemRecordDeclareCommand_initOptions).call(this);
30
30
  __classPrivateFieldGet(this, _SpoListItemRecordDeclareCommand_instances, "m", _SpoListItemRecordDeclareCommand_initValidators).call(this);
31
+ __classPrivateFieldGet(this, _SpoListItemRecordDeclareCommand_instances, "m", _SpoListItemRecordDeclareCommand_initOptionSets).call(this);
31
32
  }
32
33
  get name() {
33
34
  return commands_1.default.LISTITEM_RECORD_DECLARE;
@@ -125,12 +126,6 @@ _SpoListItemRecordDeclareCommand_instances = new WeakSet(), _SpoListItemRecordDe
125
126
  if (isValidSharePointUrl !== true) {
126
127
  return isValidSharePointUrl;
127
128
  }
128
- if (!args.options.listId && !args.options.listTitle) {
129
- return `Specify listId or listTitle`;
130
- }
131
- if (args.options.listId && args.options.listTitle) {
132
- return `Specify listId or listTitle but not both`;
133
- }
134
129
  if (args.options.listId && !utils_1.validation.isValidGuid(args.options.listId)) {
135
130
  return `${args.options.listId} in option listId is not a valid GUID`;
136
131
  }
@@ -146,6 +141,8 @@ _SpoListItemRecordDeclareCommand_instances = new WeakSet(), _SpoListItemRecordDe
146
141
  }
147
142
  return true;
148
143
  }));
144
+ }, _SpoListItemRecordDeclareCommand_initOptionSets = function _SpoListItemRecordDeclareCommand_initOptionSets() {
145
+ this.optionSets.push(['listId', 'listTitle']);
149
146
  };
150
147
  module.exports = new SpoListItemRecordDeclareCommand();
151
148
  //# sourceMappingURL=listitem-record-declare.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 _SpoListItemRecordUndeclareCommand_instances, _SpoListItemRecordUndeclareCommand_initTelemetry, _SpoListItemRecordUndeclareCommand_initOptions, _SpoListItemRecordUndeclareCommand_initValidators;
16
+ var _SpoListItemRecordUndeclareCommand_instances, _SpoListItemRecordUndeclareCommand_initTelemetry, _SpoListItemRecordUndeclareCommand_initOptions, _SpoListItemRecordUndeclareCommand_initValidators, _SpoListItemRecordUndeclareCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const config_1 = require("../../../../config");
19
19
  const request_1 = require("../../../../request");
@@ -27,6 +27,7 @@ class SpoListItemRecordUndeclareCommand extends SpoCommand_1.default {
27
27
  __classPrivateFieldGet(this, _SpoListItemRecordUndeclareCommand_instances, "m", _SpoListItemRecordUndeclareCommand_initTelemetry).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListItemRecordUndeclareCommand_instances, "m", _SpoListItemRecordUndeclareCommand_initOptions).call(this);
29
29
  __classPrivateFieldGet(this, _SpoListItemRecordUndeclareCommand_instances, "m", _SpoListItemRecordUndeclareCommand_initValidators).call(this);
30
+ __classPrivateFieldGet(this, _SpoListItemRecordUndeclareCommand_instances, "m", _SpoListItemRecordUndeclareCommand_initOptionSets).call(this);
30
31
  }
31
32
  get name() {
32
33
  return commands_1.default.LISTITEM_RECORD_UNDECLARE;
@@ -116,18 +117,14 @@ _SpoListItemRecordUndeclareCommand_instances = new WeakSet(), _SpoListItemRecord
116
117
  if (isValidSharePointUrl !== true) {
117
118
  return isValidSharePointUrl;
118
119
  }
119
- if (!args.options.listId && !args.options.listTitle) {
120
- return `Specify listId or listTitle`;
121
- }
122
- if (args.options.listId && args.options.listTitle) {
123
- return `Specify listId or listTitle but not both`;
124
- }
125
120
  if (args.options.listId &&
126
121
  !utils_1.validation.isValidGuid(args.options.listId)) {
127
122
  return `${args.options.listId} in option listId is not a valid GUID`;
128
123
  }
129
124
  return true;
130
125
  }));
126
+ }, _SpoListItemRecordUndeclareCommand_initOptionSets = function _SpoListItemRecordUndeclareCommand_initOptionSets() {
127
+ this.optionSets.push(['listId', 'listTitle']);
131
128
  };
132
129
  module.exports = new SpoListItemRecordUndeclareCommand();
133
130
  //# sourceMappingURL=listitem-record-undeclare.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 _SpoListItemRemoveCommand_instances, _SpoListItemRemoveCommand_initTelemetry, _SpoListItemRemoveCommand_initOptions, _SpoListItemRemoveCommand_initValidators;
16
+ var _SpoListItemRemoveCommand_instances, _SpoListItemRemoveCommand_initTelemetry, _SpoListItemRemoveCommand_initOptions, _SpoListItemRemoveCommand_initValidators, _SpoListItemRemoveCommand_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 SpoListItemRemoveCommand extends SpoCommand_1.default {
27
27
  __classPrivateFieldGet(this, _SpoListItemRemoveCommand_instances, "m", _SpoListItemRemoveCommand_initTelemetry).call(this);
28
28
  __classPrivateFieldGet(this, _SpoListItemRemoveCommand_instances, "m", _SpoListItemRemoveCommand_initOptions).call(this);
29
29
  __classPrivateFieldGet(this, _SpoListItemRemoveCommand_instances, "m", _SpoListItemRemoveCommand_initValidators).call(this);
30
+ __classPrivateFieldGet(this, _SpoListItemRemoveCommand_instances, "m", _SpoListItemRemoveCommand_initOptionSets).call(this);
30
31
  }
31
32
  get name() {
32
33
  return commands_1.default.LISTITEM_REMOVE;
@@ -124,14 +125,10 @@ _SpoListItemRemoveCommand_instances = new WeakSet(), _SpoListItemRemoveCommand_i
124
125
  !utils_1.validation.isValidGuid(args.options.listId)) {
125
126
  return `${args.options.listId} is not a valid GUID`;
126
127
  }
127
- if (args.options.listId && args.options.listTitle) {
128
- return 'Specify id or title, but not both';
129
- }
130
- if (!args.options.listId && !args.options.listTitle) {
131
- return 'Specify id or title';
132
- }
133
128
  return true;
134
129
  }));
130
+ }, _SpoListItemRemoveCommand_initOptionSets = function _SpoListItemRemoveCommand_initOptionSets() {
131
+ this.optionSets.push(['listId', 'listTitle']);
135
132
  };
136
133
  module.exports = new SpoListItemRemoveCommand();
137
134
  //# sourceMappingURL=listitem-remove.js.map