@pnp/cli-microsoft365 5.6.0 → 5.7.0-beta.38b5a77

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 (468) hide show
  1. package/.devcontainer/Dockerfile +3 -1
  2. package/.devcontainer/devcontainer.json +1 -0
  3. package/dist/Command.js +186 -93
  4. package/dist/cli/Cli.js +11 -66
  5. package/dist/m365/aad/commands/app/app-add.js +235 -105
  6. package/dist/m365/aad/commands/app/app-get.js +37 -20
  7. package/dist/m365/aad/commands/app/app-remove.js +38 -21
  8. package/dist/m365/aad/commands/app/app-role-add.js +39 -23
  9. package/dist/m365/aad/commands/app/app-role-list.js +37 -19
  10. package/dist/m365/aad/commands/app/app-role-remove.js +40 -26
  11. package/dist/m365/aad/commands/app/app-set.js +47 -36
  12. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +48 -32
  13. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +43 -25
  14. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +51 -36
  15. package/dist/m365/aad/commands/group/group-list.js +21 -12
  16. package/dist/m365/aad/commands/groupsetting/groupsetting-add.js +30 -17
  17. package/dist/m365/aad/commands/groupsetting/groupsetting-get.js +30 -12
  18. package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +39 -20
  19. package/dist/m365/aad/commands/groupsetting/groupsetting-set.js +30 -12
  20. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +40 -21
  21. package/dist/m365/aad/commands/o365group/o365group-add.js +64 -54
  22. package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +30 -12
  23. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +43 -25
  24. package/dist/m365/aad/commands/o365group/o365group-get.js +32 -15
  25. package/dist/m365/aad/commands/o365group/o365group-list.js +49 -33
  26. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +23 -14
  27. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +26 -18
  28. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-remove.js +40 -32
  29. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +46 -28
  30. package/dist/m365/aad/commands/o365group/o365group-remove.js +42 -24
  31. package/dist/m365/aad/commands/o365group/o365group-renew.js +30 -12
  32. package/dist/m365/aad/commands/o365group/o365group-set.js +54 -30
  33. package/dist/m365/aad/commands/o365group/o365group-teamify.js +40 -15
  34. package/dist/m365/aad/commands/o365group/o365group-user-add.js +46 -29
  35. package/dist/m365/aad/commands/o365group/o365group-user-list.js +40 -21
  36. package/dist/m365/aad/commands/o365group/o365group-user-remove.js +36 -28
  37. package/dist/m365/aad/commands/o365group/o365group-user-set.js +46 -29
  38. package/dist/m365/aad/commands/oauth2grant/oauth2grant-add.js +34 -18
  39. package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +30 -12
  40. package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +18 -12
  41. package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +18 -12
  42. package/dist/m365/aad/commands/policy/policy-list.js +38 -18
  43. package/dist/m365/aad/commands/siteclassification/siteclassification-disable.js +23 -14
  44. package/dist/m365/aad/commands/siteclassification/siteclassification-enable.js +30 -24
  45. package/dist/m365/aad/commands/siteclassification/siteclassification-set.js +46 -29
  46. package/dist/m365/aad/commands/sp/sp-add.js +43 -25
  47. package/dist/m365/aad/commands/sp/sp-get.js +43 -25
  48. package/dist/m365/aad/commands/user/user-get.js +45 -28
  49. package/dist/m365/aad/commands/user/user-hibp.js +41 -23
  50. package/dist/m365/aad/commands/user/user-list.js +22 -14
  51. package/dist/m365/aad/commands/user/user-password-validate.js +16 -9
  52. package/dist/m365/aad/commands/user/user-set.js +43 -25
  53. package/dist/m365/aad/commands/user/user-signin-list.js +46 -29
  54. package/dist/m365/adaptivecard/commands/adaptivecard-send.js +54 -40
  55. package/dist/m365/app/commands/app-open.js +22 -21
  56. package/dist/m365/base/AppCommand.js +29 -13
  57. package/dist/m365/base/DateAndPeriodBasedReport.js +41 -24
  58. package/dist/m365/base/PeriodBasedReport.js +37 -18
  59. package/dist/m365/base/SpoCommand.js +1 -1
  60. package/dist/m365/booking/commands/business/business-get.js +86 -0
  61. package/dist/m365/booking/commands/business/business-list.js +30 -0
  62. package/dist/m365/booking/commands.js +8 -0
  63. package/dist/m365/cli/commands/cli-consent.js +38 -18
  64. package/dist/m365/cli/commands/cli-issue.js +26 -18
  65. package/dist/m365/cli/commands/completion/completion-pwsh-setup.js +16 -9
  66. package/dist/m365/cli/commands/config/config-get.js +38 -18
  67. package/dist/m365/cli/commands/config/config-reset.js +38 -18
  68. package/dist/m365/cli/commands/config/config-set.js +38 -21
  69. package/dist/m365/commands/login.js +54 -42
  70. package/dist/m365/file/commands/convert/convert-pdf.js +32 -15
  71. package/dist/m365/file/commands/file-add.js +35 -12
  72. package/dist/m365/file/commands/file-list.js +31 -13
  73. package/dist/m365/flow/commands/environment/environment-get.js +16 -9
  74. package/dist/m365/flow/commands/flow-disable.js +20 -15
  75. package/dist/m365/flow/commands/flow-enable.js +20 -15
  76. package/dist/m365/flow/commands/flow-export.js +56 -43
  77. package/dist/m365/flow/commands/flow-get.js +20 -15
  78. package/dist/m365/flow/commands/flow-list.js +25 -17
  79. package/dist/m365/flow/commands/flow-remove.js +44 -27
  80. package/dist/m365/flow/commands/run/run-cancel.js +36 -21
  81. package/dist/m365/flow/commands/run/run-get.js +20 -15
  82. package/dist/m365/flow/commands/run/run-list.js +18 -12
  83. package/dist/m365/flow/commands/run/run-resubmit.js +43 -26
  84. package/dist/m365/graph/commands/schemaextension/schemaextension-add.js +41 -27
  85. package/dist/m365/graph/commands/schemaextension/schemaextension-get.js +16 -9
  86. package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +47 -30
  87. package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +25 -17
  88. package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +63 -48
  89. package/dist/m365/graph/commands/subscription/subscription-add.js +52 -36
  90. package/dist/m365/outlook/commands/mail/mail-send.js +48 -32
  91. package/dist/m365/outlook/commands/message/message-list.js +42 -23
  92. package/dist/m365/outlook/commands/message/message-move.js +52 -36
  93. package/dist/m365/outlook/commands/room/room-list.js +23 -14
  94. package/dist/m365/pa/commands/app/app-get.js +40 -21
  95. package/dist/m365/pa/commands/app/app-list.js +40 -21
  96. package/dist/m365/pa/commands/app/app-remove.js +39 -20
  97. package/dist/m365/pa/commands/connector/connector-export.js +41 -18
  98. package/dist/m365/pa/commands/connector/connector-list.js +16 -9
  99. package/dist/m365/pa/commands/environment/environment-get.js +16 -9
  100. package/dist/m365/pa/commands/pcf/pcf-init.js +53 -50
  101. package/dist/m365/pa/commands/solution/solution-init.js +45 -38
  102. package/dist/m365/pa/commands/solution/solution-reference-add.js +40 -25
  103. package/dist/m365/planner/commands/bucket/bucket-add.js +54 -40
  104. package/dist/m365/planner/commands/bucket/bucket-get.js +49 -44
  105. package/dist/m365/planner/commands/bucket/bucket-list.js +51 -35
  106. package/dist/m365/planner/commands/bucket/bucket-remove.js +65 -54
  107. package/dist/m365/planner/commands/bucket/bucket-set.js +67 -57
  108. package/dist/m365/planner/commands/plan/plan-add.js +48 -32
  109. package/dist/m365/planner/commands/plan/plan-get.js +55 -40
  110. package/dist/m365/planner/commands/plan/plan-list.js +42 -23
  111. package/dist/m365/planner/commands/plan/plan-remove.js +43 -36
  112. package/dist/m365/planner/commands/task/task-add.js +56 -57
  113. package/dist/m365/planner/commands/task/task-checklistitem-add.js +23 -16
  114. package/dist/m365/planner/commands/task/task-checklistitem-list.js +18 -11
  115. package/dist/m365/planner/commands/task/task-checklistitem-remove.js +21 -14
  116. package/dist/m365/planner/commands/task/task-get.js +46 -36
  117. package/dist/m365/planner/commands/task/task-list.js +57 -43
  118. package/dist/m365/planner/commands/task/task-reference-add.js +39 -13
  119. package/dist/m365/planner/commands/task/task-reference-list.js +18 -11
  120. package/dist/m365/planner/commands/task/task-reference-remove.js +40 -25
  121. package/dist/m365/planner/commands/task/task-remove.js +46 -23
  122. package/dist/m365/planner/commands/task/task-set.js +52 -53
  123. package/dist/m365/planner/commands/tenant/tenant-settings-set.js +59 -44
  124. package/dist/m365/pp/commands/environment/environment-list.js +23 -9
  125. package/dist/m365/pp/commands/managementapp/managementapp-add.js +37 -19
  126. package/dist/m365/search/commands/externalconnection/externalconnection-add.js +43 -26
  127. package/dist/m365/search/commands/externalconnection/externalconnection-get.js +29 -23
  128. package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +101 -0
  129. package/dist/m365/search/commands.js +2 -1
  130. package/dist/m365/spfx/commands/package/package-generate.js +46 -38
  131. package/dist/m365/spfx/commands/project/project-doctor.js +39 -22
  132. package/dist/m365/spfx/commands/project/project-externalize.js +15 -9
  133. package/dist/m365/spfx/commands/project/project-rename.js +23 -18
  134. package/dist/m365/spfx/commands/project/project-upgrade.js +53 -39
  135. package/dist/m365/spfx/commands/spfx-doctor.js +54 -19
  136. package/dist/m365/spo/commands/app/app-add.js +46 -29
  137. package/dist/m365/spo/commands/app/app-deploy.js +50 -34
  138. package/dist/m365/spo/commands/app/app-get.js +47 -30
  139. package/dist/m365/spo/commands/app/app-install.js +42 -24
  140. package/dist/m365/spo/commands/app/app-instance-list.js +30 -12
  141. package/dist/m365/spo/commands/app/app-list.js +41 -22
  142. package/dist/m365/spo/commands/app/app-remove.js +46 -29
  143. package/dist/m365/spo/commands/app/app-retract.js +46 -29
  144. package/dist/m365/spo/commands/app/app-teamspackage-download.js +40 -24
  145. package/dist/m365/spo/commands/app/app-uninstall.js +45 -28
  146. package/dist/m365/spo/commands/app/app-upgrade.js +42 -24
  147. package/dist/m365/spo/commands/apppage/apppage-add.js +43 -26
  148. package/dist/m365/spo/commands/apppage/apppage-set.js +36 -29
  149. package/dist/m365/spo/commands/cdn/cdn-get.js +38 -16
  150. package/dist/m365/spo/commands/cdn/cdn-origin-add.js +40 -21
  151. package/dist/m365/spo/commands/cdn/cdn-origin-list.js +38 -16
  152. package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +43 -25
  153. package/dist/m365/spo/commands/cdn/cdn-policy-list.js +38 -16
  154. package/dist/m365/spo/commands/cdn/cdn-policy-set.js +44 -26
  155. package/dist/m365/spo/commands/cdn/cdn-set.js +45 -27
  156. package/dist/m365/spo/commands/contenttype/contenttype-add.js +50 -32
  157. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +52 -39
  158. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +46 -35
  159. package/dist/m365/spo/commands/contenttype/contenttype-get.js +48 -26
  160. package/dist/m365/spo/commands/contenttype/contenttype-list.js +37 -15
  161. package/dist/m365/spo/commands/contenttype/contenttype-remove.js +48 -33
  162. package/dist/m365/spo/commands/customaction/customaction-add.js +143 -140
  163. package/dist/m365/spo/commands/customaction/customaction-clear.js +43 -28
  164. package/dist/m365/spo/commands/customaction/customaction-get.js +47 -32
  165. package/dist/m365/spo/commands/customaction/customaction-list.js +40 -21
  166. package/dist/m365/spo/commands/customaction/customaction-remove.js +50 -36
  167. package/dist/m365/spo/commands/customaction/customaction-set.js +129 -127
  168. package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +58 -46
  169. package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +49 -33
  170. package/dist/m365/spo/commands/externaluser/externaluser-list.js +50 -34
  171. package/dist/m365/spo/commands/feature/feature-disable.js +48 -33
  172. package/dist/m365/spo/commands/feature/feature-enable.js +48 -33
  173. package/dist/m365/spo/commands/feature/feature-list.js +40 -21
  174. package/dist/m365/spo/commands/field/field-add.js +44 -21
  175. package/dist/m365/spo/commands/field/field-get.js +56 -44
  176. package/dist/m365/spo/commands/field/field-list.js +45 -28
  177. package/dist/m365/spo/commands/field/field-remove.js +62 -52
  178. package/dist/m365/spo/commands/field/field-set.js +57 -45
  179. package/dist/m365/spo/commands/file/file-add.js +72 -64
  180. package/dist/m365/spo/commands/file/file-checkin.js +49 -33
  181. package/dist/m365/spo/commands/file/file-checkout.js +42 -24
  182. package/dist/m365/spo/commands/file/file-copy.js +44 -30
  183. package/dist/m365/spo/commands/file/file-get.js +54 -40
  184. package/dist/m365/spo/commands/file/file-list.js +39 -18
  185. package/dist/m365/spo/commands/file/file-move.js +44 -30
  186. package/dist/m365/spo/commands/file/file-remove.js +48 -32
  187. package/dist/m365/spo/commands/file/file-rename.js +41 -26
  188. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +42 -24
  189. package/dist/m365/spo/commands/folder/folder-add.js +32 -18
  190. package/dist/m365/spo/commands/folder/folder-copy.js +41 -26
  191. package/dist/m365/spo/commands/folder/folder-get.js +30 -15
  192. package/dist/m365/spo/commands/folder/folder-list.js +30 -15
  193. package/dist/m365/spo/commands/folder/folder-move.js +41 -26
  194. package/dist/m365/spo/commands/folder/folder-remove.js +42 -27
  195. package/dist/m365/spo/commands/folder/folder-rename.js +32 -18
  196. package/dist/m365/spo/commands/group/group-add.js +60 -44
  197. package/dist/m365/spo/commands/group/group-get.js +49 -34
  198. package/dist/m365/spo/commands/group/group-list.js +28 -12
  199. package/dist/m365/spo/commands/group/group-remove.js +45 -28
  200. package/dist/m365/spo/commands/group/group-set.js +74 -67
  201. package/dist/m365/spo/commands/group/group-user-add.js +48 -24
  202. package/dist/m365/spo/commands/group/group-user-list.js +42 -18
  203. package/dist/m365/spo/commands/group/group-user-remove.js +47 -31
  204. package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +37 -17
  205. package/dist/m365/spo/commands/homesite/homesite-remove.js +23 -14
  206. package/dist/m365/spo/commands/homesite/homesite-set.js +28 -12
  207. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +32 -15
  208. package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +37 -20
  209. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +37 -20
  210. package/dist/m365/spo/commands/hubsite/hubsite-get.js +54 -39
  211. package/dist/m365/spo/commands/hubsite/hubsite-list.js +20 -14
  212. package/dist/m365/spo/commands/hubsite/hubsite-register.js +28 -12
  213. package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +35 -19
  214. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +39 -23
  215. package/dist/m365/spo/commands/hubsite/hubsite-set.js +48 -34
  216. package/dist/m365/spo/commands/hubsite/hubsite-theme-sync.js +28 -12
  217. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +37 -20
  218. package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +23 -14
  219. package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +28 -12
  220. package/dist/m365/spo/commands/list/list-add.js +321 -365
  221. package/dist/m365/spo/commands/list/list-contenttype-add.js +47 -32
  222. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +47 -32
  223. package/dist/m365/spo/commands/list/list-contenttype-list.js +42 -24
  224. package/dist/m365/spo/commands/list/list-contenttype-remove.js +50 -36
  225. package/dist/m365/spo/commands/list/list-get.js +48 -32
  226. package/dist/m365/spo/commands/list/list-label-get.js +42 -24
  227. package/dist/m365/spo/commands/list/list-label-set.js +56 -43
  228. package/dist/m365/spo/commands/list/list-list.js +37 -20
  229. package/dist/m365/spo/commands/list/list-remove.js +45 -28
  230. package/dist/m365/spo/commands/list/list-roleassignment-add.js +208 -0
  231. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +171 -0
  232. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +48 -33
  233. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +45 -29
  234. package/dist/m365/spo/commands/list/list-set.js +318 -362
  235. package/dist/m365/spo/commands/list/list-sitescript-get.js +42 -24
  236. package/dist/m365/spo/commands/list/list-view-add.js +48 -40
  237. package/dist/m365/spo/commands/list/list-view-field-add.js +57 -44
  238. package/dist/m365/spo/commands/list/list-view-field-remove.js +57 -44
  239. package/dist/m365/spo/commands/list/list-view-field-set.js +56 -43
  240. package/dist/m365/spo/commands/list/list-view-get.js +51 -36
  241. package/dist/m365/spo/commands/list/list-view-list.js +42 -24
  242. package/dist/m365/spo/commands/list/list-view-remove.js +51 -36
  243. package/dist/m365/spo/commands/list/list-view-set.js +48 -32
  244. package/dist/m365/spo/commands/list/list-webhook-add.js +54 -39
  245. package/dist/m365/spo/commands/list/list-webhook-get.js +45 -28
  246. package/dist/m365/spo/commands/list/list-webhook-list.js +48 -32
  247. package/dist/m365/spo/commands/list/list-webhook-remove.js +48 -32
  248. package/dist/m365/spo/commands/list/list-webhook-set.js +54 -39
  249. package/dist/m365/spo/commands/listitem/listitem-add.js +65 -57
  250. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +44 -27
  251. package/dist/m365/spo/commands/listitem/listitem-get.js +49 -41
  252. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +44 -27
  253. package/dist/m365/spo/commands/listitem/listitem-list.js +66 -66
  254. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +47 -31
  255. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +44 -27
  256. package/dist/m365/spo/commands/listitem/listitem-remove.js +50 -35
  257. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +50 -29
  258. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +47 -32
  259. package/dist/m365/spo/commands/listitem/listitem-set.js +68 -63
  260. package/dist/m365/spo/commands/mail/mail-send.js +52 -41
  261. package/dist/m365/spo/commands/navigation/navigation-node-add.js +49 -34
  262. package/dist/m365/spo/commands/navigation/navigation-node-list.js +40 -21
  263. package/dist/m365/spo/commands/navigation/navigation-node-remove.js +45 -28
  264. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +43 -25
  265. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-list.js +0 -4
  266. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +18 -12
  267. package/dist/m365/spo/commands/orgnewssite/orgnewssite-list.js +0 -4
  268. package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +37 -20
  269. package/dist/m365/spo/commands/orgnewssite/orgnewssite-set.js +28 -12
  270. package/dist/m365/spo/commands/page/page-add.js +60 -48
  271. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +59 -47
  272. package/dist/m365/spo/commands/page/page-column-get.js +36 -21
  273. package/dist/m365/spo/commands/page/page-column-list.js +34 -18
  274. package/dist/m365/spo/commands/page/page-control-get.js +34 -18
  275. package/dist/m365/spo/commands/page/page-control-list.js +30 -15
  276. package/dist/m365/spo/commands/page/page-control-set.js +46 -24
  277. package/dist/m365/spo/commands/page/page-copy.js +41 -26
  278. package/dist/m365/spo/commands/page/page-get.js +32 -18
  279. package/dist/m365/spo/commands/page/page-header-set.js +74 -66
  280. package/dist/m365/spo/commands/page/page-list.js +28 -12
  281. package/dist/m365/spo/commands/page/page-remove.js +32 -18
  282. package/dist/m365/spo/commands/page/page-section-add.js +43 -21
  283. package/dist/m365/spo/commands/page/page-section-get.js +34 -18
  284. package/dist/m365/spo/commands/page/page-section-list.js +30 -15
  285. package/dist/m365/spo/commands/page/page-set.js +62 -50
  286. package/dist/m365/spo/commands/page/page-template-list.js +28 -12
  287. package/dist/m365/spo/commands/page/page-text-add.js +49 -34
  288. package/dist/m365/spo/commands/propertybag/propertybag-get.js +39 -23
  289. package/dist/m365/spo/commands/propertybag/propertybag-list.js +37 -20
  290. package/dist/m365/spo/commands/propertybag/propertybag-remove.js +42 -33
  291. package/dist/m365/spo/commands/propertybag/propertybag-set.js +41 -35
  292. package/dist/m365/spo/commands/roledefinition/roledefinition-get.js +32 -15
  293. package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +28 -12
  294. package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +41 -23
  295. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-add.js +18 -12
  296. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +16 -7
  297. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +30 -10
  298. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +30 -10
  299. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +40 -21
  300. package/dist/m365/spo/commands/site/site-add.js +101 -101
  301. package/dist/m365/spo/commands/site/site-appcatalog-add.js +28 -17
  302. package/dist/m365/spo/commands/site/site-appcatalog-remove.js +28 -17
  303. package/dist/m365/spo/commands/site/site-apppermission-add.js +42 -28
  304. package/dist/m365/spo/commands/site/site-apppermission-get.js +30 -15
  305. package/dist/m365/spo/commands/site/site-apppermission-list.js +40 -25
  306. package/dist/m365/spo/commands/site/site-apppermission-remove.js +46 -33
  307. package/dist/m365/spo/commands/site/site-apppermission-set.js +45 -32
  308. package/dist/m365/spo/commands/site/site-chrome-set.js +65 -53
  309. package/dist/m365/spo/commands/site/site-classic-add.js +66 -57
  310. package/dist/m365/spo/commands/site/site-classic-list.js +29 -22
  311. package/dist/m365/spo/commands/site/site-classic-set.js +74 -66
  312. package/dist/m365/spo/commands/site/site-commsite-enable.js +39 -20
  313. package/dist/m365/spo/commands/site/site-ensure.js +130 -131
  314. package/dist/m365/spo/commands/site/site-get.js +26 -10
  315. package/dist/m365/spo/commands/site/site-groupify.js +50 -38
  316. package/dist/m365/spo/commands/site/site-inplacerecordsmanagement-set.js +39 -20
  317. package/dist/m365/spo/commands/site/site-list.js +52 -36
  318. package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +43 -19
  319. package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +32 -15
  320. package/dist/m365/spo/commands/site/site-remove.js +46 -32
  321. package/dist/m365/spo/commands/site/site-rename.js +50 -38
  322. package/dist/m365/spo/commands/site/site-set.js +97 -99
  323. package/dist/m365/spo/commands/sitedesign/sitedesign-add.js +55 -41
  324. package/dist/m365/spo/commands/sitedesign/sitedesign-apply.js +41 -23
  325. package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +38 -16
  326. package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +39 -20
  327. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +35 -19
  328. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +30 -12
  329. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +41 -23
  330. package/dist/m365/spo/commands/sitedesign/sitedesign-run-list.js +39 -20
  331. package/dist/m365/spo/commands/sitedesign/sitedesign-run-status-get.js +32 -15
  332. package/dist/m365/spo/commands/sitedesign/sitedesign-set.js +64 -53
  333. package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +30 -12
  334. package/dist/m365/spo/commands/sitedesign/sitedesign-task-list.js +28 -12
  335. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +39 -20
  336. package/dist/m365/spo/commands/sitescript/sitescript-add.js +41 -23
  337. package/dist/m365/spo/commands/sitescript/sitescript-get.js +30 -12
  338. package/dist/m365/spo/commands/sitescript/sitescript-remove.js +39 -20
  339. package/dist/m365/spo/commands/sitescript/sitescript-set.js +48 -32
  340. package/dist/m365/spo/commands/spo-search.js +123 -126
  341. package/dist/m365/spo/commands/spo-set.js +28 -12
  342. package/dist/m365/spo/commands/storageentity/storageentity-get.js +16 -7
  343. package/dist/m365/spo/commands/storageentity/storageentity-list.js +28 -16
  344. package/dist/m365/spo/commands/storageentity/storageentity-remove.js +39 -29
  345. package/dist/m365/spo/commands/storageentity/storageentity-set.js +44 -36
  346. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +46 -24
  347. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +40 -24
  348. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +37 -20
  349. package/dist/m365/spo/commands/tenant/tenant-settings-set.js +375 -443
  350. package/dist/m365/spo/commands/term/term-add.js +63 -52
  351. package/dist/m365/spo/commands/term/term-get.js +52 -37
  352. package/dist/m365/spo/commands/term/term-group-add.js +42 -24
  353. package/dist/m365/spo/commands/term/term-group-get.js +40 -21
  354. package/dist/m365/spo/commands/term/term-list.js +46 -29
  355. package/dist/m365/spo/commands/term/term-set-add.js +51 -36
  356. package/dist/m365/spo/commands/term/term-set-get.js +46 -29
  357. package/dist/m365/spo/commands/term/term-set-list.js +40 -21
  358. package/dist/m365/spo/commands/theme/theme-apply.js +41 -23
  359. package/dist/m365/spo/commands/theme/theme-get.js +16 -7
  360. package/dist/m365/spo/commands/theme/theme-remove.js +25 -17
  361. package/dist/m365/spo/commands/theme/theme-set.js +41 -21
  362. package/dist/m365/spo/commands/user/user-get.js +45 -28
  363. package/dist/m365/spo/commands/user/user-list.js +28 -12
  364. package/dist/m365/spo/commands/user/user-remove.js +45 -28
  365. package/dist/m365/spo/commands/userprofile/userprofile-get.js +30 -12
  366. package/dist/m365/spo/commands/userprofile/userprofile-set.js +20 -15
  367. package/dist/m365/spo/commands/web/web-add.js +54 -41
  368. package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +28 -12
  369. package/dist/m365/spo/commands/web/web-get.js +37 -20
  370. package/dist/m365/spo/commands/web/web-installedlanguage-list.js +28 -12
  371. package/dist/m365/spo/commands/web/web-list.js +28 -12
  372. package/dist/m365/spo/commands/web/web-reindex.js +25 -12
  373. package/dist/m365/spo/commands/web/web-remove.js +37 -20
  374. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +63 -0
  375. package/dist/m365/spo/commands/web/web-set.js +70 -59
  376. package/dist/m365/spo/commands.js +3 -0
  377. package/dist/m365/teams/commands/app/app-install.js +37 -13
  378. package/dist/m365/teams/commands/app/app-list.js +43 -25
  379. package/dist/m365/teams/commands/app/app-publish.js +30 -12
  380. package/dist/m365/teams/commands/app/app-remove.js +39 -20
  381. package/dist/m365/teams/commands/app/app-uninstall.js +41 -18
  382. package/dist/m365/teams/commands/app/app-update.js +42 -24
  383. package/dist/m365/teams/commands/cache/cache-remove.js +26 -18
  384. package/dist/m365/teams/commands/channel/channel-add.js +52 -37
  385. package/dist/m365/teams/commands/channel/channel-get.js +47 -34
  386. package/dist/m365/teams/commands/channel/channel-list.js +43 -25
  387. package/dist/m365/teams/commands/channel/channel-member-add.js +65 -55
  388. package/dist/m365/teams/commands/channel/channel-member-list.js +50 -37
  389. package/dist/m365/teams/commands/channel/channel-member-remove.js +60 -54
  390. package/dist/m365/teams/commands/channel/channel-member-set.js +58 -48
  391. package/dist/m365/teams/commands/channel/channel-remove.js +45 -28
  392. package/dist/m365/teams/commands/channel/channel-set.js +50 -33
  393. package/dist/m365/teams/commands/chat/chat-get.js +63 -54
  394. package/dist/m365/teams/commands/chat/chat-list.js +38 -12
  395. package/dist/m365/teams/commands/chat/chat-member-list.js +30 -12
  396. package/dist/m365/teams/commands/chat/chat-message-list.js +30 -12
  397. package/dist/m365/teams/commands/chat/chat-message-send.js +62 -57
  398. package/dist/m365/teams/commands/chat/chatUtil.js +0 -12
  399. package/dist/m365/teams/commands/funsettings/funsettings-list.js +30 -12
  400. package/dist/m365/teams/commands/funsettings/funsettings-set.js +48 -32
  401. package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +30 -12
  402. package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +41 -25
  403. package/dist/m365/teams/commands/membersettings/membersettings-list.js +30 -12
  404. package/dist/m365/teams/commands/membersettings/membersettings-set.js +47 -34
  405. package/dist/m365/teams/commands/message/message-get.js +34 -18
  406. package/dist/m365/teams/commands/message/message-list.js +41 -18
  407. package/dist/m365/teams/commands/message/message-reply-list.js +34 -18
  408. package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +30 -12
  409. package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +47 -34
  410. package/dist/m365/teams/commands/report/report-directroutingcalls.js +39 -20
  411. package/dist/m365/teams/commands/report/report-pstncalls.js +39 -20
  412. package/dist/m365/teams/commands/tab/tab-add.js +59 -46
  413. package/dist/m365/teams/commands/tab/tab-get.js +50 -38
  414. package/dist/m365/teams/commands/tab/tab-list.js +32 -15
  415. package/dist/m365/teams/commands/tab/tab-remove.js +43 -26
  416. package/dist/m365/teams/commands/team/team-add.js +44 -30
  417. package/dist/m365/teams/commands/team/team-archive.js +46 -26
  418. package/dist/m365/teams/commands/team/team-clone.js +75 -64
  419. package/dist/m365/teams/commands/team/team-get.js +40 -21
  420. package/dist/m365/teams/commands/team/team-list.js +23 -14
  421. package/dist/m365/teams/commands/team/team-remove.js +43 -26
  422. package/dist/m365/teams/commands/team/team-set.js +55 -44
  423. package/dist/m365/teams/commands/team/team-unarchive.js +34 -18
  424. package/dist/m365/teams/commands/user/user-app-add.js +32 -15
  425. package/dist/m365/teams/commands/user/user-app-list.js +40 -21
  426. package/dist/m365/teams/commands/user/user-app-remove.js +41 -23
  427. package/dist/m365/teams/commands/user/user-list.js +38 -22
  428. package/dist/m365/tenant/commands/id/id-get.js +23 -9
  429. package/dist/m365/tenant/commands/security/security-alerts-list.js +22 -13
  430. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +22 -14
  431. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +22 -13
  432. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +16 -9
  433. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +16 -9
  434. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-get.js +30 -12
  435. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +23 -9
  436. package/dist/m365/todo/commands/list/list-add.js +16 -9
  437. package/dist/m365/todo/commands/list/list-remove.js +43 -25
  438. package/dist/m365/todo/commands/list/list-set.js +42 -27
  439. package/dist/m365/todo/commands/task/task-add.js +42 -24
  440. package/dist/m365/todo/commands/task/task-list.js +40 -21
  441. package/dist/m365/todo/commands/task/task-remove.js +45 -28
  442. package/dist/m365/todo/commands/task/task-set.js +58 -45
  443. package/dist/m365/util/commands/accesstoken/accesstoken-get.js +25 -12
  444. package/dist/m365/viva/commands/connections/connections-app-create.js +28 -21
  445. package/dist/m365/yammer/commands/group/group-list.js +37 -21
  446. package/dist/m365/yammer/commands/group/group-user-add.js +42 -24
  447. package/dist/m365/yammer/commands/group/group-user-remove.js +42 -24
  448. package/dist/m365/yammer/commands/message/message-add.js +48 -32
  449. package/dist/m365/yammer/commands/message/message-get.js +30 -12
  450. package/dist/m365/yammer/commands/message/message-like-set.js +39 -24
  451. package/dist/m365/yammer/commands/message/message-list.js +50 -38
  452. package/dist/m365/yammer/commands/message/message-remove.js +39 -20
  453. package/dist/m365/yammer/commands/network/network-list.js +23 -14
  454. package/dist/m365/yammer/commands/user/user-get.js +40 -21
  455. package/dist/m365/yammer/commands/user/user-list.js +47 -34
  456. package/dist/m365/yammer/commands/yammer-search.js +40 -25
  457. package/docs/docs/cmd/aad/app/app-add.md +12 -1
  458. package/docs/docs/cmd/aad/app/app-set.md +1 -1
  459. package/docs/docs/cmd/booking/business/business-get.md +33 -0
  460. package/docs/docs/cmd/booking/business/business-list.md +21 -0
  461. package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +40 -0
  462. package/docs/docs/cmd/spo/list/list-roleassignment-add.md +78 -0
  463. package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +54 -0
  464. package/docs/docs/cmd/spo/navigation/navigation-node-add.md +1 -1
  465. package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +1 -1
  466. package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +24 -0
  467. package/npm-shrinkwrap.json +2 -2
  468. package/package.json +12 -2
