@hubspot/cli 7.7.21-experimental.0 → 7.7.21-experimental.1

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 (570) hide show
  1. package/api/__tests__/migrate.test.js +29 -27
  2. package/api/migrate.js +22 -14
  3. package/bin/cli.js +101 -92
  4. package/bin/hs +2 -2
  5. package/bin/hscms +2 -2
  6. package/bin/silenceErrors.js +2 -1
  7. package/commands/__tests__/account.test.js +34 -29
  8. package/commands/__tests__/auth.test.js +16 -11
  9. package/commands/__tests__/cms.test.js +20 -15
  10. package/commands/__tests__/config.test.js +19 -14
  11. package/commands/__tests__/create.test.js +15 -10
  12. package/commands/__tests__/customObject.test.js +19 -14
  13. package/commands/__tests__/doctor.test.js +48 -43
  14. package/commands/__tests__/feedback.test.js +45 -7
  15. package/commands/__tests__/fetch.test.js +28 -29
  16. package/commands/__tests__/filemanager.test.js +19 -14
  17. package/commands/__tests__/function.test.js +21 -16
  18. package/commands/__tests__/getStarted.test.js +50 -55
  19. package/commands/__tests__/hubdb.test.js +22 -17
  20. package/commands/__tests__/init.test.js +17 -12
  21. package/commands/__tests__/lint.test.js +18 -13
  22. package/commands/__tests__/list.test.js +23 -18
  23. package/commands/__tests__/logs.test.js +27 -28
  24. package/commands/__tests__/mcp.test.js +19 -14
  25. package/commands/__tests__/mv.test.js +52 -14
  26. package/commands/__tests__/open.test.js +51 -13
  27. package/commands/__tests__/project.test.js +49 -44
  28. package/commands/__tests__/remove.test.js +51 -13
  29. package/commands/__tests__/sandbox.test.js +19 -14
  30. package/commands/__tests__/secret.test.js +21 -16
  31. package/commands/__tests__/testAccount.test.js +21 -16
  32. package/commands/__tests__/theme.test.js +20 -15
  33. package/commands/account/__tests__/auth.test.js +16 -11
  34. package/commands/account/__tests__/clean.test.js +17 -12
  35. package/commands/account/__tests__/createOverride.test.js +15 -10
  36. package/commands/account/__tests__/info.test.js +16 -11
  37. package/commands/account/__tests__/list.test.js +16 -11
  38. package/commands/account/__tests__/remove.test.js +18 -13
  39. package/commands/account/__tests__/removeOverride.js +13 -8
  40. package/commands/account/__tests__/rename.test.js +20 -15
  41. package/commands/account/__tests__/use.test.js +15 -10
  42. package/commands/account/auth.d.ts +1 -1
  43. package/commands/account/auth.js +67 -65
  44. package/commands/account/clean.d.ts +1 -1
  45. package/commands/account/clean.js +60 -55
  46. package/commands/account/createOverride.d.ts +1 -1
  47. package/commands/account/createOverride.js +57 -52
  48. package/commands/account/info.d.ts +1 -1
  49. package/commands/account/info.js +35 -33
  50. package/commands/account/list.d.ts +1 -1
  51. package/commands/account/list.js +45 -43
  52. package/commands/account/remove.d.ts +1 -1
  53. package/commands/account/remove.js +42 -37
  54. package/commands/account/removeOverride.d.ts +1 -1
  55. package/commands/account/removeOverride.js +43 -38
  56. package/commands/account/rename.d.ts +1 -1
  57. package/commands/account/rename.js +20 -18
  58. package/commands/account/use.d.ts +1 -1
  59. package/commands/account/use.js +31 -29
  60. package/commands/account.d.ts +1 -1
  61. package/commands/account.js +28 -23
  62. package/commands/app/__tests__/install.test.js +52 -0
  63. package/commands/app/__tests__/migrate.test.js +34 -29
  64. package/commands/app/install.d.ts +8 -0
  65. package/commands/app/install.js +127 -0
  66. package/commands/app/migrate.d.ts +2 -2
  67. package/commands/app/migrate.js +43 -40
  68. package/commands/app/secret/__tests__/add.test.js +11 -6
  69. package/commands/app/secret/__tests__/delete.test.js +11 -6
  70. package/commands/app/secret/__tests__/list.test.js +11 -6
  71. package/commands/app/secret/__tests__/update.test.js +11 -6
  72. package/commands/app/secret/add.d.ts +1 -1
  73. package/commands/app/secret/add.js +30 -28
  74. package/commands/app/secret/delete.d.ts +1 -1
  75. package/commands/app/secret/delete.js +36 -34
  76. package/commands/app/secret/list.d.ts +1 -1
  77. package/commands/app/secret/list.js +27 -25
  78. package/commands/app/secret/update.d.ts +1 -1
  79. package/commands/app/secret/update.js +34 -32
  80. package/commands/app/secret.d.ts +1 -1
  81. package/commands/app/secret.js +17 -12
  82. package/commands/app.d.ts +1 -1
  83. package/commands/app.js +16 -6
  84. package/commands/auth.d.ts +1 -1
  85. package/commands/auth.js +72 -70
  86. package/commands/cms/convertFields.d.ts +1 -1
  87. package/commands/cms/convertFields.js +39 -34
  88. package/commands/cms/getReactModule.d.ts +1 -1
  89. package/commands/cms/getReactModule.js +37 -32
  90. package/commands/cms/lighthouseScore.d.ts +1 -1
  91. package/commands/cms/lighthouseScore.js +72 -67
  92. package/commands/cms.d.ts +1 -1
  93. package/commands/cms.js +16 -11
  94. package/commands/completion.d.ts +1 -1
  95. package/commands/completion.js +15 -10
  96. package/commands/config/migrate.d.ts +1 -1
  97. package/commands/config/migrate.js +32 -27
  98. package/commands/config/set.d.ts +1 -1
  99. package/commands/config/set.js +25 -23
  100. package/commands/config.d.ts +1 -1
  101. package/commands/config.js +13 -8
  102. package/commands/create/api-sample.d.ts +1 -1
  103. package/commands/create/api-sample.js +33 -28
  104. package/commands/create/app.d.ts +1 -1
  105. package/commands/create/app.js +5 -3
  106. package/commands/create/function.d.ts +1 -1
  107. package/commands/create/function.js +11 -9
  108. package/commands/create/index.d.ts +1 -1
  109. package/commands/create/index.js +24 -19
  110. package/commands/create/module.d.ts +1 -1
  111. package/commands/create/module.js +14 -12
  112. package/commands/create/react-app.d.ts +1 -1
  113. package/commands/create/react-app.js +5 -3
  114. package/commands/create/template.d.ts +1 -1
  115. package/commands/create/template.js +14 -12
  116. package/commands/create/vue-app.d.ts +1 -1
  117. package/commands/create/vue-app.js +5 -3
  118. package/commands/create/webpack-serverless.d.ts +1 -1
  119. package/commands/create/webpack-serverless.js +5 -3
  120. package/commands/create/website-theme.d.ts +1 -1
  121. package/commands/create/website-theme.js +7 -5
  122. package/commands/create.d.ts +2 -2
  123. package/commands/create.js +35 -30
  124. package/commands/customObject/__tests__/create.test.js +18 -13
  125. package/commands/customObject/__tests__/schema.test.js +23 -18
  126. package/commands/customObject/create.d.ts +1 -1
  127. package/commands/customObject/create.js +30 -28
  128. package/commands/customObject/schema/__tests__/create.test.js +18 -13
  129. package/commands/customObject/schema/__tests__/delete.test.js +18 -13
  130. package/commands/customObject/schema/__tests__/fetch-all.test.js +18 -13
  131. package/commands/customObject/schema/__tests__/fetch.test.js +18 -13
  132. package/commands/customObject/schema/__tests__/list.test.js +18 -13
  133. package/commands/customObject/schema/__tests__/update.test.js +18 -13
  134. package/commands/customObject/schema/create.d.ts +1 -1
  135. package/commands/customObject/schema/create.js +30 -28
  136. package/commands/customObject/schema/delete.d.ts +1 -1
  137. package/commands/customObject/schema/delete.js +26 -24
  138. package/commands/customObject/schema/fetch-all.d.ts +1 -1
  139. package/commands/customObject/schema/fetch-all.js +24 -22
  140. package/commands/customObject/schema/fetch.d.ts +1 -1
  141. package/commands/customObject/schema/fetch.js +26 -24
  142. package/commands/customObject/schema/list.d.ts +1 -1
  143. package/commands/customObject/schema/list.js +15 -13
  144. package/commands/customObject/schema/update.d.ts +1 -1
  145. package/commands/customObject/schema/update.js +34 -32
  146. package/commands/customObject/schema.d.ts +1 -1
  147. package/commands/customObject/schema.js +22 -17
  148. package/commands/customObject.d.ts +1 -1
  149. package/commands/customObject.js +18 -13
  150. package/commands/doctor.d.ts +1 -1
  151. package/commands/doctor.js +33 -28
  152. package/commands/feedback.d.ts +1 -1
  153. package/commands/feedback.js +24 -19
  154. package/commands/fetch.d.ts +1 -1
  155. package/commands/fetch.js +30 -28
  156. package/commands/filemanager/__tests__/fetch.test.js +22 -17
  157. package/commands/filemanager/__tests__/upload.test.js +20 -15
  158. package/commands/filemanager/fetch.d.ts +1 -1
  159. package/commands/filemanager/fetch.js +25 -23
  160. package/commands/filemanager/upload.d.ts +1 -1
  161. package/commands/filemanager/upload.js +44 -39
  162. package/commands/filemanager.d.ts +1 -1
  163. package/commands/filemanager.js +13 -8
  164. package/commands/function/deploy.d.ts +1 -1
  165. package/commands/function/deploy.js +40 -35
  166. package/commands/function/list.d.ts +1 -1
  167. package/commands/function/list.js +29 -24
  168. package/commands/function/server.d.ts +1 -1
  169. package/commands/function/server.js +17 -15
  170. package/commands/function.d.ts +1 -1
  171. package/commands/function.js +18 -12
  172. package/commands/getStarted.d.ts +1 -1
  173. package/commands/getStarted.js +131 -140
  174. package/commands/hubdb/__tests__/clear.test.js +18 -13
  175. package/commands/hubdb/__tests__/create.test.js +18 -13
  176. package/commands/hubdb/__tests__/delete.test.js +18 -13
  177. package/commands/hubdb/__tests__/fetch.test.js +18 -13
  178. package/commands/hubdb/__tests__/list.test.js +28 -23
  179. package/commands/hubdb/clear.d.ts +1 -1
  180. package/commands/hubdb/clear.js +22 -20
  181. package/commands/hubdb/create.d.ts +1 -1
  182. package/commands/hubdb/create.js +35 -30
  183. package/commands/hubdb/delete.d.ts +1 -1
  184. package/commands/hubdb/delete.js +26 -24
  185. package/commands/hubdb/fetch.d.ts +1 -1
  186. package/commands/hubdb/fetch.js +19 -17
  187. package/commands/hubdb/list.d.ts +1 -1
  188. package/commands/hubdb/list.js +35 -33
  189. package/commands/hubdb.d.ts +1 -1
  190. package/commands/hubdb.js +24 -18
  191. package/commands/init.d.ts +1 -1
  192. package/commands/init.js +88 -83
  193. package/commands/lint.d.ts +1 -1
  194. package/commands/lint.js +26 -24
  195. package/commands/list.d.ts +1 -1
  196. package/commands/list.js +37 -32
  197. package/commands/logs.d.ts +1 -1
  198. package/commands/logs.js +37 -35
  199. package/commands/mcp/__tests__/setup.test.js +12 -7
  200. package/commands/mcp/__tests__/start.test.js +12 -7
  201. package/commands/mcp/setup.d.ts +1 -1
  202. package/commands/mcp/setup.js +20 -17
  203. package/commands/mcp/start.d.ts +5 -2
  204. package/commands/mcp/start.js +41 -31
  205. package/commands/mcp.d.ts +1 -1
  206. package/commands/mcp.js +12 -7
  207. package/commands/module/marketplace-validate.d.ts +1 -1
  208. package/commands/module/marketplace-validate.js +26 -21
  209. package/commands/module.d.ts +1 -1
  210. package/commands/module.js +13 -7
  211. package/commands/mv.d.ts +1 -1
  212. package/commands/mv.js +22 -20
  213. package/commands/open.d.ts +1 -1
  214. package/commands/open.js +21 -19
  215. package/commands/project/__tests__/add.test.js +15 -10
  216. package/commands/project/__tests__/create.test.js +19 -14
  217. package/commands/project/__tests__/deploy.test.js +143 -103
  218. package/commands/project/__tests__/devUnifiedFlow.test.js +157 -148
  219. package/commands/project/__tests__/download.test.js +19 -14
  220. package/commands/project/__tests__/installDeps.test.js +70 -32
  221. package/commands/project/__tests__/listBuilds.test.js +19 -14
  222. package/commands/project/__tests__/logs.test.js +94 -56
  223. package/commands/project/__tests__/migrate.test.js +30 -25
  224. package/commands/project/__tests__/migrateApp.test.js +22 -17
  225. package/commands/project/__tests__/open.test.js +21 -16
  226. package/commands/project/__tests__/profile.test.js +19 -14
  227. package/commands/project/__tests__/upload.test.js +23 -18
  228. package/commands/project/__tests__/watch.test.js +19 -14
  229. package/commands/project/add.d.ts +1 -1
  230. package/commands/project/add.js +36 -34
  231. package/commands/project/cloneApp.d.ts +1 -1
  232. package/commands/project/cloneApp.js +72 -67
  233. package/commands/project/create.d.ts +2 -2
  234. package/commands/project/create.js +68 -63
  235. package/commands/project/deploy.d.ts +3 -2
  236. package/commands/project/deploy.js +102 -91
  237. package/commands/project/dev/deprecatedFlow.d.ts +2 -2
  238. package/commands/project/dev/deprecatedFlow.js +58 -52
  239. package/commands/project/dev/index.d.ts +1 -1
  240. package/commands/project/dev/index.js +47 -44
  241. package/commands/project/dev/unifiedFlow.d.ts +3 -3
  242. package/commands/project/dev/unifiedFlow.js +74 -67
  243. package/commands/project/download.d.ts +1 -1
  244. package/commands/project/download.js +40 -35
  245. package/commands/project/installDeps.d.ts +1 -1
  246. package/commands/project/installDeps.js +34 -29
  247. package/commands/project/listBuilds.d.ts +1 -1
  248. package/commands/project/listBuilds.js +45 -40
  249. package/commands/project/logs.d.ts +1 -1
  250. package/commands/project/logs.js +54 -52
  251. package/commands/project/migrate.d.ts +1 -1
  252. package/commands/project/migrate.js +26 -24
  253. package/commands/project/migrateApp.d.ts +2 -2
  254. package/commands/project/migrateApp.js +20 -18
  255. package/commands/project/open.d.ts +1 -1
  256. package/commands/project/open.js +30 -25
  257. package/commands/project/profile/add.d.ts +1 -1
  258. package/commands/project/profile/add.js +73 -68
  259. package/commands/project/profile/delete.d.ts +1 -1
  260. package/commands/project/profile/delete.js +56 -51
  261. package/commands/project/profile.d.ts +1 -1
  262. package/commands/project/profile.js +14 -9
  263. package/commands/project/upload.d.ts +1 -1
  264. package/commands/project/upload.js +55 -50
  265. package/commands/project/validate.d.ts +1 -1
  266. package/commands/project/validate.js +40 -35
  267. package/commands/project/watch.d.ts +1 -1
  268. package/commands/project/watch.js +61 -59
  269. package/commands/project.d.ts +1 -1
  270. package/commands/project.js +43 -38
  271. package/commands/remove.d.ts +1 -1
  272. package/commands/remove.js +17 -15
  273. package/commands/sandbox/__tests__/create.test.js +20 -15
  274. package/commands/sandbox/__tests__/delete.test.js +20 -15
  275. package/commands/sandbox/create.d.ts +1 -1
  276. package/commands/sandbox/create.js +69 -67
  277. package/commands/sandbox/delete.d.ts +1 -1
  278. package/commands/sandbox/delete.js +96 -94
  279. package/commands/sandbox.d.ts +1 -1
  280. package/commands/sandbox.js +14 -9
  281. package/commands/secret/__tests__/addSecret.test.js +18 -13
  282. package/commands/secret/__tests__/deleteSecret.test.js +18 -13
  283. package/commands/secret/__tests__/listSecret.test.js +18 -13
  284. package/commands/secret/__tests__/updateSecret.test.js +18 -13
  285. package/commands/secret/addSecret.d.ts +1 -1
  286. package/commands/secret/addSecret.js +28 -26
  287. package/commands/secret/deleteSecret.d.ts +1 -1
  288. package/commands/secret/deleteSecret.js +29 -27
  289. package/commands/secret/listSecret.d.ts +1 -1
  290. package/commands/secret/listSecret.js +21 -19
  291. package/commands/secret/updateSecret.d.ts +1 -1
  292. package/commands/secret/updateSecret.js +27 -25
  293. package/commands/secret.d.ts +1 -1
  294. package/commands/secret.js +18 -13
  295. package/commands/testAccount/__tests__/create.test.js +22 -17
  296. package/commands/testAccount/__tests__/createConfig.test.js +11 -9
  297. package/commands/testAccount/__tests__/delete.test.js +20 -15
  298. package/commands/testAccount/create.d.ts +1 -1
  299. package/commands/testAccount/create.js +57 -62
  300. package/commands/testAccount/createConfig.d.ts +1 -3
  301. package/commands/testAccount/createConfig.js +47 -43
  302. package/commands/testAccount/delete.d.ts +1 -1
  303. package/commands/testAccount/delete.js +19 -17
  304. package/commands/testAccount.d.ts +1 -1
  305. package/commands/testAccount.js +15 -10
  306. package/commands/theme/__tests__/generate-selectors.test.js +12 -7
  307. package/commands/theme/__tests__/marketplace-validate.test.js +19 -14
  308. package/commands/theme/__tests__/preview.test.js +17 -12
  309. package/commands/theme/generate-selectors.d.ts +1 -1
  310. package/commands/theme/generate-selectors.js +28 -23
  311. package/commands/theme/marketplace-validate.d.ts +1 -1
  312. package/commands/theme/marketplace-validate.js +24 -19
  313. package/commands/theme/preview.d.ts +1 -1
  314. package/commands/theme/preview.js +65 -60
  315. package/commands/theme.d.ts +1 -1
  316. package/commands/theme.js +16 -11
  317. package/commands/upload.d.ts +1 -1
  318. package/commands/upload.js +82 -77
  319. package/commands/watch.d.ts +1 -1
  320. package/commands/watch.js +51 -45
  321. package/lang/en.d.ts +62 -23
  322. package/lang/en.js +434 -389
  323. package/lang/en.lyaml +0 -26
  324. package/lib/__tests__/accountTypes.test.js +22 -20
  325. package/lib/__tests__/buildAccount.test.js +90 -27
  326. package/lib/__tests__/commonOpts.test.js +22 -20
  327. package/lib/__tests__/dependencyManagement.test.js +51 -46
  328. package/lib/__tests__/developerTestAccounts.test.js +62 -27
  329. package/lib/__tests__/hasFeature.test.js +8 -6
  330. package/lib/__tests__/npm.test.js +20 -15
  331. package/lib/__tests__/oauth.test.js +28 -23
  332. package/lib/__tests__/parsing.test.js +20 -18
  333. package/lib/__tests__/polling.test.js +26 -24
  334. package/lib/__tests__/process.test.js +19 -14
  335. package/lib/__tests__/projectProfiles.test.js +39 -34
  336. package/lib/__tests__/sandboxSync.test.js +35 -30
  337. package/lib/__tests__/sandboxes.test.js +31 -29
  338. package/lib/__tests__/serverlessLogs.test.js +13 -8
  339. package/lib/__tests__/usageTracking.test.js +42 -47
  340. package/lib/__tests__/validation.test.js +20 -18
  341. package/lib/__tests__/yargsUtils.test.js +41 -6
  342. package/lib/accountTypes.js +34 -24
  343. package/lib/app/__tests__/migrate.test.js +99 -94
  344. package/lib/app/__tests__/migrate_legacy.test.js +31 -29
  345. package/lib/app/migrate.d.ts +3 -3
  346. package/lib/app/migrate.js +145 -127
  347. package/lib/app/migrate_legacy.d.ts +1 -1
  348. package/lib/app/migrate_legacy.js +78 -72
  349. package/lib/app/urls.js +9 -5
  350. package/lib/buildAccount.d.ts +8 -2
  351. package/lib/buildAccount.js +119 -61
  352. package/lib/commonOpts.d.ts +1 -1
  353. package/lib/commonOpts.js +59 -42
  354. package/lib/configMigrate.js +38 -34
  355. package/lib/configOptions.js +40 -34
  356. package/lib/constants.js +34 -31
  357. package/lib/customObject.js +6 -2
  358. package/lib/dependencyManagement.js +45 -37
  359. package/lib/developerTestAccounts.d.ts +1 -1
  360. package/lib/developerTestAccounts.js +39 -34
  361. package/lib/doctor/Diagnosis.d.ts +1 -1
  362. package/lib/doctor/Diagnosis.js +29 -25
  363. package/lib/doctor/DiagnosticInfoBuilder.d.ts +1 -1
  364. package/lib/doctor/DiagnosticInfoBuilder.js +37 -30
  365. package/lib/doctor/Doctor.d.ts +1 -1
  366. package/lib/doctor/Doctor.js +101 -94
  367. package/lib/doctor/__tests__/Diagnosis.test.js +14 -9
  368. package/lib/doctor/__tests__/DiagnosticInfoBuilder.test.js +34 -29
  369. package/lib/doctor/__tests__/Doctor.test.js +26 -24
  370. package/lib/enums/exitCodes.js +4 -1
  371. package/lib/errorHandlers/index.js +41 -32
  372. package/lib/errorHandlers/suppressError.d.ts +1 -1
  373. package/lib/errorHandlers/suppressError.js +31 -28
  374. package/lib/filesystem.js +15 -8
  375. package/lib/generateSelectors.js +29 -18
  376. package/lib/hasFeature.d.ts +1 -1
  377. package/lib/hasFeature.js +6 -3
  378. package/lib/interpolation.js +18 -11
  379. package/lib/lang.d.ts +1 -1
  380. package/lib/lang.js +27 -22
  381. package/lib/links.js +24 -16
  382. package/lib/marketplaceValidate.js +39 -29
  383. package/lib/mcp/setup.js +105 -72
  384. package/lib/middleware/__test__/configMiddleware.test.js +55 -20
  385. package/lib/middleware/__test__/gitMiddleware.test.js +42 -7
  386. package/lib/middleware/__test__/notificationsMiddleware.test.js +4 -2
  387. package/lib/middleware/__test__/requestMiddleware.test.js +11 -6
  388. package/lib/middleware/__test__/utils.test.js +11 -9
  389. package/lib/middleware/__test__/yargsChecksMiddleware.test.js +44 -9
  390. package/lib/middleware/autoUpdateMiddleware.js +40 -33
  391. package/lib/middleware/configMiddleware.js +42 -36
  392. package/lib/middleware/fireAlarmMiddleware.js +18 -12
  393. package/lib/middleware/gitMiddleware.js +8 -5
  394. package/lib/middleware/notificationsMiddleware.js +23 -16
  395. package/lib/middleware/requestMiddleware.js +10 -4
  396. package/lib/middleware/utils.js +4 -1
  397. package/lib/middleware/yargsChecksMiddleware.js +13 -10
  398. package/lib/npm.js +23 -14
  399. package/lib/oauth.js +35 -29
  400. package/lib/parsing.js +6 -3
  401. package/lib/polling.js +15 -11
  402. package/lib/process.js +19 -11
  403. package/lib/projectProfiles.d.ts +2 -2
  404. package/lib/projectProfiles.js +42 -32
  405. package/lib/projects/ProjectLogsManager.js +21 -18
  406. package/lib/projects/__tests__/AppDevModeInterface.test.js +145 -140
  407. package/lib/projects/__tests__/LocalDevProcess.test.js +73 -68
  408. package/lib/projects/__tests__/LocalDevWebsocketServer.test.js +37 -32
  409. package/lib/projects/__tests__/ProjectLogsManager.test.js +58 -56
  410. package/lib/projects/__tests__/buildAndDeploy.test.js +9 -7
  411. package/lib/projects/__tests__/components.test.js +14 -9
  412. package/lib/projects/__tests__/projects.test.js +40 -35
  413. package/lib/projects/__tests__/structure.test.js +81 -43
  414. package/lib/projects/add/__tests__/legacyAddComponent.test.js +28 -26
  415. package/lib/projects/add/__tests__/v3AddComponent.test.js +30 -25
  416. package/lib/projects/add/legacyAddComponent.d.ts +1 -1
  417. package/lib/projects/add/legacyAddComponent.js +30 -24
  418. package/lib/projects/add/v3AddComponent.d.ts +1 -1
  419. package/lib/projects/add/v3AddComponent.js +42 -36
  420. package/lib/projects/buildAndDeploy.d.ts +1 -1
  421. package/lib/projects/buildAndDeploy.js +97 -88
  422. package/lib/projects/components.js +25 -19
  423. package/lib/projects/config.d.ts +1 -1
  424. package/lib/projects/config.js +41 -32
  425. package/lib/projects/create/__tests__/legacy.test.js +57 -22
  426. package/lib/projects/create/__tests__/v3.test.js +7 -5
  427. package/lib/projects/create/index.d.ts +3 -3
  428. package/lib/projects/create/index.js +22 -19
  429. package/lib/projects/create/legacy.d.ts +1 -1
  430. package/lib/projects/create/legacy.js +31 -25
  431. package/lib/projects/create/v3.d.ts +3 -3
  432. package/lib/projects/create/v3.js +59 -49
  433. package/lib/projects/ensureProjectExists.js +37 -31
  434. package/lib/projects/localDev/AppDevModeInterface.d.ts +3 -3
  435. package/lib/projects/localDev/AppDevModeInterface.js +60 -58
  436. package/lib/projects/localDev/DevServerManager.d.ts +1 -1
  437. package/lib/projects/localDev/DevServerManager.js +24 -24
  438. package/lib/projects/localDev/DevServerManagerV2.d.ts +2 -2
  439. package/lib/projects/localDev/DevServerManagerV2.js +20 -17
  440. package/lib/projects/localDev/LocalDevLogger.d.ts +1 -1
  441. package/lib/projects/localDev/LocalDevLogger.js +64 -59
  442. package/lib/projects/localDev/LocalDevManager.d.ts +1 -1
  443. package/lib/projects/localDev/LocalDevManager.js +111 -106
  444. package/lib/projects/localDev/LocalDevProcess.d.ts +4 -4
  445. package/lib/projects/localDev/LocalDevProcess.js +30 -25
  446. package/lib/projects/localDev/LocalDevState.d.ts +3 -3
  447. package/lib/projects/localDev/LocalDevState.js +5 -3
  448. package/lib/projects/localDev/LocalDevWatcher.d.ts +1 -1
  449. package/lib/projects/localDev/LocalDevWatcher.js +11 -6
  450. package/lib/projects/localDev/LocalDevWebsocketServer.d.ts +1 -1
  451. package/lib/projects/localDev/LocalDevWebsocketServer.js +27 -25
  452. package/lib/projects/localDev/helpers.d.ts +4 -4
  453. package/lib/projects/localDev/helpers.js +174 -156
  454. package/lib/projects/structure.d.ts +4 -4
  455. package/lib/projects/structure.js +78 -32
  456. package/lib/projects/ui.js +13 -10
  457. package/lib/projects/upload.d.ts +3 -2
  458. package/lib/projects/upload.js +65 -55
  459. package/lib/projects/urls.js +24 -14
  460. package/lib/projects/watch.d.ts +1 -1
  461. package/lib/projects/watch.js +54 -48
  462. package/lib/prompts/__tests__/downloadProjectPrompt.test.js +11 -9
  463. package/lib/prompts/__tests__/projectsLogsPrompt.test.js +16 -11
  464. package/lib/prompts/accountNamePrompt.d.ts +1 -1
  465. package/lib/prompts/accountNamePrompt.js +31 -26
  466. package/lib/prompts/accountsPrompt.js +15 -12
  467. package/lib/prompts/cmsFieldPrompt.js +19 -13
  468. package/lib/prompts/createApiSamplePrompt.d.ts +1 -1
  469. package/lib/prompts/createApiSamplePrompt.js +12 -9
  470. package/lib/prompts/createDeveloperTestAccountConfigPrompt.d.ts +11 -10
  471. package/lib/prompts/createDeveloperTestAccountConfigPrompt.js +88 -43
  472. package/lib/prompts/createFunctionPrompt.js +20 -17
  473. package/lib/prompts/createModulePrompt.js +15 -12
  474. package/lib/prompts/createTemplatePrompt.js +8 -5
  475. package/lib/prompts/downloadProjectPrompt.js +20 -17
  476. package/lib/prompts/installAppPrompt.js +26 -19
  477. package/lib/prompts/personalAccessKeyPrompt.d.ts +2 -2
  478. package/lib/prompts/personalAccessKeyPrompt.js +47 -40
  479. package/lib/prompts/previewPrompt.js +22 -15
  480. package/lib/prompts/projectAddPrompt.d.ts +1 -1
  481. package/lib/prompts/projectAddPrompt.js +18 -14
  482. package/lib/prompts/projectDevTargetAccountPrompt.d.ts +1 -1
  483. package/lib/prompts/projectDevTargetAccountPrompt.js +54 -48
  484. package/lib/prompts/projectNameAndDestPrompt.d.ts +1 -1
  485. package/lib/prompts/projectNameAndDestPrompt.js +29 -22
  486. package/lib/prompts/projectNamePrompt.js +14 -11
  487. package/lib/prompts/projectsLogsPrompt.js +8 -5
  488. package/lib/prompts/promptUtils.d.ts +1 -1
  489. package/lib/prompts/promptUtils.js +87 -70
  490. package/lib/prompts/sandboxesPrompt.d.ts +1 -1
  491. package/lib/prompts/sandboxesPrompt.js +30 -26
  492. package/lib/prompts/secretPrompt.js +15 -10
  493. package/lib/prompts/selectAppPrompt.js +14 -11
  494. package/lib/prompts/selectHubDBTablePrompt.js +30 -24
  495. package/lib/prompts/selectProjectTemplatePrompt.d.ts +1 -1
  496. package/lib/prompts/selectProjectTemplatePrompt.js +13 -10
  497. package/lib/prompts/selectPublicAppForMigrationPrompt.js +25 -22
  498. package/lib/prompts/setAsDefaultAccountPrompt.js +16 -13
  499. package/lib/prompts/uploadPrompt.js +17 -11
  500. package/lib/sandboxSync.d.ts +1 -1
  501. package/lib/sandboxSync.js +65 -58
  502. package/lib/sandboxes.d.ts +1 -1
  503. package/lib/sandboxes.js +76 -68
  504. package/lib/schema.js +23 -12
  505. package/lib/serverlessLogs.js +52 -45
  506. package/lib/testUtils.js +8 -4
  507. package/lib/ui/SpinniesManager.d.ts +1 -1
  508. package/lib/ui/SpinniesManager.js +34 -29
  509. package/lib/ui/boxen.js +14 -11
  510. package/lib/ui/git.js +20 -14
  511. package/lib/ui/index.js +74 -56
  512. package/lib/ui/logger.js +13 -10
  513. package/lib/ui/serverlessFunctionLogs.js +20 -14
  514. package/lib/ui/spinniesUtils.js +39 -24
  515. package/lib/ui/supportHyperlinks.js +6 -3
  516. package/lib/ui/supportsColor.js +17 -11
  517. package/lib/ui/table.js +13 -6
  518. package/lib/upload.js +21 -15
  519. package/lib/usageTracking.d.ts +11 -0
  520. package/lib/usageTracking.js +95 -95
  521. package/lib/utils/hasFlag.js +8 -2
  522. package/lib/validation.js +87 -48
  523. package/lib/yargsUtils.d.ts +1 -1
  524. package/lib/yargsUtils.js +16 -13
  525. package/mcp-server/server.js +8 -6
  526. package/mcp-server/tools/index.js +16 -13
  527. package/mcp-server/tools/project/AddFeatureToProject.d.ts +1 -1
  528. package/mcp-server/tools/project/AddFeatureToProject.js +41 -34
  529. package/mcp-server/tools/project/CreateProjectTool.d.ts +3 -3
  530. package/mcp-server/tools/project/CreateProjectTool.js +52 -45
  531. package/mcp-server/tools/project/DeployProject.d.ts +1 -1
  532. package/mcp-server/tools/project/DeployProject.js +24 -17
  533. package/mcp-server/tools/project/GuidedWalkthroughTool.d.ts +1 -1
  534. package/mcp-server/tools/project/GuidedWalkthroughTool.js +27 -20
  535. package/mcp-server/tools/project/UploadProjectTools.d.ts +1 -1
  536. package/mcp-server/tools/project/UploadProjectTools.js +21 -11
  537. package/mcp-server/tools/project/ValidateProjectTool.d.ts +1 -1
  538. package/mcp-server/tools/project/ValidateProjectTool.js +19 -12
  539. package/mcp-server/tools/project/__tests__/AddFeatureToProject.test.js +15 -12
  540. package/mcp-server/tools/project/__tests__/CreateProjectTool.test.js +16 -13
  541. package/mcp-server/tools/project/__tests__/DeployProject.test.js +9 -6
  542. package/mcp-server/tools/project/__tests__/GuidedWalkthroughTool.test.js +7 -4
  543. package/mcp-server/tools/project/__tests__/UploadProjectTools.test.js +7 -4
  544. package/mcp-server/tools/project/__tests__/ValidateProjectTool.test.js +7 -4
  545. package/mcp-server/tools/project/constants.js +9 -3
  546. package/mcp-server/types.js +5 -1
  547. package/mcp-server/utils/__tests__/command.test.js +11 -9
  548. package/mcp-server/utils/__tests__/project.test.js +26 -18
  549. package/mcp-server/utils/command.d.ts +1 -1
  550. package/mcp-server/utils/command.js +11 -4
  551. package/mcp-server/utils/content.d.ts +1 -1
  552. package/mcp-server/utils/content.js +6 -2
  553. package/mcp-server/utils/project.js +17 -8
  554. package/mcp-server/utils/toolUsageTracking.d.ts +1 -0
  555. package/mcp-server/utils/toolUsageTracking.js +25 -0
  556. package/package.json +13 -17
  557. package/types/{cms.d.ts → Cms.d.ts} +1 -1
  558. package/types/Cms.js +2 -0
  559. package/types/LocalDev.d.ts +4 -4
  560. package/types/LocalDev.js +2 -1
  561. package/types/ProjectComponents.d.ts +2 -2
  562. package/types/ProjectComponents.js +2 -1
  563. package/types/Projects.d.ts +1 -1
  564. package/types/Projects.js +5 -2
  565. package/types/Prompts.js +2 -1
  566. package/types/Sandboxes.js +2 -0
  567. package/types/Yargs.js +2 -1
  568. package/types/sandboxes.js +0 -1
  569. /package/{types/cms.js → commands/app/__tests__/install.test.d.ts} +0 -0
  570. /package/types/{sandboxes.d.ts → Sandboxes.d.ts} +0 -0
