@pnp/cli-microsoft365 5.8.0 → 5.9.0-beta.21a8d94

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 (458) hide show
  1. package/dist/Auth.js +4 -4
  2. package/dist/Command.js +8 -8
  3. package/dist/api.js +3 -3
  4. package/dist/cli/Cli.js +6 -4
  5. package/dist/index.js +2 -2
  6. package/dist/m365/aad/commands/app/app-add.js +4 -3
  7. package/dist/m365/aad/commands/app/app-get.js +3 -3
  8. package/dist/m365/aad/commands/app/app-remove.js +5 -5
  9. package/dist/m365/aad/commands/app/app-role-list.js +2 -2
  10. package/dist/m365/aad/commands/app/app-role-remove.js +4 -4
  11. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +4 -4
  12. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +3 -3
  13. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +6 -6
  14. package/dist/m365/aad/commands/group/group-list.js +2 -2
  15. package/dist/m365/aad/commands/groupsetting/groupsetting-add.js +2 -2
  16. package/dist/m365/aad/commands/groupsetting/groupsetting-get.js +2 -2
  17. package/dist/m365/aad/commands/groupsetting/groupsetting-list.js +2 -2
  18. package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +4 -4
  19. package/dist/m365/aad/commands/groupsetting/groupsetting-set.js +2 -2
  20. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +4 -3
  21. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-list.js +2 -2
  22. package/dist/m365/aad/commands/o365group/o365group-add.js +2 -2
  23. package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +4 -3
  24. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +4 -3
  25. package/dist/m365/aad/commands/o365group/o365group-get.js +2 -2
  26. package/dist/m365/aad/commands/o365group/o365group-list.js +2 -2
  27. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +4 -4
  28. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +2 -2
  29. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-remove.js +7 -6
  30. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +5 -4
  31. package/dist/m365/aad/commands/o365group/o365group-remove.js +4 -4
  32. package/dist/m365/aad/commands/o365group/o365group-renew.js +2 -2
  33. package/dist/m365/aad/commands/o365group/o365group-set.js +2 -2
  34. package/dist/m365/aad/commands/o365group/o365group-teamify.js +2 -2
  35. package/dist/m365/aad/commands/o365group/o365group-user-add.js +3 -3
  36. package/dist/m365/aad/commands/o365group/o365group-user-list.js +5 -4
  37. package/dist/m365/aad/commands/o365group/o365group-user-remove.js +5 -5
  38. package/dist/m365/aad/commands/o365group/o365group-user-set.js +6 -5
  39. package/dist/m365/aad/commands/oauth2grant/oauth2grant-add.js +3 -3
  40. package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +2 -2
  41. package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +2 -2
  42. package/dist/m365/aad/commands/siteclassification/siteclassification-disable.js +2 -2
  43. package/dist/m365/aad/commands/sp/sp-add.js +3 -3
  44. package/dist/m365/aad/commands/sp/sp-get.js +3 -3
  45. package/dist/m365/aad/commands/user/user-get.js +2 -2
  46. package/dist/m365/aad/commands/user/user-hibp.js +2 -2
  47. package/dist/m365/aad/commands/user/user-list.js +2 -2
  48. package/dist/m365/aad/commands/user/user-set.js +2 -2
  49. package/dist/m365/aad/commands/user/user-signin-list.js +5 -4
  50. package/dist/m365/app/commands/app-get.js +2 -2
  51. package/dist/m365/app/commands/app-open.js +2 -2
  52. package/dist/m365/app/commands/permission/permission-list.js +2 -2
  53. package/dist/m365/base/AppCommand.js +4 -4
  54. package/dist/m365/booking/commands/business/business-list.js +2 -2
  55. package/dist/m365/cli/commands/cli-doctor.js +4 -4
  56. package/dist/m365/cli/commands/cli-reconsent.js +2 -2
  57. package/dist/m365/cli/commands/config/config-get.js +2 -2
  58. package/dist/m365/cli/commands/config/config-reset.js +3 -3
  59. package/dist/m365/cli/commands/config/config-set.js +2 -2
  60. package/dist/m365/commands/status.js +3 -3
  61. package/dist/m365/file/commands/file-add.js +3 -3
  62. package/dist/m365/file/commands/file-list.js +4 -3
  63. package/dist/m365/flow/commands/flow-export.js +2 -2
  64. package/dist/m365/flow/commands/flow-remove.js +4 -4
  65. package/dist/m365/flow/commands/run/run-cancel.js +4 -4
  66. package/dist/m365/flow/commands/run/run-resubmit.js +4 -4
  67. package/dist/m365/graph/commands/changelog/changelog-list.js +5 -4
  68. package/dist/m365/graph/commands/schemaextension/schemaextension-add.js +2 -2
  69. package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +2 -2
  70. package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +2 -2
  71. package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +2 -2
  72. package/dist/m365/graph/commands/subscription/subscription-add.js +2 -2
  73. package/dist/m365/onedrive/commands/onedrive-list.js +3 -3
  74. package/dist/m365/onenote/commands/notebook/notebook-list.js +5 -4
  75. package/dist/m365/outlook/commands/message/message-list.js +2 -2
  76. package/dist/m365/outlook/commands/room/room-list.js +2 -2
  77. package/dist/m365/outlook/commands/roomlist/roomlist-list.js +2 -2
  78. package/dist/m365/pa/commands/app/app-get.js +4 -4
  79. package/dist/m365/pa/commands/app/app-list.js +2 -2
  80. package/dist/m365/pa/commands/app/app-remove.js +4 -4
  81. package/dist/m365/pa/commands/connector/connector-list.js +2 -2
  82. package/dist/m365/pa/commands/pcf/pcf-init.js +4 -4
  83. package/dist/m365/pa/commands/solution/solution-init.js +2 -2
  84. package/dist/m365/planner/commands/bucket/bucket-add.js +4 -3
  85. package/dist/m365/planner/commands/bucket/bucket-get.js +4 -3
  86. package/dist/m365/planner/commands/bucket/bucket-list.js +6 -4
  87. package/dist/m365/planner/commands/bucket/bucket-remove.js +6 -5
  88. package/dist/m365/planner/commands/bucket/bucket-set.js +4 -3
  89. package/dist/m365/planner/commands/plan/plan-add.js +9 -6
  90. package/dist/m365/planner/commands/plan/plan-get.js +4 -3
  91. package/dist/m365/planner/commands/plan/plan-list.js +4 -3
  92. package/dist/m365/planner/commands/plan/plan-remove.js +6 -5
  93. package/dist/m365/planner/commands/task/task-add.js +9 -7
  94. package/dist/m365/planner/commands/task/task-checklistitem-list.js +2 -2
  95. package/dist/m365/planner/commands/task/task-checklistitem-remove.js +2 -2
  96. package/dist/m365/planner/commands/task/task-get.js +4 -3
  97. package/dist/m365/planner/commands/task/task-list.js +11 -9
  98. package/dist/m365/planner/commands/task/task-reference-add.js +2 -2
  99. package/dist/m365/planner/commands/task/task-reference-list.js +2 -2
  100. package/dist/m365/planner/commands/task/task-reference-remove.js +4 -4
  101. package/dist/m365/planner/commands/task/task-remove.js +8 -6
  102. package/dist/m365/planner/commands/task/task-set.js +9 -7
  103. package/dist/m365/planner/commands/tenant/tenant-settings-set.js +2 -2
  104. package/dist/m365/pp/commands/managementapp/managementapp-add.js +3 -3
  105. package/dist/m365/pp/commands/managementapp/managementapp-list.js +2 -2
  106. package/dist/m365/search/commands/externalconnection/externalconnection-list.js +2 -2
  107. package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +2 -2
  108. package/dist/m365/spfx/commands/package/package-generate.js +4 -4
  109. package/dist/m365/spfx/commands/project/base-project-command.js +19 -18
  110. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001008_DEP_react.js +2 -2
  111. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001009_DEP_react_dom.js +2 -2
  112. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001022_DEP_office_ui_fabric_react.js +2 -2
  113. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002015_DEVDEP_types_react.js +2 -2
  114. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002016_DEVDEP_types_react_dom.js +2 -2
  115. package/dist/m365/spfx/commands/project/project-doctor.js +7 -7
  116. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001005_DEP_types_react.js +2 -2
  117. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001006_DEP_types_react_dom.js +2 -2
  118. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001008_DEP_react.js +2 -2
  119. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001009_DEP_react_dom.js +2 -2
  120. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001015_DEP_types_react_addons_shallow_compare.js +2 -2
  121. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001016_DEP_types_react_addons_update.js +2 -2
  122. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001017_DEP_types_react_addons_update.js +2 -2
  123. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001019_DEP_knockout.js +2 -2
  124. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001020_DEP_types_knockout.js +2 -2
  125. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js +2 -2
  126. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002015_DEVDEP_types_react.js +2 -2
  127. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002016_DEVDEP_types_react_dom.js +2 -2
  128. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002025_DEVDEP_eslint_plugin_react_hooks.js +2 -2
  129. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +2 -2
  130. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN020001_RES_types_react.js +2 -2
  131. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022001_SCSS_remove_fabric_react.js +2 -2
  132. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022002_SCSS_add_fabric_react.js +2 -2
  133. package/dist/m365/spfx/commands/project/project-upgrade.js +24 -23
  134. package/dist/m365/spo/commands/app/app-add.js +4 -3
  135. package/dist/m365/spo/commands/app/app-deploy.js +5 -4
  136. package/dist/m365/spo/commands/app/app-get.js +5 -4
  137. package/dist/m365/spo/commands/app/app-install.js +3 -3
  138. package/dist/m365/spo/commands/app/app-instance-list.js +2 -2
  139. package/dist/m365/spo/commands/app/app-list.js +4 -3
  140. package/dist/m365/spo/commands/app/app-remove.js +7 -6
  141. package/dist/m365/spo/commands/app/app-retract.js +7 -6
  142. package/dist/m365/spo/commands/app/app-uninstall.js +5 -5
  143. package/dist/m365/spo/commands/app/app-upgrade.js +3 -3
  144. package/dist/m365/spo/commands/apppage/apppage-add.js +2 -2
  145. package/dist/m365/spo/commands/apppage/apppage-set.js +2 -2
  146. package/dist/m365/spo/commands/cdn/cdn-get.js +4 -4
  147. package/dist/m365/spo/commands/cdn/cdn-origin-add.js +6 -5
  148. package/dist/m365/spo/commands/cdn/cdn-origin-list.js +4 -4
  149. package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +8 -7
  150. package/dist/m365/spo/commands/cdn/cdn-policy-list.js +4 -4
  151. package/dist/m365/spo/commands/cdn/cdn-policy-set.js +6 -5
  152. package/dist/m365/spo/commands/cdn/cdn-set.js +3 -3
  153. package/dist/m365/spo/commands/contenttype/contenttype-add.js +11 -9
  154. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +11 -9
  155. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +8 -6
  156. package/dist/m365/spo/commands/contenttype/contenttype-get.js +4 -3
  157. package/dist/m365/spo/commands/contenttype/contenttype-list.js +2 -2
  158. package/dist/m365/spo/commands/contenttype/contenttype-remove.js +4 -4
  159. package/dist/m365/spo/commands/contenttype/contenttype-set.js +13 -11
  160. package/dist/m365/spo/commands/contenttypehub/contenttypehub-get.js +3 -3
  161. package/dist/m365/spo/commands/customaction/customaction-add.js +3 -3
  162. package/dist/m365/spo/commands/customaction/customaction-clear.js +4 -4
  163. package/dist/m365/spo/commands/customaction/customaction-get.js +3 -3
  164. package/dist/m365/spo/commands/customaction/customaction-list.js +2 -2
  165. package/dist/m365/spo/commands/customaction/customaction-remove.js +5 -5
  166. package/dist/m365/spo/commands/customaction/customaction-set.js +4 -4
  167. package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +9 -7
  168. package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +5 -4
  169. package/dist/m365/spo/commands/externaluser/externaluser-list.js +8 -6
  170. package/dist/m365/spo/commands/feature/feature-enable.js +2 -2
  171. package/dist/m365/spo/commands/feature/feature-list.js +2 -2
  172. package/dist/m365/spo/commands/field/field-add.js +6 -4
  173. package/dist/m365/spo/commands/field/field-get.js +12 -10
  174. package/dist/m365/spo/commands/field/field-list.js +9 -7
  175. package/dist/m365/spo/commands/field/field-remove.js +14 -12
  176. package/dist/m365/spo/commands/field/field-set.js +12 -10
  177. package/dist/m365/spo/commands/file/file-add.js +8 -5
  178. package/dist/m365/spo/commands/file/file-checkin.js +3 -3
  179. package/dist/m365/spo/commands/file/file-checkout.js +3 -3
  180. package/dist/m365/spo/commands/file/file-copy.js +10 -8
  181. package/dist/m365/spo/commands/file/file-get.js +3 -3
  182. package/dist/m365/spo/commands/file/file-list.js +4 -3
  183. package/dist/m365/spo/commands/file/file-move.js +10 -8
  184. package/dist/m365/spo/commands/file/file-remove.js +5 -5
  185. package/dist/m365/spo/commands/file/file-rename.js +7 -6
  186. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +5 -4
  187. package/dist/m365/spo/commands/folder/folder-add.js +4 -3
  188. package/dist/m365/spo/commands/folder/folder-copy.js +8 -6
  189. package/dist/m365/spo/commands/folder/folder-get.js +4 -3
  190. package/dist/m365/spo/commands/folder/folder-list.js +4 -3
  191. package/dist/m365/spo/commands/folder/folder-move.js +8 -6
  192. package/dist/m365/spo/commands/folder/folder-remove.js +6 -5
  193. package/dist/m365/spo/commands/folder/folder-rename.js +8 -6
  194. package/dist/m365/spo/commands/group/group-add.js +3 -3
  195. package/dist/m365/spo/commands/group/group-get.js +2 -2
  196. package/dist/m365/spo/commands/group/group-list.js +2 -2
  197. package/dist/m365/spo/commands/group/group-remove.js +4 -4
  198. package/dist/m365/spo/commands/group/group-set.js +5 -5
  199. package/dist/m365/spo/commands/group/group-user-add.js +4 -4
  200. package/dist/m365/spo/commands/group/group-user-list.js +2 -2
  201. package/dist/m365/spo/commands/group/group-user-remove.js +4 -4
  202. package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-get.js +2 -2
  203. package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +2 -2
  204. package/dist/m365/spo/commands/homesite/homesite-get.js +2 -2
  205. package/dist/m365/spo/commands/homesite/homesite-remove.js +5 -5
  206. package/dist/m365/spo/commands/homesite/homesite-set.js +7 -5
  207. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +5 -4
  208. package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +2 -2
  209. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +6 -5
  210. package/dist/m365/spo/commands/hubsite/hubsite-get.js +8 -7
  211. package/dist/m365/spo/commands/hubsite/hubsite-list.js +2 -2
  212. package/dist/m365/spo/commands/hubsite/hubsite-register.js +4 -3
  213. package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +8 -6
  214. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +10 -8
  215. package/dist/m365/spo/commands/hubsite/hubsite-set.js +10 -8
  216. package/dist/m365/spo/commands/hubsite/hubsite-theme-sync.js +2 -2
  217. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +6 -5
  218. package/dist/m365/spo/commands/knowledgehub/knowledgehub-get.js +3 -3
  219. package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +5 -5
  220. package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +7 -5
  221. package/dist/m365/spo/commands/list/list-add.js +5 -5
  222. package/dist/m365/spo/commands/list/list-contenttype-add.js +6 -5
  223. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +6 -5
  224. package/dist/m365/spo/commands/list/list-contenttype-list.js +6 -5
  225. package/dist/m365/spo/commands/list/list-contenttype-remove.js +8 -7
  226. package/dist/m365/spo/commands/list/list-get.js +6 -5
  227. package/dist/m365/spo/commands/list/list-label-get.js +8 -6
  228. package/dist/m365/spo/commands/list/list-label-set.js +9 -7
  229. package/dist/m365/spo/commands/list/list-list.js +2 -2
  230. package/dist/m365/spo/commands/list/list-remove.js +8 -7
  231. package/dist/m365/spo/commands/list/list-roleassignment-add.js +13 -11
  232. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +13 -11
  233. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +6 -5
  234. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +6 -5
  235. package/dist/m365/spo/commands/list/list-set.js +6 -6
  236. package/dist/m365/spo/commands/list/list-sitescript-get.js +8 -6
  237. package/dist/m365/spo/commands/list/list-view-add.js +8 -6
  238. package/dist/m365/spo/commands/list/list-view-field-add.js +8 -7
  239. package/dist/m365/spo/commands/list/list-view-field-remove.js +10 -9
  240. package/dist/m365/spo/commands/list/list-view-field-set.js +8 -7
  241. package/dist/m365/spo/commands/list/list-view-get.js +11 -9
  242. package/dist/m365/spo/commands/list/list-view-list.js +6 -5
  243. package/dist/m365/spo/commands/list/list-view-remove.js +9 -8
  244. package/dist/m365/spo/commands/list/list-view-set.js +10 -8
  245. package/dist/m365/spo/commands/list/list-webhook-add.js +6 -5
  246. package/dist/m365/spo/commands/list/list-webhook-get.js +7 -6
  247. package/dist/m365/spo/commands/list/list-webhook-list.js +10 -9
  248. package/dist/m365/spo/commands/list/list-webhook-remove.js +9 -8
  249. package/dist/m365/spo/commands/list/list-webhook-set.js +7 -6
  250. package/dist/m365/spo/commands/listitem/listitem-add.js +10 -7
  251. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +6 -5
  252. package/dist/m365/spo/commands/listitem/listitem-get.js +6 -5
  253. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +9 -7
  254. package/dist/m365/spo/commands/listitem/listitem-list.js +9 -7
  255. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +10 -8
  256. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +9 -7
  257. package/dist/m365/spo/commands/listitem/listitem-remove.js +8 -7
  258. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +13 -11
  259. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +6 -5
  260. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +6 -5
  261. package/dist/m365/spo/commands/listitem/listitem-set.js +8 -6
  262. package/dist/m365/spo/commands/mail/mail-send.js +2 -2
  263. package/dist/m365/spo/commands/navigation/navigation-node-add.js +2 -2
  264. package/dist/m365/spo/commands/navigation/navigation-node-list.js +2 -2
  265. package/dist/m365/spo/commands/navigation/navigation-node-remove.js +6 -5
  266. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +6 -5
  267. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-list.js +3 -3
  268. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +5 -5
  269. package/dist/m365/spo/commands/orgnewssite/orgnewssite-list.js +3 -3
  270. package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +9 -7
  271. package/dist/m365/spo/commands/orgnewssite/orgnewssite-set.js +7 -5
  272. package/dist/m365/spo/commands/page/Page.js +2 -2
  273. package/dist/m365/spo/commands/page/page-add.js +6 -4
  274. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +3 -3
  275. package/dist/m365/spo/commands/page/page-column-get.js +2 -2
  276. package/dist/m365/spo/commands/page/page-column-list.js +2 -2
  277. package/dist/m365/spo/commands/page/page-control-get.js +3 -3
  278. package/dist/m365/spo/commands/page/page-control-list.js +2 -2
  279. package/dist/m365/spo/commands/page/page-control-set.js +3 -3
  280. package/dist/m365/spo/commands/page/page-copy.js +2 -2
  281. package/dist/m365/spo/commands/page/page-get.js +4 -3
  282. package/dist/m365/spo/commands/page/page-header-set.js +2 -2
  283. package/dist/m365/spo/commands/page/page-list.js +2 -2
  284. package/dist/m365/spo/commands/page/page-remove.js +8 -6
  285. package/dist/m365/spo/commands/page/page-section-add.js +2 -2
  286. package/dist/m365/spo/commands/page/page-section-get.js +2 -2
  287. package/dist/m365/spo/commands/page/page-section-list.js +2 -2
  288. package/dist/m365/spo/commands/page/page-set.js +6 -4
  289. package/dist/m365/spo/commands/page/page-template-list.js +2 -2
  290. package/dist/m365/spo/commands/page/page-text-add.js +6 -4
  291. package/dist/m365/spo/commands/propertybag/propertybag-base.js +4 -3
  292. package/dist/m365/spo/commands/propertybag/propertybag-get.js +5 -4
  293. package/dist/m365/spo/commands/propertybag/propertybag-list.js +5 -4
  294. package/dist/m365/spo/commands/propertybag/propertybag-remove.js +10 -8
  295. package/dist/m365/spo/commands/propertybag/propertybag-set.js +6 -5
  296. package/dist/m365/spo/commands/roledefinition/roledefinition-add.js +2 -2
  297. package/dist/m365/spo/commands/roledefinition/roledefinition-get.js +2 -2
  298. package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +2 -2
  299. package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +4 -4
  300. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-add.js +5 -4
  301. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +3 -3
  302. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +5 -4
  303. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +7 -5
  304. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +7 -5
  305. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-list.js +3 -3
  306. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +5 -5
  307. package/dist/m365/spo/commands/site/site-add.js +18 -16
  308. package/dist/m365/spo/commands/site/site-appcatalog-add.js +7 -5
  309. package/dist/m365/spo/commands/site/site-appcatalog-remove.js +7 -5
  310. package/dist/m365/spo/commands/site/site-apppermission-add.js +3 -3
  311. package/dist/m365/spo/commands/site/site-apppermission-get.js +2 -2
  312. package/dist/m365/spo/commands/site/site-apppermission-list.js +2 -2
  313. package/dist/m365/spo/commands/site/site-apppermission-remove.js +5 -5
  314. package/dist/m365/spo/commands/site/site-apppermission-set.js +3 -3
  315. package/dist/m365/spo/commands/site/site-chrome-set.js +2 -2
  316. package/dist/m365/spo/commands/site/site-classic-add.js +15 -13
  317. package/dist/m365/spo/commands/site/site-classic-list.js +5 -4
  318. package/dist/m365/spo/commands/site/site-classic-set.js +14 -12
  319. package/dist/m365/spo/commands/site/site-commsite-enable.js +8 -6
  320. package/dist/m365/spo/commands/site/site-ensure.js +8 -8
  321. package/dist/m365/spo/commands/site/site-get.js +2 -2
  322. package/dist/m365/spo/commands/site/site-groupify.js +2 -2
  323. package/dist/m365/spo/commands/site/site-inplacerecordsmanagement-set.js +3 -3
  324. package/dist/m365/spo/commands/site/site-list.js +5 -4
  325. package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +2 -2
  326. package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +6 -5
  327. package/dist/m365/spo/commands/site/site-remove.js +18 -16
  328. package/dist/m365/spo/commands/site/site-rename.js +3 -3
  329. package/dist/m365/spo/commands/site/site-set.js +24 -21
  330. package/dist/m365/spo/commands/sitedesign/sitedesign-add.js +5 -4
  331. package/dist/m365/spo/commands/sitedesign/sitedesign-apply.js +5 -4
  332. package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +4 -3
  333. package/dist/m365/spo/commands/sitedesign/sitedesign-list.js +2 -2
  334. package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +7 -6
  335. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +5 -4
  336. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +5 -4
  337. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +7 -6
  338. package/dist/m365/spo/commands/sitedesign/sitedesign-run-list.js +3 -3
  339. package/dist/m365/spo/commands/sitedesign/sitedesign-run-status-get.js +3 -3
  340. package/dist/m365/spo/commands/sitedesign/sitedesign-set.js +5 -4
  341. package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +4 -3
  342. package/dist/m365/spo/commands/sitedesign/sitedesign-task-list.js +2 -2
  343. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +6 -5
  344. package/dist/m365/spo/commands/sitescript/sitescript-add.js +3 -3
  345. package/dist/m365/spo/commands/sitescript/sitescript-get.js +5 -4
  346. package/dist/m365/spo/commands/sitescript/sitescript-list.js +3 -3
  347. package/dist/m365/spo/commands/sitescript/sitescript-remove.js +7 -6
  348. package/dist/m365/spo/commands/sitescript/sitescript-set.js +5 -4
  349. package/dist/m365/spo/commands/spo-search.js +5 -4
  350. package/dist/m365/spo/commands/spo-set.js +2 -2
  351. package/dist/m365/spo/commands/storageentity/storageentity-get.js +2 -2
  352. package/dist/m365/spo/commands/storageentity/storageentity-list.js +2 -2
  353. package/dist/m365/spo/commands/storageentity/storageentity-remove.js +9 -7
  354. package/dist/m365/spo/commands/storageentity/storageentity-set.js +7 -5
  355. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +7 -7
  356. package/dist/m365/spo/commands/tenant/tenant-appcatalogurl-get.js +2 -2
  357. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-list.js +3 -3
  358. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +10 -8
  359. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +4 -3
  360. package/dist/m365/spo/commands/tenant/tenant-settings-list.js +3 -3
  361. package/dist/m365/spo/commands/tenant/tenant-settings-set.js +6 -5
  362. package/dist/m365/spo/commands/term/term-add.js +15 -13
  363. package/dist/m365/spo/commands/term/term-get.js +11 -9
  364. package/dist/m365/spo/commands/term/term-group-add.js +8 -6
  365. package/dist/m365/spo/commands/term/term-group-get.js +7 -5
  366. package/dist/m365/spo/commands/term/term-group-list.js +3 -3
  367. package/dist/m365/spo/commands/term/term-list.js +9 -7
  368. package/dist/m365/spo/commands/term/term-set-add.js +11 -9
  369. package/dist/m365/spo/commands/term/term-set-get.js +9 -7
  370. package/dist/m365/spo/commands/term/term-set-list.js +7 -5
  371. package/dist/m365/spo/commands/theme/theme-apply.js +7 -5
  372. package/dist/m365/spo/commands/theme/theme-get.js +5 -4
  373. package/dist/m365/spo/commands/theme/theme-list.js +2 -2
  374. package/dist/m365/spo/commands/theme/theme-remove.js +4 -4
  375. package/dist/m365/spo/commands/theme/theme-set.js +7 -5
  376. package/dist/m365/spo/commands/user/user-get.js +2 -2
  377. package/dist/m365/spo/commands/user/user-list.js +2 -2
  378. package/dist/m365/spo/commands/user/user-remove.js +4 -4
  379. package/dist/m365/spo/commands/userprofile/userprofile-get.js +4 -3
  380. package/dist/m365/spo/commands/userprofile/userprofile-set.js +3 -3
  381. package/dist/m365/spo/commands/web/web-add.js +5 -4
  382. package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +2 -2
  383. package/dist/m365/spo/commands/web/web-get.js +2 -2
  384. package/dist/m365/spo/commands/web/web-installedlanguage-list.js +2 -2
  385. package/dist/m365/spo/commands/web/web-list.js +2 -2
  386. package/dist/m365/spo/commands/web/web-reindex.js +6 -5
  387. package/dist/m365/spo/commands/web/web-remove.js +4 -4
  388. package/dist/m365/spo/commands/web/web-roleassignment-add.js +6 -6
  389. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +6 -6
  390. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +2 -2
  391. package/dist/m365/spo/commands/web/web-set.js +2 -2
  392. package/dist/m365/teams/commands/app/app-install.js +6 -6
  393. package/dist/m365/teams/commands/app/app-list.js +4 -3
  394. package/dist/m365/teams/commands/app/app-remove.js +4 -4
  395. package/dist/m365/teams/commands/app/app-uninstall.js +4 -4
  396. package/dist/m365/teams/commands/app/app-update.js +2 -2
  397. package/dist/m365/teams/commands/cache/cache-remove.js +2 -2
  398. package/dist/m365/teams/commands/channel/channel-add.js +2 -2
  399. package/dist/m365/teams/commands/channel/channel-get.js +3 -3
  400. package/dist/m365/teams/commands/channel/channel-list.js +4 -3
  401. package/dist/m365/teams/commands/channel/channel-member-add.js +3 -3
  402. package/dist/m365/teams/commands/channel/channel-member-list.js +5 -4
  403. package/dist/m365/teams/commands/channel/channel-member-remove.js +6 -6
  404. package/dist/m365/teams/commands/channel/channel-member-set.js +4 -4
  405. package/dist/m365/teams/commands/channel/channel-remove.js +5 -5
  406. package/dist/m365/teams/commands/channel/channel-set.js +2 -2
  407. package/dist/m365/teams/commands/chat/chat-list.js +2 -2
  408. package/dist/m365/teams/commands/chat/chat-member-list.js +4 -3
  409. package/dist/m365/teams/commands/chat/chat-message-list.js +4 -3
  410. package/dist/m365/teams/commands/chat/chat-message-send.js +5 -4
  411. package/dist/m365/teams/commands/funsettings/funsettings-list.js +2 -2
  412. package/dist/m365/teams/commands/funsettings/funsettings-set.js +2 -2
  413. package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +2 -2
  414. package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +2 -2
  415. package/dist/m365/teams/commands/membersettings/membersettings-list.js +2 -2
  416. package/dist/m365/teams/commands/membersettings/membersettings-set.js +2 -2
  417. package/dist/m365/teams/commands/message/message-get.js +3 -3
  418. package/dist/m365/teams/commands/message/message-list.js +7 -6
  419. package/dist/m365/teams/commands/message/message-reply-list.js +5 -4
  420. package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +2 -2
  421. package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +3 -3
  422. package/dist/m365/teams/commands/report/report-directroutingcalls.js +3 -3
  423. package/dist/m365/teams/commands/report/report-pstncalls.js +3 -3
  424. package/dist/m365/teams/commands/tab/tab-add.js +3 -3
  425. package/dist/m365/teams/commands/tab/tab-get.js +4 -4
  426. package/dist/m365/teams/commands/tab/tab-list.js +5 -4
  427. package/dist/m365/teams/commands/tab/tab-remove.js +6 -6
  428. package/dist/m365/teams/commands/team/team-archive.js +3 -3
  429. package/dist/m365/teams/commands/team/team-clone.js +3 -3
  430. package/dist/m365/teams/commands/team/team-get.js +2 -2
  431. package/dist/m365/teams/commands/team/team-list.js +2 -2
  432. package/dist/m365/teams/commands/team/team-remove.js +5 -5
  433. package/dist/m365/teams/commands/team/team-set.js +3 -3
  434. package/dist/m365/teams/commands/team/team-unarchive.js +3 -3
  435. package/dist/m365/teams/commands/user/user-app-add.js +3 -3
  436. package/dist/m365/teams/commands/user/user-app-list.js +5 -4
  437. package/dist/m365/teams/commands/user/user-app-remove.js +4 -4
  438. package/dist/m365/teams/commands/user/user-list.js +5 -4
  439. package/dist/m365/tenant/commands/id/id-get.js +2 -2
  440. package/dist/m365/tenant/commands/report/report-office365activationcounts.js +2 -2
  441. package/dist/m365/tenant/commands/report/report-office365activationsusercounts.js +2 -2
  442. package/dist/m365/tenant/commands/report/report-office365activationsuserdetail.js +2 -2
  443. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +2 -2
  444. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +2 -2
  445. package/dist/m365/todo/commands/list/list-list.js +2 -2
  446. package/dist/m365/todo/commands/list/list-remove.js +2 -2
  447. package/dist/m365/todo/commands/task/task-list.js +2 -2
  448. package/dist/m365/todo/commands/task/task-remove.js +2 -2
  449. package/dist/m365/viva/commands/connections/connections-app-create.js +2 -2
  450. package/dist/m365/yammer/commands/group/group-user-remove.js +2 -2
  451. package/dist/m365/yammer/commands/message/message-like-set.js +2 -2
  452. package/dist/m365/yammer/commands/message/message-remove.js +2 -2
  453. package/dist/request.js +4 -4
  454. package/dist/utils/spo.js +7 -6
  455. package/npm-shrinkwrap.json +2 -2
  456. package/package.json +2 -2
  457. package/dist/cli/index.js +0 -21
  458. package/dist/utils/index.js +0 -31