@@ -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 _TeamsReportPstncallsCommand_instances, _TeamsReportPstncallsCommand_initTelemetry, _TeamsReportPstncallsCommand_initOptions, _TeamsReportPstncallsCommand_initValidators;
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  const request_1 = require("../../../../request");
4
19
  const utils_1 = require("../../../../utils");
5
20
  const GraphCommand_1 = require("../../../base/GraphCommand");
6
21
  const commands_1 = require("../../commands");
7
22
  class TeamsReportPstncallsCommand extends GraphCommand_1.default {
23
+ constructor() {
24
+ super();
25
+ _TeamsReportPstncallsCommand_instances.add(this);
26
+ __classPrivateFieldGet(this, _TeamsReportPstncallsCommand_instances, "m", _TeamsReportPstncallsCommand_initTelemetry).call(this);
27
+ __classPrivateFieldGet(this, _TeamsReportPstncallsCommand_instances, "m", _TeamsReportPstncallsCommand_initOptions).call(this);
28
+ __classPrivateFieldGet(this, _TeamsReportPstncallsCommand_instances, "m", _TeamsReportPstncallsCommand_initValidators).call(this);
29
+ }
8
30
  get name() {
9
31
  return commands_1.default.REPORT_PSTNCALLS;
10
32
  }
11
33
  get description() {
12
34
  return 'Get details about PSTN calls made within a given time period';
13
35
  }
14
- getTelemetryProperties(args) {
15
- const telemetryProps = super.getTelemetryProperties(args);
16
- telemetryProps.toDateTime = typeof args.options.toDateTime !== 'undefined';
17
- return telemetryProps;
18
- }
19
36
  defaultProperties() {
20
37
  return ['id', 'calleeNumber', 'callerNumber', 'startDateTime'];
21
38
  }
@@ -35,19 +52,21 @@ class TeamsReportPstncallsCommand extends GraphCommand_1.default {
35
52
  cb();
36
53
  }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
37
54
  }