package/lang/en.js CHANGED
@@ -1,12 +1,18 @@
1
- import chalk from 'chalk';
2
- import { PLATFORM_VERSIONS } from '@hubspot/local-dev-lib/constants/projects';
3
- import { PERSONAL_ACCESS_KEY_AUTH_METHOD } from '@hubspot/local-dev-lib/constants/auth';
4
- import { ARCHIVED_HUBSPOT_CONFIG_YAML_FILE_NAME, GLOBAL_CONFIG_PATH, DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME, } from '@hubspot/local-dev-lib/constants/config';
5
- import { uiAccountDescription, uiBetaTag, uiCommandReference, uiLink, UI_COLORS, } from '../lib/ui/index.js';
6
- import { getProjectDetailUrl, getProjectSettingsUrl, getLocalDevUiUrl, } from '../lib/projects/urls.js';
7
- import { PROJECT_CONFIG_FILE } from '../lib/constants.js';
8
- import { PROJECT_WITH_APP } from '../lib/projects/create/v3.js';
9
- export const commands = {
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.lib = exports.commands = void 0;
7
+ const chalk_1 = __importDefault(require("chalk"));
8
+ const projects_1 = require("@hubspot/local-dev-lib/constants/projects");
9
+ const auth_1 = require("@hubspot/local-dev-lib/constants/auth");
10
+ const config_1 = require("@hubspot/local-dev-lib/constants/config");
11
+ const ui_1 = require("../lib/ui");
12
+ const urls_1 = require("../lib/projects/urls");
13
+ const constants_1 = require("../lib/constants");
14
+ const v3_1 = require("../lib/projects/create/v3");
15
+ exports.commands = {
10
16
  generalErrors: {
11
17
  srcIsProject: (src, command) => `"${src}" is in a project folder. Did you mean "hs project ${command}"?`,
12
18
  handleDeprecatedEnvVariables: {
@@ -44,17 +50,15 @@ export const commands = {
44
50
  app: 'App',
45
51
  cms: 'CMS',
46
52
  },
47
- installDependencies: 'Would you like to install dependencies now?',
48
53
  uploadProject: 'Would you like to upload your project to HubSpot now?',
49
54
  projectCreated: {
50
- title: chalk.bold('Next steps:'),
51
- description: `Let's prepare and upload your project to HubSpot.\nYou can use ${uiCommandReference('hs project install-deps')} to ${chalk.bold('install dependencies')} and ${uiCommandReference('hs project upload')} to ${chalk.bold('upload')} your project.`,
55
+ title: chalk_1.default.bold('Next steps:'),
56
+ description: `Let's prepare and upload your project to HubSpot.\nYou can use ${(0, ui_1.uiCommandReference)('hs project install-deps')} to ${chalk_1.default.bold('install dependencies')} and ${(0, ui_1.uiCommandReference)('hs project upload')} to ${chalk_1.default.bold('upload')} your project.`,
52
57
  },
53
58
  },
54
59
  logs: {
55
- appSelected: `We'll create a new project with a sample app for you.\nProjects are what you can use to create apps, themes, and more at HubSpot.\nUsually you'll use the ${uiCommandReference('hs project create')} command, but we'll go ahead and make one now.`,
60
+ appSelected: `We'll create a new project with a sample app for you.\nProjects are what you can use to create apps, themes, and more at HubSpot.\nUsually you'll use the ${(0, ui_1.uiCommandReference)('hs project create')} command, but we'll go ahead and make one now.`,
56
61
  dependenciesInstalled: 'Dependencies installed successfully.',
57
- dependenciesNotInstalled: `Dependencies not installed. Remember to do this later with the command ${uiCommandReference('hs project install-deps')} from the project directory.`,
58
62
  uploadingProject: 'Uploading your project to HubSpot...',
59
63
  uploadSuccess: 'Project uploaded successfully!',
60
64
  developerOverviewLink: 'Open this link to navigate to your HubSpot developer portal',
@@ -76,26 +80,26 @@ export const commands = {
76
80
  subcommands: {
77
81
  auth: {
78
82
  describe: 'Configure authentication for your HubSpot account.',
79
- verboseDescribe: `Configure authentication for a HubSpot account. This will create or update the global config file at ${GLOBAL_CONFIG_PATH} that stores your account information.\n\nThe authentication method is ${chalk.bold(PERSONAL_ACCESS_KEY_AUTH_METHOD.value)}, which is an access token tied to a specific user account.\n\nGlobal configuration replaces ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME}, and you will be prompted to migrate your existing config if one exists.`,
83
+ verboseDescribe: `Configure authentication for a HubSpot account. This will create or update the global config file at ${config_1.GLOBAL_CONFIG_PATH} that stores your account information.\n\nThe authentication method is ${chalk_1.default.bold(auth_1.PERSONAL_ACCESS_KEY_AUTH_METHOD.value)}, which is an access token tied to a specific user account.\n\nGlobal configuration replaces ${config_1.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME}, and you will be prompted to migrate your existing config if one exists.`,
80
84
  options: {
81
85
  account: 'HubSpot account to authenticate',
82
86
  personalAccessKey: 'Enter existing personal access key',
83
87
  },
84
88
  errors: {
85
89
  failedToUpdateConfig: 'Failed to update the configuration file. Please try again.',
86
- migrationNotConfirmed: `Did not migrate your configuration file. Run ${uiCommandReference('hs auth')} to update your existing config, or use ${uiCommandReference('hs config migrate')} to switch to the new global configuration.`,
87
- mergeNotConfirmed: `Did not merge configuration files. When you are ready to merge the deprecated config file with the global config file, run ${uiCommandReference('hs config migrate')}.`,
90
+ migrationNotConfirmed: `Did not migrate your configuration file. Run ${(0, ui_1.uiCommandReference)('hs auth')} to update your existing config, or use ${(0, ui_1.uiCommandReference)('hs config migrate')} to switch to the new global configuration.`,
91
+ mergeNotConfirmed: `Did not merge configuration files. When you are ready to merge the deprecated config file with the global config file, run ${(0, ui_1.uiCommandReference)('hs config migrate')}.`,
88
92
  },
89
93
  success: {
90
94
  configFileCreated: (configPath) => `Created config file "${configPath}"`,
91
- configFileUpdated: (accountId) => `Connected account ${uiAccountDescription(accountId)} and set it as the default account`,
95
+ configFileUpdated: (accountId) => `Connected account ${(0, ui_1.uiAccountDescription)(accountId)} and set it as the default account`,
92
96
  },
93
97
  },
94
98
  list: {
95
- accounts: `${chalk.bold('Accounts')}:`,
96
- defaultAccount: (account) => `${chalk.bold('Default account')}: ${account}`,
99
+ accounts: `${chalk_1.default.bold('Accounts')}:`,
100
+ defaultAccount: (account) => `${chalk_1.default.bold('Default account')}: ${account}`,
97
101
  describe: 'List names of accounts defined in config.',
98
- configPath: (configPath) => `${chalk.bold('Config path')}: ${configPath}`,
102
+ configPath: (configPath) => `${chalk_1.default.bold('Config path')}: ${configPath}`,
99
103
  labels: {
100
104
  accountId: 'Account ID',
101
105
  authType: 'Auth Type',
@@ -162,7 +166,7 @@ export const commands = {
162
166
  },
163
167
  },
164
168
  info: {
165
- accountId: (accountId) => `${chalk.bold('Account ID')}: ${accountId}`,
169
+ accountId: (accountId) => `${chalk_1.default.bold('Account ID')}: ${accountId}`,
166
170
  describe: 'Print information about the default account, or about the account specified with the "account" option.',
167
171
  errors: {
168
172
  notUsingPersonalAccessKey: 'This command currently only supports fetching scopes for the personal access key auth type.',
@@ -172,8 +176,8 @@ export const commands = {
172
176
  idBased: 'Print information for the account with accountId equal to "1234567"',
173
177
  nameBased: 'Print information for the account in the config with name equal to "MyAccount"',
174
178
  },
175
- name: (name) => `${chalk.bold('Account name')}: ${name}`,
176
- scopeGroups: `${chalk.bold('Scopes available')}:`,
179
+ name: (name) => `${chalk_1.default.bold('Account name')}: ${name}`,
180
+ scopeGroups: `${chalk_1.default.bold('Scopes available')}:`,
177
181
  },
178
182
  clean: {
179
183
  describe: 'Check for inactive accounts and removes them from the CLI config.',
@@ -195,10 +199,10 @@ export const commands = {
195
199
  },
196
200
  auth: {
197
201
  describe: 'Configure authentication for your HubSpot account.',
198
- verboseDescribe: (configName, authMethod) => `Configure authentication for a HubSpot account. This will update the ${configName} file that stores your account information.\n\nThe recommended authentication method is ${chalk.bold(authMethod)}, which uses an access token tied to a specific user account.`,
202
+ verboseDescribe: (configName, authMethod) => `Configure authentication for a HubSpot account. This will update the ${configName} file that stores your account information.\n\nThe recommended authentication method is ${chalk_1.default.bold(authMethod)}, which uses an access token tied to a specific user account.`,
199
203
  errors: {
200
204
  invalidAccountIdProvided: `--account must be a number.`,
201
- globalConfigFileExists: (accountAuthCommand) => `You are using our new global configuration for account management, which is not compatible with this command. Please use ${uiCommandReference(accountAuthCommand)} instead.`,
205
+ globalConfigFileExists: (accountAuthCommand) => `You are using our new global configuration for account management, which is not compatible with this command. Please use ${(0, ui_1.uiCommandReference)(accountAuthCommand)} instead.`,
202
206
  noConfigFileFound: 'No config file was found. To create a new config file, use the "hs init" command.',
203
207
  unsupportedAuthType: (type, supportedProtocols) => `Unsupported auth type: ${type}. The only supported authentication protocols are ${supportedProtocols}.`,
204
208
  },
@@ -222,18 +226,18 @@ export const commands = {
222
226
  describe: 'Commands for managing the CLI config file.',
223
227
  subcommands: {
224
228
  migrate: {
225
- describe: `Migrate from the deprecated ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} file to the new global config file at ${GLOBAL_CONFIG_PATH}.`,
226
- verboseDescribe: `This command will create or update the global configuration file in your root directory. It will archive the current config as ${ARCHIVED_HUBSPOT_CONFIG_YAML_FILE_NAME}.`,
229
+ describe: `Migrate from the deprecated ${config_1.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} file to the new global config file at ${config_1.GLOBAL_CONFIG_PATH}.`,
230
+ verboseDescribe: `This command will create or update the global configuration file in your root directory. It will archive the current config as ${config_1.ARCHIVED_HUBSPOT_CONFIG_YAML_FILE_NAME}.`,
227
231
  errors: {
228
- noConfigToMigrate: `No ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} was found. There is nothing to migrate.`,
232
+ noConfigToMigrate: `No ${config_1.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} was found. There is nothing to migrate.`,
229
233
  configNotFound: (configPath) => `A configuration file at ${configPath} could not be found. Please try again with a valid file path.`,
230
234
  },
231
235
  options: {
232
236
  force: 'Bypass prompts and overwrite any conflicting values in the global config with the deprecated config values.',
233
237
  },
234
238
  examples: {
235
- default: `Migrate from the deprecated ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} file to the new global config file at ${GLOBAL_CONFIG_PATH}`,
236
- configFlag: `Migrate a specific config file (specified with the config flag) to the new global config file at ${GLOBAL_CONFIG_PATH}`,
239
+ default: `Migrate from the deprecated ${config_1.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} file to the new global config file at ${config_1.GLOBAL_CONFIG_PATH}`,
240
+ configFlag: `Migrate a specific config file (specified with the config flag) to the new global config file at ${config_1.GLOBAL_CONFIG_PATH}`,
237
241
  },
238
242
  },
239
243
  set: {
@@ -320,7 +324,7 @@ export const commands = {
320
324
  create: {
321
325
  describe: (supportedAssetTypes) => `Create HubSpot sample apps and CMS assets. Supported assets are ${supportedAssetTypes}.`,
322
326
  errors: {
323
- deprecatedAssetType: (assetType, newCommand, type) => `The CLI command for asset type ${assetType} has been deprecated in an effort to make it easier to know what asset types can be created. Run the ${uiCommandReference(newCommand)}" command instead. Then when prompted select "${type}".`,
327
+ deprecatedAssetType: (assetType, newCommand, type) => `The CLI command for asset type ${assetType} has been deprecated in an effort to make it easier to know what asset types can be created. Run the ${(0, ui_1.uiCommandReference)(newCommand)}" command instead. Then when prompted select "${type}".`,
324
328
  unsupportedAssetType: (assetType, supportedAssetTypes) => `The asset type ${assetType} is not supported. Supported asset types are ${supportedAssetTypes}.`,
325
329
  unusablePath: (path) => `The "${path}" is not a usable path to a directory.`,
326
330
  },
@@ -362,7 +366,7 @@ export const commands = {
362
366
  },
363
367
  },
364
368
  customObject: {
365
- betaMessage: `${chalk.bold('[BETA]')} The Custom Object CLI is currently in beta and is subject to change.`,
369
+ betaMessage: `${chalk_1.default.bold('[BETA]')} The Custom Object CLI is currently in beta and is subject to change.`,
366
370
  describe: 'Commands for managing custom objects.',
367
371
  seeMoreLink: 'View our docs to find out more.',
368
372
  subcommands: {
@@ -514,9 +518,9 @@ export const commands = {
514
518
  },
515
519
  errors: {
516
520
  generatingDiagnosis: 'Error generating diagnosis',
517
- unableToWriteOutputFile: (file, errorMessage) => `Unable to write output to ${chalk.bold(file)}, ${errorMessage}`,
521
+ unableToWriteOutputFile: (file, errorMessage) => `Unable to write output to ${chalk_1.default.bold(file)}, ${errorMessage}`,
518
522
  },
519
- outputWritten: (filename) => `Output written to ${chalk.bold(filename)}`,
523
+ outputWritten: (filename) => `Output written to ${chalk_1.default.bold(filename)}`,
520
524
  },
521
525
  fetch: {
522
526
  describe: 'Fetch a file, directory or module from HubSpot and write to a path on your computer.',
@@ -726,7 +730,7 @@ export const commands = {
726
730
  },
727
731
  },
728
732
  list: {
729
- tables: `${chalk.bold('Tables')}:`,
733
+ tables: `${chalk_1.default.bold('Tables')}:`,
730
734
  describe: 'List HubDB tables.',
731
735
  labels: {
732
736
  label: 'Label',
@@ -740,13 +744,13 @@ export const commands = {
740
744
  tablesDisplayed: (displayed, total, truncated) => `Displaying ${displayed} of ${total} tables${truncated
741
745
  ? `, the remaining ${truncated} tables were not displayed.`
742
746
  : '.'}`,
743
- viewTablesLink: (baseUrl, accountId) => uiLink('Manage tables in HubSpot', `${baseUrl}/hubdb/${accountId}`),
747
+ viewTablesLink: (baseUrl, accountId) => (0, ui_1.uiLink)('Manage tables in HubSpot', `${baseUrl}/hubdb/${accountId}`),
744
748
  },
745
749
  },
746
750
  },
747
751
  init: {
748
752
  describe: 'Create a CLI config file and configure authentication for your HubSpot account.',
749
- verboseDescribe: (configName, command, authMethod) => `Configure authentication for a HubSpot account. This will create a ${configName} file to store your account information. To configure authentication for additional accounts, run ${command}.\n\nThe recommended authentication method is ${chalk.bold(authMethod)}, which uses an access token tied to a specific user account.`,
753
+ verboseDescribe: (configName, command, authMethod) => `Configure authentication for a HubSpot account. This will create a ${configName} file to store your account information. To configure authentication for additional accounts, run ${command}.\n\nThe recommended authentication method is ${chalk_1.default.bold(authMethod)}, which uses an access token tied to a specific user account.`,
750
754
  options: {
751
755
  authType: {
752
756
  describe: 'Authentication mechanism',
@@ -770,7 +774,7 @@ export const commands = {
770
774
  invalidAccountIdProvided: `--account must be a number.`,
771
775
  configFileExists: (configPath) => `The config file ${configPath} already exists.`,
772
776
  bothConfigFilesNotAllowed: (path) => `Unable to create config file, because there is an existing one at "${path}". To create a new config file, delete the existing one and try again.`,
773
- globalConfigFileExists: `You are using our new global configuration for account management, which is not compatible with this command. Please use ${uiCommandReference('hs account auth')} instead.`,
777
+ globalConfigFileExists: `You are using our new global configuration for account management, which is not compatible with this command. Please use ${(0, ui_1.uiCommandReference)('hs account auth')} instead.`,
774
778
  },
775
779
  },
776
780
  lint: {
@@ -837,9 +841,10 @@ export const commands = {
837
841
  client: 'Target applications to configure',
838
842
  docsSearch: 'Should the docs search mcp server be installed',
839
843
  },
840
- success: (derivedTargets) => `You can now use the HubSpot CLI MCP Server in ${derivedTargets.join(', ')}. ${chalk.bold('You may need to restart these tools to apply the changes')}.`,
844
+ success: (derivedTargets) => `You can now use the HubSpot CLI MCP Server in ${derivedTargets.join(', ')}. ${chalk_1.default.bold('You may need to restart these tools to apply the changes')}.`,
841
845
  errors: {
842
846
  needsNode20: `This feature requires node >=20`,
847
+ errorParsingJsonFIle: (filename, errorMessage) => `Unable to update ${chalk_1.default.bold(filename)} due to invalid JSON: ${errorMessage}`,
843
848
  },
844
849
  spinners: {
845
850
  failedToConfigure: 'Failed to configure the HubSpot mcp server.',
@@ -900,15 +905,15 @@ export const commands = {
900
905
  project: {
901
906
  profile: {
902
907
  describe: 'Commands for managing project profiles',
903
- verboseDescribe: `Commands for managing project profiles\n\nProfiles are stored at the root of your project's source directory and they make configuration dynamic. Use them to couple specialized configurations of your project to specific HubSpot accounts.\n\nRun ${uiCommandReference('hs project profile add')} to get started!`,
908
+ verboseDescribe: `Commands for managing project profiles\n\nProfiles are stored at the root of your project's source directory and they make configuration dynamic. Use them to couple specialized configurations of your project to specific HubSpot accounts.\n\nRun ${(0, ui_1.uiCommandReference)('hs project profile add')} to get started!`,
904
909
  add: {
905
910
  describe: 'Add a new project profile',
906
- verboseDescribe: `Add a new project profile\n\nProfiles enable you to reference variables in your component configuration files. Use the syntax ${chalk.bold('\${VARIABLE_NAME}')} to reference profile variables in your component configuration files. Then target the profile using the ${uiCommandReference('--profile')} flag when you upload your project.`,
911
+ verboseDescribe: `Add a new project profile\n\nProfiles enable you to reference variables in your component configuration files. Use the syntax ${chalk_1.default.bold('\${VARIABLE_NAME}')} to reference profile variables in your component configuration files. Then target the profile using the ${(0, ui_1.uiCommandReference)('--profile')} flag when you upload your project.`,
907
912
  example: 'Add a new project profile named hsprofile.qa.json',
908
913
  logs: {
909
- copyExistingProfile: (profileName) => `Found an existing profile. We can copy the variables from ${chalk.bold(profileName)} into your new profile.`,
914
+ copyExistingProfile: (profileName) => `Found an existing profile. We can copy the variables from ${chalk_1.default.bold(profileName)} into your new profile.`,
910
915
  copyExistingProfiles: 'We can copy the variables from one of your existing profiles into your new profile.',
911
- profileAdded: (profileName) => `Project profile ${chalk.bold(profileName)} was successfully added`,
916
+ profileAdded: (profileName) => `Project profile ${chalk_1.default.bold(profileName)} was successfully added`,
912
917
  },
913
918
  prompts: {
914
919
  namePrompt: 'Enter a name for the new project profile: ',
@@ -919,14 +924,14 @@ export const commands = {
919
924
  invalidProfileName: 'Profile name cannot contain special characters or spaces',
920
925
  },
921
926
  warnings: {
922
- duplicateTargetAccount: (targetAccountId) => `The account ${uiAccountDescription(targetAccountId)} is being used in an existing profile. Make sure to edit your project's name between uploads if you do not want to overwrite the existing project in this account.`,
927
+ duplicateTargetAccount: (targetAccountId) => `The account ${(0, ui_1.uiAccountDescription)(targetAccountId)} is being used in an existing profile. Make sure to edit your project's name between uploads if you do not want to overwrite the existing project in this account.`,
923
928
  },
924
929
  errors: {
925
930
  noProjectConfig: 'No project config found. Please run this command from a project directory.',
926
- profileExists: (profileName) => `Profile ${chalk.bold(profileName)} already exists. Please choose a different name.`,
931
+ profileExists: (profileName) => `Profile ${chalk_1.default.bold(profileName)} already exists. Please choose a different name.`,
927
932
  invalidTargetAccount: 'Target account is not configured in the CLI',
928
933
  noAccountsConfigured: 'No accounts configured in the CLI',
929
- failedToLoadProfile: (profileName) => `Unable to copy variables. Failed to load profile ${chalk.bold(profileName)}`,
934
+ failedToLoadProfile: (profileName) => `Unable to copy variables. Failed to load profile ${chalk_1.default.bold(profileName)}`,
930
935
  failedToCreateProfile: 'Failed to create profile',
931
936
  },
932
937
  positionals: {
@@ -940,22 +945,22 @@ export const commands = {
940
945
  describe: 'Delete an existing project profile',
941
946
  example: 'Delete a project profile named hsprofile.qa.json',
942
947
  logs: {
943
- profileDeleted: (profileName) => `Project profile ${chalk.bold(profileName)} was successfully deleted`,
944
- deletedProject: (accountId) => `Successfully deleted the project from ${uiAccountDescription(accountId)}`,
945
- didNotDeleteProject: (accountId) => `Did not delete the project from ${uiAccountDescription(accountId)}`,
948
+ profileDeleted: (profileName) => `Project profile ${chalk_1.default.bold(profileName)} was successfully deleted`,
949
+ deletedProject: (accountId) => `Successfully deleted the project from ${(0, ui_1.uiAccountDescription)(accountId)}`,
950
+ didNotDeleteProject: (accountId) => `Did not delete the project from ${(0, ui_1.uiAccountDescription)(accountId)}`,
946
951
  },
947
952
  debug: {
948
- failedToLoadProfile: (profileName) => `Failed to load profile ${chalk.bold(profileName)}`,
953
+ failedToLoadProfile: (profileName) => `Failed to load profile ${chalk_1.default.bold(profileName)}`,
949
954
  },
950
955
  prompts: {
951
956
  deleteProfilePrompt: 'Select a profile to delete from your project',
952
- deleteProjectPrompt: (accountId) => `Would you like to delete this project from ${uiAccountDescription(accountId)}?`,
957
+ deleteProjectPrompt: (accountId) => `Would you like to delete this project from ${(0, ui_1.uiAccountDescription)(accountId)}?`,
953
958
  },
954
959
  errors: {
955
960
  noProjectConfig: 'No project config found. Please run this command from a project directory.',
956
- noProfileFound: (profileName) => `No profile with filename ${chalk.bold(profileName)} found in your project.`,
961
+ noProfileFound: (profileName) => `No profile with filename ${chalk_1.default.bold(profileName)} found in your project.`,
957
962
  noProfilesFound: 'No profiles found in your project.',
958
- failedToDeleteProfile: (profileName) => `Unable to delete profile ${chalk.bold(profileName)}. Please try again.`,
963
+ failedToDeleteProfile: (profileName) => `Unable to delete profile ${chalk_1.default.bold(profileName)}. Please try again.`,
959
964
  },
960
965
  positionals: {
961
966
  name: 'The name of the project profile',
@@ -969,15 +974,15 @@ export const commands = {
969
974
  placeholderAccountSelection: 'Using default account as target account (for now)',
970
975
  learnMoreLocalDevServer: 'Learn more about the projects local dev server',
971
976
  accountTypeInformation: 'Testing in a developer test account is strongly recommended, but you can use a sandbox account if your plan allows you to create one.',
972
- learnMoreMessage: `\nVisit our ${uiLink('docs on Developer Test and Sandbox accounts', 'https://developers.hubspot.com/docs/getting-started/account-types')} to learn more.`,
977
+ learnMoreMessage: `\nVisit our ${(0, ui_1.uiLink)('docs on Developer Test and Sandbox accounts', 'https://developers.hubspot.com/docs/getting-started/account-types')} to learn more.`,
973
978
  },
974
979
  errors: {
975
980
  noProjectConfig: 'No project detected. Please run this command again from a project directory.',
976
- noAccount: (accountId) => `An error occurred while reading account ${uiAccountDescription(accountId)} from your config. Run ${uiCommandReference('hs auth')} to re-auth this account.`,
977
- noAccountsInConfig: (authCommand) => `No accounts found in your config. Run ${chalk.bold(authCommand)} to configure a HubSpot account with the CLI.`,
981
+ noAccount: (accountId) => `An error occurred while reading account ${(0, ui_1.uiAccountDescription)(accountId)} from your config. Run ${(0, ui_1.uiCommandReference)('hs auth')} to re-auth this account.`,
982
+ noAccountsInConfig: (authCommand) => `No accounts found in your config. Run ${chalk_1.default.bold(authCommand)} to configure a HubSpot account with the CLI.`,
978
983
  invalidProjectComponents: 'Projects cannot contain both private and public apps. Move your apps to separate projects before attempting local development.',
979
- noRunnableComponents: `No supported components were found in this project. Run ${uiCommandReference('hs project add')} to see a list of available components and add one to your project.`,
980
- accountNotCombined: `\nLocal development of unified apps is currently only compatible with accounts that are opted into the unified apps beta. Make sure that this account is opted in or switch accounts using ${uiCommandReference('hs account use')}.`,
984
+ noRunnableComponents: `No supported components were found in this project. Run ${(0, ui_1.uiCommandReference)('hs project add')} to see a list of available components and add one to your project.`,
985
+ accountNotCombined: `\nLocal development of unified apps is currently only compatible with accounts that are opted into the unified apps beta. Make sure that this account is opted in or switch accounts using ${(0, ui_1.uiCommandReference)('hs account use')}.`,
981
986
  unsupportedAccountFlagLegacy: 'The --projectAccount and --testingAccount flags are not supported for projects with platform versions earlier than 2025.2.',
982
987
  unsupportedAccountFlagV3: 'The --account flag is is not supported supported for projects with platform versions 2025.2 and newer. Use --testingAccount and --projectAccount flags to specify accounts to use for local dev',
983
988
  },
@@ -999,8 +1004,8 @@ export const commands = {
999
1004
  cannotNestProjects: (projectDir) => `A project already exists at ${projectDir}. Projects cannot be nested within other projects. Please choose a different destination and try again.`,
1000
1005
  },
1001
1006
  logs: {
1002
- success: (projectName, projectDest) => `\nProject ${chalk.bold(projectName)} was successfully created in ${projectDest}`,
1003
- welcomeMessage: `\n${chalk.bold('Welcome to HubSpot Developer Projects!')}`,
1007
+ success: (projectName, projectDest) => `\nProject ${chalk_1.default.bold(projectName)} was successfully created in ${projectDest}`,
1008
+ welcomeMessage: `\n${chalk_1.default.bold('Welcome to HubSpot Developer Projects!')}`,
1004
1009
  },
1005
1010
  prompts: {
1006
1011
  parentComponents: '[--project-base] What would you like in your project?',
@@ -1037,7 +1042,7 @@ export const commands = {
1037
1042
  describe: 'Authentication model for the application.',
1038
1043
  },
1039
1044
  features: {
1040
- describe: `Features to include in the project. Only valid if project-base is ${PROJECT_WITH_APP}`,
1045
+ describe: `Features to include in the project. Only valid if project-base is ${v3_1.PROJECT_WITH_APP}`,
1041
1046
  },
1042
1047
  },
1043
1048
  },
@@ -1063,17 +1068,17 @@ export const commands = {
1063
1068
  },
1064
1069
  deprecationWarning: (oldCommand, newCommand) => `The ${oldCommand} command is deprecated and will be removed. Use ${newCommand} going forward.`,
1065
1070
  migrationStatus: {
1066
- inProgress: () => `Converting app configuration to ${chalk.bold('public-app.json')} component definition ...`,
1067
- success: () => `${chalk.bold('Your app was converted and build #1 is deployed')}`,
1071
+ inProgress: () => `Converting app configuration to ${chalk_1.default.bold('public-app.json')} component definition ...`,
1072
+ success: () => `${chalk_1.default.bold('Your app was converted and build #1 is deployed')}`,
1068
1073
  done: () => 'Converting app configuration to public-app.json component definition ... DONE',
1069
1074
  failure: () => 'Converting app configuration to public-app.json component definition ... FAILED',
1070
1075
  },
1071
1076
  warning: {
1072
- title: () => `${chalk.bold('You are about to migrate an app to the projects framework')}`,
1073
- projectConversion: () => `${chalk.bold('The selected app will be converted to a project component.')}`,
1074
- appConfig: () => `All supported app configuration will be moved to the ${chalk.bold('public-app.json')} component definition file. Future updates to those features must be made through the project build and deploy pipeline, not the developer account UI.`,
1077
+ title: () => `${chalk_1.default.bold('You are about to migrate an app to the projects framework')}`,
1078
+ projectConversion: () => `${chalk_1.default.bold('The selected app will be converted to a project component.')}`,
1079
+ appConfig: () => `All supported app configuration will be moved to the ${chalk_1.default.bold('public-app.json')} component definition file. Future updates to those features must be made through the project build and deploy pipeline, not the developer account UI.`,
1075
1080
  buildAndDeploy: 'This will create a new project with a single app component and immediately build and deploy it to your developer account (build #1).',
1076
- existingApps: () => `${chalk.bold('This will not affect existing app users or installs.')}`,
1081
+ existingApps: () => `${chalk_1.default.bold('This will not affect existing app users or installs.')}`,
1077
1082
  copyApp: 'We strongly recommend making a copy of your app to test this process in a development app before replacing production.',
1078
1083
  },
1079
1084
  migrationInterrupted: '\nThe command is terminated, but app migration is still in progress. Please check your account to ensure that the project and associated app have been created successfully.',
@@ -1104,13 +1109,13 @@ export const commands = {
1104
1109
  },
1105
1110
  },
1106
1111
  cloneStatus: {
1107
- inProgress: () => `Cloning app configuration to ${chalk.bold('public-app.json')} component definition ...`,
1112
+ inProgress: () => `Cloning app configuration to ${chalk_1.default.bold('public-app.json')} component definition ...`,
1108
1113
  done: 'Cloning app configuration to public-app.json component definition ... DONE',
1109
1114
  success: (dest) => `Your cloned project was created in ${dest}`,
1110
1115
  failure: 'Cloning app configuration to public-app.json component definition ... FAILED',
1111
1116
  },
1112
1117
  errors: {
1113
- invalidAccountTypeTitle: () => `${chalk.bold('Developer account not targeted')}`,
1118
+ invalidAccountTypeTitle: () => `${chalk_1.default.bold('Developer account not targeted')}`,
1114
1119
  invalidAccountTypeDescription: (useCommand, authCommand) => `Only public apps created in a developer account can be converted to a project component. Select a connected developer account with ${useCommand} or ${authCommand} and try again.`,
1115
1120
  couldNotWriteConfigPath: (configPath) => `Failed to write project config at ${configPath}`,
1116
1121
  },
@@ -1134,19 +1139,19 @@ export const commands = {
1134
1139
  describe: 'Which features to include with the application.',
1135
1140
  },
1136
1141
  },
1137
- creatingComponent: (projectName) => `\nAdding a new component to ${chalk.bold(projectName)}\n`,
1142
+ creatingComponent: (projectName) => `\nAdding a new app feature to ${chalk_1.default.bold(projectName)}\n`,
1138
1143
  success: (componentName, multiple = false) => `${componentName || 'An app'} ${multiple ? 'were' : 'was'} successfully added to your ${componentName ? 'app' : 'project'}.`,
1139
1144
  error: {
1140
- failedToDownloadComponent: 'Failed to download project component. Please try again later.',
1145
+ failedToDownloadComponent: 'Failed to download project. Please try again later.',
1141
1146
  maxExceeded: (maxCount) => `This project has the maximum allowed(${maxCount})`,
1142
1147
  authTypeNotAllowed: (authType) => `Auth type '${authType}' not allowed.`,
1143
1148
  distributionNotAllowed: (dist) => `Distribution '${dist}' not allowed.`,
1144
1149
  locationInProject: 'This command must be run from within a project directory.',
1145
- failedToFetchComponentList: 'Failed to fetch the list of available components. Please try again later.',
1150
+ failedToFetchComponentList: 'Failed to fetch the list of available features. Please try again later.',
1146
1151
  projectContainsPublicApp: 'This project contains a public app. This command is currently only compatible with projects that contain private apps.',
1147
1152
  },
1148
1153
  examples: {
1149
- default: 'Create a component within your project',
1154
+ default: 'Create an app feature within your project',
1150
1155
  withFlags: 'Use --name and --type flags to bypass the prompt.',
1151
1156
  },
1152
1157
  },
@@ -1157,25 +1162,24 @@ export const commands = {
1157
1162
  deploying: (path) => `Deploying project at path: ${path}`,
1158
1163
  },
1159
1164
  errors: {
1160
- deploy: (details) => `Deploy error: ${details}`,
1165
+ deploy: 'Deploy error: an unknown error occurred.',
1161
1166
  noBuilds: 'Deploy error: no builds for this project were found.',
1162
1167
  noBuildId: 'You must specify a build to deploy',
1163
- projectNotFound: (projectName, accountIdentifier, command) => `The project ${chalk.bold(projectName)} does not exist in account ${accountIdentifier}. Run ${command} to upload your project files to HubSpot.`,
1164
- buildIdDoesNotExist: (buildId, projectName, linkToProject) => `Build ${buildId} does not exist for project ${chalk.bold(projectName)}. ${linkToProject}`,
1165
- buildAlreadyDeployed: (buildId, linkToProject) => `Build ${buildId} is already deployed. ${linkToProject}`,
1166
- viewProjectsBuilds: 'View project builds in HubSpot',
1168
+ projectNotFound: (accountId, projectName) => `The project ${chalk_1.default.bold(projectName)} does not exist in account ${(0, ui_1.uiAccountDescription)(accountId)}. Run ${(0, ui_1.uiCommandReference)('hs project upload')} to upload your project files to HubSpot.`,
1169
+ buildIdDoesNotExist: (accountId, buildId, projectName) => `Build ${buildId} does not exist for project ${chalk_1.default.bold(projectName)}. ${(0, ui_1.uiLink)('View project builds in HubSpot', (0, urls_1.getProjectDetailUrl)(projectName, accountId))}`,
1170
+ buildAlreadyDeployed: (accountId, buildId, projectName) => `Build ${buildId} is already deployed. ${(0, ui_1.uiLink)('View project builds in HubSpot', (0, urls_1.getProjectDetailUrl)(projectName, accountId))}`,
1171
+ deployContainsRemovals: (componentName) => `- This deploy would remove the ${chalk_1.default.bold(componentName)} component. To proceed, run the deploy command with the ${(0, ui_1.uiCommandReference)('--force')} flag`,
1167
1172
  },
1168
1173
  examples: {
1169
1174
  default: 'Deploy the latest build of the current project',
1170
1175
  withOptions: 'Deploy build 5 of the project my-project',
1171
1176
  },
1172
1177
  options: {
1173
- build: {
1174
- describe: 'Project build ID to be deployed',
1175
- },
1176
- project: {
1177
- describe: 'Project name',
1178
- },
1178
+ build: 'Project build ID to be deployed',
1179
+ project: 'Project name',
1180
+ profile: 'The profile to target with this deploy',
1181
+ force: 'Skip warnings and force deploy. Use this carefully as it will bypass warnings for destructive actions.',
1182
+ deployLatestBuild: 'Deploy the latest build of the current project',
1179
1183
  },
1180
1184
  },
1181
1185
  listBuilds: {
@@ -1206,7 +1210,7 @@ export const commands = {
1206
1210
  noProjectConfig: 'No project detected. Run this command again from a project directory.',
1207
1211
  failedToFetchProjectDetails: 'There was an error fetching project details',
1208
1212
  noFunctionsLinkText: 'Visit developer docs',
1209
- noFunctionsInProject: `There aren't any functions in this project\n\t- Run ${uiCommandReference('hs project logs --help')} to learn more about logs\n\t- ${uiLink('Visit developer docs', 'https://developers.hubspot.com/docs/platform/serverless-functions')} to learn more about serverless functions`,
1213
+ noFunctionsInProject: `There aren't any functions in this project\n\t- Run ${(0, ui_1.uiCommandReference)('hs project logs --help')} to learn more about logs\n\t- ${(0, ui_1.uiLink)('Visit developer docs', 'https://developers.hubspot.com/docs/platform/serverless-functions')} to learn more about serverless functions`,
1210
1214
  noFunctionWithName: (name) => `No function with name "${name}"`,
1211
1215
  functionNotDeployed: (name) => `The function with name "${name}" is not deployed`,
1212
1216
  projectLogsManagerNotInitialized: 'Function called on ProjectLogsManager before initialization',
@@ -1259,7 +1263,7 @@ export const commands = {
1259
1263
  autoDeployDisabled: (deployCommand) => `Automatic deploys are disabled for this project. Run ${deployCommand} to deploy this build.`,
1260
1264
  },
1261
1265
  errors: {
1262
- projectLockedError: () => `Your project is locked. This may mean that another user is running the ${chalk.bold('`hs project dev`')} command for this project. If this is you, unlock the project in Projects UI.`,
1266
+ projectLockedError: () => `Your project is locked. This may mean that another user is running the ${chalk_1.default.bold('`hs project dev`')} command for this project. If this is you, unlock the project in Projects UI.`,
1263
1267
  },
1264
1268
  options: {
1265
1269
  forceCreate: {
@@ -1277,7 +1281,7 @@ export const commands = {
1277
1281
  },
1278
1282
  logs: {
1279
1283
  processExited: 'Stopping watcher...',
1280
- watchCancelledFromUi: `The watch process has been cancelled from the UI. Any changes made since cancelling have not been uploaded. To resume watching, rerun ${uiCommandReference('hs project watch')}.`,
1284
+ watchCancelledFromUi: `The watch process has been cancelled from the UI. Any changes made since cancelling have not been uploaded. To resume watching, rerun ${(0, ui_1.uiCommandReference)('hs project watch')}.`,
1281
1285
  resuming: 'Resuming watcher...',
1282
1286
  uploadSucceeded: (remotePath, filePath) => `Uploaded file "${filePath}" to "${remotePath}"`,
1283
1287
  deleteFileSucceeded: (remotePath) => `Deleted file "${remotePath}"`,
@@ -1301,7 +1305,7 @@ export const commands = {
1301
1305
  },
1302
1306
  errors: {
1303
1307
  projectConfigNotFound: 'No project config found. Please ensure that you are in a project directory.',
1304
- projectLockedError: `Your project is locked. This may mean that another user is running the ${chalk.bold(`hs project dev`)} command for this project. If this is you, unlock the project in Projects UI.`,
1308
+ projectLockedError: `Your project is locked. This may mean that another user is running the ${chalk_1.default.bold(`hs project dev`)} command for this project. If this is you, unlock the project in Projects UI.`,
1305
1309
  uploadFailed: (remotePath, filePath) => `Failed to upload file "${filePath}" to "${remotePath}"`,
1306
1310
  deleteFileFailed: (remotePath) => `Failed to delete file "${remotePath}"`,
1307
1311
  deleteFolderFailed: (remotePath) => `Failed to delete folder "${remotePath}"`,
@@ -1318,7 +1322,7 @@ export const commands = {
1318
1322
  },
1319
1323
  errors: {
1320
1324
  downloadFailed: 'Something went wrong downloading the project',
1321
- projectNotFound: (projectName, accountId) => `Your project ${chalk.bold(projectName)} could not be found in ${accountId}`,
1325
+ projectNotFound: (projectName, accountId) => `Your project ${chalk_1.default.bold(projectName)} could not be found in ${accountId}`,
1322
1326
  },
1323
1327
  warnings: {
1324
1328
  cannotDownloadWithinProject: 'Cancelling project download. Please run the command again outside the context of an existing project.',
@@ -1350,8 +1354,8 @@ export const commands = {
1350
1354
  feedback: {
1351
1355
  describe: 'Leave feedback or file a bug report.',
1352
1356
  openPrompt: 'Open the feedback form in your browser?',
1353
- success: (url) => `We opened ${uiLink('the developer feedback form', url)} in your browser.`,
1354
- error: (url) => `Navigate to ${uiLink('the developer feedback form', url)} to leave feedback.`,
1357
+ success: (url) => `We opened ${(0, ui_1.uiLink)('the developer feedback form', url)} in your browser.`,
1358
+ error: (url) => `Navigate to ${(0, ui_1.uiLink)('the developer feedback form', url)} to leave feedback.`,
1355
1359
  },
1356
1360
  installDeps: {
1357
1361
  help: {
@@ -1367,7 +1371,7 @@ export const commands = {
1367
1371
  installingDependenciesFailed: (directory) => `Installing dependencies for ${directory} failed`,
1368
1372
  noProjectConfig: 'No project detected. Run this command from a project directory.',
1369
1373
  noPackageJsonInProject: (projectName, link) => `No dependencies to install. The project ${projectName} folder might be missing component or subcomponent files. ${link}`,
1370
- packageManagerNotInstalled: (packageManager, link) => `This command depends on ${packageManager}, install ${chalk.bold(link)}`,
1374
+ packageManagerNotInstalled: (packageManager, link) => `This command depends on ${packageManager}, install ${chalk_1.default.bold(link)}`,
1371
1375
  },
1372
1376
  validate: {
1373
1377
  describe: 'Validate the project before uploading',
@@ -1386,9 +1390,9 @@ export const commands = {
1386
1390
  },
1387
1391
  remove: {
1388
1392
  describe: 'Delete a file or folder from the HubSpot CMS.',
1389
- deleted: (path, accountId) => `Deleted "${path}" from account ${uiAccountDescription(accountId)}`,
1393
+ deleted: (path, accountId) => `Deleted "${path}" from account ${(0, ui_1.uiAccountDescription)(accountId)}`,
1390
1394
  errors: {
1391
- deleteFailed: (path, accountId) => `Deleting "${path}" from account ${uiAccountDescription(accountId)} failed`,
1395
+ deleteFailed: (path, accountId) => `Deleting "${path}" from account ${(0, ui_1.uiAccountDescription)(accountId)} failed`,
1392
1396
  },
1393
1397
  positionals: {
1394
1398
  path: 'Remote hubspot path',
@@ -1400,39 +1404,39 @@ export const commands = {
1400
1404
  create: {
1401
1405
  developer: {
1402
1406
  loading: {
1403
- add: (accountName) => `Creating developer sandbox ${chalk.bold(accountName)}`,
1404
- fail: (accountName) => `Failed to create a developer sandbox ${chalk.bold(accountName)}.`,
1405
- succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
1407
+ add: (accountName) => `Creating developer sandbox ${chalk_1.default.bold(accountName)}`,
1408
+ fail: (accountName) => `Failed to create a developer sandbox ${chalk_1.default.bold(accountName)}.`,
1409
+ succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
1406
1410
  },
1407
1411
  success: {
1408
1412
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
1409
1413
  },
1410
1414
  failure: {
1411
- invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1412
- limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To connect a developer sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
1413
- alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To use an existing developer sandbox, run ${chalk.bold('hs accounts use')}.`,
1415
+ invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1416
+ limit: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To connect a developer sandbox to your HubSpot CLI, run ${chalk_1.default.bold('hs auth')} and follow the prompts.`,
1417
+ alreadyInConfig: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To use an existing developer sandbox, run ${chalk_1.default.bold('hs accounts use')}.`,
1414
1418
  scopes: {
1415
1419
  message: "The personal access key you provided doesn't include developer sandbox permissions.",
1416
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1420
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1417
1421
  },
1418
1422
  },
1419
1423
  },
1420
1424
  standard: {
1421
1425
  loading: {
1422
- add: (accountName) => `Creating standard sandbox ${chalk.bold(accountName)}`,
1423
- fail: (accountName) => `Failed to create a standard sandbox ${chalk.bold(accountName)}.`,
1424
- succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
1426
+ add: (accountName) => `Creating standard sandbox ${chalk_1.default.bold(accountName)}`,
1427
+ fail: (accountName) => `Failed to create a standard sandbox ${chalk_1.default.bold(accountName)}.`,
1428
+ succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
1425
1429
  },
1426
1430
  success: {
1427
1431
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
1428
1432
  },
1429
1433
  failure: {
1430
- invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1431
- limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To connect a standard sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
1432
- alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To use an existing standard sandbox, run ${chalk.bold('hs accounts use')}.`,
1434
+ invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1435
+ limit: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To connect a standard sandbox to your HubSpot CLI, run ${chalk_1.default.bold('hs auth')} and follow the prompts.`,
1436
+ alreadyInConfig: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To use an existing standard sandbox, run ${chalk_1.default.bold('hs accounts use')}.`,
1433
1437
  scopes: {
1434
1438
  message: "The personal access key you provided doesn't include standard sandbox permissions.",
1435
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1439
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1436
1440
  },
1437
1441
  },
1438
1442
  },
@@ -1446,8 +1450,8 @@ export const commands = {
1446
1450
  examples: {
1447
1451
  default: 'Deletes the sandbox account named MySandboxAccount.',
1448
1452
  },
1449
- confirm: (account) => `Delete sandbox ${chalk.bold(account)}? All data for this sandbox will be permanently deleted.`,
1450
- defaultAccountWarning: (account) => `The sandbox ${chalk.bold(account)} is currently set as the default account.`,
1453
+ confirm: (account) => `Delete sandbox ${chalk_1.default.bold(account)}? All data for this sandbox will be permanently deleted.`,
1454
+ defaultAccountWarning: (account) => `The sandbox ${chalk_1.default.bold(account)} is currently set as the default account.`,
1451
1455
  success: {
1452
1456
  delete: (account, sandboxHubId) => `Sandbox "${account}" with portalId "${sandboxHubId}" was deleted successfully.`,
1453
1457
  deleteDefault: (account, sandboxHubId) => `Sandbox "${account}" with portalId "${sandboxHubId}" was deleted successfully and removed as the default account.`,
@@ -1459,9 +1463,9 @@ export const commands = {
1459
1463
  noSandboxAccounts: (authCommand) => `There are no sandboxes connected to the CLI. To add a sandbox, run ${authCommand}.`,
1460
1464
  noSandboxAccountId: "This sandbox can't be deleted from the CLI because we could not find the associated sandbox account.",
1461
1465
  noParentAccount: (authCommand) => `This sandbox can't be deleted from the CLI because you haven't given the CLI access to its parent account. To do this, run ${authCommand} and add the parent account.`,
1462
- objectNotFound: (account) => `Sandbox ${chalk.bold(account)} may have been deleted through the UI. The account has been removed from the config.`,
1463
- noParentPortalAvailable: (command, url) => `This sandbox can't be deleted from the CLI because you haven't given the CLI access to its parent account. To do this, run ${command}. You can also delete the sandbox from the HubSpot management tool: ${chalk.bold(url)}.`,
1464
- invalidKey: (account, authCommand) => `Your personal access key for account ${chalk.bold(account)} is inactive. To re-authenticate, please run ${authCommand}.`,
1466
+ objectNotFound: (account) => `Sandbox ${chalk_1.default.bold(account)} may have been deleted through the UI. The account has been removed from the config.`,
1467
+ noParentPortalAvailable: (command, url) => `This sandbox can't be deleted from the CLI because you haven't given the CLI access to its parent account. To do this, run ${command}. You can also delete the sandbox from the HubSpot management tool: ${chalk_1.default.bold(url)}.`,
1468
+ invalidKey: (account, authCommand) => `Your personal access key for account ${chalk_1.default.bold(account)} is inactive. To re-authenticate, please run ${authCommand}.`,
1465
1469
  },
1466
1470
  options: {
1467
1471
  force: {
@@ -1475,18 +1479,18 @@ export const commands = {
1475
1479
  },
1476
1480
  sync: {
1477
1481
  loading: {
1478
- add: (accountName) => `Syncing sandbox ${chalk.bold(accountName)}`,
1479
- fail: (accountName) => `Failed to sync sandbox ${chalk.bold(accountName)}.`,
1480
- succeed: (accountName) => `Successfully synced sandbox ${chalk.bold(accountName)}.`,
1482
+ add: (accountName) => `Syncing sandbox ${chalk_1.default.bold(accountName)}`,
1483
+ fail: (accountName) => `Failed to sync sandbox ${chalk_1.default.bold(accountName)}.`,
1484
+ succeed: (accountName) => `Successfully synced sandbox ${chalk_1.default.bold(accountName)}.`,
1481
1485
  },
1482
1486
  success: {
1483
1487
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
1484
1488
  },
1485
1489
  failure: {
1486
- invalidUser: (accountName, parentAccountName) => `Couldn't sync ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to sync the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1490
+ invalidUser: (accountName, parentAccountName) => `Couldn't sync ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to sync the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1487
1491
  scopes: {
1488
1492
  message: "The personal access key you provided doesn't include sandbox sync permissions.",
1489
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1493
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1490
1494
  },
1491
1495
  },
1492
1496
  },
@@ -1494,6 +1498,28 @@ export const commands = {
1494
1498
  app: {
1495
1499
  describe: 'Commands for managing apps.',
1496
1500
  subcommands: {
1501
+ install: {
1502
+ describe: 'Install an OAuth app into a test account.',
1503
+ options: {
1504
+ appUid: 'The uid of the app to install',
1505
+ projectName: 'The name of the project that contains the app',
1506
+ },
1507
+ positionals: {
1508
+ testAccountId: 'The id of the test account to install the app into',
1509
+ },
1510
+ errors: {
1511
+ mustSpecifyProjectName: `You must specify a project name. Use the ${(0, ui_1.uiCommandReference)('--project-name')} flag to specify the project name or run this command from within a project directory.`,
1512
+ noAppUidFound: `No app uid found. Please specify the app uid with the ${(0, ui_1.uiCommandReference)('--app-uid')} flag or run this command from within a project that contains an app.`,
1513
+ appMustBeOauth: 'This command only supports installing oauth apps. Please specify an app with oauth auth type.',
1514
+ },
1515
+ polling: {
1516
+ start: 'Installing app...',
1517
+ success: 'App installed successfully',
1518
+ failure: 'App installation failed',
1519
+ error: 'Error installing app',
1520
+ },
1521
+ example: 'Install the app with uid my-app-uid from the project named "my-project" into the target account with id 1234567890',
1522
+ },
1497
1523
  secret: {
1498
1524
  describe: 'Commands for managing secrets.',
1499
1525
  subcommands: {
@@ -1503,7 +1529,7 @@ export const commands = {
1503
1529
  name: 'Name of the secret',
1504
1530
  },
1505
1531
  errors: {
1506
- noApps: `Please create a new app to add an app secret. Use ${uiCommandReference('hs project create')} to create a new project and begin the app creation process.`,
1532
+ noApps: `Please create a new app to add an app secret. Use ${(0, ui_1.uiCommandReference)('hs project create')} to create a new project and begin the app creation process.`,
1507
1533
  },
1508
1534
  options: {
1509
1535
  app: 'The app id to set the secret for',
@@ -1720,7 +1746,7 @@ export const commands = {
1720
1746
  invalidPath: (path) => `The path "${path}" is not a path to a file or folder`,
1721
1747
  uploadFailed: (src, dest) => `Uploading file "${src}" to "${dest}" failed`,
1722
1748
  someFilesFailed: (dest) => `One or more files failed to upload to "${dest}" in the Design Manager`,
1723
- deleteFailed: (path, accountId) => `Deleting "${path}" from account ${uiAccountDescription(accountId)} failed`,
1749
+ deleteFailed: (path, accountId) => `Deleting "${path}" from account ${(0, ui_1.uiAccountDescription)(accountId)} failed`,
1724
1750
  },
1725
1751
  options: {
1726
1752
  options: 'Options to pass to javascript fields files',
@@ -1735,19 +1761,19 @@ export const commands = {
1735
1761
  dest: 'Path in HubSpot Design Tools, can be a net new path.',
1736
1762
  },
1737
1763
  success: {
1738
- fileUploaded: (src, dest, accountId) => `Uploaded file from "${src}" to "${dest}" in the Design Manager of account ${uiAccountDescription(accountId)}`,
1764
+ fileUploaded: (src, dest, accountId) => `Uploaded file from "${src}" to "${dest}" in the Design Manager of account ${(0, ui_1.uiAccountDescription)(accountId)}`,
1739
1765
  uploadComplete: (dest) => `Uploading files to "${dest}" in the Design Manager is complete`,
1740
1766
  },
1741
- uploading: (src, dest, accountId) => `Uploading files from "${src}" to "${dest}" in the Design Manager of account ${uiAccountDescription(accountId)}`,
1767
+ uploading: (src, dest, accountId) => `Uploading files from "${src}" to "${dest}" in the Design Manager of account ${(0, ui_1.uiAccountDescription)(accountId)}`,
1742
1768
  notUploaded: (src) => `There was an error processing "${src}". The file has not been uploaded.`,
1743
- cleaning: (filePath, accountId) => `Removing "${filePath}" from account ${uiAccountDescription(accountId)} and uploading local...`,
1744
- confirmCleanUpload: (filePath, accountId) => `You are about to delete the directory "${filePath}" and its contents on HubSpot account ${uiAccountDescription(accountId)} before uploading. This will also clear the global content associated with any global partial templates and modules. Are you sure you want to do this?`,
1769
+ cleaning: (filePath, accountId) => `Removing "${filePath}" from account ${(0, ui_1.uiAccountDescription)(accountId)} and uploading local...`,
1770
+ confirmCleanUpload: (filePath, accountId) => `You are about to delete the directory "${filePath}" and its contents on HubSpot account ${(0, ui_1.uiAccountDescription)(accountId)} before uploading. This will also clear the global content associated with any global partial templates and modules. Are you sure you want to do this?`,
1745
1771
  },
1746
1772
  watch: {
1747
1773
  describe: 'Watch a directory on your computer for changes and upload the changed files to the HubSpot CMS.',
1748
1774
  errors: {
1749
- folderFailed: (src, dest, accountId) => `Initial uploading of folder "${src}" to "${dest}" in account ${uiAccountDescription(accountId)} had failures`,
1750
- fileFailed: (file, dest, accountId) => `Upload of file "${file}" to "${dest}" in account ${uiAccountDescription(accountId)} failed`,
1775
+ folderFailed: (src, dest, accountId) => `Initial uploading of folder "${src}" to "${dest}" in account ${(0, ui_1.uiAccountDescription)(accountId)} had failures`,
1776
+ fileFailed: (file, dest, accountId) => `Upload of file "${file}" to "${dest}" in account ${(0, ui_1.uiAccountDescription)(accountId)} failed`,
1751
1777
  destinationRequired: 'A destination directory needs to be passed',
1752
1778
  invalidPath: (path) => `The "${path}" is not a path to a directory`,
1753
1779
  },
@@ -1765,9 +1791,9 @@ export const commands = {
1765
1791
  dest: 'Path in HubSpot Design Tools. Can be a net new path',
1766
1792
  },
1767
1793
  warnings: {
1768
- disableInitial: `Passing the "${chalk.bold('--disable-initial')}" option is no longer necessary. Running "${uiCommandReference('hs watch')}" no longer uploads the watched directory by default.`,
1769
- initialUpload: `To upload the directory run "${uiCommandReference('hs upload')}" beforehand or add the "${chalk.bold('--initial-upload')}" option when running "${uiCommandReference('hs watch')}".`,
1770
- notUploaded: (path) => `The "${uiCommandReference('hs watch')}" command no longer uploads the watched directory when started. The directory "${path}" was not uploaded.`,
1794
+ disableInitial: `Passing the "${chalk_1.default.bold('--disable-initial')}" option is no longer necessary. Running "${(0, ui_1.uiCommandReference)('hs watch')}" no longer uploads the watched directory by default.`,
1795
+ initialUpload: `To upload the directory run "${(0, ui_1.uiCommandReference)('hs upload')}" beforehand or add the "${chalk_1.default.bold('--initial-upload')}" option when running "${(0, ui_1.uiCommandReference)('hs watch')}".`,
1796
+ notUploaded: (path) => `The "${(0, ui_1.uiCommandReference)('hs watch')}" command no longer uploads the watched directory when started. The directory "${path}" was not uploaded.`,
1771
1797
  },
1772
1798
  },
1773
1799
  convertFields: {
@@ -1796,14 +1822,14 @@ export const commands = {
1796
1822
  createFromConfigOption: 'Create test account from config file',
1797
1823
  createFromScratchOption: 'Create test account from scratch',
1798
1824
  errors: {
1799
- configFileNotFound: (configPath) => `No test account config file exists at ${configPath}. Create a test account config file with the ${uiCommandReference('hs test-account create-config')} command.`,
1825
+ configFileNotFound: (configPath) => `No test account config file exists at ${configPath}. Create a test account config file with the ${(0, ui_1.uiCommandReference)('hs test-account create-config')} command.`,
1800
1826
  configFileParseFailed: (configPath) => `Failed to parse test account config file at ${configPath}`,
1801
1827
  },
1802
1828
  polling: {
1803
- start: (testAccountName) => `Creating test account "${chalk.bold(testAccountName)}"...`,
1829
+ start: (testAccountName) => `Creating test account "${chalk_1.default.bold(testAccountName)}"...`,
1804
1830
  syncing: 'Test account created! Syncing account data... (may take a few minutes - you can exit and the sync will continue)',
1805
- success: (testAccountName, testAccountId) => `Test account "${chalk.bold(testAccountName)}" successfully created with id: ${chalk.bold(testAccountId)}`,
1806
- failure: 'Failed to sync data into test account. The account may not be ready to use.',
1831
+ success: (testAccountName, testAccountId) => `Test account "${chalk_1.default.bold(testAccountName)}" successfully created with id: ${chalk_1.default.bold(testAccountId)}`,
1832
+ createFailure: 'Failed to create test account.',
1807
1833
  },
1808
1834
  options: {
1809
1835
  configPath: 'The path to the test account config',
@@ -1812,7 +1838,7 @@ export const commands = {
1812
1838
  },
1813
1839
  createConfig: {
1814
1840
  describe: 'Create a test account config file.',
1815
- pathPrompt: '[--path] What is the path to the test account config?',
1841
+ pathPrompt: '[--path] Enter the name of the Test Account config file: ',
1816
1842
  errors: {
1817
1843
  pathError: 'Path is required',
1818
1844
  pathFormatError: 'Path must end with .json',
@@ -1825,7 +1851,6 @@ export const commands = {
1825
1851
  options: {
1826
1852
  name: 'The name of the test account',
1827
1853
  description: 'The description of the test account',
1828
- tiers: 'The tiers of the test account',
1829
1854
  path: 'The path to the test account config',
1830
1855
  },
1831
1856
  example: (name) => `Create a test account config file with the name "${name}"`,
@@ -1848,35 +1873,35 @@ export const commands = {
1848
1873
  secrets: {
1849
1874
  add: {
1850
1875
  loading: {
1851
- add: (secretName) => `Adding secret ${chalk.bold(secretName)}`,
1852
- fail: (secretName) => `Failed to add secret ${chalk.bold(secretName)}.`,
1853
- succeed: (secretName) => `Successfully added secret ${chalk.bold(secretName)}.`,
1876
+ add: (secretName) => `Adding secret ${chalk_1.default.bold(secretName)}`,
1877
+ fail: (secretName) => `Failed to add secret ${chalk_1.default.bold(secretName)}.`,
1878
+ succeed: (secretName) => `Successfully added secret ${chalk_1.default.bold(secretName)}.`,
1854
1879
  },
1855
1880
  success: {
1856
1881
  configFileUpdated: (secretName, authType) => `Secret "${secretName}" updated using "${authType}"`,
1857
1882
  },
1858
1883
  failure: {
1859
- invalidUser: (secretName, parentAccountName) => `Couldn't add ${chalk.bold(secretName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add secrets. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1884
+ invalidUser: (secretName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(secretName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add secrets. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1860
1885
  scopes: {
1861
1886
  message: "The personal access key you provided doesn't include secrets permissions.",
1862
- instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1887
+ instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1863
1888
  },
1864
1889
  },
1865
1890
  },
1866
1891
  delete: {
1867
1892
  loading: {
1868
- add: (secretName) => `Deleting secret ${chalk.bold(secretName)}`,
1869
- fail: (secretName) => `Failed to delete secret ${chalk.bold(secretName)}.`,
1870
- succeed: (secretName) => `Successfully deleted secret ${chalk.bold(secretName)}.`,
1893
+ add: (secretName) => `Deleting secret ${chalk_1.default.bold(secretName)}`,
1894
+ fail: (secretName) => `Failed to delete secret ${chalk_1.default.bold(secretName)}.`,
1895
+ succeed: (secretName) => `Successfully deleted secret ${chalk_1.default.bold(secretName)}.`,
1871
1896
  },
1872
1897
  success: {
1873
1898
  configFileUpdated: (secretName, authType) => `Secret "${secretName}" updated using "${authType}"`,
1874
1899
  },
1875
1900
  failure: {
1876
- invalidUser: (secretName, parentAccountName) => `Couldn't delete ${chalk.bold(secretName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete secrets. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1901
+ invalidUser: (secretName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(secretName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete secrets. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1877
1902
  scopes: {
1878
1903
  message: "The personal access key you provided doesn't include secrets permissions.",
1879
- instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1904
+ instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1880
1905
  },
1881
1906
  },
1882
1907
  },
@@ -1890,10 +1915,10 @@ export const commands = {
1890
1915
  configFileUpdated: (authType) => `Secrets updated using "${authType}"`,
1891
1916
  },
1892
1917
  failure: {
1893
- invalidUser: (parentAccountName) => `Couldn't list secrets because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list secrets. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1918
+ invalidUser: (parentAccountName) => `Couldn't list secrets because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list secrets. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1894
1919
  scopes: {
1895
1920
  message: "The personal access key you provided doesn't include secrets permissions.",
1896
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1921
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1897
1922
  },
1898
1923
  },
1899
1924
  },
@@ -1901,35 +1926,35 @@ export const commands = {
1901
1926
  serverless: {
1902
1927
  add: {
1903
1928
  loading: {
1904
- add: (functionName) => `Adding serverless function ${chalk.bold(functionName)}`,
1905
- fail: (functionName) => `Failed to add serverless function ${chalk.bold(functionName)}.`,
1906
- succeed: (functionName) => `Successfully added serverless function ${chalk.bold(functionName)}.`,
1929
+ add: (functionName) => `Adding serverless function ${chalk_1.default.bold(functionName)}`,
1930
+ fail: (functionName) => `Failed to add serverless function ${chalk_1.default.bold(functionName)}.`,
1931
+ succeed: (functionName) => `Successfully added serverless function ${chalk_1.default.bold(functionName)}.`,
1907
1932
  },
1908
1933
  success: {
1909
1934
  configFileUpdated: (functionName, authType) => `Serverless function "${functionName}" updated using "${authType}"`,
1910
1935
  },
1911
1936
  failure: {
1912
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless functions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1937
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless functions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1913
1938
  scopes: {
1914
1939
  message: "The personal access key you provided doesn't include serverless function permissions.",
1915
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1940
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1916
1941
  },
1917
1942
  },
1918
1943
  },
1919
1944
  delete: {
1920
1945
  loading: {
1921
- add: (functionName) => `Deleting serverless function ${chalk.bold(functionName)}`,
1922
- fail: (functionName) => `Failed to delete serverless function ${chalk.bold(functionName)}.`,
1923
- succeed: (functionName) => `Successfully deleted serverless function ${chalk.bold(functionName)}.`,
1946
+ add: (functionName) => `Deleting serverless function ${chalk_1.default.bold(functionName)}`,
1947
+ fail: (functionName) => `Failed to delete serverless function ${chalk_1.default.bold(functionName)}.`,
1948
+ succeed: (functionName) => `Successfully deleted serverless function ${chalk_1.default.bold(functionName)}.`,
1924
1949
  },
1925
1950
  success: {
1926
1951
  configFileUpdated: (functionName, authType) => `Serverless function "${functionName}" updated using "${authType}"`,
1927
1952
  },
1928
1953
  failure: {
1929
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless functions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1954
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless functions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1930
1955
  scopes: {
1931
1956
  message: "The personal access key you provided doesn't include serverless function permissions.",
1932
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1957
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1933
1958
  },
1934
1959
  },
1935
1960
  },
@@ -1943,10 +1968,10 @@ export const commands = {
1943
1968
  configFileUpdated: (authType) => `Serverless functions updated using "${authType}"`,
1944
1969
  },
1945
1970
  failure: {
1946
- invalidUser: (parentAccountName) => `Couldn't list serverless functions because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless functions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1971
+ invalidUser: (parentAccountName) => `Couldn't list serverless functions because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless functions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1947
1972
  scopes: {
1948
1973
  message: "The personal access key you provided doesn't include serverless function permissions.",
1949
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1974
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1950
1975
  },
1951
1976
  },
1952
1977
  },
@@ -1954,35 +1979,35 @@ export const commands = {
1954
1979
  serverlessFunctionLogs: {
1955
1980
  add: {
1956
1981
  loading: {
1957
- add: (functionName) => `Adding serverless function logs ${chalk.bold(functionName)}`,
1958
- fail: (functionName) => `Failed to add serverless function logs ${chalk.bold(functionName)}.`,
1959
- succeed: (functionName) => `Successfully added serverless function logs ${chalk.bold(functionName)}.`,
1982
+ add: (functionName) => `Adding serverless function logs ${chalk_1.default.bold(functionName)}`,
1983
+ fail: (functionName) => `Failed to add serverless function logs ${chalk_1.default.bold(functionName)}.`,
1984
+ succeed: (functionName) => `Successfully added serverless function logs ${chalk_1.default.bold(functionName)}.`,
1960
1985
  },
1961
1986
  success: {
1962
1987
  configFileUpdated: (functionName, authType) => `Serverless function logs "${functionName}" updated using "${authType}"`,
1963
1988
  },
1964
1989
  failure: {
1965
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function logs. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1990
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function logs. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1966
1991
  scopes: {
1967
1992
  message: "The personal access key you provided doesn't include serverless function log permissions.",
1968
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1993
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1969
1994
  },
1970
1995
  },
1971
1996
  },
1972
1997
  delete: {
1973
1998
  loading: {
1974
- add: (functionName) => `Deleting serverless function logs ${chalk.bold(functionName)}`,
1975
- fail: (functionName) => `Failed to delete serverless function logs ${chalk.bold(functionName)}.`,
1976
- succeed: (functionName) => `Successfully deleted serverless function logs ${chalk.bold(functionName)}.`,
1999
+ add: (functionName) => `Deleting serverless function logs ${chalk_1.default.bold(functionName)}`,
2000
+ fail: (functionName) => `Failed to delete serverless function logs ${chalk_1.default.bold(functionName)}.`,
2001
+ succeed: (functionName) => `Successfully deleted serverless function logs ${chalk_1.default.bold(functionName)}.`,
1977
2002
  },
1978
2003
  success: {
1979
2004
  configFileUpdated: (functionName, authType) => `Serverless function logs "${functionName}" updated using "${authType}"`,
1980
2005
  },
1981
2006
  failure: {
1982
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function logs. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2007
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function logs. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1983
2008
  scopes: {
1984
2009
  message: "The personal access key you provided doesn't include serverless function log permissions.",
1985
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2010
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1986
2011
  },
1987
2012
  },
1988
2013
  },
@@ -1996,10 +2021,10 @@ export const commands = {
1996
2021
  configFileUpdated: (authType) => `Serverless function logs updated using "${authType}"`,
1997
2022
  },
1998
2023
  failure: {
1999
- invalidUser: (parentAccountName) => `Couldn't list serverless function logs because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function logs. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2024
+ invalidUser: (parentAccountName) => `Couldn't list serverless function logs because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function logs. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2000
2025
  scopes: {
2001
2026
  message: "The personal access key you provided doesn't include serverless function log permissions.",
2002
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2027
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2003
2028
  },
2004
2029
  },
2005
2030
  },
@@ -2007,35 +2032,35 @@ export const commands = {
2007
2032
  serverlessFunctionMetrics: {
2008
2033
  add: {
2009
2034
  loading: {
2010
- add: (functionName) => `Adding serverless function metrics ${chalk.bold(functionName)}`,
2011
- fail: (functionName) => `Failed to add serverless function metrics ${chalk.bold(functionName)}.`,
2012
- succeed: (functionName) => `Successfully added serverless function metrics ${chalk.bold(functionName)}.`,
2035
+ add: (functionName) => `Adding serverless function metrics ${chalk_1.default.bold(functionName)}`,
2036
+ fail: (functionName) => `Failed to add serverless function metrics ${chalk_1.default.bold(functionName)}.`,
2037
+ succeed: (functionName) => `Successfully added serverless function metrics ${chalk_1.default.bold(functionName)}.`,
2013
2038
  },
2014
2039
  success: {
2015
2040
  configFileUpdated: (functionName, authType) => `Serverless function metrics "${functionName}" updated using "${authType}"`,
2016
2041
  },
2017
2042
  failure: {
2018
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function metrics. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2043
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function metrics. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2019
2044
  scopes: {
2020
2045
  message: "The personal access key you provided doesn't include serverless function metric permissions.",
2021
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2046
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2022
2047
  },
2023
2048
  },
2024
2049
  },
2025
2050
  delete: {
2026
2051
  loading: {
2027
- add: (functionName) => `Deleting serverless function metrics ${chalk.bold(functionName)}`,
2028
- fail: (functionName) => `Failed to delete serverless function metrics ${chalk.bold(functionName)}.`,
2029
- succeed: (functionName) => `Successfully deleted serverless function metrics ${chalk.bold(functionName)}.`,
2052
+ add: (functionName) => `Deleting serverless function metrics ${chalk_1.default.bold(functionName)}`,
2053
+ fail: (functionName) => `Failed to delete serverless function metrics ${chalk_1.default.bold(functionName)}.`,
2054
+ succeed: (functionName) => `Successfully deleted serverless function metrics ${chalk_1.default.bold(functionName)}.`,
2030
2055
  },
2031
2056
  success: {
2032
2057
  configFileUpdated: (functionName, authType) => `Serverless function metrics "${functionName}" updated using "${authType}"`,
2033
2058
  },
2034
2059
  failure: {
2035
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function metrics. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2060
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function metrics. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2036
2061
  scopes: {
2037
2062
  message: "The personal access key you provided doesn't include serverless function metric permissions.",
2038
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2063
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2039
2064
  },
2040
2065
  },
2041
2066
  },
@@ -2049,10 +2074,10 @@ export const commands = {
2049
2074
  configFileUpdated: (authType) => `Serverless function metrics updated using "${authType}"`,
2050
2075
  },
2051
2076
  failure: {
2052
- invalidUser: (parentAccountName) => `Couldn't list serverless function metrics because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function metrics. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2077
+ invalidUser: (parentAccountName) => `Couldn't list serverless function metrics because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function metrics. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2053
2078
  scopes: {
2054
2079
  message: "The personal access key you provided doesn't include serverless function metric permissions.",
2055
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2080
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2056
2081
  },
2057
2082
  },
2058
2083
  },
@@ -2060,35 +2085,35 @@ export const commands = {
2060
2085
  serverlessFunctionSettings: {
2061
2086
  add: {
2062
2087
  loading: {
2063
- add: (functionName) => `Adding serverless function settings ${chalk.bold(functionName)}`,
2064
- fail: (functionName) => `Failed to add serverless function settings ${chalk.bold(functionName)}.`,
2065
- succeed: (functionName) => `Successfully added serverless function settings ${chalk.bold(functionName)}.`,
2088
+ add: (functionName) => `Adding serverless function settings ${chalk_1.default.bold(functionName)}`,
2089
+ fail: (functionName) => `Failed to add serverless function settings ${chalk_1.default.bold(functionName)}.`,
2090
+ succeed: (functionName) => `Successfully added serverless function settings ${chalk_1.default.bold(functionName)}.`,
2066
2091
  },
2067
2092
  success: {
2068
2093
  configFileUpdated: (functionName, authType) => `Serverless function settings "${functionName}" updated using "${authType}"`,
2069
2094
  },
2070
2095
  failure: {
2071
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function settings. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2096
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function settings. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2072
2097
  scopes: {
2073
2098
  message: "The personal access key you provided doesn't include serverless function setting permissions.",
2074
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2099
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2075
2100
  },
2076
2101
  },
2077
2102
  },
2078
2103
  delete: {
2079
2104
  loading: {
2080
- add: (functionName) => `Deleting serverless function settings ${chalk.bold(functionName)}`,
2081
- fail: (functionName) => `Failed to delete serverless function settings ${chalk.bold(functionName)}.`,
2082
- succeed: (functionName) => `Successfully deleted serverless function settings ${chalk.bold(functionName)}.`,
2105
+ add: (functionName) => `Deleting serverless function settings ${chalk_1.default.bold(functionName)}`,
2106
+ fail: (functionName) => `Failed to delete serverless function settings ${chalk_1.default.bold(functionName)}.`,
2107
+ succeed: (functionName) => `Successfully deleted serverless function settings ${chalk_1.default.bold(functionName)}.`,
2083
2108
  },
2084
2109
  success: {
2085
2110
  configFileUpdated: (functionName, authType) => `Serverless function settings "${functionName}" updated using "${authType}"`,
2086
2111
  },
2087
2112
  failure: {
2088
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function settings. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2113
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function settings. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2089
2114
  scopes: {
2090
2115
  message: "The personal access key you provided doesn't include serverless function setting permissions.",
2091
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2116
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2092
2117
  },
2093
2118
  },
2094
2119
  },
@@ -2102,10 +2127,10 @@ export const commands = {
2102
2127
  configFileUpdated: (authType) => `Serverless function settings updated using "${authType}"`,
2103
2128
  },
2104
2129
  failure: {
2105
- invalidUser: (parentAccountName) => `Couldn't list serverless function settings because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function settings. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2130
+ invalidUser: (parentAccountName) => `Couldn't list serverless function settings because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function settings. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2106
2131
  scopes: {
2107
2132
  message: "The personal access key you provided doesn't include serverless function setting permissions.",
2108
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2133
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2109
2134
  },
2110
2135
  },
2111
2136
  },
@@ -2113,35 +2138,35 @@ export const commands = {
2113
2138
  serverlessFunctionVersions: {
2114
2139
  add: {
2115
2140
  loading: {
2116
- add: (functionName) => `Adding serverless function versions ${chalk.bold(functionName)}`,
2117
- fail: (functionName) => `Failed to add serverless function versions ${chalk.bold(functionName)}.`,
2118
- succeed: (functionName) => `Successfully added serverless function versions ${chalk.bold(functionName)}.`,
2141
+ add: (functionName) => `Adding serverless function versions ${chalk_1.default.bold(functionName)}`,
2142
+ fail: (functionName) => `Failed to add serverless function versions ${chalk_1.default.bold(functionName)}.`,
2143
+ succeed: (functionName) => `Successfully added serverless function versions ${chalk_1.default.bold(functionName)}.`,
2119
2144
  },
2120
2145
  success: {
2121
2146
  configFileUpdated: (functionName, authType) => `Serverless function versions "${functionName}" updated using "${authType}"`,
2122
2147
  },
2123
2148
  failure: {
2124
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function versions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2149
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function versions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2125
2150
  scopes: {
2126
2151
  message: "The personal access key you provided doesn't include serverless function version permissions.",
2127
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2152
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2128
2153
  },
2129
2154
  },
2130
2155
  },
2131
2156
  delete: {
2132
2157
  loading: {
2133
- add: (functionName) => `Deleting serverless function versions ${chalk.bold(functionName)}`,
2134
- fail: (functionName) => `Failed to delete serverless function versions ${chalk.bold(functionName)}.`,
2135
- succeed: (functionName) => `Successfully deleted serverless function versions ${chalk.bold(functionName)}.`,
2158
+ add: (functionName) => `Deleting serverless function versions ${chalk_1.default.bold(functionName)}`,
2159
+ fail: (functionName) => `Failed to delete serverless function versions ${chalk_1.default.bold(functionName)}.`,
2160
+ succeed: (functionName) => `Successfully deleted serverless function versions ${chalk_1.default.bold(functionName)}.`,
2136
2161
  },
2137
2162
  success: {
2138
2163
  configFileUpdated: (functionName, authType) => `Serverless function versions "${functionName}" updated using "${authType}"`,
2139
2164
  },
2140
2165
  failure: {
2141
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function versions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2166
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function versions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2142
2167
  scopes: {
2143
2168
  message: "The personal access key you provided doesn't include serverless function version permissions.",
2144
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2169
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2145
2170
  },
2146
2171
  },
2147
2172
  },
@@ -2155,10 +2180,10 @@ export const commands = {
2155
2180
  configFileUpdated: (authType) => `Serverless function versions updated using "${authType}"`,
2156
2181
  },
2157
2182
  failure: {
2158
- invalidUser: (parentAccountName) => `Couldn't list serverless function versions because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function versions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2183
+ invalidUser: (parentAccountName) => `Couldn't list serverless function versions because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function versions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2159
2184
  scopes: {
2160
2185
  message: "The personal access key you provided doesn't include serverless function version permissions.",
2161
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2186
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2162
2187
  },
2163
2188
  },
2164
2189
  },
@@ -2166,35 +2191,35 @@ export const commands = {
2166
2191
  serverlessFunctionWebhooks: {
2167
2192
  add: {
2168
2193
  loading: {
2169
- add: (functionName) => `Adding serverless function webhooks ${chalk.bold(functionName)}`,
2170
- fail: (functionName) => `Failed to add serverless function webhooks ${chalk.bold(functionName)}.`,
2171
- succeed: (functionName) => `Successfully added serverless function webhooks ${chalk.bold(functionName)}.`,
2194
+ add: (functionName) => `Adding serverless function webhooks ${chalk_1.default.bold(functionName)}`,
2195
+ fail: (functionName) => `Failed to add serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
2196
+ succeed: (functionName) => `Successfully added serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
2172
2197
  },
2173
2198
  success: {
2174
2199
  configFileUpdated: (functionName, authType) => `Serverless function webhooks "${functionName}" updated using "${authType}"`,
2175
2200
  },
2176
2201
  failure: {
2177
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhooks. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2202
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhooks. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2178
2203
  scopes: {
2179
2204
  message: "The personal access key you provided doesn't include serverless function webhook permissions.",
2180
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2205
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2181
2206
  },
2182
2207
  },
2183
2208
  },
2184
2209
  delete: {
2185
2210
  loading: {
2186
- add: (functionName) => `Deleting serverless function webhooks ${chalk.bold(functionName)}`,
2187
- fail: (functionName) => `Failed to delete serverless function webhooks ${chalk.bold(functionName)}.`,
2188
- succeed: (functionName) => `Successfully deleted serverless function webhooks ${chalk.bold(functionName)}.`,
2211
+ add: (functionName) => `Deleting serverless function webhooks ${chalk_1.default.bold(functionName)}`,
2212
+ fail: (functionName) => `Failed to delete serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
2213
+ succeed: (functionName) => `Successfully deleted serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
2189
2214
  },
2190
2215
  success: {
2191
2216
  configFileUpdated: (functionName, authType) => `Serverless function webhooks "${functionName}" updated using "${authType}"`,
2192
2217
  },
2193
2218
  failure: {
2194
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhooks. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2219
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhooks. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2195
2220
  scopes: {
2196
2221
  message: "The personal access key you provided doesn't include serverless function webhook permissions.",
2197
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2222
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2198
2223
  },
2199
2224
  },
2200
2225
  },
@@ -2208,10 +2233,10 @@ export const commands = {
2208
2233
  configFileUpdated: (authType) => `Serverless function webhooks updated using "${authType}"`,
2209
2234
  },
2210
2235
  failure: {
2211
- invalidUser: (parentAccountName) => `Couldn't list serverless function webhooks because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhooks. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2236
+ invalidUser: (parentAccountName) => `Couldn't list serverless function webhooks because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhooks. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2212
2237
  scopes: {
2213
2238
  message: "The personal access key you provided doesn't include serverless function webhook permissions.",
2214
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2239
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2215
2240
  },
2216
2241
  },
2217
2242
  },
@@ -2219,35 +2244,35 @@ export const commands = {
2219
2244
  serverlessFunctionWebhookSubscriptions: {
2220
2245
  add: {
2221
2246
  loading: {
2222
- add: (functionName) => `Adding serverless function webhook subscriptions ${chalk.bold(functionName)}`,
2223
- fail: (functionName) => `Failed to add serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
2224
- succeed: (functionName) => `Successfully added serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
2247
+ add: (functionName) => `Adding serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}`,
2248
+ fail: (functionName) => `Failed to add serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
2249
+ succeed: (functionName) => `Successfully added serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
2225
2250
  },
2226
2251
  success: {
2227
2252
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscriptions "${functionName}" updated using "${authType}"`,
2228
2253
  },
2229
2254
  failure: {
2230
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2255
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2231
2256
  scopes: {
2232
2257
  message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.",
2233
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2258
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2234
2259
  },
2235
2260
  },
2236
2261
  },
2237
2262
  delete: {
2238
2263
  loading: {
2239
- add: (functionName) => `Deleting serverless function webhook subscriptions ${chalk.bold(functionName)}`,
2240
- fail: (functionName) => `Failed to delete serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
2241
- succeed: (functionName) => `Successfully deleted serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
2264
+ add: (functionName) => `Deleting serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}`,
2265
+ fail: (functionName) => `Failed to delete serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
2266
+ succeed: (functionName) => `Successfully deleted serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
2242
2267
  },
2243
2268
  success: {
2244
2269
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscriptions "${functionName}" updated using "${authType}"`,
2245
2270
  },
2246
2271
  failure: {
2247
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2272
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2248
2273
  scopes: {
2249
2274
  message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.",
2250
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2275
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2251
2276
  },
2252
2277
  },
2253
2278
  },
@@ -2261,10 +2286,10 @@ export const commands = {
2261
2286
  configFileUpdated: (authType) => `Serverless function webhook subscriptions updated using "${authType}"`,
2262
2287
  },
2263
2288
  failure: {
2264
- invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscriptions because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2289
+ invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscriptions because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2265
2290
  scopes: {
2266
2291
  message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.",
2267
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2292
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2268
2293
  },
2269
2294
  },
2270
2295
  },
@@ -2272,35 +2297,35 @@ export const commands = {
2272
2297
  serverlessFunctionWebhookSubscriptionEvents: {
2273
2298
  add: {
2274
2299
  loading: {
2275
- add: (functionName) => `Adding serverless function webhook subscription events ${chalk.bold(functionName)}`,
2276
- fail: (functionName) => `Failed to add serverless function webhook subscription events ${chalk.bold(functionName)}.`,
2277
- succeed: (functionName) => `Successfully added serverless function webhook subscription events ${chalk.bold(functionName)}.`,
2300
+ add: (functionName) => `Adding serverless function webhook subscription events ${chalk_1.default.bold(functionName)}`,
2301
+ fail: (functionName) => `Failed to add serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
2302
+ succeed: (functionName) => `Successfully added serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
2278
2303
  },
2279
2304
  success: {
2280
2305
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription events "${functionName}" updated using "${authType}"`,
2281
2306
  },
2282
2307
  failure: {
2283
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2308
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2284
2309
  scopes: {
2285
2310
  message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.",
2286
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2311
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2287
2312
  },
2288
2313
  },
2289
2314
  },
2290
2315
  delete: {
2291
2316
  loading: {
2292
- add: (functionName) => `Deleting serverless function webhook subscription events ${chalk.bold(functionName)}`,
2293
- fail: (functionName) => `Failed to delete serverless function webhook subscription events ${chalk.bold(functionName)}.`,
2294
- succeed: (functionName) => `Successfully deleted serverless function webhook subscription events ${chalk.bold(functionName)}.`,
2317
+ add: (functionName) => `Deleting serverless function webhook subscription events ${chalk_1.default.bold(functionName)}`,
2318
+ fail: (functionName) => `Failed to delete serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
2319
+ succeed: (functionName) => `Successfully deleted serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
2295
2320
  },
2296
2321
  success: {
2297
2322
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription events "${functionName}" updated using "${authType}"`,
2298
2323
  },
2299
2324
  failure: {
2300
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2325
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2301
2326
  scopes: {
2302
2327
  message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.",
2303
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2328
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2304
2329
  },
2305
2330
  },
2306
2331
  },
@@ -2314,10 +2339,10 @@ export const commands = {
2314
2339
  configFileUpdated: (authType) => `Serverless function webhook subscription events updated using "${authType}"`,
2315
2340
  },
2316
2341
  failure: {
2317
- invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription events because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2342
+ invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription events because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2318
2343
  scopes: {
2319
2344
  message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.",
2320
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2345
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2321
2346
  },
2322
2347
  },
2323
2348
  },
@@ -2325,35 +2350,35 @@ export const commands = {
2325
2350
  serverlessFunctionWebhookSubscriptionEventTypes: {
2326
2351
  add: {
2327
2352
  loading: {
2328
- add: (functionName) => `Adding serverless function webhook subscription event types ${chalk.bold(functionName)}`,
2329
- fail: (functionName) => `Failed to add serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
2330
- succeed: (functionName) => `Successfully added serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
2353
+ add: (functionName) => `Adding serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}`,
2354
+ fail: (functionName) => `Failed to add serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
2355
+ succeed: (functionName) => `Successfully added serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
2331
2356
  },
2332
2357
  success: {
2333
2358
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event types "${functionName}" updated using "${authType}"`,
2334
2359
  },
2335
2360
  failure: {
2336
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2361
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2337
2362
  scopes: {
2338
2363
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.",
2339
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2364
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2340
2365
  },
2341
2366
  },
2342
2367
  },
2343
2368
  delete: {
2344
2369
  loading: {
2345
- add: (functionName) => `Deleting serverless function webhook subscription event types ${chalk.bold(functionName)}`,
2346
- fail: (functionName) => `Failed to delete serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
2347
- succeed: (functionName) => `Successfully deleted serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
2370
+ add: (functionName) => `Deleting serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}`,
2371
+ fail: (functionName) => `Failed to delete serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
2372
+ succeed: (functionName) => `Successfully deleted serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
2348
2373
  },
2349
2374
  success: {
2350
2375
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event types "${functionName}" updated using "${authType}"`,
2351
2376
  },
2352
2377
  failure: {
2353
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2378
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2354
2379
  scopes: {
2355
2380
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.",
2356
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2381
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2357
2382
  },
2358
2383
  },
2359
2384
  },
@@ -2367,10 +2392,10 @@ export const commands = {
2367
2392
  configFileUpdated: (authType) => `Serverless function webhook subscription event types updated using "${authType}"`,
2368
2393
  },
2369
2394
  failure: {
2370
- invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event types because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2395
+ invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event types because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2371
2396
  scopes: {
2372
2397
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.",
2373
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2398
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2374
2399
  },
2375
2400
  },
2376
2401
  },
@@ -2378,35 +2403,35 @@ export const commands = {
2378
2403
  serverlessFunctionWebhookSubscriptionEventTypeOptions: {
2379
2404
  add: {
2380
2405
  loading: {
2381
- add: (functionName) => `Adding serverless function webhook subscription event type options ${chalk.bold(functionName)}`,
2382
- fail: (functionName) => `Failed to add serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
2383
- succeed: (functionName) => `Successfully added serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
2406
+ add: (functionName) => `Adding serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}`,
2407
+ fail: (functionName) => `Failed to add serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
2408
+ succeed: (functionName) => `Successfully added serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
2384
2409
  },
2385
2410
  success: {
2386
2411
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event type options "${functionName}" updated using "${authType}"`,
2387
2412
  },
2388
2413
  failure: {
2389
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2414
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2390
2415
  scopes: {
2391
2416
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.",
2392
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2417
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2393
2418
  },
2394
2419
  },
2395
2420
  },
2396
2421
  delete: {
2397
2422
  loading: {
2398
- add: (functionName) => `Deleting serverless function webhook subscription event type options ${chalk.bold(functionName)}`,
2399
- fail: (functionName) => `Failed to delete serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
2400
- succeed: (functionName) => `Successfully deleted serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
2423
+ add: (functionName) => `Deleting serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}`,
2424
+ fail: (functionName) => `Failed to delete serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
2425
+ succeed: (functionName) => `Successfully deleted serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
2401
2426
  },
2402
2427
  success: {
2403
2428
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event type options "${functionName}" updated using "${authType}"`,
2404
2429
  },
2405
2430
  failure: {
2406
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2431
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2407
2432
  scopes: {
2408
2433
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.",
2409
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2434
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2410
2435
  },
2411
2436
  },
2412
2437
  },
@@ -2420,16 +2445,16 @@ export const commands = {
2420
2445
  configFileUpdated: (authType) => `Serverless function webhook subscription event type options updated using "${authType}"`,
2421
2446
  },
2422
2447
  failure: {
2423
- invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event type options because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2448
+ invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event type options because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2424
2449
  scopes: {
2425
2450
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.",
2426
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2451
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2427
2452
  },
2428
2453
  },
2429
2454
  },
2430
2455
  },
2431
2456
  };
2432
- export const lib = {
2457
+ exports.lib = {
2433
2458
  parsing: {
2434
2459
  unableToParseStringToNumber: 'Unable to parse string to number',
2435
2460
  },
@@ -2445,40 +2470,40 @@ export const lib = {
2445
2470
  noCompatibleComponents: (serverKey) => `Skipping call to ${serverKey} because there are no compatible components in the project.`,
2446
2471
  },
2447
2472
  LocalDevManager: {
2448
- appNotFound: (accountId, appUid) => `Unable to find app with uid ${appUid} in account ${uiAccountDescription(accountId)}`,
2473
+ appNotFound: (accountId, appUid) => `Unable to find app with uid ${appUid} in account ${(0, ui_1.uiAccountDescription)(accountId)}`,
2449
2474
  failedToInitialize: 'Missing required arguments to initialize Local Dev',
2450
- noDeployedBuild: (projectName, accountIdentifier, uploadCommand) => `Your project ${chalk.bold(projectName)} exists in ${accountIdentifier}, but has no deployed build. Projects must be successfully deployed to be developed locally. Address any build and deploy errors your project may have, then run ${uploadCommand} to upload and deploy your project.`,
2475
+ noDeployedBuild: (projectName, accountIdentifier, uploadCommand) => `Your project ${chalk_1.default.bold(projectName)} exists in ${accountIdentifier}, but has no deployed build. Projects must be successfully deployed to be developed locally. Address any build and deploy errors your project may have, then run ${uploadCommand} to upload and deploy your project.`,
2451
2476
  noComponents: 'There are no components in this project.',
2452
2477
  betaMessage: 'HubSpot projects local development',
2453
- learnMoreLocalDevServer: uiLink('Learn more about the projects local dev server', 'https://developers.hubspot.com/docs/platform/project-cli-commands#start-a-local-development-server'),
2454
- running: (projectName, accountIdentifier) => chalk.hex(UI_COLORS.SORBET)(`Running ${chalk.bold(projectName)} locally on ${accountIdentifier}, waiting for changes ...`),
2455
- quitHelper: `Press ${chalk.bold('q')} to stop the local dev server`,
2456
- viewProjectLink: (name, accountId) => uiLink('View project in HubSpot', getProjectDetailUrl(name, accountId) || ''),
2457
- viewLocalDevUILink: (accountId) => uiLink('View local dev session in HubSpot', getLocalDevUiUrl(accountId)),
2478
+ learnMoreLocalDevServer: (0, ui_1.uiLink)('Learn more about the projects local dev server', 'https://developers.hubspot.com/docs/platform/project-cli-commands#start-a-local-development-server'),
2479
+ running: (projectName, accountIdentifier) => chalk_1.default.hex(ui_1.UI_COLORS.SORBET)(`Running ${chalk_1.default.bold(projectName)} locally on ${accountIdentifier}, waiting for changes ...`),
2480
+ quitHelper: `Press ${chalk_1.default.bold('q')} to stop the local dev server`,
2481
+ viewProjectLink: (name, accountId) => (0, ui_1.uiLink)('View project in HubSpot', (0, urls_1.getProjectDetailUrl)(name, accountId) || ''),
2482
+ viewLocalDevUILink: (accountId) => (0, ui_1.uiLink)('View local dev session in HubSpot', (0, urls_1.getLocalDevUiUrl)(accountId)),
2458
2483
  viewTestAccountLink: 'View developer test account in HubSpot',
2459
2484
  exitingStart: 'Stopping local dev server ...',
2460
2485
  exitingSucceed: 'Successfully exited',
2461
2486
  exitingFail: 'Failed to cleanup before exiting',
2462
- missingUid: `Could not find a uid for the selected app. Confirm that the app config file contains the uid field and re-run ${uiCommandReference('hs project dev')}.`,
2487
+ missingUid: `Could not find a uid for the selected app. Confirm that the app config file contains the uid field and re-run ${(0, ui_1.uiCommandReference)('hs project dev')}.`,
2463
2488
  uploadWarning: {
2464
2489
  appLabel: '[App]',
2465
2490
  uiExtensionLabel: '[UI Extension]',
2466
- missingComponents: (missingComponents) => `Couldn't find the following components in the deployed build for this project: ${chalk.bold(missingComponents)}. This may cause issues in local development.`,
2467
- defaultWarning: chalk.bold('Changing project configuration requires a new project build.'),
2468
- defaultPublicAppWarning: (installCount, installText) => `${chalk.bold('Changing project configuration requires a new project build.')}\n\nThis will affect your public app's ${chalk.bold(`${installCount} existing ${installText}`)}. If your app has users in production, we strongly recommend creating a copy of this app to test your changes before proceding.`,
2491
+ missingComponents: (missingComponents) => `Couldn't find the following components in the deployed build for this project: ${chalk_1.default.bold(missingComponents)}. This may cause issues in local development.`,
2492
+ defaultWarning: chalk_1.default.bold('Changing project configuration requires a new project build.'),
2493
+ defaultPublicAppWarning: (installCount, installText) => `${chalk_1.default.bold('Changing project configuration requires a new project build.')}\n\nThis will affect your public app's ${chalk_1.default.bold(`${installCount} existing ${installText}`)}. If your app has users in production, we strongly recommend creating a copy of this app to test your changes before proceding.`,
2469
2494
  header: (warning) => `${warning} To reflect these changes and continue testing:`,
2470
2495
  instructionsHeader: 'To reflect these changes and continue testing:',
2471
- stopDev: ` * Stop ${uiCommandReference('hs project dev')}`,
2496
+ stopDev: ` * Stop ${(0, ui_1.uiCommandReference)('hs project dev')}`,
2472
2497
  runUpload: (command) => ` * Run ${command}`,
2473
- restartDev: ` * Re-run ${uiCommandReference('hs project dev')}`,
2498
+ restartDev: ` * Re-run ${(0, ui_1.uiCommandReference)('hs project dev')}`,
2474
2499
  pushToGithub: ' * Commit and push your changes to GitHub',
2475
- defaultMarketplaceAppWarning: (installCount, accountText) => `${chalk.bold('Changing project configuration requires creating a new project build.')}\n\nYour marketplace app is currently installed in ${chalk.bold(`${installCount} ${accountText}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
2500
+ defaultMarketplaceAppWarning: (installCount, accountText) => `${chalk_1.default.bold('Changing project configuration requires creating a new project build.')}\n\nYour marketplace app is currently installed in ${chalk_1.default.bold(`${installCount} ${accountText}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
2476
2501
  },
2477
2502
  activeInstallWarning: {
2478
- installCount: (appName, installCount) => `${chalk.bold(`The app ${appName} is installed in ${installCount} production ${installCount === 1 ? 'account' : 'accounts'}`)}`,
2503
+ installCount: (appName, installCount) => `${chalk_1.default.bold(`The app ${appName} is installed in ${installCount} production ${installCount === 1 ? 'account' : 'accounts'}`)}`,
2479
2504
  explanation: 'Some changes made during local development may need to be synced to HubSpot, which will impact those existing installs. We strongly recommend creating a copy of this app to use instead.',
2480
2505
  confirmation: `You will always be asked to confirm any permanent changes to your app's configuration before uploading them.`,
2481
- confirmationPrompt: `Proceed with local development of this ${chalk.bold('production')} app?`,
2506
+ confirmationPrompt: `Proceed with local development of this ${chalk_1.default.bold('production')} app?`,
2482
2507
  },
2483
2508
  devServer: {
2484
2509
  cleanupError: (message) => `Failed to cleanup local dev server: ${message}`,
@@ -2488,10 +2513,10 @@ export const lib = {
2488
2513
  },
2489
2514
  },
2490
2515
  AppDevModeInterface: {
2491
- defaultMarketplaceAppWarning: (installCount) => `\n\nYour marketplace app is currently installed in ${chalk.bold(`${installCount} ${installCount === 1 ? 'account' : 'accounts'}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
2516
+ defaultMarketplaceAppWarning: (installCount) => `\n\nYour marketplace app is currently installed in ${chalk_1.default.bold(`${installCount} ${installCount === 1 ? 'account' : 'accounts'}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
2492
2517
  autoInstallDeclined: 'You must install your app on your target test account to proceed with local development.',
2493
- autoInstallSuccess: (appName, targetTestAccountId) => `Successfully installed app ${appName} on account ${uiAccountDescription(targetTestAccountId)}\n`,
2494
- autoInstallError: (appName, targetTestAccountId) => `Error installing app ${appName} on account ${uiAccountDescription(targetTestAccountId)}. You may still be able to install your app in your browser.`,
2518
+ autoInstallSuccess: (appName, targetTestAccountId) => `Successfully installed app ${appName} on account ${(0, ui_1.uiAccountDescription)(targetTestAccountId)}\n`,
2519
+ autoInstallError: (appName, targetTestAccountId) => `Error installing app ${appName} on account ${(0, ui_1.uiAccountDescription)(targetTestAccountId)}. You may still be able to install your app in your browser.`,
2495
2520
  },
2496
2521
  LocalDevWebsocketServer: {
2497
2522
  errors: {
@@ -2507,29 +2532,29 @@ export const lib = {
2507
2532
  },
2508
2533
  },
2509
2534
  LocalDevProcess: {
2510
- projectConfigMismatch: `Unable to upload project. The project config has been modified since starting ${uiCommandReference('hs project dev')}.`,
2535
+ projectConfigMismatch: `Unable to upload project. The project config has been modified since starting ${(0, ui_1.uiCommandReference)('hs project dev')}.`,
2511
2536
  uploadInitiated: 'Project upload initiated from Local Dev UI.',
2512
2537
  uploadFailed: 'Project upload failed. To proceed with local development, fix any necessary errors, then re-upload your project.',
2513
2538
  uploadSuccess: 'Project upload completed successfully. Resuming local dev...',
2514
2539
  },
2515
2540
  localDevHelpers: {
2516
2541
  confirmDefaultAccountIsTarget: {
2517
- configError: `An error occurred while reading the default account from your config. Run ${uiCommandReference('hs auth')} to re-auth this account`,
2518
- declineDefaultAccountExplanation: `To develop on a different account, run ${uiCommandReference('hs accounts use')} to change your default account, then re-run ${uiCommandReference('hs project dev')}.`,
2542
+ configError: `An error occurred while reading the default account from your config. Run ${(0, ui_1.uiCommandReference)('hs auth')} to re-auth this account`,
2543
+ declineDefaultAccountExplanation: `To develop on a different account, run ${(0, ui_1.uiCommandReference)('hs accounts use')} to change your default account, then re-run ${(0, ui_1.uiCommandReference)('hs project dev')}.`,
2519
2544
  },
2520
2545
  checkIfDefaultAccountIsSupported: {
2521
- publicApp: `This project contains a public app. Local development of public apps is only supported on developer accounts and developer test accounts. Change your default account using ${uiCommandReference('hs accounts use')}, or link a new account with ${uiCommandReference('hs auth')}.`,
2522
- privateApp: `This project contains a private app. Local development of private apps is not supported in developer accounts. Change your default account using ${uiCommandReference('hs accounts use')}, or link a new account with ${uiCommandReference('hs auth')}.`,
2546
+ publicApp: `This project contains a public app. Local development of public apps is only supported on developer accounts and developer test accounts. Change your default account using ${(0, ui_1.uiCommandReference)('hs accounts use')}, or link a new account with ${(0, ui_1.uiCommandReference)('hs auth')}.`,
2547
+ privateApp: `This project contains a private app. Local development of private apps is not supported in developer accounts. Change your default account using ${(0, ui_1.uiCommandReference)('hs accounts use')}, or link a new account with ${(0, ui_1.uiCommandReference)('hs auth')}.`,
2523
2548
  },
2524
2549
  validateAccountOption: {
2525
- invalidPublicAppAccount: `This project contains a public app. The "--account" flag must point to a developer test account to develop this project locally. Alternatively, change your default account to an App Developer Account using ${uiCommandReference('hs accounts use')} and run ${uiCommandReference('hs project dev')} to set up a new Developer Test Account.`,
2526
- invalidPrivateAppAccount: `This project contains a private app. The account specified with the "--account" flag points to a developer account, which do not support the local development of private apps. Update the "--account" flag to point to a standard, sandbox, or developer test account, or change your default account by running ${uiCommandReference('hs accounts use')}.`,
2527
- nonSandboxWarning: `Testing in a sandbox is strongly recommended. To switch the target account, select an option below or run ${uiCommandReference('hs accounts use')} before running the command again.`,
2528
- publicAppNonDeveloperTestAccountWarning: `Local development of public apps is only supported in ${chalk.bold('developer test accounts')}.`,
2550
+ invalidPublicAppAccount: `This project contains a public app. The "--account" flag must point to a developer test account to develop this project locally. Alternatively, change your default account to an App Developer Account using ${(0, ui_1.uiCommandReference)('hs accounts use')} and run ${(0, ui_1.uiCommandReference)('hs project dev')} to set up a new Developer Test Account.`,
2551
+ invalidPrivateAppAccount: `This project contains a private app. The account specified with the "--account" flag points to a developer account, which do not support the local development of private apps. Update the "--account" flag to point to a standard, sandbox, or developer test account, or change your default account by running ${(0, ui_1.uiCommandReference)('hs accounts use')}.`,
2552
+ nonSandboxWarning: `Testing in a sandbox is strongly recommended. To switch the target account, select an option below or run ${(0, ui_1.uiCommandReference)('hs accounts use')} before running the command again.`,
2553
+ publicAppNonDeveloperTestAccountWarning: `Local development of public apps is only supported in ${chalk_1.default.bold('developer test accounts')}.`,
2529
2554
  },
2530
2555
  createNewProjectForLocalDev: {
2531
- projectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in the target account ${uiAccountDescription(accountId)}. This command requires the project to exist in the target account.`,
2532
- publicAppProjectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in ${uiAccountDescription(accountId)}, the app developer account associated with your target account. This command requires the project to exist in this app developer account.`,
2556
+ projectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in the target account ${(0, ui_1.uiAccountDescription)(accountId)}. This command requires the project to exist in the target account.`,
2557
+ publicAppProjectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in ${(0, ui_1.uiAccountDescription)(accountId)}, the app developer account associated with your target account. This command requires the project to exist in this app developer account.`,
2533
2558
  createProject: (projectName, accountIdentifier) => `Create new project ${projectName} in ${accountIdentifier}?`,
2534
2559
  choseNotToCreateProject: 'Exiting because this command requires the project to exist in the target account.',
2535
2560
  creatingProject: (projectName, accountIdentifier) => `Creating project ${projectName} in ${accountIdentifier}`,
@@ -2539,49 +2564,49 @@ export const lib = {
2539
2564
  createInitialBuildForNewProject: {
2540
2565
  initialUploadMessage: 'HubSpot Local Dev Server Startup',
2541
2566
  projectLockedError: 'Your project is locked. This may mean that another user is running the `hs project watch` command for this project. If this is you, unlock the project in Projects UI.',
2542
- genericError: `An error occurred while creating the initial build for this project. Run ${uiCommandReference('hs project upload')} to try again.`,
2567
+ genericError: `An error occurred while creating the initial build for this project. Run ${(0, ui_1.uiCommandReference)('hs project upload')} to try again.`,
2543
2568
  },
2544
2569
  checkIfParentAccountIsAuthed: {
2545
- notAuthedError: (parentAccountId, accountIdentifier) => `To develop this project locally, run ${uiCommandReference(`hs auth --account=${parentAccountId}`)} to authenticate the App Developer Account ${parentAccountId} associated with ${accountIdentifier}.`,
2570
+ notAuthedError: (parentAccountId, accountIdentifier) => `To develop this project locally, run ${(0, ui_1.uiCommandReference)(`hs auth --account=${parentAccountId}`)} to authenticate the App Developer Account ${parentAccountId} associated with ${accountIdentifier}.`,
2546
2571
  },
2547
2572
  selectAccountTypePrompt: {
2548
2573
  message: '[--account] Choose the type of account to test on',
2549
2574
  developerTestAccountOption: 'Test on a developer test account',
2550
2575
  sandboxAccountOption: 'Test on a sandbox account',
2551
2576
  sandboxAccountOptionDisabled: 'Disabled - requires access to sandbox accounts',
2552
- productionAccountOption: `<${chalk.red('!')} Test on this account ${chalk.red('!')}>`,
2577
+ productionAccountOption: `<${chalk_1.default.red('!')} Test on this account ${chalk_1.default.red('!')}>`,
2553
2578
  },
2554
2579
  },
2555
2580
  middleware: {
2556
2581
  updateNotification: {
2557
- notifyTitle: chalk.bold('Update available'),
2558
- cmsUpdateNotification: (packageName) => `${chalk.bold('The CMS CLI is now the HubSpot CLI')}\n\nTo upgrade, uninstall ${chalk.bold(packageName)}\nand then run ${uiCommandReference('{updateCommand}')}`,
2559
- cliUpdateNotification: `HubSpot CLI version ${chalk.cyan(chalk.bold('{currentVersion}'))} is outdated.\nRun ${uiCommandReference('{updateCommand}')} to upgrade to version ${chalk.cyan(chalk.bold('{latestVersion}'))}`,
2582
+ notifyTitle: chalk_1.default.bold('Update available'),
2583
+ cmsUpdateNotification: (packageName) => `${chalk_1.default.bold('The CMS CLI is now the HubSpot CLI')}\n\nTo upgrade, uninstall ${chalk_1.default.bold(packageName)}\nand then run ${(0, ui_1.uiCommandReference)('{updateCommand}')}`,
2584
+ cliUpdateNotification: `HubSpot CLI version ${chalk_1.default.cyan(chalk_1.default.bold('{currentVersion}'))} is outdated.\nRun ${(0, ui_1.uiCommandReference)('{updateCommand}')} to upgrade to version ${chalk_1.default.cyan(chalk_1.default.bold('{latestVersion}'))}`,
2560
2585
  },
2561
2586
  autoUpdateCLI: {
2562
- updateAvailable: (latestVersion) => `There's a new HubSpot CLI version available! Updating to version ${chalk.bold(latestVersion)}`,
2563
- updateSucceeded: (latestVersion) => `Successfully updated HubSpot CLI to version ${chalk.bold(latestVersion)}`,
2587
+ updateAvailable: (latestVersion) => `There's a new HubSpot CLI version available! Updating to version ${chalk_1.default.bold(latestVersion)}`,
2588
+ updateSucceeded: (latestVersion) => `Successfully updated HubSpot CLI to version ${chalk_1.default.bold(latestVersion)}`,
2564
2589
  notInstalledGlobally: 'Cannot auto-update the HubSpot CLI because NPM is not installed globally',
2565
- updateFailed: (latestVersion) => `Failed to update HubSpot CLI to version ${chalk.bold(latestVersion)}`,
2590
+ updateFailed: (latestVersion) => `Failed to update HubSpot CLI to version ${chalk_1.default.bold(latestVersion)}`,
2566
2591
  },
2567
2592
  },
2568
2593
  projectProfiles: {
2569
2594
  logs: {
2570
- usingProfile: (profileName) => `Using profile from ${chalk.bold(profileName)}`,
2571
- profileTargetAccount: (accountId) => `Targeting ${uiAccountDescription(accountId)}`,
2595
+ usingProfile: (profileName) => `Using profile from ${chalk_1.default.bold(profileName)}`,
2596
+ profileTargetAccount: (accountId) => `Targeting ${(0, ui_1.uiAccountDescription)(accountId)}`,
2572
2597
  profileVariables: 'Profile variables',
2573
2598
  },
2574
2599
  exitIfUsingProfiles: {
2575
2600
  errors: {
2576
- noProfileSpecified: `This project is configured to use profiles, but no profile was specified. Target a profile using the ${uiCommandReference('--profile')} flag.`,
2601
+ noProfileSpecified: `This project is configured to use profiles, but no profile was specified. Target a profile using the ${(0, ui_1.uiCommandReference)('--profile')} flag.`,
2577
2602
  },
2578
2603
  },
2579
2604
  loadProfile: {
2580
2605
  errors: {
2581
2606
  noProjectConfig: 'No project config found. Please run this command from a project directory.',
2582
- profileNotFound: (profileName) => `Profile ${chalk.bold(profileName)} not found.`,
2583
- missingAccountId: (profileName) => `Profile ${chalk.bold(profileName)} is missing an account id.`,
2584
- failedToLoadProfile: (profileName) => `Failed to load profile ${chalk.bold(profileName)}.`,
2607
+ profileNotFound: (profileName) => `Profile ${chalk_1.default.bold(profileName)} not found.`,
2608
+ missingAccountId: (profileName) => `Profile ${chalk_1.default.bold(profileName)} is missing an account id.`,
2609
+ failedToLoadProfile: (profileName) => `Failed to load profile ${chalk_1.default.bold(profileName)}.`,
2585
2610
  },
2586
2611
  },
2587
2612
  },
@@ -2608,10 +2633,10 @@ export const lib = {
2608
2633
  nothingAdded: 'No features added.',
2609
2634
  },
2610
2635
  validateProjectConfig: {
2611
- configNotFound: `Unable to locate a project configuration file. Try running again from a project directory, or run ${uiCommandReference('hs project create')} to create a new project.`,
2636
+ configNotFound: `Unable to locate a project configuration file. Try running again from a project directory, or run ${(0, ui_1.uiCommandReference)('hs project create')} to create a new project.`,
2612
2637
  configMissingFields: 'The project configuration file is missing required fields.',
2613
- srcDirNotFound: (srcDir, projectDir) => `Project source directory ${chalk.bold(srcDir)} could not be found in ${chalk.bold(projectDir)}.`,
2614
- srcOutsideProjectDir: (projectConfig, srcDir) => `Invalid value for 'srcDir' in ${projectConfig}: ${chalk.bold(`srcDir: "${srcDir}"`)}\n\t'srcDir' must be a relative path to a folder under the project root, such as "." or "./src"`,
2638
+ srcDirNotFound: (srcDir, projectDir) => `Project source directory ${chalk_1.default.bold(srcDir)} could not be found in ${chalk_1.default.bold(projectDir)}.`,
2639
+ srcOutsideProjectDir: (projectConfig, srcDir) => `Invalid value for 'srcDir' in ${projectConfig}: ${chalk_1.default.bold(`srcDir: "${srcDir}"`)}\n\t'srcDir' must be a relative path to a folder under the project root, such as "." or "./src"`,
2615
2640
  },
2616
2641
  getProjectConfig: {
2617
2642
  error: 'Could not read from project config',
@@ -2619,15 +2644,15 @@ export const lib = {
2619
2644
  ensureProjectExists: {
2620
2645
  createPrompt: (projectName, accountIdentifier) => `The project ${projectName} does not exist in ${accountIdentifier}. Would you like to create it?`,
2621
2646
  createPromptUpload: (projectName, accountIdentifier) => `[--forceCreate] The project ${projectName} does not exist in ${accountIdentifier}. Would you like to create it?`,
2622
- createSuccess: (projectName, accountIdentifier) => `New project ${chalk.bold(projectName)} successfully created in ${chalk.bold(accountIdentifier)}.`,
2623
- notFound: (projectName, accountIdentifier) => `Your project ${chalk.bold(projectName)} could not be found in ${chalk.bold(accountIdentifier)}.`,
2647
+ createSuccess: (projectName, accountIdentifier) => `New project ${chalk_1.default.bold(projectName)} successfully created in ${chalk_1.default.bold(accountIdentifier)}.`,
2648
+ notFound: (projectName, accountIdentifier) => `Your project ${chalk_1.default.bold(projectName)} could not be found in ${chalk_1.default.bold(accountIdentifier)}.`,
2624
2649
  },
2625
2650
  pollFetchProject: {
2626
2651
  checkingProject: (accountIdentifier) => `Checking if project exists in ${accountIdentifier}`,
2627
2652
  },
2628
2653
  logFeedbackMessage: {
2629
2654
  feedbackHeader: "We'd love to hear your feedback!",
2630
- feedbackMessage: `How are you liking the new projects and developer tools? \n > Run ${uiCommandReference('hs feedback')} to let us know what you think!\n`,
2655
+ feedbackMessage: `How are you liking the new projects and developer tools? \n > Run ${(0, ui_1.uiCommandReference)('hs feedback')} to let us know what you think!\n`,
2631
2656
  },
2632
2657
  },
2633
2658
  projectBuildAndDeploy: {
@@ -2641,22 +2666,22 @@ export const lib = {
2641
2666
  },
2642
2667
  pollBuildAutodeployStatusError: (buildId) => `Error fetching autodeploy status for build #${buildId}`,
2643
2668
  pollProjectBuildAndDeploy: {
2644
- buildSucceededAutomaticallyDeploying: (buildId, accountIdentifier) => `Build #${buildId} succeeded. ${chalk.bold('Automatically deploying')} to ${accountIdentifier}\n`,
2669
+ buildSucceededAutomaticallyDeploying: (buildId, accountIdentifier) => `Build #${buildId} succeeded. ${chalk_1.default.bold('Automatically deploying')} to ${accountIdentifier}\n`,
2645
2670
  cleanedUpTempFile: (path) => `Cleaned up temporary file ${path}`,
2646
2671
  viewDeploys: 'view all deploys for this project in HubSpot',
2647
- unableToFindAutodeployStatus: (buildId, viewDeploysLink) => `Unable to find the auto deploy for build #${buildId}. This deploy may have been skipped or blocked due to components being removed. Manually deploy with ${uiCommandReference('hs project deploy')} or ${viewDeploysLink}.`,
2672
+ unableToFindAutodeployStatus: (buildId, viewDeploysLink) => `Unable to find the auto deploy for build #${buildId}. This deploy may have been skipped or blocked due to components being removed. Manually deploy with ${(0, ui_1.uiCommandReference)('hs project deploy')} or ${viewDeploysLink}.`,
2648
2673
  },
2649
2674
  },
2650
2675
  projectUpload: {
2651
- wrongPlatformVersionMetaFiles: `Detected components that require a minimum platform version of ${PLATFORM_VERSIONS.v2025_2}. You need to update your platform version in your ${PROJECT_CONFIG_FILE} and run ${uiCommandReference('hs project upload')}`,
2676
+ wrongPlatformVersionMetaFiles: `Detected components that require a minimum platform version of ${projects_1.PLATFORM_VERSIONS.v2025_2}. You need to update your platform version in your ${constants_1.PROJECT_CONFIG_FILE} and run ${(0, ui_1.uiCommandReference)('hs project upload')}`,
2652
2677
  uploadProjectFiles: {
2653
- add: (projectName, accountIdentifier) => `Uploading ${chalk.bold(projectName)} project files to ${accountIdentifier}`,
2654
- fail: (projectName, accountIdentifier) => `Failed to upload ${chalk.bold(projectName)} project files to ${accountIdentifier}`,
2655
- succeed: (projectName, accountIdentifier) => `Uploaded ${chalk.bold(projectName)} project files to ${accountIdentifier}`,
2678
+ add: (projectName, accountIdentifier) => `Uploading ${chalk_1.default.bold(projectName)} project files to ${accountIdentifier}`,
2679
+ fail: (projectName, accountIdentifier) => `Failed to upload ${chalk_1.default.bold(projectName)} project files to ${accountIdentifier}`,
2680
+ succeed: (projectName, accountIdentifier) => `Uploaded ${chalk_1.default.bold(projectName)} project files to ${accountIdentifier}`,
2656
2681
  buildCreated: (projectName, buildId) => `Project "${projectName}" uploaded and build #${buildId} created`,
2657
2682
  },
2658
2683
  handleProjectUpload: {
2659
- emptySource: (srcDir) => `Source directory "${srcDir}" is empty. Add files to your project and rerun ${uiCommandReference('hs project upload')} to upload them to HubSpot.`,
2684
+ emptySource: (srcDir) => `Source directory "${srcDir}" is empty. Add files to your project and rerun ${(0, ui_1.uiCommandReference)('hs project upload')} to upload them to HubSpot.`,
2660
2685
  compressed: (byteCount) => `Project files compressed: ${byteCount} bytes`,
2661
2686
  compressing: (path) => `Compressing build files to "${path}"`,
2662
2687
  fileFiltered: (filename) => `Ignore rule triggered for "${filename}"`,
@@ -2666,14 +2691,14 @@ export const lib = {
2666
2691
  failedToLoad: 'Failed to load boxen util.',
2667
2692
  },
2668
2693
  ui: {
2669
- betaTag: chalk.bold('[BETA]'),
2694
+ betaTag: chalk_1.default.bold('[BETA]'),
2670
2695
  betaWarning: {
2671
- header: chalk.yellow('***************************** WARNING ****************************'),
2672
- footer: chalk.yellow('******************************************************************'),
2696
+ header: chalk_1.default.yellow('***************************** WARNING ****************************'),
2697
+ footer: chalk_1.default.yellow('******************************************************************'),
2673
2698
  },
2674
- infoTag: chalk.bold('[INFO]'),
2675
- deprecatedTag: chalk.bold('[DEPRECATED]'),
2676
- errorTag: chalk.bold('[ERROR]'),
2699
+ infoTag: chalk_1.default.bold('[INFO]'),
2700
+ deprecatedTag: chalk_1.default.bold('[DEPRECATED]'),
2701
+ errorTag: chalk_1.default.bold('[ERROR]'),
2677
2702
  deprecatedMessage: (command, url) => `The ${command} command is deprecated and will be disabled soon. ${url}`,
2678
2703
  deprecatedDescription: (message, command, url) => `${message}. The ${command} command is deprecated and will be disabled soon. ${url}`,
2679
2704
  deprecatedUrlText: 'Learn more.',
@@ -2752,6 +2777,12 @@ export const lib = {
2752
2777
  noLogsFound: 'No logs found.',
2753
2778
  },
2754
2779
  },
2780
+ buildAccount: {
2781
+ createDeveloperTestAccountV3: {
2782
+ syncFailure: 'Failed to sync developer test account',
2783
+ pakFailure: 'Failed to generate personal access key for developer test account',
2784
+ },
2785
+ },
2755
2786
  configOptions: {
2756
2787
  enableOrDisableBooleanFieldPrompt: {
2757
2788
  message: (fieldName) => `Choose to enable or disable ${fieldName}`,
@@ -2802,13 +2833,13 @@ export const lib = {
2802
2833
  success: 'Your deprecated config file has been successfully migrated.',
2803
2834
  },
2804
2835
  handleMergeConfigProperties: {
2805
- mergeConflictMessage: (count, propertyList) => `Conflict${count > 1 ? 's' : ''} detected for ${chalk.bold(propertyList)}.`,
2836
+ mergeConflictMessage: (count, propertyList) => `Conflict${count > 1 ? 's' : ''} detected for ${chalk_1.default.bold(propertyList)}.`,
2806
2837
  mergeConfigConflictPrompt: (property, newValue, oldValue) => `Change ${property} from ${newValue} to ${oldValue}?`,
2807
2838
  },
2808
2839
  handleMerge: {
2809
2840
  description: (archivedConfigName) => `We will automatically merge the contents of your deprecated config file into your global configuration file. This will merge the configured accounts and settings into the global config. Then it will archive the deprecated config as ${archivedConfigName} for you to manually cleanup at your convenience.`,
2810
2841
  confirmPrompt: 'Merge the deprecated config into your global config?',
2811
- skippedExistingAccounts: (accountIds) => `The following accounts were not merged because they already exist in the global config:${accountIds.map(id => `\n- ${uiAccountDescription(Number(id))}`).join('')}`,
2842
+ skippedExistingAccounts: (accountIds) => `The following accounts were not merged because they already exist in the global config:${accountIds.map(id => `\n- ${(0, ui_1.uiAccountDescription)(Number(id))}`).join('')}`,
2812
2843
  success: 'Your deprecated config file has been successfully merged with the global config file.',
2813
2844
  },
2814
2845
  },
@@ -2816,17 +2847,17 @@ export const lib = {
2816
2847
  projectDevTargetAccountPrompt: {
2817
2848
  createNewSandboxOption: '<Test on a new development sandbox>',
2818
2849
  createNewDeveloperTestAccountOption: '<Test on a new developer test account>',
2819
- chooseDefaultAccountOption: () => `<${chalk.bold('❗')} Test on this production account ${chalk.bold('❗')}>`,
2850
+ chooseDefaultAccountOption: () => `<${chalk_1.default.bold('❗')} Test on this production account ${chalk_1.default.bold('❗')}>`,
2820
2851
  promptMessage: (accountType, accountIdentifier) => `[--account] Choose a ${accountType} under ${accountIdentifier} to test with:`,
2821
2852
  sandboxLimit: (limit) => `Your account reached the limit of ${limit} development sandboxes`,
2822
2853
  sandboxLimitWithSuggestion: (limit, authCommand) => `Your account reached the limit of ${limit} development sandboxes. Run ${authCommand} to add an existing one to the config.`,
2823
2854
  developerTestAccountLimit: (limit) => `Your account reached the limit of ${limit} developer test accounts.`,
2824
- confirmDefaultAccount: (accountName, accountType) => `Continue testing on ${chalk.bold(`${accountName} (${accountType})`)}? (Y/n)`,
2855
+ confirmDefaultAccount: (accountName, accountType) => `Continue testing on ${chalk_1.default.bold(`${accountName} (${accountType})`)}? (Y/n)`,
2825
2856
  confirmUseExistingDeveloperTestAccount: (accountName) => `Continue with ${accountName}? This account isn't currently connected to the HubSpot CLI. By continuing, you'll be prompted to generate a personal access key and connect it.`,
2826
2857
  noAccountId: 'No account ID found for the selected account. Please try again.',
2827
2858
  },
2828
2859
  projectLogsPrompt: {
2829
- functionName: (projectName) => `[--function] Select function in ${chalk.bold(projectName)} project`,
2860
+ functionName: (projectName) => `[--function] Select function in ${chalk_1.default.bold(projectName)} project`,
2830
2861
  },
2831
2862
  setAsDefaultAccountPrompt: {
2832
2863
  setAsDefaultAccountMessage: 'Set this account as the default?',
@@ -2834,11 +2865,25 @@ export const lib = {
2834
2865
  keepingCurrentDefault: (accountName) => `Account "${accountName}" will continue to be the default account`,
2835
2866
  },
2836
2867
  createDeveloperTestAccountConfigPrompt: {
2837
- namePrompt: '[--name] What is the name of the test account?',
2838
- descriptionPrompt: '[--description] What is the description of the test account?',
2839
- tiersPrompt: '[--tiers] Which product tiers should the test account have?',
2868
+ namePrompt: (withFlag = true) => `${withFlag ? '[--name] ' : ''}Enter the name of the Test Account:`,
2869
+ descriptionPrompt: (withFlag = true) => `${withFlag ? '[--description] ' : ''}Enter the description of the Test Account:`,
2870
+ useDefaultAccountLevelsPrompt: {
2871
+ message: 'Would you like to create a default Test Account, or customize your own?',
2872
+ default: 'Default (All Hubs, ENTERPRISE)',
2873
+ manual: 'Customize my own',
2874
+ },
2875
+ tiersPrompt: 'Select an option per hub to customize tiers. If left blank, default is ENTERPRISE',
2876
+ hubTypes: {
2877
+ marketing: 'Marketing',
2878
+ ops: 'Ops',
2879
+ service: 'Service',
2880
+ sales: 'Sales',
2881
+ content: 'Content',
2882
+ },
2840
2883
  errors: {
2884
+ allHubsRequired: 'Select a tier for each hub',
2841
2885
  tiersError: 'Cannot have more than one tier per hub',
2886
+ nameRequired: 'The name may not be blank. Please add a name for the Test Account.',
2842
2887
  },
2843
2888
  },
2844
2889
  accountNamePrompt: {
@@ -2945,10 +2990,10 @@ export const lib = {
2945
2990
  selectAppIdClone: (accountName) => `[--appId] Choose an app under ${accountName} to clone:`,
2946
2991
  errors: {
2947
2992
  noAccountId: 'An account ID is required to select an app.',
2948
- noAppsMigration: () => `${chalk.bold('No apps to migrate')}`,
2949
- noAppsClone: () => `${chalk.bold('No apps to clone')}`,
2950
- noAppsMigrationMessage: (accountName) => `The selected developer account ${chalk.bold(accountName)} doesn't have any apps that can be migrated to the projects framework.`,
2951
- noAppsCloneMessage: (accountName) => `The selected developer account ${chalk.bold(accountName)} doesn't have any apps that can be cloned to the projects framework.`,
2993
+ noAppsMigration: () => `${chalk_1.default.bold('No apps to migrate')}`,
2994
+ noAppsClone: () => `${chalk_1.default.bold('No apps to clone')}`,
2995
+ noAppsMigrationMessage: (accountName) => `The selected developer account ${chalk_1.default.bold(accountName)} doesn't have any apps that can be migrated to the projects framework.`,
2996
+ noAppsCloneMessage: (accountName) => `The selected developer account ${chalk_1.default.bold(accountName)} doesn't have any apps that can be cloned to the projects framework.`,
2952
2997
  errorFetchingApps: 'There was an error fetching public apps.',
2953
2998
  cannotBeMigrated: 'Cannot be migrated',
2954
2999
  },
@@ -2961,7 +3006,7 @@ export const lib = {
2961
3006
  },
2962
3007
  },
2963
3008
  projectAddPrompt: {
2964
- selectType: '[--type] Select a component to add: ',
3009
+ selectType: '[--type] Select an app feature to add: ',
2965
3010
  enterName: '[--name] Give your component a name: ',
2966
3011
  errors: {
2967
3012
  nameRequired: 'A component name is required',
@@ -3001,7 +3046,7 @@ export const lib = {
3001
3046
  enterName: '[--project] Enter project name:',
3002
3047
  errors: {
3003
3048
  invalidName: 'You entered an invalid name. Please try again.',
3004
- projectDoesNotExist: (projectName, accountIdentifier) => `Project ${chalk.bold(projectName)} could not be found in "${accountIdentifier}"`,
3049
+ projectDoesNotExist: (projectName, accountIdentifier) => `Project ${chalk_1.default.bold(projectName)} could not be found in "${accountIdentifier}"`,
3005
3050
  },
3006
3051
  },
3007
3052
  previewPrompt: {
@@ -3019,7 +3064,7 @@ export const lib = {
3019
3064
  prompt: 'Open HubSpot to install this app?',
3020
3065
  autoPrompt: 'Install this app in your target test account?',
3021
3066
  reinstallPrompt: 'Open HubSpot to reinstall this app?',
3022
- decline: `To continue local development of this app, install it in your target test account and re-run ${chalk.bold('`hs project dev`')}`,
3067
+ decline: `To continue local development of this app, install it in your target test account and re-run ${chalk_1.default.bold('`hs project dev`')}`,
3023
3068
  },
3024
3069
  selectHubDBTablePrompt: {
3025
3070
  selectTable: 'Select a HubDB table:',
@@ -3051,20 +3096,20 @@ export const lib = {
3051
3096
  developerTestAccount: {
3052
3097
  create: {
3053
3098
  loading: {
3054
- add: (accountName) => `Creating developer test account ${chalk.bold(accountName)}`,
3055
- fail: (accountName) => `Failed to create a developer test account ${chalk.bold(accountName)}.`,
3056
- succeed: (accountName, accountId) => `Successfully created a developer test account ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
3099
+ add: (accountName) => `Creating developer test account ${chalk_1.default.bold(accountName)}`,
3100
+ fail: (accountName) => `Failed to create a developer test account ${chalk_1.default.bold(accountName)}.`,
3101
+ succeed: (accountName, accountId) => `Successfully created a developer test account ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
3057
3102
  },
3058
3103
  success: {
3059
3104
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
3060
3105
  },
3061
3106
  failure: {
3062
- invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
3063
- limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer test accounts. \n- To connect a developer test account to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
3064
- alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer test accounts. \n- To use an existing developer test account, run ${chalk.bold('hs accounts use')}.`,
3107
+ invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
3108
+ limit: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer test accounts. \n- To connect a developer test account to your HubSpot CLI, run ${chalk_1.default.bold('hs auth')} and follow the prompts.`,
3109
+ alreadyInConfig: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer test accounts. \n- To use an existing developer test account, run ${chalk_1.default.bold('hs accounts use')}.`,
3065
3110
  scopes: {
3066
3111
  message: "The personal access key you provided doesn't include developer test account permissions.",
3067
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer test account permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
3112
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer test account permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
3068
3113
  },
3069
3114
  },
3070
3115
  },
@@ -3073,58 +3118,58 @@ export const lib = {
3073
3118
  create: {
3074
3119
  developer: {
3075
3120
  loading: {
3076
- add: (accountName) => `Creating developer sandbox ${chalk.bold(accountName)}`,
3077
- fail: (accountName) => `Failed to create a developer sandbox ${chalk.bold(accountName)}.`,
3078
- succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
3121
+ add: (accountName) => `Creating developer sandbox ${chalk_1.default.bold(accountName)}`,
3122
+ fail: (accountName) => `Failed to create a developer sandbox ${chalk_1.default.bold(accountName)}.`,
3123
+ succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
3079
3124
  },
3080
3125
  success: {
3081
3126
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
3082
3127
  },
3083
3128
  failure: {
3084
- invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
3085
- limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To connect a developer sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
3086
- alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To use an existing developer sandbox, run ${chalk.bold('hs accounts use')}.`,
3129
+ invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
3130
+ limit: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To connect a developer sandbox to your HubSpot CLI, run ${chalk_1.default.bold('hs auth')} and follow the prompts.`,
3131
+ alreadyInConfig: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To use an existing developer sandbox, run ${chalk_1.default.bold('hs accounts use')}.`,
3087
3132
  scopes: {
3088
3133
  message: "The personal access key you provided doesn't include developer sandbox permissions.",
3089
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
3134
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
3090
3135
  },
3091
3136
  generic: 'An error occurred while creating a developer sandbox',
3092
3137
  },
3093
3138
  },
3094
3139
  standard: {
3095
3140
  loading: {
3096
- add: (accountName) => `Creating standard sandbox ${chalk.bold(accountName)}`,
3097
- fail: (accountName) => `Failed to create a standard sandbox ${chalk.bold(accountName)}.`,
3098
- succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
3141
+ add: (accountName) => `Creating standard sandbox ${chalk_1.default.bold(accountName)}`,
3142
+ fail: (accountName) => `Failed to create a standard sandbox ${chalk_1.default.bold(accountName)}.`,
3143
+ succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
3099
3144
  },
3100
3145
  success: {
3101
3146
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
3102
3147
  },
3103
3148
  failure: {
3104
- invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
3105
- limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To connect a standard sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
3106
- alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To use an existing standard sandbox, run ${chalk.bold('hs accounts use')}.`,
3149
+ invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
3150
+ limit: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To connect a standard sandbox to your HubSpot CLI, run ${chalk_1.default.bold('hs auth')} and follow the prompts.`,
3151
+ alreadyInConfig: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To use an existing standard sandbox, run ${chalk_1.default.bold('hs accounts use')}.`,
3107
3152
  scopes: {
3108
3153
  message: "The personal access key you provided doesn't include standard sandbox permissions.",
3109
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
3154
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
3110
3155
  },
3111
3156
  },
3112
3157
  },
3113
3158
  },
3114
3159
  sync: {
3115
3160
  loading: {
3116
- add: (accountName) => `Syncing sandbox ${chalk.bold(accountName)}`,
3117
- fail: (accountName) => `Failed to sync sandbox ${chalk.bold(accountName)}.`,
3118
- succeed: (accountName) => `Successfully synced sandbox ${chalk.bold(accountName)}.`,
3161
+ add: (accountName) => `Syncing sandbox ${chalk_1.default.bold(accountName)}`,
3162
+ fail: (accountName) => `Failed to sync sandbox ${chalk_1.default.bold(accountName)}.`,
3163
+ succeed: (accountName) => `Successfully synced sandbox ${chalk_1.default.bold(accountName)}.`,
3119
3164
  },
3120
3165
  success: {
3121
3166
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
3122
3167
  },
3123
3168
  failure: {
3124
- invalidUser: (accountName, parentAccountName) => `Couldn't sync ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to sync the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
3169
+ invalidUser: (accountName, parentAccountName) => `Couldn't sync ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to sync the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
3125
3170
  scopes: {
3126
3171
  message: "The personal access key you provided doesn't include sandbox sync permissions.",
3127
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
3172
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
3128
3173
  },
3129
3174
  },
3130
3175
  },
@@ -3139,9 +3184,9 @@ export const lib = {
3139
3184
  suppressErrors: {
3140
3185
  platformVersionErrors: {
3141
3186
  header: 'Platform version update required',
3142
- unspecifiedPlatformVersion: (platformVersion) => `Projects with an ${chalk.bold(platformVersion)} are no longer supported.`,
3143
- platformVersionRetired: (platformVersion) => `Projects with ${chalk.bold(`platformVersion ${platformVersion}`)} are no longer supported.`,
3144
- nonExistentPlatformVersion: (platformVersion) => `Projects with ${chalk.bold(`platformVersion ${platformVersion}`)} are not supported.`,
3187
+ unspecifiedPlatformVersion: (platformVersion) => `Projects with an ${chalk_1.default.bold(platformVersion)} are no longer supported.`,
3188
+ platformVersionRetired: (platformVersion) => `Projects with ${chalk_1.default.bold(`platformVersion ${platformVersion}`)} are no longer supported.`,
3189
+ nonExistentPlatformVersion: (platformVersion) => `Projects with ${chalk_1.default.bold(`platformVersion ${platformVersion}`)} are not supported.`,
3145
3190
  updateProject: 'Please update your project to the latest version and try again.',
3146
3191
  docsLink: 'Projects platform versioning (BETA)',
3147
3192
  betaLink: (docsLink) => `For more info, see ${docsLink}.`,
@@ -3193,13 +3238,13 @@ export const lib = {
3193
3238
  unableToDetermineSecondaryLink: 'npm HubSpot CLI version history',
3194
3239
  },
3195
3240
  projectDependenciesChecks: {
3196
- missingDependencies: (dir) => `missing dependencies in ${chalk.bold(dir)}`,
3241
+ missingDependencies: (dir) => `missing dependencies in ${chalk_1.default.bold(dir)}`,
3197
3242
  missingDependenciesSecondary: (command) => `Run ${command} to install all project dependencies locally`,
3198
3243
  unableToDetermine: (dir) => `Unable to determine if dependencies are installed ${dir}`,
3199
3244
  success: 'App dependencies are installed and up to date',
3200
3245
  },
3201
3246
  files: {
3202
- invalidJson: (filename) => `invalid JSON in ${chalk.bold(filename)}`,
3247
+ invalidJson: (filename) => `invalid JSON in ${chalk_1.default.bold(filename)}`,
3203
3248
  validJson: 'JSON files valid',
3204
3249
  },
3205
3250
  port: {
@@ -3213,19 +3258,19 @@ export const lib = {
3213
3258
  },
3214
3259
  cliConfig: {
3215
3260
  header: 'CLI configuration',
3216
- configFileSubHeader: (filename) => `Config File: ${chalk.bold(filename)}`,
3261
+ configFileSubHeader: (filename) => `Config File: ${chalk_1.default.bold(filename)}`,
3217
3262
  defaultAccountSubHeader: (accountDetails) => `Default Account: ${accountDetails}`,
3218
3263
  noConfigFile: 'CLI configuration not found',
3219
3264
  noConfigFileSecondary: (command) => `Run ${command} and follow the prompts to create your CLI configuration file and connect it to your HubSpot account`,
3220
3265
  },
3221
3266
  projectConfig: {
3222
3267
  header: 'Project configuration',
3223
- projectDirSubHeader: (projectDir) => `Project dir: ${chalk.bold(projectDir)}`,
3224
- projectNameSubHeader: (projectName) => `Project name: ${chalk.bold(projectName)}`,
3268
+ projectDirSubHeader: (projectDir) => `Project dir: ${chalk_1.default.bold(projectDir)}`,
3269
+ projectNameSubHeader: (projectName) => `Project name: ${chalk_1.default.bold(projectName)}`,
3225
3270
  },
3226
3271
  counts: {
3227
- errors: (count) => `${chalk.bold('Errors:')} ${count}`,
3228
- warnings: (count) => `${chalk.bold('Warning:')} ${count}`,
3272
+ errors: (count) => `${chalk_1.default.bold('Errors:')} ${count}`,
3273
+ warnings: (count) => `${chalk_1.default.bold('Warning:')} ${count}`,
3229
3274
  },
3230
3275
  },
3231
3276
  },
@@ -3237,11 +3282,11 @@ export const lib = {
3237
3282
  componentsThatWillNotBeMigrated: (components) => `[NOTE] These features are not yet supported for migration but will be available later: ${components}`,
3238
3283
  sourceContentsMoved: (newLocation) => `The contents of your old source directory have been moved to ${newLocation}, move any required files to the new source directory.`,
3239
3284
  projectMigrationWarningTitle: '⚠️ Important: Migrating to platformVersion 2025.2 is irreversible ⚠️',
3240
- projectMigrationWarning: uiBetaTag(`Running the ${uiCommandReference('hs project migrate')} command will permanently upgrade your project to platformVersion 2025.2. This action cannot be undone. To ensure you have access to your original files, they will be copied to a new directory (archive) for safekeeping.\n\nThis command will guide you through the process, prompting you to enter the required fields and will download the new project source code into your project source directory.`, false),
3285
+ projectMigrationWarning: (0, ui_1.uiBetaTag)(`Running the ${(0, ui_1.uiCommandReference)('hs project migrate')} command will permanently upgrade your project to platformVersion 2025.2. This action cannot be undone. To ensure you have access to your original files, they will be copied to a new directory (archive) for safekeeping.\n\nThis command will guide you through the process, prompting you to enter the required fields and will download the new project source code into your project source directory.`, false),
3241
3286
  errors: {
3242
3287
  project: {
3243
3288
  invalidConfig: 'The project configuration file is invalid. Please check the config file and try again.',
3244
- doesNotExist: (account) => `Project does not exist in ${uiAccountDescription(account)}. Migrations are only supported for existing projects.`,
3289
+ doesNotExist: (account) => `Project does not exist in ${(0, ui_1.uiAccountDescription)(account)}. Migrations are only supported for existing projects.`,
3245
3290
  multipleApps: 'Multiple apps found in project, this is not allowed in 2025.2',
3246
3291
  alreadyExists: (projectName) => `A project with name ${projectName} already exists. Please choose another name.`,
3247
3292
  },
@@ -3249,12 +3294,12 @@ export const lib = {
3249
3294
  upToDate: 'App is already up to date',
3250
3295
  isPrivateApp: 'Private apps are not currently migratable',
3251
3296
  listedInMarketplace: 'Listed apps are not currently migratable',
3252
- projectConnectedToGitHub: (projectName, accountId) => `The project is linked to a GitHub repository. ${uiLink('Visit the project settings page to unlink it', getProjectSettingsUrl(projectName, accountId))}`,
3253
- partOfProjectAlready: `This app is part of a project, run ${uiCommandReference('hs project migrate')} from the project directory to migrate it`,
3297
+ projectConnectedToGitHub: (projectName, accountId) => `The project is linked to a GitHub repository. ${(0, ui_1.uiLink)('Visit the project settings page to unlink it', (0, urls_1.getProjectSettingsUrl)(projectName, accountId))}`,
3298
+ partOfProjectAlready: `This app is part of a project, run ${(0, ui_1.uiCommandReference)('hs project migrate')} from the project directory to migrate it`,
3254
3299
  generic: (reasonCode) => `Unable to migrate app: ${reasonCode}`,
3255
3300
  },
3256
3301
  noAppsEligible: (accountId, reasons) => `No apps in account ${accountId} are currently migratable${reasons.length ? `\n - ${reasons.join('\n - ')}` : ''}`,
3257
- invalidAccountTypeTitle: `${chalk.bold('Developer account not targeted')}`,
3302
+ invalidAccountTypeTitle: `${chalk_1.default.bold('Developer account not targeted')}`,
3258
3303
  invalidAccountTypeDescription: (useCommand, authCommand) => `Only public apps created in a developer account can be converted to a project component. Select a connected developer account with ${useCommand} or ${authCommand} and try again.`,
3259
3304
  appWithAppIdNotFound: (appId) => `Could not find an app with the id ${appId} `,
3260
3305
  noAppsForProject: (projectName) => `No apps associated with project ${projectName}`,