@pnp/cli-microsoft365 6.0.0-beta.443926a → 6.0.0-beta.78fdd2c

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 (484) hide show
  1. package/dist/Command.js +186 -93
  2. package/dist/cli/Cli.js +11 -66
  3. package/dist/m365/aad/commands/app/app-add.js +75 -84
  4. package/dist/m365/aad/commands/app/app-get.js +37 -20
  5. package/dist/m365/aad/commands/app/app-remove.js +38 -21
  6. package/dist/m365/aad/commands/app/app-role-add.js +39 -23
  7. package/dist/m365/aad/commands/app/app-role-list.js +37 -19
  8. package/dist/m365/aad/commands/app/app-role-remove.js +40 -26
  9. package/dist/m365/aad/commands/app/app-set.js +47 -36
  10. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +48 -32
  11. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +43 -25
  12. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +51 -36
  13. package/dist/m365/aad/commands/group/group-list.js +21 -12
  14. package/dist/m365/aad/commands/groupsetting/groupsetting-add.js +30 -17
  15. package/dist/m365/aad/commands/groupsetting/groupsetting-get.js +30 -12
  16. package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +39 -20
  17. package/dist/m365/aad/commands/groupsetting/groupsetting-set.js +30 -12
  18. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +40 -21
  19. package/dist/m365/aad/commands/o365group/o365group-add.js +64 -54
  20. package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +30 -12
  21. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +43 -25
  22. package/dist/m365/aad/commands/o365group/o365group-get.js +32 -15
  23. package/dist/m365/aad/commands/o365group/o365group-list.js +49 -33
  24. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +23 -14
  25. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +26 -18
  26. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-remove.js +40 -32
  27. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +46 -28
  28. package/dist/m365/aad/commands/o365group/o365group-remove.js +42 -24
  29. package/dist/m365/aad/commands/o365group/o365group-renew.js +30 -12
  30. package/dist/m365/aad/commands/o365group/o365group-set.js +54 -30
  31. package/dist/m365/aad/commands/o365group/o365group-teamify.js +40 -15
  32. package/dist/m365/aad/commands/o365group/o365group-user-add.js +46 -29
  33. package/dist/m365/aad/commands/o365group/o365group-user-list.js +40 -21
  34. package/dist/m365/aad/commands/o365group/o365group-user-remove.js +36 -28
  35. package/dist/m365/aad/commands/o365group/o365group-user-set.js +46 -29
  36. package/dist/m365/aad/commands/oauth2grant/oauth2grant-add.js +34 -18
  37. package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +30 -12
  38. package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +18 -12
  39. package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +18 -12
  40. package/dist/m365/aad/commands/policy/policy-list.js +38 -18
  41. package/dist/m365/aad/commands/siteclassification/siteclassification-disable.js +23 -14
  42. package/dist/m365/aad/commands/siteclassification/siteclassification-enable.js +30 -24
  43. package/dist/m365/aad/commands/siteclassification/siteclassification-set.js +46 -29
  44. package/dist/m365/aad/commands/sp/sp-add.js +43 -25
  45. package/dist/m365/aad/commands/sp/sp-get.js +43 -25
  46. package/dist/m365/aad/commands/user/user-get.js +45 -28
  47. package/dist/m365/aad/commands/user/user-hibp.js +41 -23
  48. package/dist/m365/aad/commands/user/user-list.js +22 -14
  49. package/dist/m365/aad/commands/user/user-password-validate.js +16 -9
  50. package/dist/m365/aad/commands/user/user-set.js +43 -25
  51. package/dist/m365/aad/commands/user/user-signin-list.js +46 -29
  52. package/dist/m365/adaptivecard/commands/adaptivecard-send.js +54 -40
  53. package/dist/m365/app/commands/app-open.js +22 -21
  54. package/dist/m365/base/AppCommand.js +29 -13
  55. package/dist/m365/base/DateAndPeriodBasedReport.js +41 -24
  56. package/dist/m365/base/PeriodBasedReport.js +37 -18
  57. package/dist/m365/base/SpoCommand.js +1 -1
  58. package/dist/m365/cli/commands/cli-consent.js +38 -18
  59. package/dist/m365/cli/commands/cli-issue.js +26 -18
  60. package/dist/m365/cli/commands/completion/completion-pwsh-setup.js +16 -9
  61. package/dist/m365/cli/commands/config/config-get.js +38 -18
  62. package/dist/m365/cli/commands/config/config-reset.js +38 -18
  63. package/dist/m365/cli/commands/config/config-set.js +38 -21
  64. package/dist/m365/commands/login.js +54 -42
  65. package/dist/m365/file/commands/convert/convert-pdf.js +32 -15
  66. package/dist/m365/file/commands/file-add.js +35 -12
  67. package/dist/m365/file/commands/file-list.js +31 -13
  68. package/dist/m365/flow/commands/environment/environment-get.js +16 -9
  69. package/dist/m365/flow/commands/flow-disable.js +20 -15
  70. package/dist/m365/flow/commands/flow-enable.js +20 -15
  71. package/dist/m365/flow/commands/flow-export.js +56 -43
  72. package/dist/m365/flow/commands/flow-get.js +20 -15
  73. package/dist/m365/flow/commands/flow-list.js +25 -17
  74. package/dist/m365/flow/commands/flow-remove.js +44 -27
  75. package/dist/m365/flow/commands/run/run-cancel.js +36 -21
  76. package/dist/m365/flow/commands/run/run-get.js +20 -15
  77. package/dist/m365/flow/commands/run/run-list.js +18 -12
  78. package/dist/m365/flow/commands/run/run-resubmit.js +43 -26
  79. package/dist/m365/graph/commands/schemaextension/schemaextension-add.js +41 -27
  80. package/dist/m365/graph/commands/schemaextension/schemaextension-get.js +16 -9
  81. package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +47 -30
  82. package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +25 -17
  83. package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +63 -48
  84. package/dist/m365/graph/commands/subscription/subscription-add.js +52 -36
  85. package/dist/m365/outlook/commands/mail/mail-send.js +48 -32
  86. package/dist/m365/outlook/commands/message/message-list.js +42 -23
  87. package/dist/m365/outlook/commands/message/message-move.js +52 -36
  88. package/dist/m365/outlook/commands/room/room-list.js +23 -14
  89. package/dist/m365/pa/commands/app/app-get.js +40 -21
  90. package/dist/m365/pa/commands/app/app-list.js +40 -21
  91. package/dist/m365/pa/commands/app/app-remove.js +39 -20
  92. package/dist/m365/pa/commands/connector/connector-export.js +41 -18
  93. package/dist/m365/pa/commands/connector/connector-list.js +16 -9
  94. package/dist/m365/pa/commands/environment/environment-get.js +16 -9
  95. package/dist/m365/pa/commands/pcf/pcf-init.js +53 -50
  96. package/dist/m365/pa/commands/solution/solution-init.js +45 -38
  97. package/dist/m365/pa/commands/solution/solution-reference-add.js +40 -25
  98. package/dist/m365/planner/commands/bucket/bucket-add.js +55 -48
  99. package/dist/m365/planner/commands/bucket/bucket-get.js +50 -52
  100. package/dist/m365/planner/commands/bucket/bucket-list.js +52 -43
  101. package/dist/m365/planner/commands/bucket/bucket-remove.js +66 -62
  102. package/dist/m365/planner/commands/bucket/bucket-set.js +68 -65
  103. package/dist/m365/planner/commands/plan/plan-add.js +48 -32
  104. package/dist/m365/planner/commands/plan/plan-get.js +55 -44
  105. package/dist/m365/planner/commands/plan/plan-list.js +42 -23
  106. package/dist/m365/planner/commands/plan/plan-remove.js +43 -36
  107. package/dist/m365/planner/commands/task/task-add.js +59 -65
  108. package/dist/m365/planner/commands/task/task-checklistitem-add.js +23 -16
  109. package/dist/m365/planner/commands/task/task-checklistitem-list.js +18 -11
  110. package/dist/m365/planner/commands/task/task-checklistitem-remove.js +21 -14
  111. package/dist/m365/planner/commands/task/task-get.js +48 -52
  112. package/dist/m365/planner/commands/task/task-list.js +58 -51
  113. package/dist/m365/planner/commands/task/task-reference-add.js +39 -13
  114. package/dist/m365/planner/commands/task/task-reference-list.js +18 -11
  115. package/dist/m365/planner/commands/task/task-reference-remove.js +40 -25
  116. package/dist/m365/planner/commands/task/task-remove.js +46 -23
  117. package/dist/m365/planner/commands/task/task-set.js +55 -61
  118. package/dist/m365/planner/commands/tenant/tenant-settings-set.js +59 -44
  119. package/dist/m365/planner/commands.js +0 -2
  120. package/dist/m365/pp/commands/environment/environment-list.js +23 -9
  121. package/dist/m365/pp/commands/managementapp/managementapp-add.js +37 -19
  122. package/dist/m365/search/commands/externalconnection/externalconnection-add.js +43 -26
  123. package/dist/m365/search/commands/externalconnection/externalconnection-get.js +29 -23
  124. package/dist/m365/spfx/commands/package/package-generate.js +46 -38
  125. package/dist/m365/spfx/commands/project/base-project-command.js +4 -0
  126. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.15.2.js +23 -0
  127. package/dist/m365/spfx/commands/project/project-doctor.js +41 -23
  128. package/dist/m365/spfx/commands/project/project-externalize.js +15 -9
  129. package/dist/m365/spfx/commands/project/project-model/EsLintRcJs.js +3 -0
  130. package/dist/m365/spfx/commands/project/project-model/index.js +1 -0
  131. package/dist/m365/spfx/commands/project/project-rename.js +23 -18
  132. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js +17 -0
  133. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002026_DEVDEP_typescript.js +14 -0
  134. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012020_TSC_noImplicitAny.js +46 -0
  135. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN025001_ESLINTRCJS_overrides.js +64 -0
  136. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +433 -0
  137. package/dist/m365/spfx/commands/project/project-upgrade.js +55 -40
  138. package/dist/m365/spfx/commands/spfx-doctor.js +39 -19
  139. package/dist/m365/spo/commands/app/app-add.js +46 -29
  140. package/dist/m365/spo/commands/app/app-deploy.js +50 -34
  141. package/dist/m365/spo/commands/app/app-get.js +47 -30
  142. package/dist/m365/spo/commands/app/app-install.js +42 -24
  143. package/dist/m365/spo/commands/app/app-instance-list.js +30 -12
  144. package/dist/m365/spo/commands/app/app-list.js +41 -22
  145. package/dist/m365/spo/commands/app/app-remove.js +46 -29
  146. package/dist/m365/spo/commands/app/app-retract.js +46 -29
  147. package/dist/m365/spo/commands/app/app-teamspackage-download.js +40 -24
  148. package/dist/m365/spo/commands/app/app-uninstall.js +45 -28
  149. package/dist/m365/spo/commands/app/app-upgrade.js +42 -24
  150. package/dist/m365/spo/commands/apppage/apppage-add.js +43 -26
  151. package/dist/m365/spo/commands/apppage/apppage-set.js +36 -29
  152. package/dist/m365/spo/commands/cdn/cdn-get.js +38 -16
  153. package/dist/m365/spo/commands/cdn/cdn-origin-add.js +40 -21
  154. package/dist/m365/spo/commands/cdn/cdn-origin-list.js +38 -16
  155. package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +43 -25
  156. package/dist/m365/spo/commands/cdn/cdn-policy-list.js +38 -16
  157. package/dist/m365/spo/commands/cdn/cdn-policy-set.js +44 -26
  158. package/dist/m365/spo/commands/cdn/cdn-set.js +45 -27
  159. package/dist/m365/spo/commands/contenttype/contenttype-add.js +50 -32
  160. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +52 -39
  161. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +46 -35
  162. package/dist/m365/spo/commands/contenttype/contenttype-get.js +48 -26
  163. package/dist/m365/spo/commands/contenttype/contenttype-list.js +37 -15
  164. package/dist/m365/spo/commands/contenttype/contenttype-remove.js +48 -33
  165. package/dist/m365/spo/commands/customaction/customaction-add.js +143 -140
  166. package/dist/m365/spo/commands/customaction/customaction-clear.js +43 -28
  167. package/dist/m365/spo/commands/customaction/customaction-get.js +47 -32
  168. package/dist/m365/spo/commands/customaction/customaction-list.js +40 -21
  169. package/dist/m365/spo/commands/customaction/customaction-remove.js +50 -36
  170. package/dist/m365/spo/commands/customaction/customaction-set.js +129 -127
  171. package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +58 -46
  172. package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +49 -33
  173. package/dist/m365/spo/commands/externaluser/externaluser-list.js +50 -34
  174. package/dist/m365/spo/commands/feature/feature-disable.js +48 -33
  175. package/dist/m365/spo/commands/feature/feature-enable.js +48 -33
  176. package/dist/m365/spo/commands/feature/feature-list.js +40 -21
  177. package/dist/m365/spo/commands/field/field-add.js +44 -21
  178. package/dist/m365/spo/commands/field/field-get.js +61 -40
  179. package/dist/m365/spo/commands/field/field-list.js +45 -28
  180. package/dist/m365/spo/commands/field/field-remove.js +71 -52
  181. package/dist/m365/spo/commands/field/field-set.js +57 -45
  182. package/dist/m365/spo/commands/file/file-add.js +72 -64
  183. package/dist/m365/spo/commands/file/file-checkin.js +49 -33
  184. package/dist/m365/spo/commands/file/file-checkout.js +42 -24
  185. package/dist/m365/spo/commands/file/file-copy.js +44 -30
  186. package/dist/m365/spo/commands/file/file-get.js +54 -40
  187. package/dist/m365/spo/commands/file/file-list.js +39 -18
  188. package/dist/m365/spo/commands/file/file-move.js +44 -30
  189. package/dist/m365/spo/commands/file/file-remove.js +48 -32
  190. package/dist/m365/spo/commands/file/file-rename.js +123 -0
  191. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +42 -24
  192. package/dist/m365/spo/commands/folder/folder-add.js +32 -18
  193. package/dist/m365/spo/commands/folder/folder-copy.js +41 -26
  194. package/dist/m365/spo/commands/folder/folder-get.js +30 -15
  195. package/dist/m365/spo/commands/folder/folder-list.js +30 -15
  196. package/dist/m365/spo/commands/folder/folder-move.js +41 -26
  197. package/dist/m365/spo/commands/folder/folder-remove.js +42 -27
  198. package/dist/m365/spo/commands/folder/folder-rename.js +32 -18
  199. package/dist/m365/spo/commands/group/group-add.js +60 -44
  200. package/dist/m365/spo/commands/group/group-get.js +65 -30
  201. package/dist/m365/spo/commands/group/group-list.js +28 -12
  202. package/dist/m365/spo/commands/group/group-remove.js +45 -28
  203. package/dist/m365/spo/commands/group/group-set.js +74 -67
  204. package/dist/m365/spo/commands/group/group-user-add.js +48 -24
  205. package/dist/m365/spo/commands/group/group-user-list.js +42 -18
  206. package/dist/m365/spo/commands/group/group-user-remove.js +47 -31
  207. package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +37 -17
  208. package/dist/m365/spo/commands/homesite/homesite-remove.js +23 -14
  209. package/dist/m365/spo/commands/homesite/homesite-set.js +28 -12
  210. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +32 -15
  211. package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +37 -20
  212. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +37 -20
  213. package/dist/m365/spo/commands/hubsite/hubsite-get.js +54 -39
  214. package/dist/m365/spo/commands/hubsite/hubsite-list.js +20 -14
  215. package/dist/m365/spo/commands/hubsite/hubsite-register.js +28 -12
  216. package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +35 -19
  217. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +39 -23
  218. package/dist/m365/spo/commands/hubsite/hubsite-set.js +48 -34
  219. package/dist/m365/spo/commands/hubsite/hubsite-theme-sync.js +28 -12
  220. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +37 -20
  221. package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +23 -14
  222. package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +28 -12
  223. package/dist/m365/spo/commands/list/list-add.js +321 -365
  224. package/dist/m365/spo/commands/list/list-contenttype-add.js +47 -32
  225. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +47 -32
  226. package/dist/m365/spo/commands/list/list-contenttype-list.js +42 -24
  227. package/dist/m365/spo/commands/list/list-contenttype-remove.js +50 -36
  228. package/dist/m365/spo/commands/list/list-get.js +48 -32
  229. package/dist/m365/spo/commands/list/list-label-get.js +42 -24
  230. package/dist/m365/spo/commands/list/list-label-set.js +56 -43
  231. package/dist/m365/spo/commands/list/list-list.js +29 -22
  232. package/dist/m365/spo/commands/list/list-remove.js +45 -28
  233. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +48 -33
  234. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +45 -29
  235. package/dist/m365/spo/commands/list/list-set.js +318 -362
  236. package/dist/m365/spo/commands/list/list-sitescript-get.js +42 -24
  237. package/dist/m365/spo/commands/list/list-view-add.js +48 -40
  238. package/dist/m365/spo/commands/list/list-view-field-add.js +57 -44
  239. package/dist/m365/spo/commands/list/list-view-field-remove.js +57 -44
  240. package/dist/m365/spo/commands/list/list-view-field-set.js +56 -43
  241. package/dist/m365/spo/commands/list/list-view-get.js +51 -36
  242. package/dist/m365/spo/commands/list/list-view-list.js +42 -24
  243. package/dist/m365/spo/commands/list/list-view-remove.js +51 -36
  244. package/dist/m365/spo/commands/list/list-view-set.js +48 -32
  245. package/dist/m365/spo/commands/list/list-webhook-add.js +54 -39
  246. package/dist/m365/spo/commands/list/list-webhook-get.js +45 -28
  247. package/dist/m365/spo/commands/list/list-webhook-list.js +48 -32
  248. package/dist/m365/spo/commands/list/list-webhook-remove.js +48 -32
  249. package/dist/m365/spo/commands/list/list-webhook-set.js +54 -39
  250. package/dist/m365/spo/commands/listitem/listitem-add.js +65 -57
  251. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +44 -27
  252. package/dist/m365/spo/commands/listitem/listitem-get.js +49 -41
  253. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +44 -27
  254. package/dist/m365/spo/commands/listitem/listitem-list.js +60 -58
  255. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +47 -31
  256. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +44 -27
  257. package/dist/m365/spo/commands/listitem/listitem-remove.js +50 -35
  258. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +50 -29
  259. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +47 -32
  260. package/dist/m365/spo/commands/listitem/listitem-set.js +68 -63
  261. package/dist/m365/spo/commands/mail/mail-send.js +52 -41
  262. package/dist/m365/spo/commands/navigation/navigation-node-add.js +49 -34
  263. package/dist/m365/spo/commands/navigation/navigation-node-list.js +40 -21
  264. package/dist/m365/spo/commands/navigation/navigation-node-remove.js +45 -28
  265. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +43 -25
  266. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-list.js +0 -4
  267. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +18 -12
  268. package/dist/m365/spo/commands/orgnewssite/orgnewssite-list.js +0 -4
  269. package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +37 -20
  270. package/dist/m365/spo/commands/orgnewssite/orgnewssite-set.js +28 -12
  271. package/dist/m365/spo/commands/page/page-add.js +60 -48
  272. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +59 -47
  273. package/dist/m365/spo/commands/page/page-column-get.js +36 -21
  274. package/dist/m365/spo/commands/page/page-column-list.js +34 -18
  275. package/dist/m365/spo/commands/page/page-control-get.js +34 -18
  276. package/dist/m365/spo/commands/page/page-control-list.js +30 -15
  277. package/dist/m365/spo/commands/page/page-control-set.js +46 -24
  278. package/dist/m365/spo/commands/page/page-copy.js +41 -26
  279. package/dist/m365/spo/commands/page/page-get.js +32 -18
  280. package/dist/m365/spo/commands/page/page-header-set.js +74 -66
  281. package/dist/m365/spo/commands/page/page-list.js +28 -12
  282. package/dist/m365/spo/commands/page/page-remove.js +32 -18
  283. package/dist/m365/spo/commands/page/page-section-add.js +43 -21
  284. package/dist/m365/spo/commands/page/page-section-get.js +34 -18
  285. package/dist/m365/spo/commands/page/page-section-list.js +30 -15
  286. package/dist/m365/spo/commands/page/page-set.js +62 -50
  287. package/dist/m365/spo/commands/page/page-template-list.js +28 -12
  288. package/dist/m365/spo/commands/page/page-text-add.js +49 -34
  289. package/dist/m365/spo/commands/propertybag/propertybag-get.js +39 -23
  290. package/dist/m365/spo/commands/propertybag/propertybag-list.js +37 -20
  291. package/dist/m365/spo/commands/propertybag/propertybag-remove.js +42 -33
  292. package/dist/m365/spo/commands/propertybag/propertybag-set.js +41 -35
  293. package/dist/m365/spo/commands/roledefinition/roledefinition-get.js +32 -15
  294. package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +28 -12
  295. package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +41 -23
  296. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-add.js +18 -12
  297. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +16 -7
  298. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +30 -10
  299. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +30 -10
  300. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +40 -21
  301. package/dist/m365/spo/commands/site/site-add.js +101 -101
  302. package/dist/m365/spo/commands/site/site-appcatalog-add.js +28 -17
  303. package/dist/m365/spo/commands/site/site-appcatalog-remove.js +28 -17
  304. package/dist/m365/spo/commands/site/site-apppermission-add.js +45 -34
  305. package/dist/m365/spo/commands/site/site-apppermission-get.js +30 -15
  306. package/dist/m365/spo/commands/site/site-apppermission-list.js +40 -25
  307. package/dist/m365/spo/commands/site/site-apppermission-remove.js +46 -33
  308. package/dist/m365/spo/commands/site/site-apppermission-set.js +48 -38
  309. package/dist/m365/spo/commands/site/site-chrome-set.js +65 -53
  310. package/dist/m365/spo/commands/site/site-commsite-enable.js +39 -20
  311. package/dist/m365/spo/commands/site/site-ensure.js +130 -131
  312. package/dist/m365/spo/commands/site/site-get.js +26 -10
  313. package/dist/m365/spo/commands/site/site-groupify.js +50 -38
  314. package/dist/m365/spo/commands/site/site-inplacerecordsmanagement-set.js +39 -20
  315. package/dist/m365/spo/commands/site/site-list.js +54 -49
  316. package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +43 -19
  317. package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +32 -15
  318. package/dist/m365/spo/commands/site/site-remove.js +46 -32
  319. package/dist/m365/spo/commands/site/site-rename.js +50 -38
  320. package/dist/m365/spo/commands/site/site-set.js +386 -228
  321. package/dist/m365/spo/commands/sitedesign/sitedesign-add.js +55 -41
  322. package/dist/m365/spo/commands/sitedesign/sitedesign-apply.js +41 -23
  323. package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +38 -16
  324. package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +39 -20
  325. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +35 -19
  326. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +30 -12
  327. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +41 -23
  328. package/dist/m365/spo/commands/sitedesign/sitedesign-run-list.js +39 -20
  329. package/dist/m365/spo/commands/sitedesign/sitedesign-run-status-get.js +32 -15
  330. package/dist/m365/spo/commands/sitedesign/sitedesign-set.js +64 -53
  331. package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +30 -12
  332. package/dist/m365/spo/commands/sitedesign/sitedesign-task-list.js +28 -12
  333. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +39 -20
  334. package/dist/m365/spo/commands/sitescript/sitescript-add.js +41 -23
  335. package/dist/m365/spo/commands/sitescript/sitescript-get.js +30 -12
  336. package/dist/m365/spo/commands/sitescript/sitescript-remove.js +39 -20
  337. package/dist/m365/spo/commands/sitescript/sitescript-set.js +48 -32
  338. package/dist/m365/spo/commands/spo-search.js +123 -126
  339. package/dist/m365/spo/commands/spo-set.js +28 -12
  340. package/dist/m365/spo/commands/storageentity/storageentity-get.js +16 -7
  341. package/dist/m365/spo/commands/storageentity/storageentity-list.js +28 -16
  342. package/dist/m365/spo/commands/storageentity/storageentity-remove.js +39 -29
  343. package/dist/m365/spo/commands/storageentity/storageentity-set.js +44 -36
  344. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +55 -30
  345. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +40 -24
  346. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +37 -20
  347. package/dist/m365/spo/commands/tenant/tenant-settings-set.js +375 -443
  348. package/dist/m365/spo/commands/term/term-add.js +63 -52
  349. package/dist/m365/spo/commands/term/term-get.js +52 -37
  350. package/dist/m365/spo/commands/term/term-group-add.js +42 -24
  351. package/dist/m365/spo/commands/term/term-group-get.js +40 -21
  352. package/dist/m365/spo/commands/term/term-list.js +46 -29
  353. package/dist/m365/spo/commands/term/term-set-add.js +51 -36
  354. package/dist/m365/spo/commands/term/term-set-get.js +46 -29
  355. package/dist/m365/spo/commands/term/term-set-list.js +40 -21
  356. package/dist/m365/spo/commands/theme/theme-apply.js +41 -23
  357. package/dist/m365/spo/commands/theme/theme-get.js +16 -7
  358. package/dist/m365/spo/commands/theme/theme-remove.js +25 -17
  359. package/dist/m365/spo/commands/theme/theme-set.js +41 -21
  360. package/dist/m365/spo/commands/user/user-get.js +45 -28
  361. package/dist/m365/spo/commands/user/user-list.js +28 -12
  362. package/dist/m365/spo/commands/user/user-remove.js +45 -28
  363. package/dist/m365/spo/commands/userprofile/userprofile-get.js +30 -12
  364. package/dist/m365/spo/commands/userprofile/userprofile-set.js +20 -15
  365. package/dist/m365/spo/commands/web/web-add.js +54 -41
  366. package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +28 -12
  367. package/dist/m365/spo/commands/web/web-get.js +37 -20
  368. package/dist/m365/spo/commands/web/web-installedlanguage-list.js +28 -12
  369. package/dist/m365/spo/commands/web/web-list.js +28 -12
  370. package/dist/m365/spo/commands/web/web-reindex.js +25 -12
  371. package/dist/m365/spo/commands/web/web-remove.js +37 -20
  372. package/dist/m365/spo/commands/web/web-set.js +70 -59
  373. package/dist/m365/spo/commands.js +1 -3
  374. package/dist/m365/teams/commands/app/app-install.js +37 -13
  375. package/dist/m365/teams/commands/app/app-list.js +43 -25
  376. package/dist/m365/teams/commands/app/app-publish.js +30 -12
  377. package/dist/m365/teams/commands/app/app-remove.js +39 -20
  378. package/dist/m365/teams/commands/app/app-uninstall.js +41 -18
  379. package/dist/m365/teams/commands/app/app-update.js +42 -24
  380. package/dist/m365/teams/commands/cache/cache-remove.js +26 -18
  381. package/dist/m365/teams/commands/channel/channel-add.js +52 -37
  382. package/dist/m365/teams/commands/channel/channel-get.js +47 -34
  383. package/dist/m365/teams/commands/channel/channel-list.js +43 -25
  384. package/dist/m365/teams/commands/channel/channel-member-add.js +65 -55
  385. package/dist/m365/teams/commands/channel/channel-member-list.js +50 -37
  386. package/dist/m365/teams/commands/channel/channel-member-remove.js +60 -54
  387. package/dist/m365/teams/commands/channel/channel-member-set.js +58 -48
  388. package/dist/m365/teams/commands/channel/channel-remove.js +45 -28
  389. package/dist/m365/teams/commands/channel/channel-set.js +50 -33
  390. package/dist/m365/teams/commands/chat/chat-get.js +62 -53
  391. package/dist/m365/teams/commands/chat/chat-list.js +38 -12
  392. package/dist/m365/teams/commands/chat/chat-member-list.js +30 -12
  393. package/dist/m365/teams/commands/chat/chat-message-list.js +30 -12
  394. package/dist/m365/teams/commands/chat/chat-message-send.js +61 -56
  395. package/dist/m365/teams/commands/funsettings/funsettings-list.js +30 -12
  396. package/dist/m365/teams/commands/funsettings/funsettings-set.js +48 -32
  397. package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +30 -12
  398. package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +41 -25
  399. package/dist/m365/teams/commands/membersettings/membersettings-list.js +30 -12
  400. package/dist/m365/teams/commands/membersettings/membersettings-set.js +47 -34
  401. package/dist/m365/teams/commands/message/message-get.js +34 -18
  402. package/dist/m365/teams/commands/message/message-list.js +41 -18
  403. package/dist/m365/teams/commands/message/message-reply-list.js +34 -18
  404. package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +30 -12
  405. package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +47 -34
  406. package/dist/m365/teams/commands/report/report-directroutingcalls.js +39 -20
  407. package/dist/m365/teams/commands/report/report-pstncalls.js +39 -20
  408. package/dist/m365/teams/commands/tab/tab-add.js +59 -46
  409. package/dist/m365/teams/commands/tab/tab-get.js +50 -38
  410. package/dist/m365/teams/commands/tab/tab-list.js +32 -15
  411. package/dist/m365/teams/commands/tab/tab-remove.js +43 -26
  412. package/dist/m365/teams/commands/team/team-add.js +44 -30
  413. package/dist/m365/teams/commands/team/team-archive.js +46 -26
  414. package/dist/m365/teams/commands/team/team-clone.js +90 -53
  415. package/dist/m365/teams/commands/team/team-get.js +40 -21
  416. package/dist/m365/teams/commands/team/team-list.js +23 -14
  417. package/dist/m365/teams/commands/team/team-remove.js +43 -26
  418. package/dist/m365/teams/commands/team/team-set.js +70 -39
  419. package/dist/m365/teams/commands/team/team-unarchive.js +34 -18
  420. package/dist/m365/teams/commands/user/user-app-add.js +32 -15
  421. package/dist/m365/teams/commands/user/user-app-list.js +40 -21
  422. package/dist/m365/teams/commands/user/user-app-remove.js +41 -23
  423. package/dist/m365/teams/commands/user/user-list.js +38 -22
  424. package/dist/m365/tenant/commands/id/id-get.js +23 -9
  425. package/dist/m365/tenant/commands/security/security-alerts-list.js +22 -13
  426. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +22 -14
  427. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +22 -13
  428. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +16 -9
  429. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +16 -9
  430. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-get.js +30 -12
  431. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +23 -9
  432. package/dist/m365/todo/commands/list/list-add.js +16 -9
  433. package/dist/m365/todo/commands/list/list-remove.js +43 -25
  434. package/dist/m365/todo/commands/list/list-set.js +42 -27
  435. package/dist/m365/todo/commands/task/task-add.js +42 -24
  436. package/dist/m365/todo/commands/task/task-list.js +40 -21
  437. package/dist/m365/todo/commands/task/task-remove.js +45 -28
  438. package/dist/m365/todo/commands/task/task-set.js +58 -45
  439. package/dist/m365/util/commands/accesstoken/accesstoken-get.js +25 -12
  440. package/dist/m365/viva/commands/connections/connections-app-create.js +28 -21
  441. package/dist/m365/yammer/commands/group/group-list.js +37 -21
  442. package/dist/m365/yammer/commands/group/group-user-add.js +42 -24
  443. package/dist/m365/yammer/commands/group/group-user-remove.js +42 -24
  444. package/dist/m365/yammer/commands/message/message-add.js +48 -32
  445. package/dist/m365/yammer/commands/message/message-get.js +30 -12
  446. package/dist/m365/yammer/commands/message/message-like-set.js +39 -24
  447. package/dist/m365/yammer/commands/message/message-list.js +50 -38
  448. package/dist/m365/yammer/commands/message/message-remove.js +39 -20
  449. package/dist/m365/yammer/commands/network/network-list.js +23 -14
  450. package/dist/m365/yammer/commands/user/user-get.js +40 -21
  451. package/dist/m365/yammer/commands/user/user-list.js +47 -34
  452. package/dist/m365/yammer/commands/yammer-search.js +40 -25
  453. package/docs/docs/cmd/planner/bucket/bucket-add.md +0 -3
  454. package/docs/docs/cmd/planner/bucket/bucket-get.md +0 -3
  455. package/docs/docs/cmd/planner/bucket/bucket-list.md +0 -3
  456. package/docs/docs/cmd/planner/bucket/bucket-remove.md +0 -3
  457. package/docs/docs/cmd/planner/bucket/bucket-set.md +0 -3
  458. package/docs/docs/cmd/planner/plan/plan-get.md +0 -6
  459. package/docs/docs/cmd/planner/task/task-add.md +0 -3
  460. package/docs/docs/cmd/planner/task/task-get.md +0 -3
  461. package/docs/docs/cmd/planner/task/task-list.md +0 -3
  462. package/docs/docs/cmd/planner/task/task-set.md +0 -3
  463. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  464. package/docs/docs/cmd/spo/field/field-get.md +6 -3
  465. package/docs/docs/cmd/spo/field/field-remove.md +9 -6
  466. package/docs/docs/cmd/spo/file/file-rename.md +43 -0
  467. package/docs/docs/cmd/spo/group/group-get.md +12 -3
  468. package/docs/docs/cmd/spo/list/list-list.md +0 -3
  469. package/docs/docs/cmd/spo/navigation/navigation-node-add.md +1 -1
  470. package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +1 -1
  471. package/docs/docs/cmd/spo/site/site-apppermission-add.md +1 -1
  472. package/docs/docs/cmd/spo/site/site-apppermission-set.md +1 -1
  473. package/docs/docs/cmd/spo/site/site-list.md +6 -6
  474. package/docs/docs/cmd/spo/site/site-set.md +50 -6
  475. package/docs/docs/cmd/teams/tab/tab-get.md +2 -2
  476. package/docs/docs/cmd/teams/team/team-clone.md +11 -5
  477. package/docs/docs/cmd/teams/team/team-set.md +10 -4
  478. package/package.json +1 -1
  479. package/dist/m365/spo/commands/site/site-classic-add.js +0 -333
  480. package/dist/m365/spo/commands/site/site-classic-list.js +0 -99
  481. package/dist/m365/spo/commands/site/site-classic-set.js +0 -358
  482. package/docs/docs/cmd/spo/site/site-classic-add.md +0 -93
  483. package/docs/docs/cmd/spo/site/site-classic-list.md +0 -68
  484. package/docs/docs/cmd/spo/site/site-classic-set.md +0 -99