@@ -17,7 +17,7 @@ var _PlannerTaskChecklistItemListCommand_instances, _PlannerTaskChecklistItemLis
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const Auth_1 = require("../../../../Auth");
19
19
  const request_1 = require("../../../../request");
20
- const utils_1 = require("../../../../utils");
20
+ const accessToken_1 = require("../../../../utils/accessToken");
21
21
  const GraphCommand_1 = require("../../../base/GraphCommand");
22
22
  const commands_1 = require("../../commands");
23
23
  class PlannerTaskChecklistItemListCommand extends GraphCommand_1.default {
@@ -37,7 +37,7 @@ class PlannerTaskChecklistItemListCommand extends GraphCommand_1.default {
37
37
  }
38
38
  commandAction(logger, args) {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
- if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
40
+ if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
41
41
  this.handleError('This command does not support application permissions.');
42
42
  return;
43
43
  }
@@ -15,7 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
15
15
  };
16
16
  var _PlannerTaskChecklistItemRemoveCommand_instances, _PlannerTaskChecklistItemRemoveCommand_initTelemetry, _PlannerTaskChecklistItemRemoveCommand_initOptions;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- const cli_1 = require("../../../../cli");
18
+ const Cli_1 = require("../../../../cli/Cli");
19
19
  const request_1 = require("../../../../request");