38
- options() {
39
- const options = [
40
- {
41
- option: '--fromDateTime <fromDateTime>'
42
- },
43
- {
44
- option: '--toDateTime [toDateTime]'
45
- }
46
- ];
47
- const parentOptions = super.options();
48
- return options.concat(parentOptions);
49
- }
50
- validate(args) {
55
+ }
56
+ _TeamsReportPstncallsCommand_instances = new WeakSet(), _TeamsReportPstncallsCommand_initTelemetry = function _TeamsReportPstncallsCommand_initTelemetry() {
57
+ this.telemetry.push((args) => {
58
+ Object.assign(this.telemetryProperties, {
59
+ toDateTime: typeof args.options.toDateTime !== 'undefined'
60
+ });
61
+ });
62
+ }, _TeamsReportPstncallsCommand_initOptions = function _TeamsReportPstncallsCommand_initOptions() {
63
+ this.options.unshift({
64
+ option: '--fromDateTime <fromDateTime>'
65
+ }, {
66
+ option: '--toDateTime [toDateTime]'
67
+ });
68
+ }, _TeamsReportPstncallsCommand_initValidators = function _TeamsReportPstncallsCommand_initValidators() {
69
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
51
70
  if (!utils_1.validation.isValidISODateDashOnly(args.options.fromDateTime)) {
52
71
  return 'The fromDateTime is not a valid ISO date string (YYYY-MM-DD)';
53
72
  }
@@ -59,7 +78,7 @@ class TeamsReportPstncallsCommand extends GraphCommand_1.default {
59
78
  return 'The maximum number of days between fromDateTime and toDateTime cannot exceed 90';
60
79
  }
61
80
  return true;
62
- }
63
- }
81
+ }));
82
+ };
64
83
  module.exports = new TeamsReportPstncallsCommand();