@@ -1,21 +1,38 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
+ };
16
+ var _YammerMessageRemoveCommand_instances, _YammerMessageRemoveCommand_initTelemetry, _YammerMessageRemoveCommand_initOptions, _YammerMessageRemoveCommand_initValidators;
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  const cli_1 = require("../../../../cli");
4
19
  const request_1 = require("../../../../request");
5
20
  const YammerCommand_1 = require("../../../base/YammerCommand");
6
21
  const commands_1 = require("../../commands");
7
22
  class YammerMessageRemoveCommand extends YammerCommand_1.default {
23
+ constructor() {
24
+ super();
25
+ _YammerMessageRemoveCommand_instances.add(this);
26
+ __classPrivateFieldGet(this, _YammerMessageRemoveCommand_instances, "m", _YammerMessageRemoveCommand_initTelemetry).call(this);
27
+ __classPrivateFieldGet(this, _YammerMessageRemoveCommand_instances, "m", _YammerMessageRemoveCommand_initOptions).call(this);
28
+ __classPrivateFieldGet(this, _YammerMessageRemoveCommand_instances, "m", _YammerMessageRemoveCommand_initValidators).call(this);
29
+ }
8
30
  get name() {
9
31
  return commands_1.default.MESSAGE_REMOVE;
10
32
  }
11
33
  get description() {
12
34
  return 'Removes a Yammer message';
13
35
  }
14
- getTelemetryProperties(args) {
15
- const telemetryProps = super.getTelemetryProperties(args);
16
- telemetryProps.confirm = (!(!args.options.confirm)).toString();
17
- return telemetryProps;
18
- }
19
36
  commandAction(logger, args, cb) {
20
37
  const removeMessage = () => {
21
38
  const requestOptions = {
@@ -49,24 +66,26 @@ class YammerMessageRemoveCommand extends YammerCommand_1.default {
49
66
  });
50
67
  }
51
68
  }
52
- options() {
53
- const options = [
54
- {
55
- option: '--id <id>'
56
- },
57
- {
58
- option: '--confirm'
59
- }
60
- ];
61
- const parentOptions = super.options();
62
- return options.concat(parentOptions);
63
- }
64
- validate(args) {
69
+ }
70
+ _YammerMessageRemoveCommand_instances = new WeakSet(), _YammerMessageRemoveCommand_initTelemetry = function _YammerMessageRemoveCommand_initTelemetry() {
71
+ this.telemetry.push((args) => {
72
+ Object.assign(this.telemetryProperties, {
73
+ confirm: (!(!args.options.confirm)).toString()
74
+ });
75
+ });
76
+ }, _YammerMessageRemoveCommand_initOptions = function _YammerMessageRemoveCommand_initOptions() {
77
+ this.options.unshift({
78
+ option: '--id <id>'
79
+ }, {
80
+ option: '--confirm'
81
+ });
82
+ }, _YammerMessageRemoveCommand_initValidators = function _YammerMessageRemoveCommand_initValidators() {
83
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
65
84
  if (typeof args.options.id !== 'number') {
66
85
  return `${args.options.id} is not a number`;
67
86
  }
68
87
  return true;
69
- }
70
- }
88
+ }));
89
+ };
71
90
  module.exports = new YammerMessageRemoveCommand();