20
20
  const GraphCommand_1 = require("../../../base/GraphCommand");
21
21
  const commands_1 = require("../../commands");
@@ -38,7 +38,7 @@ class PlannerTaskChecklistItemRemoveCommand extends GraphCommand_1.default {
38
38
  yield this.removeChecklistitem(args);
39
39
  }
40
40
  else {
41
- const result = yield cli_1.Cli.prompt({
41
+ const result = yield Cli_1.Cli.prompt({
42
42
  type: 'confirm',
43
43
  name: 'continue',
44
44
  default: false,
@@ -17,7 +17,8 @@ var _PlannerTaskGetCommand_instances, _PlannerTaskGetCommand_initTelemetry, _Pla
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const Auth_1 = require("../../../../Auth");
19
19
  const request_1 = require("../../../../request");
20
- const utils_1 = require("../../../../utils");
20
+ const accessToken_1 = require("../../../../utils/accessToken");
21
+ const validation_1 = require("../../../../utils/validation");
21
22
  const aadGroup_1 = require("../../../../utils/aadGroup");
22
23
  const planner_1 = require("../../../../utils/planner");
23
24
  const GraphCommand_1 = require("../../../base/GraphCommand");
@@ -47,7 +48,7 @@ class PlannerTaskGetCommand extends GraphCommand_1.default {
47
48
  args.options.planTitle = args.options.planName;
48
49
  this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
49
50
  }
50
- if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
51
+ if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
51
52
  this.handleError('This command does not support application permissions.');
52
53
  return;
53
54
  }
@@ -208,7 +209,7 @@ _PlannerTaskGetCommand_instances = new WeakSet(), _PlannerTaskGetCommand_initTel
208
209
  if ((args.options.planName || args.options.planTitle) && args.options.ownerGroupId && args.options.ownerGroupName) {
209
210
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
210
211
  }
211
- if (args.options.ownerGroupId && !utils_1.validation.isValidGuid(args.options.ownerGroupId)) {
212
+ if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
212
213
  return `${args.options.ownerGroupId} is not a valid GUID`;
213
214
  }
214
215
  return true;
@@ -17,7 +17,9 @@ var _PlannerTaskListCommand_instances, _PlannerTaskListCommand_initTelemetry, _P
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const Auth_1 = require("../../../../Auth");
19
19
  const request_1 = require("../../../../request");
20
- const utils_1 = require("../../../../utils");
20
+ const accessToken_1 = require("../../../../utils/accessToken");
21
+ const odata_1 = require("../../../../utils/odata");
22
+ const validation_1 = require("../../../../utils/validation");
21
23
  const aadGroup_1 = require("../../../../utils/aadGroup");
22
24
  const planner_1 = require("../../../../utils/planner");
23
25
  const GraphCommand_1 = require("../../../base/GraphCommand");
@@ -45,7 +47,7 @@ class PlannerTaskListCommand extends GraphCommand_1.default {
45
47
  args.options.planTitle = args.options.planName;
46
48
  this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
47
49
  }
48
- if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
50
+ if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
49
51
  this.handleError('This command does not support application permissions.');
50
52
  return;
51
53
  }
@@ -57,8 +59,8 @@ class PlannerTaskListCommand extends GraphCommand_1.default {
57
59
  if (bucketId || bucketName) {
58
60
  try {
59
61
  bucketId = yield this.getBucketId(args);
60
- taskItems = yield utils_1.odata.getAllItems(`${this.resource}/v1.0/planner/buckets/${bucketId}/tasks`);
61
- const betaTasks = yield utils_1.odata.getAllItems(`${this.resource}/beta/planner/buckets/${bucketId}/tasks`);
62
+ taskItems = yield odata_1.odata.getAllItems(`${this.resource}/v1.0/planner/buckets/${bucketId}/tasks`);
63
+ const betaTasks = yield odata_1.odata.getAllItems(`${this.resource}/beta/planner/buckets/${bucketId}/tasks`);
62
64
  logger.log(this.mergeTaskPriority(taskItems, betaTasks));
63
65
  }
64
66
  catch (err) {
@@ -68,8 +70,8 @@ class PlannerTaskListCommand extends GraphCommand_1.default {
68
70
  else if (planId || planTitle) {
69
71
  try {
70
72
  planId = yield this.getPlanId(args);
71
- taskItems = yield utils_1.odata.getAllItems(`${this.resource}/v1.0/planner/plans/${planId}/tasks`);
72
- const betaTasks = yield utils_1.odata.getAllItems(`${this.resource}/beta/planner/plans/${planId}/tasks`);
73
+ taskItems = yield odata_1.odata.getAllItems(`${this.resource}/v1.0/planner/plans/${planId}/tasks`);
74
+ const betaTasks = yield odata_1.odata.getAllItems(`${this.resource}/beta/planner/plans/${planId}/tasks`);
73
75
  logger.log(this.mergeTaskPriority(taskItems, betaTasks));
74
76
  }
75
77
  catch (err) {
@@ -78,8 +80,8 @@ class PlannerTaskListCommand extends GraphCommand_1.default {
78
80
  }
79
81
  else {
80
82
  try {
81
- taskItems = yield utils_1.odata.getAllItems(`${this.resource}/v1.0/me/planner/tasks`);
82
- const betaTasks = yield utils_1.odata.getAllItems(`${this.resource}/beta/me/planner/tasks`);
83
+ taskItems = yield odata_1.odata.getAllItems(`${this.resource}/v1.0/me/planner/tasks`);
84
+ const betaTasks = yield odata_1.odata.getAllItems(`${this.resource}/beta/me/planner/tasks`);
83
85
  logger.log(this.mergeTaskPriority(taskItems, betaTasks));
84
86
  }
85
87
  catch (err) {
@@ -186,7 +188,7 @@ _PlannerTaskListCommand_instances = new WeakSet(), _PlannerTaskListCommand_initT
186
188
  if ((args.options.planName || args.options.planTitle) && args.options.ownerGroupId && args.options.ownerGroupName) {
187
189
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
188
190
  }
189
- if (args.options.ownerGroupId && !utils_1.validation.isValidGuid(args.options.ownerGroupId)) {
191
+ if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
190
192
  return `${args.options.ownerGroupId} is not a valid GUID`;
191
193
  }
192
194
  return true;
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
16
16
  var _PlannerTaskReferenceAddCommand_instances, _PlannerTaskReferenceAddCommand_initTelemetry, _PlannerTaskReferenceAddCommand_initOptions, _PlannerTaskReferenceAddCommand_initValidators;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
- const utils_1 = require("../../../../utils");
19
+ const formatting_1 = require("../../../../utils/formatting");
20
20
  const GraphCommand_1 = require("../../../base/GraphCommand");
21
21
  const commands_1 = require("../../commands");
22
22
  class PlannerTaskReferenceAddCommand extends GraphCommand_1.default {
@@ -47,7 +47,7 @@ class PlannerTaskReferenceAddCommand extends GraphCommand_1.default {
47
47
  responseType: 'json',
48
48
  data: {
49
49
  references: {
50
- [utils_1.formatting.openTypesEncoder(args.options.url)]: Object.assign(Object.assign({ '@odata.type': 'microsoft.graph.plannerExternalReference', previewPriority: ' !' }, (args.options.alias && { alias: args.options.alias })), (args.options.type && { type: args.options.type }))
50
+ [formatting_1.formatting.openTypesEncoder(args.options.url)]: Object.assign(Object.assign({ '@odata.type': 'microsoft.graph.plannerExternalReference', previewPriority: ' !' }, (args.options.alias && { alias: args.options.alias })), (args.options.type && { type: args.options.type }))
51
51
  }
52
52
  }
53
53
  };
@@ -17,7 +17,7 @@ var _PlannerTaskReferenceListCommand_instances, _PlannerTaskReferenceListCommand
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const Auth_1 = require("../../../../Auth");
19
19
  const request_1 = require("../../../../request");
20
- const utils_1 = require("../../../../utils");
20
+ const accessToken_1 = require("../../../../utils/accessToken");
21
21
  const GraphCommand_1 = require("../../../base/GraphCommand");
22
22
  const commands_1 = require("../../commands");
23
23
  class PlannerTaskReferenceListCommand extends GraphCommand_1.default {
@@ -34,7 +34,7 @@ class PlannerTaskReferenceListCommand extends GraphCommand_1.default {
34
34
  }
35
35
  commandAction(logger, args) {
36
36
  return __awaiter(this, void 0, void 0, function* () {
37
- if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
37
+ if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
38
38
  this.handleError('This command does not support application permissions.');
39
39
  return;
40
40
  }
@@ -15,9 +15,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
15
15
  };
16
16
  var _PlannerTaskReferenceRemoveCommand_instances, _PlannerTaskReferenceRemoveCommand_initTelemetry, _PlannerTaskReferenceRemoveCommand_initOptions, _PlannerTaskReferenceRemoveCommand_initValidators, _PlannerTaskReferenceRemoveCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- const cli_1 = require("../../../../cli");
18
+ const Cli_1 = require("../../../../cli/Cli");
19
19
  const request_1 = require("../../../../request");
20
- const utils_1 = require("../../../../utils");
20
+ const formatting_1 = require("../../../../utils/formatting");
21
21
  const GraphCommand_1 = require("../../../base/GraphCommand");
22
22
  const commands_1 = require("../../commands");
23
23
  class PlannerTaskReferenceRemoveCommand extends GraphCommand_1.default {
@@ -41,7 +41,7 @@ class PlannerTaskReferenceRemoveCommand extends GraphCommand_1.default {
41
41
  yield this.removeReference(logger, args);
42
42
  }
43
43
  else {
44
- const result = yield cli_1.Cli.prompt({
44
+ const result = yield Cli_1.Cli.prompt({
45
45
  type: 'confirm',
46
46
  name: 'continue',
47
47
  default: false,
@@ -67,7 +67,7 @@ class PlannerTaskReferenceRemoveCommand extends GraphCommand_1.default {
67
67
  responseType: 'json',
68
68
  data: {
69
69
  references: {
70
- [utils_1.formatting.openTypesEncoder(url)]: null
70
+ [formatting_1.formatting.openTypesEncoder(url)]: null
71
71
  }
72
72
  }
73
73
  };
@@ -16,9 +16,11 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
16
16
  var _PlannerTaskRemoveCommand_instances, _PlannerTaskRemoveCommand_initTelemetry, _PlannerTaskRemoveCommand_initOptions, _PlannerTaskRemoveCommand_initValidators, _PlannerTaskRemoveCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const os = require("os");
19
- const cli_1 = require("../../../../cli");
19
+ const Cli_1 = require("../../../../cli/Cli");
20
20
  const request_1 = require("../../../../request");
21
- const utils_1 = require("../../../../utils");
21
+ const aadGroup_1 = require("../../../../utils/aadGroup");
22
+ const odata_1 = require("../../../../utils/odata");
23
+ const validation_1 = require("../../../../utils/validation");
22
24
  const planner_1 = require("../../../../utils/planner");
23
25
  const GraphCommand_1 = require("../../../base/GraphCommand");
24
26
  const commands_1 = require("../../commands");
@@ -60,7 +62,7 @@ class PlannerTaskRemoveCommand extends GraphCommand_1.default {
60
62
  yield removeTask();
61
63
  }
62
64
  else {
63
- const result = yield cli_1.Cli.prompt({
65
+ const result = yield Cli_1.Cli.prompt({
64
66
  type: 'confirm',
65
67
  name: 'continue',
66
68
  default: false,
@@ -88,7 +90,7 @@ class PlannerTaskRemoveCommand extends GraphCommand_1.default {
88
90
  .getBucketId(options)
89
91
  .then(bucketId => {
90
92
  // $filter is not working on the buckets/{bucketId}/tasks endpoint, hence it is not being used.
91
- return utils_1.odata.getAllItems(`${this.resource}/v1.0/planner/buckets/${bucketId}/tasks?$select=title,id`, 'minimal');
93
+ return odata_1.odata.getAllItems(`${this.resource}/v1.0/planner/buckets/${bucketId}/tasks?$select=title,id`, 'minimal');
92
94
  })
93
95
  .then(tasks => {
94
96
  const filteredtasks = tasks.filter(b => title.toLocaleLowerCase() === b.title.toLocaleLowerCase());
@@ -144,7 +146,7 @@ class PlannerTaskRemoveCommand extends GraphCommand_1.default {
144
146
  if (ownerGroupId) {
145
147
  return Promise.resolve(ownerGroupId);
146
148
  }
147
- return utils_1.aadGroup
149
+ return aadGroup_1.aadGroup
148
150
  .getGroupByDisplayName(ownerGroupName)
149
151
  .then(group => group.id);
150
152
  }
@@ -195,7 +197,7 @@ _PlannerTaskRemoveCommand_instances = new WeakSet(), _PlannerTaskRemoveCommand_i
195
197
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
196
198
  }
197
199
  }
198
- if (args.options.ownerGroupId && !utils_1.validation.isValidGuid(args.options.ownerGroupId)) {
200
+ if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
199
201
  return `${args.options.ownerGroupId} is not a valid GUID`;
200
202
  }
201
203
  }
@@ -17,7 +17,9 @@ var _PlannerTaskSetCommand_instances, _PlannerTaskSetCommand_initTelemetry, _Pla
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const Auth_1 = require("../../../../Auth");
19
19
  const request_1 = require("../../../../request");
20
- const utils_1 = require("../../../../utils");
20
+ const accessToken_1 = require("../../../../utils/accessToken");
21
+ const formatting_1 = require("../../../../utils/formatting");
22
+ const validation_1 = require("../../../../utils/validation");
21
23
  const aadGroup_1 = require("../../../../utils/aadGroup");
22
24
  const planner_1 = require("../../../../utils/planner");
23
25
  const GraphCommand_1 = require("../../../base/GraphCommand");
@@ -44,7 +46,7 @@ class PlannerTaskSetCommand extends GraphCommand_1.default {
44
46
  args.options.planTitle = args.options.planName;
45
47
  this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
46
48
  }
47
- if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
49
+ if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
48
50
  this.handleError('This command does not support application permissions.');
49
51
  return;
50
52
  }
@@ -156,7 +158,7 @@ class PlannerTaskSetCommand extends GraphCommand_1.default {
156
158
  let userIds = [];
157
159
  const promises = userArr.map(user => {
158
160
  const requestOptions = {
159
- url: `${this.resource}/v1.0/users?$filter=userPrincipalName eq '${utils_1.formatting.encodeQueryParameter(user)}'&$select=id,userPrincipalName`,
161
+ url: `${this.resource}/v1.0/users?$filter=userPrincipalName eq '${formatting_1.formatting.encodeQueryParameter(user)}'&$select=id,userPrincipalName`,
160
162
  headers: {
161
163
  'accept ': 'application/json;odata.metadata=none'
162
164
  },
@@ -299,13 +301,13 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
299
301
  if ((args.options.planName || args.options.planTitle) && args.options.ownerGroupId && args.options.ownerGroupName) {
300
302
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
301
303
  }
302
- if (args.options.ownerGroupId && !utils_1.validation.isValidGuid(args.options.ownerGroupId)) {
304
+ if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
303
305
  return `${args.options.ownerGroupId} is not a valid GUID`;
304
306
  }
305
- if (args.options.startDateTime && !utils_1.validation.isValidISODateTime(args.options.startDateTime)) {
307
+ if (args.options.startDateTime && !validation_1.validation.isValidISODateTime(args.options.startDateTime)) {
306
308
  return 'The startDateTime is not a valid ISO date string';
307
309
  }
308
- if (args.options.dueDateTime && !utils_1.validation.isValidISODateTime(args.options.dueDateTime)) {
310
+ if (args.options.dueDateTime && !validation_1.validation.isValidISODateTime(args.options.dueDateTime)) {
309
311
  return 'The dueDateTime is not a valid ISO date string';
310
312
  }
311
313
  if (args.options.percentComplete && isNaN(args.options.percentComplete)) {
@@ -314,7 +316,7 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
314
316
  if (args.options.percentComplete && (args.options.percentComplete < 0 || args.options.percentComplete > 100)) {
315
317
  return `percentComplete should be between 0 and 100`;
316
318
  }
317
- if (args.options.assignedToUserIds && !utils_1.validation.isValidGuidArray(args.options.assignedToUserIds.split(','))) {
319
+ if (args.options.assignedToUserIds && !validation_1.validation.isValidGuidArray(args.options.assignedToUserIds.split(','))) {
318
320
  return 'assignedToUserIds contains invalid GUID';
319
321
  }
320
322
  if (args.options.assignedToUserIds && args.options.assignedToUserNames) {
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
16
16
  var _PlannerTenantSettingsSetCommand_instances, _PlannerTenantSettingsSetCommand_initTelemetry, _PlannerTenantSettingsSetCommand_initOptions, _PlannerTenantSettingsSetCommand_initValidators;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
- const utils_1 = require("../../../../utils");
19
+ const validation_1 = require("../../../../utils/validation");
20
20
  const PlannerCommand_1 = require("../../../base/PlannerCommand");
21
21
  const commands_1 = require("../../commands");
22
22
  class PlannerTenantSettingsSetCommand extends PlannerCommand_1.default {
@@ -102,7 +102,7 @@ _PlannerTenantSettingsSetCommand_instances = new WeakSet(), _PlannerTenantSettin
102
102
  return 'You must specify at least one option';
103
103
  }
104
104
  for (const option of optionsArray) {
105
- if (typeof option !== 'undefined' && !utils_1.validation.isValidBoolean(option)) {
105
+ if (typeof option !== 'undefined' && !validation_1.validation.isValidBoolean(option)) {
106
106
  return `Value '${option}' is not a valid boolean`;
107
107
  }
108
108
  }
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
16
16
  var _PpManagementAppAddCommand_instances, _PpManagementAppAddCommand_initTelemetry, _PpManagementAppAddCommand_initOptions, _PpManagementAppAddCommand_initValidators, _PpManagementAppAddCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
- const utils_1 = require("../../../../utils");
19
+ const validation_1 = require("../../../../utils/validation");
20
20
  const PowerPlatformCommand_1 = require("../../../base/PowerPlatformCommand");
21
21
  const commands_1 = require("../../commands");
22
22
  class PpManagementAppAddCommand extends PowerPlatformCommand_1.default {
@@ -95,10 +95,10 @@ _PpManagementAppAddCommand_instances = new WeakSet(), _PpManagementAppAddCommand
95
95
  this.options.unshift({ option: '--appId [appId]' }, { option: '--objectId [objectId]' }, { option: '--name [name]' });
96
96
  }, _PpManagementAppAddCommand_initValidators = function _PpManagementAppAddCommand_initValidators() {
97
97
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
98
- if (args.options.appId && !utils_1.validation.isValidGuid(args.options.appId)) {
98
+ if (args.options.appId && !validation_1.validation.isValidGuid(args.options.appId)) {
99
99
  return `${args.options.appId} is not a valid GUID`;
100
100
  }
101
- if (args.options.objectId && !utils_1.validation.isValidGuid(args.options.objectId)) {
101
+ if (args.options.objectId && !validation_1.validation.isValidGuid(args.options.objectId)) {
102
102
  return `${args.options.objectId} is not a valid GUID`;
103
103
  }
104
104
  return true;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- const utils_1 = require("../../../../utils");
12
+ const odata_1 = require("../../../../utils/odata");
13
13
  const PowerPlatformCommand_1 = require("../../../base/PowerPlatformCommand");
14
14
  const commands_1 = require("../../commands");
15
15
  class PpManagementAppListCommand extends PowerPlatformCommand_1.default {
@@ -23,7 +23,7 @@ class PpManagementAppListCommand extends PowerPlatformCommand_1.default {
23
23
  return __awaiter(this, void 0, void 0, function* () {
24
24
  const endpoint = `${this.resource}/providers/Microsoft.BusinessAppPlatform/adminApplications?api-version=2020-06-01`;
25
25
  try {
26
- const managementApps = yield utils_1.odata.getAllItems(endpoint);
26
+ const managementApps = yield odata_1.odata.getAllItems(endpoint);
27
27
  logger.log(managementApps);
28
28
  }
29
29
  catch (err) {
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const GraphCommand_1 = require("../../../base/GraphCommand");
13
- const utils_1 = require("../../../../utils");
13
+ const odata_1 = require("../../../../utils/odata");
14
14
  const commands_1 = require("../../commands");
15
15
  class SearchExternalConnectionListCommand extends GraphCommand_1.default {
16
16
  get name() {
@@ -25,7 +25,7 @@ class SearchExternalConnectionListCommand extends GraphCommand_1.default {
25
25
  commandAction(logger) {
26
26
  return __awaiter(this, void 0, void 0, function* () {
27
27
  try {
28
- const connections = yield utils_1.odata.getAllItems(`${this.resource}/v1.0/external/connections`);
28
+ const connections = yield odata_1.odata.getAllItems(`${this.resource}/v1.0/external/connections`);
29
29
  logger.log(connections);
30
30
  }
31
31
  catch (err) {
@@ -15,7 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
15
15
  };
16
16
  var _SearchExternalConnectionRemoveCommand_instances, _SearchExternalConnectionRemoveCommand_initTelemetry, _SearchExternalConnectionRemoveCommand_initOptions, _SearchExternalConnectionRemoveCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- const cli_1 = require("../../../../cli");
18
+ const Cli_1 = require("../../../../cli/Cli");
19
19
  const request_1 = require("../../../../request");
20
20
  const GraphCommand_1 = require("../../../base/GraphCommand");
21
21
  const commands_1 = require("../../commands");
@@ -78,7 +78,7 @@ class SearchExternalConnectionRemoveCommand extends GraphCommand_1.default {
78
78
  yield removeExternalConnection();
79
79
  }
80
80
  else {
81
- const result = yield cli_1.Cli.prompt({
81
+ const result = yield Cli_1.Cli.prompt({
82
82
  type: 'confirm',
83
83
  name: 'continue',
84
84
  default: false,
@@ -20,7 +20,7 @@ const fs = require("fs");
20
20
  const os = require("os");
21
21
  const path = require("path");
22
22
  const uuid_1 = require("uuid");
23
- const utils_1 = require("../../../../utils");
23
+ const fsUtil_1 = require("../../../../utils/fsUtil");
24
24
  const AnonymousCommand_1 = require("../../../base/AnonymousCommand");
25
25
  const commands_1 = require("../../commands");
26
26
  class SpfxPackageGenerateCommand extends AnonymousCommand_1.default {
@@ -83,8 +83,8 @@ class SpfxPackageGenerateCommand extends AnonymousCommand_1.default {
83
83
  logger.log('Copying files...');
84
84
  }
85
85
  const src = path.join(__dirname, 'package-generate', 'assets');
86
- utils_1.fsUtil.copyRecursiveSync(src, tmpDir, s => SpfxPackageGenerateCommand.replaceTokens(s, tokens));
87
- const files = utils_1.fsUtil.readdirR(tmpDir);
86
+ fsUtil_1.fsUtil.copyRecursiveSync(src, tmpDir, s => SpfxPackageGenerateCommand.replaceTokens(s, tokens));
87
+ const files = fsUtil_1.fsUtil.readdirR(tmpDir);
88
88
  if (this.verbose) {
89
89
  logger.log('Processing files...');
90
90
  }
@@ -122,7 +122,7 @@ class SpfxPackageGenerateCommand extends AnonymousCommand_1.default {
122
122
  if (!this.archive) {
123
123
  this.archive = new AdmZip();
124
124
  }
125
- const filesToZip = utils_1.fsUtil.readdirR(tmpDir);
125
+ const filesToZip = fsUtil_1.fsUtil.readdirR(tmpDir);
126
126
  filesToZip.forEach(f => {
127
127
  if (this.debug) {
128
128
  logger.log(`Adding ${f} to archive...`);
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BaseProjectCommand = void 0;
4
4
  const fs = require("fs");
5
5
  const path = require("path");
6
- const utils_1 = require("../../../../utils");
6
+ const formatting_1 = require("../../../../utils/formatting");
7
+ const fsUtil_1 = require("../../../../utils/fsUtil");
7
8
  const AnonymousCommand_1 = require("../../../base/AnonymousCommand");
8
9
  const project_model_1 = require("./project-model");
9
10
  class BaseProjectCommand extends AnonymousCommand_1.default {
@@ -36,7 +37,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
36
37
  const configJsonPath = path.join(projectRootPath, 'config/config.json');
37
38
  if (fs.existsSync(configJsonPath)) {
38
39
  try {
39
- const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(configJsonPath, 'utf-8'));
40
+ const source = formatting_1.formatting.removeSingleLineComments(fs.readFileSync(configJsonPath, 'utf-8'));
40
41
  project.configJson = JSON.parse(source);
41
42
  project.configJson.source = source;
42
43
  }
@@ -45,7 +46,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
45
46
  const copyAssetsJsonPath = path.join(projectRootPath, 'config/copy-assets.json');
46
47
  if (fs.existsSync(copyAssetsJsonPath)) {
47
48
  try {
48
- const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(copyAssetsJsonPath, 'utf-8'));
49
+ const source = formatting_1.formatting.removeSingleLineComments(fs.readFileSync(copyAssetsJsonPath, 'utf-8'));
49
50
  project.copyAssetsJson = JSON.parse(source);
50
51
  project.copyAssetsJson.source = source;
51
52
  }
@@ -54,7 +55,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
54
55
  const deployAzureStorageJsonPath = path.join(projectRootPath, 'config/deploy-azure-storage.json');
55
56
  if (fs.existsSync(deployAzureStorageJsonPath)) {
56
57
  try {
57
- const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(deployAzureStorageJsonPath, 'utf-8'));
58
+ const source = formatting_1.formatting.removeSingleLineComments(fs.readFileSync(deployAzureStorageJsonPath, 'utf-8'));
58
59
  project.deployAzureStorageJson = JSON.parse(source);
59
60
  project.deployAzureStorageJson.source = source;
60
61
  }
@@ -63,7 +64,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
63
64
  const packageJsonPath = path.join(projectRootPath, 'package.json');
64
65
  if (fs.existsSync(packageJsonPath)) {
65
66
  try {
66
- const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(packageJsonPath, 'utf-8'));
67
+ const source = formatting_1.formatting.removeSingleLineComments(fs.readFileSync(packageJsonPath, 'utf-8'));
67
68
  project.packageJson = JSON.parse(source);
68
69
  project.packageJson.source = source;
69
70
  }
@@ -72,7 +73,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
72
73
  const packageSolutionJsonPath = path.join(projectRootPath, 'config/package-solution.json');
73
74
  if (fs.existsSync(packageSolutionJsonPath)) {
74
75
  try {
75
- const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(packageSolutionJsonPath, 'utf-8'));
76
+ const source = formatting_1.formatting.removeSingleLineComments(fs.readFileSync(packageSolutionJsonPath, 'utf-8'));
76
77
  project.packageSolutionJson = JSON.parse(source);
77
78
  project.packageSolutionJson.source = source;
78
79
  }
@@ -81,7 +82,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
81
82
  const serveJsonPath = path.join(projectRootPath, 'config/serve.json');
82
83
  if (fs.existsSync(serveJsonPath)) {
83
84
  try {
84
- const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(serveJsonPath, 'utf-8'));
85
+ const source = formatting_1.formatting.removeSingleLineComments(fs.readFileSync(serveJsonPath, 'utf-8'));
85
86
  project.serveJson = JSON.parse(source);
86
87
  project.serveJson.source = source;
87
88
  }
@@ -90,7 +91,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
90
91
  const tsConfigJsonPath = path.join(projectRootPath, 'tsconfig.json');
91
92
  if (fs.existsSync(tsConfigJsonPath)) {
92
93
  try {
93
- const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(tsConfigJsonPath, 'utf-8'));
94
+ const source = formatting_1.formatting.removeSingleLineComments(fs.readFileSync(tsConfigJsonPath, 'utf-8'));
94
95
  project.tsConfigJson = JSON.parse(source);
95
96
  project.tsConfigJson.source = source;
96
97
  }
@@ -99,7 +100,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
99
100
  const tsLintJsonPath = path.join(projectRootPath, 'config/tslint.json');
100
101
  if (fs.existsSync(tsLintJsonPath)) {
101
102
  try {
102
- const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(tsLintJsonPath, 'utf-8'));
103
+ const source = formatting_1.formatting.removeSingleLineComments(fs.readFileSync(tsLintJsonPath, 'utf-8'));
103
104
  project.tsLintJson = JSON.parse(source);
104
105
  project.tsLintJson.source = source;
105
106
  }
@@ -108,7 +109,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
108
109
  const tsLintJsonRootPath = path.join(projectRootPath, 'tslint.json');
109
110
  if (fs.existsSync(tsLintJsonRootPath)) {
110
111
  try {
111
- const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(tsLintJsonRootPath, 'utf-8'));
112
+ const source = formatting_1.formatting.removeSingleLineComments(fs.readFileSync(tsLintJsonRootPath, 'utf-8'));
112
113
  project.tsLintJsonRoot = JSON.parse(source);
113
114
  project.tsLintJsonRoot.source = source;
114
115
  }
@@ -117,7 +118,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
117
118
  const writeManifestJsonPath = path.join(projectRootPath, 'config/write-manifests.json');
118
119
  if (fs.existsSync(writeManifestJsonPath)) {
119
120
  try {
120
- const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(writeManifestJsonPath, 'utf-8'));
121
+ const source = formatting_1.formatting.removeSingleLineComments(fs.readFileSync(writeManifestJsonPath, 'utf-8'));
121
122
  project.writeManifestsJson = JSON.parse(source);
122
123
  project.writeManifestsJson.source = source;
123
124
  }
@@ -126,7 +127,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
126
127
  const yoRcJsonPath = path.join(projectRootPath, '.yo-rc.json');
127
128
  if (fs.existsSync(yoRcJsonPath)) {
128
129
  try {
129
- const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(yoRcJsonPath, 'utf-8'));
130
+ const source = formatting_1.formatting.removeSingleLineComments(fs.readFileSync(yoRcJsonPath, 'utf-8'));
130
131
  project.yoRcJson = JSON.parse(source);
131
132
  project.yoRcJson.source = source;
132
133
  }
@@ -146,7 +147,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
146
147
  const vsCodeSettingsPath = path.join(projectRootPath, '.vscode', 'settings.json');
147
148
  if (fs.existsSync(vsCodeSettingsPath)) {
148
149
  try {
149
- const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(vsCodeSettingsPath, 'utf-8'));
150
+ const source = formatting_1.formatting.removeSingleLineComments(fs.readFileSync(vsCodeSettingsPath, 'utf-8'));
150
151
  project.vsCode.settingsJson = JSON.parse(source);
151
152
  project.vsCode.settingsJson.source = source;
152
153
  }
@@ -155,7 +156,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
155
156
  const vsCodeExtensionsPath = path.join(projectRootPath, '.vscode', 'extensions.json');
156
157
  if (fs.existsSync(vsCodeExtensionsPath)) {
157
158
  try {
158
- const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(vsCodeExtensionsPath, 'utf-8'));
159
+ const source = formatting_1.formatting.removeSingleLineComments(fs.readFileSync(vsCodeExtensionsPath, 'utf-8'));
159
160
  project.vsCode.extensionsJson = JSON.parse(source);
160
161
  project.vsCode.extensionsJson.source = source;
161
162
  }
@@ -164,17 +165,17 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
164
165
  const vsCodeLaunchPath = path.join(projectRootPath, '.vscode', 'launch.json');
165
166
  if (fs.existsSync(vsCodeLaunchPath)) {
166
167
  try {
167
- const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(vsCodeLaunchPath, 'utf-8'));
168
+ const source = formatting_1.formatting.removeSingleLineComments(fs.readFileSync(vsCodeLaunchPath, 'utf-8'));
168
169
  project.vsCode.launchJson = JSON.parse(source);
169
170
  project.vsCode.launchJson.source = source;
170
171
  }
171
172
  catch (_r) { }
172
173
  }
173
- const srcFiles = utils_1.fsUtil.readdirR(path.join(projectRootPath, 'src'));
174
+ const srcFiles = fsUtil_1.fsUtil.readdirR(path.join(projectRootPath, 'src'));
174
175
  const manifestFiles = srcFiles.filter(f => f.endsWith('.manifest.json'));
175
176
  const manifests = manifestFiles.map((f) => {
176
- const manifestStr = utils_1.formatting.removeSingleLineComments(fs.readFileSync(f, 'utf-8'));
177
- const manifest = utils_1.formatting.parseJsonWithBom(manifestStr);
177
+ const manifestStr = formatting_1.formatting.removeSingleLineComments(fs.readFileSync(f, 'utf-8'));
178
+ const manifest = formatting_1.formatting.parseJsonWithBom(manifestStr);
178
179
  manifest.path = f;
179
180
  manifest.source = manifestStr;
180
181
  return manifest;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FN001008_DEP_react = void 0;
4
- const utils_1 = require("../../../../../../utils");
4
+ const spfx_1 = require("../../../../../../utils/spfx");
5
5
  const DependencyRule_1 = require("./DependencyRule");
6
6
  class FN001008_DEP_react extends DependencyRule_1.DependencyRule {
7
7
  constructor(supportedRange) {
@@ -11,7 +11,7 @@ class FN001008_DEP_react extends DependencyRule_1.DependencyRule {
11
11
  return 'FN001008';
12
12
  }
13
13
  customCondition(project) {
14
- return utils_1.spfx.isReactProject(project);
14
+ return spfx_1.spfx.isReactProject(project);
15
15
  }
16
16
  }
17
17
  exports.FN001008_DEP_react = FN001008_DEP_react;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FN001009_DEP_react_dom = void 0;
4
- const utils_1 = require("../../../../../../utils");
4
+ const spfx_1 = require("../../../../../../utils/spfx");
5
5
  const DependencyRule_1 = require("./DependencyRule");
6
6
  class FN001009_DEP_react_dom extends DependencyRule_1.DependencyRule {
7
7
  constructor(supportedRange) {
@@ -11,7 +11,7 @@ class FN001009_DEP_react_dom extends DependencyRule_1.DependencyRule {
11
11
  return 'FN001009';
12
12
  }
13
13
  customCondition(project) {
14
- return utils_1.spfx.isReactProject(project);
14
+ return spfx_1.spfx.isReactProject(project);
15
15
  }
16
16
  }
17
17
  exports.FN001009_DEP_react_dom = FN001009_DEP_react_dom;