65
84
  //# sourceMappingURL=report-pstncalls.js.map
@@ -1,10 +1,32 @@
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 _TeamsTabAddCommand_instances, _TeamsTabAddCommand_initTelemetry, _TeamsTabAddCommand_initOptions, _TeamsTabAddCommand_initValidators;
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  const request_1 = require("../../../../request");
4
19
  const utils_1 = require("../../../../utils");
5
20
  const GraphCommand_1 = require("../../../base/GraphCommand");
6
21
  const commands_1 = require("../../commands");
7
22
  class TeamsTabAddCommand extends GraphCommand_1.default {
23
+ constructor() {
24
+ super();
25
+ _TeamsTabAddCommand_instances.add(this);
26
+ __classPrivateFieldGet(this, _TeamsTabAddCommand_instances, "m", _TeamsTabAddCommand_initTelemetry).call(this);
27
+ __classPrivateFieldGet(this, _TeamsTabAddCommand_instances, "m", _TeamsTabAddCommand_initOptions).call(this);
28
+ __classPrivateFieldGet(this, _TeamsTabAddCommand_instances, "m", _TeamsTabAddCommand_initValidators).call(this);
29
+ }
8
30
  get name() {
9
31
  return commands_1.default.TAB_ADD;
10
32
  }
@@ -14,13 +36,6 @@ class TeamsTabAddCommand extends GraphCommand_1.default {
14
36
  get description() {
15
37
  return 'Add a tab to the specified channel';
16
38
  }
17
- getTelemetryProperties(args) {
18
- const telemetryProps = super.getTelemetryProperties(args);
19
- telemetryProps.entityId = typeof args.options.entityId !== 'undefined';
20
- telemetryProps.removeUrl = typeof args.options.removeUrl !== 'undefined';
21
- telemetryProps.websiteUrl = typeof args.options.websiteUrl !== 'undefined';
22
- return telemetryProps;
23
- }
24
39
  commandAction(logger, args, cb) {
25
40
  const data = this.mapRequestBody(args.options);
26
41
  const requestOptions = {
@@ -39,45 +54,6 @@ class TeamsTabAddCommand extends GraphCommand_1.default {
39
54
  cb();
40
55
  }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
41
56
  }
42
- options() {
43
- const options = [
44
- {
45
- option: '-i, --teamId <teamId>'
46
- },
47
- {
48
- option: '-c, --channelId <channelId>'
49
- },
50
- {
51
- option: '--appId <appId>'
52
- },
53
- {
54
- option: '--appName <appName>'
55
- },
56
- {
57
- option: '--contentUrl <contentUrl>'
58
- },
59
- {
60
- option: '--entityId [entityId]'
61
- },
62
- {
63
- option: '--removeUrl [removeUrl]'
64
- },
65
- {
66
- option: '--websiteUrl [websiteUrl]'
67
- }
68
- ];
69
- const parentOptions = super.options();
70
- return options.concat(parentOptions);
71
- }
72
- validate(args) {
73
- if (!utils_1.validation.isValidGuid(args.options.teamId)) {
74
- return `${args.options.teamId} is not a valid GUID`;
75
- }
76
- if (!utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
77
- return `${args.options.channelId} is not a valid Teams ChannelId`;
78
- }
79
- return true;
80
- }
81
57
  mapRequestBody(options) {
82
58
  const requestBody = {};
83
59
  requestBody['configuration'] = {};
@@ -114,5 +90,42 @@ class TeamsTabAddCommand extends GraphCommand_1.default {
114
90
  return requestBody;
115
91
  }
116
92
  }
93
+ _TeamsTabAddCommand_instances = new WeakSet(), _TeamsTabAddCommand_initTelemetry = function _TeamsTabAddCommand_initTelemetry() {
94
+ this.telemetry.push((args) => {
95
+ Object.assign(this.telemetryProperties, {
96
+ entityId: typeof args.options.entityId !== 'undefined',
97
+ removeUrl: typeof args.options.removeUrl !== 'undefined',
98
+ websiteUrl: typeof args.options.websiteUrl !== 'undefined'
99
+ });
100
+ });
101
+ }, _TeamsTabAddCommand_initOptions = function _TeamsTabAddCommand_initOptions() {
102
+ this.options.unshift({
103
+ option: '-i, --teamId <teamId>'
104
+ }, {
105
+ option: '-c, --channelId <channelId>'
106
+ }, {
107
+ option: '--appId <appId>'
108
+ }, {
109
+ option: '--appName <appName>'
110
+ }, {
111
+ option: '--contentUrl <contentUrl>'
112
+ }, {
113
+ option: '--entityId [entityId]'
114
+ }, {
115
+ option: '--removeUrl [removeUrl]'
116
+ }, {
117
+ option: '--websiteUrl [websiteUrl]'
118
+ });
119
+ }, _TeamsTabAddCommand_initValidators = function _TeamsTabAddCommand_initValidators() {
120
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
121
+ if (!utils_1.validation.isValidGuid(args.options.teamId)) {
122
+ return `${args.options.teamId} is not a valid GUID`;
123
+ }
124
+ if (!utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
125
+ return `${args.options.channelId} is not a valid Teams ChannelId`;
126
+ }
127
+ return true;
128
+ }));
129
+ };
117
130
  module.exports = new TeamsTabAddCommand();