72
91
  //# sourceMappingURL=message-remove.js.map
@@ -1,20 +1,27 @@
1
1
  "use strict";
2
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4
+ 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");
5
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6
+ };
7
+ var _YammerNetworkListCommand_instances, _YammerNetworkListCommand_initTelemetry, _YammerNetworkListCommand_initOptions;
2
8
  Object.defineProperty(exports, "__esModule", { value: true });
3
9
  const request_1 = require("../../../../request");
4
10
  const YammerCommand_1 = require("../../../base/YammerCommand");
5
11
  const commands_1 = require("../../commands");
6
12
  class YammerNetworkListCommand extends YammerCommand_1.default {
13
+ constructor() {
14
+ super();
15
+ _YammerNetworkListCommand_instances.add(this);
16
+ __classPrivateFieldGet(this, _YammerNetworkListCommand_instances, "m", _YammerNetworkListCommand_initTelemetry).call(this);
17
+ __classPrivateFieldGet(this, _YammerNetworkListCommand_instances, "m", _YammerNetworkListCommand_initOptions).call(this);
18
+ }
7
19
  get name() {
8
20
  return commands_1.default.NETWORK_LIST;
9
21
  }
10
22
  get description() {
11
23
  return 'Returns a list of networks to which the current user has access';
12
24
  }
13
- getTelemetryProperties(args) {
14
- const telemetryProps = super.getTelemetryProperties(args);
15
- telemetryProps.includeSuspended = args.options.includeSuspended;
16
- return telemetryProps;
17
- }
18
25
  defaultProperties() {
19
26
  return ['id', 'name', 'email', 'community', 'permalink', 'web_url'];
20
27
  }
@@ -37,15 +44,17 @@ class YammerNetworkListCommand extends YammerCommand_1.default {
37
44
  cb();
38
45
  }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
39
46
  }