118
131
  //# sourceMappingURL=tab-add.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 _TeamsTabGetCommand_instances, _TeamsTabGetCommand_initTelemetry, _TeamsTabGetCommand_initOptions, _TeamsTabGetCommand_initValidators;
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  const request_1 = require("../../../../request");
4
19
  const utils_1 = require("../../../../utils");
@@ -7,9 +22,13 @@ const GraphCommand_1 = require("../../../base/GraphCommand");
7
22
  const commands_1 = require("../../commands");
8
23
  class TeamsTabGetCommand extends GraphCommand_1.default {
9
24
  constructor() {
10
- super(...arguments);
25
+ super();
26
+ _TeamsTabGetCommand_instances.add(this);
11
27
  this.teamId = "";
12
28
  this.channelId = "";
29
+ __classPrivateFieldGet(this, _TeamsTabGetCommand_instances, "m", _TeamsTabGetCommand_initTelemetry).call(this);
30
+ __classPrivateFieldGet(this, _TeamsTabGetCommand_instances, "m", _TeamsTabGetCommand_initOptions).call(this);
31
+ __classPrivateFieldGet(this, _TeamsTabGetCommand_instances, "m", _TeamsTabGetCommand_initValidators).call(this);
13
32
  }
14
33
  get name() {
15
34
  return commands_1.default.TAB_GET;
@@ -17,16 +36,6 @@ class TeamsTabGetCommand extends GraphCommand_1.default {
17
36
  get description() {
18
37
  return 'Gets information about the specified Microsoft Teams tab';
19
38
  }
20
- getTelemetryProperties(args) {
21
- const telemetryProps = super.getTelemetryProperties(args);
22
- telemetryProps.teamId = typeof args.options.teamId !== 'undefined';
23
- telemetryProps.teamName = typeof args.options.teamName !== 'undefined';
24
- telemetryProps.channelId = typeof args.options.channelId !== 'undefined';
25
- telemetryProps.channelName = typeof args.options.channelName !== 'undefined';
26
- telemetryProps.tabId = typeof args.options.tabId !== 'undefined';
27
- telemetryProps.tabName = typeof args.options.tabName !== 'undefined';
28
- return telemetryProps;
29
- }
30
39
  getTeamId(args) {
31
40
  if (args.options.teamId) {
32
41
  return Promise.resolve(args.options.teamId);
@@ -109,31 +118,34 @@ class TeamsTabGetCommand extends GraphCommand_1.default {
109
118
  cb();
110
119
  }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
111
120
  }
112
- options() {
113
- const options = [
114
- {
115
- option: '--teamId [teamId]'
116
- },
117
- {
118
- option: '--teamName [teamName]'
119
- },
120
- {
121
- option: '--channelId [channelId]'
122
- },
123
- {
124
- option: '--channelName [channelName]'
125
- },
126
- {
127
- option: '-i, --tabId [tabId]'
128
- },
129
- {
130
- option: '-n, --tabName [tabName]'
131
- }
132
- ];
133
- const parentOptions = super.options();
134
- return options.concat(parentOptions);
135
- }
136
- validate(args) {
121
+ }
122
+ _TeamsTabGetCommand_instances = new WeakSet(), _TeamsTabGetCommand_initTelemetry = function _TeamsTabGetCommand_initTelemetry() {
123
+ this.telemetry.push((args) => {
124
+ Object.assign(this.telemetryProperties, {
125
+ teamId: typeof args.options.teamId !== 'undefined',
126
+ teamName: typeof args.options.teamName !== 'undefined',
127
+ channelId: typeof args.options.channelId !== 'undefined',
128
+ channelName: typeof args.options.channelName !== 'undefined',
129
+ tabId: typeof args.options.tabId !== 'undefined',
130
+ tabName: typeof args.options.tabName !== 'undefined'
131
+ });
132
+ });
133
+ }, _TeamsTabGetCommand_initOptions = function _TeamsTabGetCommand_initOptions() {
134
+ this.options.unshift({
135
+ option: '--teamId [teamId]'
136
+ }, {
137
+ option: '--teamName [teamName]'
138
+ }, {
139
+ option: '--channelId [channelId]'
140
+ }, {
141
+ option: '--channelName [channelName]'
142
+ }, {
143
+ option: '-i, --tabId [tabId]'
144
+ }, {
145
+ option: '-n, --tabName [tabName]'
146
+ });
147
+ }, _TeamsTabGetCommand_initValidators = function _TeamsTabGetCommand_initValidators() {
148
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
137
149
  if (args.options.teamId && args.options.teamName) {
138
150
  return 'Specify either teamId or teamName, but not both.';
139
151
  }
@@ -162,7 +174,7 @@ class TeamsTabGetCommand extends GraphCommand_1.default {
162
174
  return `${args.options.tabId} is not a valid GUID`;
163
175
  }
164
176
  return true;
165
- }
166
- }
177
+ }));
178
+ };
167
179
  module.exports = new TeamsTabGetCommand();