40
- options() {
41
- const options = [
42
- {
43
- option: '--includeSuspended'
44
- }
45
- ];
46
- const parentOptions = super.options();
47
- return options.concat(parentOptions);
48
- }
49
47
  }
48
+ _YammerNetworkListCommand_instances = new WeakSet(), _YammerNetworkListCommand_initTelemetry = function _YammerNetworkListCommand_initTelemetry() {
49
+ this.telemetry.push((args) => {
50
+ Object.assign(this.telemetryProperties, {
51
+ includeSuspended: args.options.includeSuspended
52
+ });
53
+ });
54
+ }, _YammerNetworkListCommand_initOptions = function _YammerNetworkListCommand_initOptions() {
55
+ this.options.unshift({
56
+ option: '--includeSuspended'
57
+ });
58
+ };
50
59
  module.exports = new YammerNetworkListCommand();
51
60
  //# sourceMappingURL=network-list.js.map
@@ -1,21 +1,37 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
+ };
16
+ var _YammerUserGetCommand_instances, _YammerUserGetCommand_initTelemetry, _YammerUserGetCommand_initOptions, _YammerUserGetCommand_initValidators;
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  const request_1 = require("../../../../request");
4
19
  const YammerCommand_1 = require("../../../base/YammerCommand");
5
20
  const commands_1 = require("../../commands");