168
180
  //# sourceMappingURL=tab-get.js.map
@@ -1,9 +1,30 @@
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 _TeamsTabListCommand_instances, _TeamsTabListCommand_initOptions, _TeamsTabListCommand_initValidators;
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  const utils_1 = require("../../../../utils");
4
19
  const GraphCommand_1 = require("../../../base/GraphCommand");
5
20
  const commands_1 = require("../../commands");
6
21
  class TeamsTabListCommand extends GraphCommand_1.default {
22
+ constructor() {
23
+ super();
24
+ _TeamsTabListCommand_instances.add(this);
25
+ __classPrivateFieldGet(this, _TeamsTabListCommand_instances, "m", _TeamsTabListCommand_initOptions).call(this);
26
+ __classPrivateFieldGet(this, _TeamsTabListCommand_instances, "m", _TeamsTabListCommand_initValidators).call(this);
27
+ }
7
28
  get name() {
8
29
  return commands_1.default.TAB_LIST;
9
30
  }
@@ -25,19 +46,15 @@ class TeamsTabListCommand extends GraphCommand_1.default {
25
46
  cb();
26
47
  }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
27
48
  }
28
- options() {
29
- const options = [
30
- {
31
- option: '-i, --teamId <teamId>'
32
- },
33
- {
34
- option: '-c, --channelId <channelId>'
35
- }
36
- ];
37
- const parentOptions = super.options();
38
- return options.concat(parentOptions);
39
- }
40
- validate(args) {
49
+ }
50
+ _TeamsTabListCommand_instances = new WeakSet(), _TeamsTabListCommand_initOptions = function _TeamsTabListCommand_initOptions() {
51
+ this.options.unshift({
52
+ option: '-i, --teamId <teamId>'
53
+ }, {
54
+ option: '-c, --channelId <channelId>'
55
+ });
56
+ }, _TeamsTabListCommand_initValidators = function _TeamsTabListCommand_initValidators() {
57
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
41
58
  if (!utils_1.validation.isValidGuid(args.options.teamId)) {
42
59
  return `${args.options.teamId} is not a valid GUID`;
43
60
  }
@@ -45,7 +62,7 @@ class TeamsTabListCommand extends GraphCommand_1.default {
45
62
  return `${args.options.channelId} is not a valid Teams ChannelId`;
46
63
  }
47
64
  return true;
48
- }
49
- }
65
+ }));
66
+ };
50
67
  module.exports = new TeamsTabListCommand();