6
21
  class YammerUserGetCommand extends YammerCommand_1.default {
22
+ constructor() {
23
+ super();
24
+ _YammerUserGetCommand_instances.add(this);
25
+ __classPrivateFieldGet(this, _YammerUserGetCommand_instances, "m", _YammerUserGetCommand_initTelemetry).call(this);
26
+ __classPrivateFieldGet(this, _YammerUserGetCommand_instances, "m", _YammerUserGetCommand_initOptions).call(this);
27
+ __classPrivateFieldGet(this, _YammerUserGetCommand_instances, "m", _YammerUserGetCommand_initValidators).call(this);
28
+ }
7
29
  get name() {
8
30
  return commands_1.default.USER_GET;
9
31
  }
10
32
  get description() {
11
33
  return 'Retrieves the current user or searches for a user by ID or e-mail';
12
34
  }
13
- getTelemetryProperties(args) {
14
- const telemetryProps = super.getTelemetryProperties(args);
15
- telemetryProps.userId = args.options.userId !== undefined;
16
- telemetryProps.email = args.options.email !== undefined;
17
- return telemetryProps;
18
- }
19
35
  defaultProperties() {
20
36
  return ['id', 'full_name', 'email', 'job_title', 'state', 'url'];
21
37
  }
@@ -42,24 +58,27 @@ class YammerUserGetCommand extends YammerCommand_1.default {
42
58
  cb();
43
59
  }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
44
60
  }
45
- options() {
46
- const options = [
47
- {
48
- option: '-i, --userId [userId]'
49
- },
50
- {
51
- option: '--email [email]'
52
- }
53
- ];
54
- const parentOptions = super.options();
55
- return options.concat(parentOptions);
56
- }
57
- validate(args) {
61
+ }
62
+ _YammerUserGetCommand_instances = new WeakSet(), _YammerUserGetCommand_initTelemetry = function _YammerUserGetCommand_initTelemetry() {
63
+ this.telemetry.push((args) => {
64
+ Object.assign(this.telemetryProperties, {
65
+ userId: args.options.userId !== undefined,
66
+ email: args.options.email !== undefined
67
+ });
68
+ });
69
+ }, _YammerUserGetCommand_initOptions = function _YammerUserGetCommand_initOptions() {
70
+ this.options.unshift({
71
+ option: '-i, --userId [userId]'
72
+ }, {
73
+ option: '--email [email]'
74
+ });
75
+ }, _YammerUserGetCommand_initValidators = function _YammerUserGetCommand_initValidators() {
76
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
58
77
  if (args.options.userId !== undefined && args.options.email !== undefined) {
59
78
  return `You are only allowed to search by ID or e-mail but not both`;
60
79
  }
61
80
  return true;
62
- }
63
- }
81
+ }));
82
+ };
64
83
  module.exports = new YammerUserGetCommand();
65
84
  //# sourceMappingURL=user-get.js.map
@@ -1,4 +1,19 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
+ };
16
+ var _YammerUserListCommand_instances, _YammerUserListCommand_initTelemetry, _YammerUserListCommand_initOptions, _YammerUserListCommand_initValidators;
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  const request_1 = require("../../../../request");
4
19
  const YammerCommand_1 = require("../../../base/YammerCommand");