51
68
  //# sourceMappingURL=tab-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 _TeamsTabRemoveCommand_instances, _TeamsTabRemoveCommand_initTelemetry, _TeamsTabRemoveCommand_initOptions, _TeamsTabRemoveCommand_initValidators;
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  const cli_1 = require("../../../../cli");
4
19
  const request_1 = require("../../../../request");
@@ -6,17 +21,19 @@ const utils_1 = require("../../../../utils");
6
21
  const GraphCommand_1 = require("../../../base/GraphCommand");
7
22
  const commands_1 = require("../../commands");
8
23
  class TeamsTabRemoveCommand extends GraphCommand_1.default {
24
+ constructor() {
25
+ super();
26
+ _TeamsTabRemoveCommand_instances.add(this);
27
+ __classPrivateFieldGet(this, _TeamsTabRemoveCommand_instances, "m", _TeamsTabRemoveCommand_initTelemetry).call(this);
28
+ __classPrivateFieldGet(this, _TeamsTabRemoveCommand_instances, "m", _TeamsTabRemoveCommand_initOptions).call(this);
29
+ __classPrivateFieldGet(this, _TeamsTabRemoveCommand_instances, "m", _TeamsTabRemoveCommand_initValidators).call(this);
30
+ }
9
31
  get name() {
10
32
  return commands_1.default.TAB_REMOVE;
11
33
  }
12
34
  get description() {
13
35
  return "Removes a tab from the specified channel";
14
36
  }
15
- getTelemetryProperties(args) {
16
- const telemetryProps = super.getTelemetryProperties(args);
17
- telemetryProps.confirm = (!!args.options.confirm).toString();
18
- return telemetryProps;
19
- }
20
37
  commandAction(logger, args, cb) {
21
38
  const removeTab = () => {
22
39
  const requestOptions = {
@@ -47,25 +64,25 @@ class TeamsTabRemoveCommand extends GraphCommand_1.default {
47
64
  });
48
65
  }
49
66
  }
50
- options() {
51
- const options = [
52
- {
53
- option: "-i, --teamId <teamId>"
54
- },
55
- {
56
- option: "-c, --channelId <channelId>"
57
- },
58
- {
59
- option: "-t, --tabId <tabId>"
60
- },
61
- {
62
- option: "--confirm"
63
- }
64
- ];
65
- const parentOptions = super.options();
66
- return options.concat(parentOptions);
67
- }
68
- validate(args) {
67
+ }
68
+ _TeamsTabRemoveCommand_instances = new WeakSet(), _TeamsTabRemoveCommand_initTelemetry = function _TeamsTabRemoveCommand_initTelemetry() {
69
+ this.telemetry.push((args) => {
70
+ Object.assign(this.telemetryProperties, {
71
+ confirm: (!!args.options.confirm).toString()
72
+ });
73
+ });
74
+ }, _TeamsTabRemoveCommand_initOptions = function _TeamsTabRemoveCommand_initOptions() {
75
+ this.options.unshift({
76
+ option: "-i, --teamId <teamId>"
77
+ }, {
78
+ option: "-c, --channelId <channelId>"
79
+ }, {
80
+ option: "-t, --tabId <tabId>"
81
+ }, {
82
+ option: "--confirm"
83
+ });
84
+ }, _TeamsTabRemoveCommand_initValidators = function _TeamsTabRemoveCommand_initValidators() {
85
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
69
86
  if (!utils_1.validation.isValidGuid(args.options.teamId)) {
70
87
  return `${args.options.teamId} is not a valid GUID`;
71
88
  }
@@ -76,7 +93,7 @@ class TeamsTabRemoveCommand extends GraphCommand_1.default {
76
93
  return `${args.options.tabId} is not a valid GUID`;
77
94
  }
78
95
  return true;
79
- }
80
- }
96
+ }));
97
+ };
81
98
  module.exports = new TeamsTabRemoveCommand();