@@ -6,7 +21,11 @@ const commands_1 = require("../../commands");
6
21
  class YammerUserListCommand extends YammerCommand_1.default {
7
22
  constructor() {
8
23
  super();
24
+ _YammerUserListCommand_instances.add(this);
9
25
  this.items = [];
26
+ __classPrivateFieldGet(this, _YammerUserListCommand_instances, "m", _YammerUserListCommand_initTelemetry).call(this);
27
+ __classPrivateFieldGet(this, _YammerUserListCommand_instances, "m", _YammerUserListCommand_initOptions).call(this);
28
+ __classPrivateFieldGet(this, _YammerUserListCommand_instances, "m", _YammerUserListCommand_initValidators).call(this);
10
29
  }
11
30
  get name() {
12
31
  return commands_1.default.USER_LIST;
@@ -14,15 +33,6 @@ class YammerUserListCommand extends YammerCommand_1.default {
14
33
  get description() {
15
34
  return 'Returns users from the current network';
16
35
  }
17
- getTelemetryProperties(args) {
18
- const telemetryProps = super.getTelemetryProperties(args);
19
- telemetryProps.letter = args.options.letter !== undefined;
20
- telemetryProps.sortBy = args.options.sortBy !== undefined;
21
- telemetryProps.reverse = args.options.reverse !== undefined;
22
- telemetryProps.limit = args.options.limit !== undefined;
23
- telemetryProps.groupId = args.options.groupId !== undefined;
24
- return telemetryProps;
25
- }
26
36
  defaultProperties() {
27
37
  return ['id', 'full_name', 'email'];
28
38
  }
@@ -97,29 +107,32 @@ class YammerUserListCommand extends YammerCommand_1.default {
97
107
  cb();
98
108
  }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
99
109
  }
100
- options() {
101
- const options = [
102
- {
103
- option: '-g, --groupId [groupId]'
104
- },
105
- {
106
- option: '-l, --letter [letter]'
107
- },
108
- {
109
- option: '--reverse'
110
- },
111
- {
112
- option: '--limit [limit]'
113
- },
114
- {
115
- option: '--sortBy [sortBy]',
116
- autocomplete: ['messages', 'followers']
117
- }
118
- ];
119
- const parentOptions = super.options();
120
- return options.concat(parentOptions);
121
- }
122
- validate(args) {
110
+ }
111
+ _YammerUserListCommand_instances = new WeakSet(), _YammerUserListCommand_initTelemetry = function _YammerUserListCommand_initTelemetry() {
112
+ this.telemetry.push((args) => {
113
+ Object.assign(this.telemetryProperties, {
114
+ letter: args.options.letter !== undefined,
115
+ sortBy: args.options.sortBy !== undefined,
116
+ reverse: args.options.reverse !== undefined,
117
+ limit: args.options.limit !== undefined,
118
+ groupId: args.options.groupId !== undefined
119
+ });
120
+ });
121
+ }, _YammerUserListCommand_initOptions = function _YammerUserListCommand_initOptions() {
122
+ this.options.unshift({
123
+ option: '-g, --groupId [groupId]'
124
+ }, {
125
+ option: '-l, --letter [letter]'
126
+ }, {
127
+ option: '--reverse'
128
+ }, {
129
+ option: '--limit [limit]'
130
+ }, {
131
+ option: '--sortBy [sortBy]',
132
+ autocomplete: ['messages', 'followers']
133
+ });
134
+ }, _YammerUserListCommand_initValidators = function _YammerUserListCommand_initValidators() {
135
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
123
136
  if (args.options.groupId && typeof args.options.groupId !== 'number') {
124
137
  return `${args.options.groupId} is not a number`;
125
138
  }
@@ -136,7 +149,7 @@ class YammerUserListCommand extends YammerCommand_1.default {
136
149
  return `Only one char as value of 'letter' accepted.`;
137
150
  }
138
151
  return true;
139
- }
140
- }
152
+ }));
153
+ };
141
154
  module.exports = new YammerUserListCommand();
142
155
  //# sourceMappingURL=user-list.js.map
@@ -1,4 +1,19 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
+ };
16
+ var _YammerSearchCommand_instances, _YammerSearchCommand_initTelemetry, _YammerSearchCommand_initOptions, _YammerSearchCommand_initValidators;
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  const request_1 = require("../../../request");
4
19
  const YammerCommand_1 = require("../../base/YammerCommand");