82
99
  //# sourceMappingURL=tab-remove.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 _TeamsTeamAddCommand_instances, _TeamsTeamAddCommand_initTelemetry, _TeamsTeamAddCommand_initOptions, _TeamsTeamAddCommand_initValidators;
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  const request_1 = require("../../../../request");
4
19
  const aadGroup_1 = require("../../../../utils/aadGroup");
@@ -14,8 +29,12 @@ var TeamsAsyncOperationStatus;
14
29
  })(TeamsAsyncOperationStatus || (TeamsAsyncOperationStatus = {}));
15
30
  class TeamsTeamAddCommand extends GraphCommand_1.default {
16
31
  constructor() {
17
- super(...arguments);
32
+ super();
33
+ _TeamsTeamAddCommand_instances.add(this);
18
34
  this.pollingInterval = 30000;
35
+ __classPrivateFieldGet(this, _TeamsTeamAddCommand_instances, "m", _TeamsTeamAddCommand_initTelemetry).call(this);
36
+ __classPrivateFieldGet(this, _TeamsTeamAddCommand_instances, "m", _TeamsTeamAddCommand_initOptions).call(this);
37
+ __classPrivateFieldGet(this, _TeamsTeamAddCommand_instances, "m", _TeamsTeamAddCommand_initValidators).call(this);
19
38
  }
20
39
  get name() {
21
40
  return commands_1.default.TEAM_ADD;
@@ -23,14 +42,6 @@ class TeamsTeamAddCommand extends GraphCommand_1.default {
23
42
  get description() {
24
43
  return 'Adds a new Microsoft Teams team';
25
44
  }
26
- getTelemetryProperties(args) {
27
- const telemetryProps = super.getTelemetryProperties(args);
28
- telemetryProps.name = typeof args.options.name !== 'undefined';
29
- telemetryProps.description = typeof args.options.description !== 'undefined';
30
- telemetryProps.template = typeof args.options.template !== 'undefined';
31
- telemetryProps.wait = args.options.wait;
32
- return telemetryProps;
33
- }
34
45
  commandAction(logger, args, cb) {
35
46
  this.dots = '';
36
47
  let requestBody;
@@ -128,25 +139,28 @@ class TeamsTeamAddCommand extends GraphCommand_1.default {
128
139
  }, this.pollingInterval);
129
140
  }).catch(err => reject(err));
130
141
  }
131
- options() {
132
- const options = [
133
- {
134
- option: '-n, --name [name]'
135
- },
136
- {
137
- option: '-d, --description [description]'
138
- },
139
- {
140
- option: '--template [template]'
141
- },
142
- {
143
- option: '--wait'
144
- }
145
- ];
146
- const parentOptions = super.options();
147
- return options.concat(parentOptions);
148
- }
149
- validate(args) {
142
+ }
143
+ _TeamsTeamAddCommand_instances = new WeakSet(), _TeamsTeamAddCommand_initTelemetry = function _TeamsTeamAddCommand_initTelemetry() {
144
+ this.telemetry.push((args) => {
145
+ Object.assign(this.telemetryProperties, {
146
+ name: typeof args.options.name !== 'undefined',
147
+ description: typeof args.options.description !== 'undefined',
148
+ template: typeof args.options.template !== 'undefined',
149
+ wait: args.options.wait
150
+ });
151
+ });
152
+ }, _TeamsTeamAddCommand_initOptions = function _TeamsTeamAddCommand_initOptions() {
153
+ this.options.unshift({
154
+ option: '-n, --name [name]'
155
+ }, {
156
+ option: '-d, --description [description]'
157
+ }, {
158
+ option: '--template [template]'
159
+ }, {
160
+ option: '--wait'
161
+ });
162
+ }, _TeamsTeamAddCommand_initValidators = function _TeamsTeamAddCommand_initValidators() {
163
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
150
164
  if (!args.options.template) {
151
165
  if (!args.options.name) {
152
166
  return `Required parameter name missing`;
@@ -156,7 +170,7 @@ class TeamsTeamAddCommand extends GraphCommand_1.default {
156
170
  }
157
171
  }
158
172
  return true;
159
- }
160
- }
173
+ }));
174
+ };
161
175
  module.exports = new TeamsTeamAddCommand();
162
176
  //# sourceMappingURL=team-add.js.map