@@ -6,6 +21,7 @@ const commands_1 = require("../commands");
6
21
  class YammerSearchCommand extends YammerCommand_1.default {
7
22
  constructor() {
8
23
  super();
24
+ _YammerSearchCommand_instances.add(this);
9
25
  this.summary = {
10
26
  messages: 0,
11
27
  groups: 0,
@@ -16,6 +32,9 @@ class YammerSearchCommand extends YammerCommand_1.default {
16
32
  this.groups = [];
17
33
  this.topics = [];
18
34
  this.users = [];
35
+ __classPrivateFieldGet(this, _YammerSearchCommand_instances, "m", _YammerSearchCommand_initTelemetry).call(this);
36
+ __classPrivateFieldGet(this, _YammerSearchCommand_instances, "m", _YammerSearchCommand_initOptions).call(this);
37
+ __classPrivateFieldGet(this, _YammerSearchCommand_instances, "m", _YammerSearchCommand_initValidators).call(this);
19
38
  }
20
39
  get name() {
21
40
  return commands_1.default.SEARCH;
@@ -23,12 +42,6 @@ class YammerSearchCommand extends YammerCommand_1.default {
23
42
  get description() {
24
43
  return 'Returns a list of messages, users, topics and groups that match the specified query.';
25
44
  }
26
- getTelemetryProperties(args) {
27
- const telemetryProps = super.getTelemetryProperties(args);
28
- telemetryProps.show = typeof args.options.show !== 'undefined';
29
- telemetryProps.limit = typeof args.options.limit !== 'undefined';
30
- return telemetryProps;
31
- }
32
45
  getAllItems(logger, args, page) {
33
46
  return new Promise((resolve, reject) => {
34
47
  const endpoint = `${this.resource}/v1/search.json?search=${encodeURIComponent(args.options.queryText)}&page=${page}`;
@@ -177,23 +190,25 @@ class YammerSearchCommand extends YammerCommand_1.default {
177
190
  cb();
178
191
  }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
179
192
  }
180
- options() {
181
- const options = [
182
- {
183
- option: '--queryText <queryText>'
184
- },
185
- {
186
- option: '--show [show]',
187
- autocomplete: YammerSearchCommand.showOptions
188
- },
189
- {
190
- option: '--limit [limit]'
191
- }
192
- ];
193
- const parentOptions = super.options();
194
- return options.concat(parentOptions);
195
- }
196
- validate(args) {
193
+ }
194
+ _YammerSearchCommand_instances = new WeakSet(), _YammerSearchCommand_initTelemetry = function _YammerSearchCommand_initTelemetry() {
195
+ this.telemetry.push((args) => {
196
+ Object.assign(this.telemetryProperties, {
197
+ show: typeof args.options.show !== 'undefined',
198
+ limit: typeof args.options.limit !== 'undefined'
199
+ });
200
+ });
201
+ }, _YammerSearchCommand_initOptions = function _YammerSearchCommand_initOptions() {
202
+ this.options.unshift({
203
+ option: '--queryText <queryText>'
204
+ }, {
205
+ option: '--show [show]',
206
+ autocomplete: YammerSearchCommand.showOptions
207
+ }, {
208
+ option: '--limit [limit]'
209
+ });
210
+ }, _YammerSearchCommand_initValidators = function _YammerSearchCommand_initValidators() {
211
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
197
212
  if (args.options.queryText && typeof args.options.queryText !== 'string') {
198
213
  return `${args.options.queryText} is not a string`;
199
214
  }
@@ -214,8 +229,8 @@ class YammerSearchCommand extends YammerCommand_1.default {
214
229
  }
215
230
  }
216
231
  return true;
217
- }
218
- }
232
+ }));
233
+ };
219
234
  YammerSearchCommand.showOptions = [
220
235
  'summary', 'messages', 'users', 'topics', 'groups'
221
236
  ];
@@ -19,9 +19,6 @@ m365 planner bucket add [options]
19
19
  `--planTitle [planTitle]`
20
20
  : Title of the plan to which the bucket belongs. Specify either `planId` or `planTitle` but not both.
21
21
 
22
- `--planName [planName]`
23
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
24
-
25
22
  `--ownerGroupId [ownerGroupId]`
26
23
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
27
24
 
@@ -22,9 +22,6 @@ m365 planner bucket get [options]
22
22
  `--planTitle [planTitle]`
23
23
  : Title of the plan to which the bucket belongs. Specify either `planId` or `planTitle` when using `name`.
24
24
 
25
- `--planName [planName]`
26
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
27
-
28
25
  `--ownerGroupId [ownerGroupId]`
29
26
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
30
27
 
@@ -16,9 +16,6 @@ m365 planner bucket list [options]
16
16
  `--planTitle [planTitle]`
17
17
  : Title of the plan to list the buckets of. Specify either `planId` or `planTitle` but not both.
18
18
 
19
- `--planName [planName]`
20
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
21
-
22
19
  `--ownerGroupId [ownerGroupId]`
23
20
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
24
21
 
@@ -22,9 +22,6 @@ m365 planner bucket remove [options]
22
22
  `--planTitle [planTitle]`
23
23
  : Title of the plan to which the bucket to remove belongs. Specify either `planId` or `planTitle` when using `name`.
24
24
 
25
- `--planName [planName]`
26
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
27
-
28
25
  `--ownerGroupId [ownerGroupId]`
29
26
  : ID of the group to which the plan belongs. Specify either `ownerGroupId` or `ownerGroupName` when using `planTitle`.
30
27
 
@@ -22,9 +22,6 @@ m365 planner bucket set [options]
22
22
  `--planTitle [planTitle]`
23
23
  : Title of the plan to update the bucket of. Specify either `planId` or `planTitle` when using `name`. Always use in combination with either `ownerGroupId` or `ownerGroupName`.
24
24
 
25
- `--planName [planName]`
26
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
27
-
28
25
  `--ownerGroupId [ownerGroupId]`
29
26
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
30
27
 
@@ -8,12 +8,6 @@ Retrieve information about the specified plan
8
8
  m365 planner plan get [options]
9
9
  ```
10
10
 
11
- ## Alias
12
-
13
- ```sh
14
- m365 planner plan details get [options]
15
- ```
16
-
17
11
  ## Options
18
12
 
19
13
  `-i, --id [id]`
@@ -19,9 +19,6 @@ m365 planner task add [options]
19
19
  `--planTitle [planTitle]`
20
20
  : Title of the plan to which the task belongs. Specify either `planId` or `planTitle` but not both.
21
21
 
22
- `--planName [planName]`
23
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
24
-
25
22
  `--ownerGroupId [ownerGroupId]`
26
23
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
27
24
 
@@ -37,9 +37,6 @@ m365 planner task details get [options]
37
37
  `--planTitle [planTitle]`
38
38
  : Title of the plan to which the task belongs. Specify `planId` or `planTitle` when using `bucketName`.
39
39
 
40
- `--planName [planName]`
41
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
42
-
43
40
  `--ownerGroupId [ownerGroupId]`
44
41
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
45
42
 
@@ -22,9 +22,6 @@ m365 planner task list [options]
22
22
  `--planTitle [planTitle]`
23
23
  : Title of a plan to list the tasks of. To retrieve all tasks from a plan, specify either `planId` or `planTitle` but not both. Always use in combination with either `ownerGroupId` or `ownerGroupName`. Use in combination with `bucketName` to retrieve tasks from a specific bucket.
24
24
 
25
- `--planName [planName]`
26
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
27
-
28
25
  `--ownerGroupId [ownerGroupId]`
29
26
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
30
27
 
@@ -28,9 +28,6 @@ m365 planner task set [options]
28
28
  `--planTitle [planTitle]`
29
29
  : Title of the plan to which the bucket belongs to. Specify either `planId` or `planTitle` when using `bucketName`.
30
30
 
31
- `--planName [planName]`
32
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
33
-
34
31
  `--ownerGroupId [ownerGroupId]`
35
32
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
36
33
 
@@ -32,7 +32,7 @@ m365 spfx project upgrade [options]
32
32
 
33
33
  ## Remarks
34
34
 
35
- The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.15.0).
35
+ The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.15.2).
36
36
 
37
37
  This command doesn't change your project files. Instead, it gives you a report with all steps necessary to upgrade your project to the specified version of the SharePoint Framework. Changing project files is error-prone, especially when it comes to updating your solution's code. This is why at this moment, this command produces a report that you can use yourself to perform the necessary updates and verify that everything is working as expected.
38
38
 
@@ -23,10 +23,13 @@ m365 spo field get [options]
23
23
  : Server- or web-relative URL of the list where the field is located. Specify only one of listTitle, listId or listUrl
24
24
 
25
25
  `-i, --id [id]`
26
- : The ID of the field to retrieve. Specify id or fieldTitle but not both
26
+ : The ID of the field to retrieve. Specify id or title but not both
27
27
 
28
28
  `--fieldTitle [fieldTitle]`
29
- : The display name (case-sensitive) of the field to retrieve. Specify id or fieldTitle but not both
29
+ : (deprecated. Use `title` instead) The display name (case-sensitive) of the field to retrieve. Specify id or fieldTitle but not both
30
+
31
+ `-t, --title [title]`
32
+ : The display name (case-sensitive) of the field to remove. Specify id or title, or group but not both
30
33
 
31
34
  --8<-- "docs/cmd/_global.md"
32
35
 
@@ -47,5 +50,5 @@ m365 spo field get --webUrl https://contoso.sharepoint.com/sites/contoso-sales -
47
50
  Retrieves list column by display name located in site _https://contoso.sharepoint.com/sites/contoso-sales_. Retrieves the list by its url
48
51
 
49
52
  ```sh
50
- m365 spo field get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl 'Lists/Events' --fieldTitle 'Title'
53
+ m365 spo field get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl "Lists/Events" --title "Title"
51
54
  ```
@@ -23,13 +23,16 @@ m365 spo field remove [options]
23
23
  : Server- or web-relative URL of the list where the field is located. Specify only one of `listTitle`, `listId` or `listUrl`
24
24
 
25
25
  `-i, --id [id]`
26
- : The ID of the field to remove. Specify id, fieldTitle, or group
26
+ : The ID of the field to remove. Specify id, title, or group
27
27
 
28
- `-t, --fieldTitle [fieldTitle]`
29
- : The display name (case-sensitive) of the field to remove. Specify id, fieldTitle, or group
28
+ `--fieldTitle [fieldTitle]`
29
+ : (deprecated. Use `title` instead) The display name (case-sensitive) of the field to remove. Specify id, fieldTitle, or group
30
+
31
+ `-t, --title [title]`
32
+ : The display name (case-sensitive) of the field to remove. Specify id, title, or group
30
33
 
31
34
  `-g, --group [group]`
32
- : Delete all fields from this group (case-sensitive). Specify id, fieldTitle, or group
35
+ : Delete all fields from this group (case-sensitive). Specify id, title, or group
33
36
 
34
37
  `--confirm`
35
38
  : Don't prompt for confirming removing the field
@@ -53,11 +56,11 @@ m365 spo field remove --webUrl https://contoso.sharepoint.com/sites/contoso-sale
53
56
  Remove the list column with the specified display name, located in site _https://contoso.sharepoint.com/sites/contoso-sales_. Retrieves the list by its url
54
57
 
55
58
  ```sh
56
- m365 spo field remove --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl 'Lists/Events' --fieldTitle 'Title'
59
+ m365 spo field remove --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl "Lists/Events" --title "Title"
57
60
  ```
58
61
 
59
62
  Remove all site columns from group _MyGroup_
60
63
 
61
64
  ```sh
62
- m365 spo field remove --webUrl https://contoso.sharepoint.com/sites/contoso-sales --group 'MyGroup'
65
+ m365 spo field remove --webUrl https://contoso.sharepoint.com/sites/contoso-sales --group "MyGroup"
63
66
  ```