@webiny/project 6.6.0-alpha.10 → 6.6.0-alpha.12

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 (398) hide show
  1. package/ProjectSdk.d.ts +8 -19
  2. package/ProjectSdk.js +1 -28
  3. package/ProjectSdk.js.map +1 -1
  4. package/abstractions/features/hooks/index.d.ts +0 -8
  5. package/abstractions/features/hooks/index.js +0 -8
  6. package/abstractions/features/index.d.ts +0 -8
  7. package/abstractions/features/index.js +0 -8
  8. package/abstractions/models/IAppModel.d.ts +0 -2
  9. package/abstractions/models/IProjectModel.d.ts +0 -2
  10. package/abstractions/services/InitHostingSdkService.d.ts +21 -0
  11. package/abstractions/services/InitHostingSdkService.js +5 -0
  12. package/abstractions/services/InitHostingSdkService.js.map +1 -0
  13. package/abstractions/services/ProjectInfoService/ProjectInfoService.d.ts +6 -6
  14. package/abstractions/services/ProjectInfoService/ProjectInfoService.js.map +1 -1
  15. package/abstractions/services/ProjectInfoService/index.d.ts +0 -1
  16. package/abstractions/services/ProjectInfoService/index.js +0 -1
  17. package/abstractions/services/index.d.ts +1 -13
  18. package/abstractions/services/index.js +1 -13
  19. package/createProjectSdkContainer.js +1 -3
  20. package/createProjectSdkContainer.js.map +1 -1
  21. package/decorators/index.d.ts +0 -6
  22. package/decorators/index.js +0 -6
  23. package/defineExtension/types.d.ts +1 -1
  24. package/exports/infra/admin.d.ts +0 -2
  25. package/exports/infra/admin.js +0 -2
  26. package/exports/infra/api.d.ts +0 -2
  27. package/exports/infra/api.js +0 -2
  28. package/exports/infra/core.d.ts +0 -2
  29. package/exports/infra/core.js +0 -2
  30. package/exports/infra.d.ts +0 -2
  31. package/exports/infra.js +0 -2
  32. package/extensions/AdminWebsocketsUrl.d.ts +5 -3
  33. package/extensions/AdminWebsocketsUrl.js +1 -1
  34. package/extensions/AdminWebsocketsUrl.js.map +1 -1
  35. package/extensions/DatabaseSetup.d.ts +1 -0
  36. package/extensions/DatabaseSetup.js +4 -3
  37. package/extensions/DatabaseSetup.js.map +1 -1
  38. package/extensions/{pulumi/ProductionEnvironments.js → ProductionEnvironments.js} +2 -2
  39. package/extensions/ProductionEnvironments.js.map +1 -0
  40. package/extensions/api/Route/ApiRoute.d.ts +23 -0
  41. package/extensions/api/Route/ApiRoute.js +92 -0
  42. package/extensions/api/Route/ApiRoute.js.map +1 -0
  43. package/extensions/api/Route/index.d.ts +2 -0
  44. package/extensions/api/Route/index.js +2 -0
  45. package/extensions/api/Route/routePath.d.ts +21 -0
  46. package/extensions/api/Route/routePath.js +10 -0
  47. package/extensions/api/Route/routePath.js.map +1 -0
  48. package/extensions/api/index.d.ts +1 -0
  49. package/extensions/api/index.js +1 -0
  50. package/extensions/hooks/index.d.ts +0 -8
  51. package/extensions/hooks/index.js +0 -8
  52. package/extensions/hosting/extensionImplementations.d.ts +5 -4
  53. package/extensions/hosting/extensionImplementations.js.map +1 -1
  54. package/extensions/index.d.ts +7 -17
  55. package/extensions/index.js +5 -13
  56. package/extensions/index.js.map +1 -1
  57. package/features/GetProductionEnvironments/GetProductionEnvironments.js +1 -1
  58. package/features/GetProductionEnvironments/GetProductionEnvironments.js.map +1 -1
  59. package/features/hooks/index.d.ts +0 -8
  60. package/features/hooks/index.js +0 -8
  61. package/features/index.d.ts +0 -8
  62. package/features/index.js +0 -8
  63. package/index.d.ts +0 -4
  64. package/index.js +1 -5
  65. package/index.js.map +1 -1
  66. package/models/AppModel.js +1 -2
  67. package/models/AppModel.js.map +1 -1
  68. package/models/ProjectModel.js +0 -2
  69. package/models/ProjectModel.js.map +1 -1
  70. package/package.json +8 -14
  71. package/services/GetAppService/GetAppService.js +1 -3
  72. package/services/GetAppService/GetAppService.js.map +1 -1
  73. package/services/GetProjectService/GetProjectService.js +0 -2
  74. package/services/GetProjectService/GetProjectService.js.map +1 -1
  75. package/services/InitProjectSdkService/InitProjectSdkService.d.ts +6 -2
  76. package/services/InitProjectSdkService/InitProjectSdkService.js +18 -12
  77. package/services/InitProjectSdkService/InitProjectSdkService.js.map +1 -1
  78. package/services/InitProjectSdkService/registerHooks.js +4 -16
  79. package/services/InitProjectSdkService/registerHooks.js.map +1 -1
  80. package/services/InstallExtensionService/updateWebinyConfig.js +9 -23
  81. package/services/InstallExtensionService/updateWebinyConfig.js.map +1 -1
  82. package/services/ProjectInfoService/ProjectInfoService.d.ts +7 -3
  83. package/services/ProjectInfoService/ProjectInfoService.js +3 -11
  84. package/services/ProjectInfoService/ProjectInfoService.js.map +1 -1
  85. package/services/ProjectInfoService/index.d.ts +0 -1
  86. package/services/ProjectInfoService/index.js +0 -1
  87. package/services/SetProjectIdService/SetProjectIdService.js +2 -7
  88. package/services/SetProjectIdService/SetProjectIdService.js.map +1 -1
  89. package/services/index.d.ts +0 -12
  90. package/services/index.js +0 -12
  91. package/utils/ensureNamedImport.d.ts +12 -0
  92. package/utils/ensureNamedImport.js +27 -0
  93. package/utils/ensureNamedImport.js.map +1 -0
  94. package/utils/env/index.d.ts +0 -1
  95. package/utils/env/index.js +0 -1
  96. package/utils/index.d.ts +2 -0
  97. package/utils/index.js +2 -0
  98. package/utils/registerSrcExtensions.d.ts +13 -0
  99. package/utils/registerSrcExtensions.js +10 -0
  100. package/utils/registerSrcExtensions.js.map +1 -0
  101. package/abstractions/features/DeployApp.d.ts +0 -20
  102. package/abstractions/features/DeployApp.js +0 -5
  103. package/abstractions/features/DeployApp.js.map +0 -1
  104. package/abstractions/features/DestroyApp.d.ts +0 -18
  105. package/abstractions/features/DestroyApp.js +0 -5
  106. package/abstractions/features/DestroyApp.js.map +0 -1
  107. package/abstractions/features/ExportStack.d.ts +0 -18
  108. package/abstractions/features/ExportStack.js +0 -5
  109. package/abstractions/features/ExportStack.js.map +0 -1
  110. package/abstractions/features/GetAppOutput.d.ts +0 -18
  111. package/abstractions/features/GetAppOutput.js +0 -5
  112. package/abstractions/features/GetAppOutput.js.map +0 -1
  113. package/abstractions/features/GetAppStackOutput.d.ts +0 -22
  114. package/abstractions/features/GetAppStackOutput.js +0 -5
  115. package/abstractions/features/GetAppStackOutput.js.map +0 -1
  116. package/abstractions/features/GetPulumiResourceNamePrefix.d.ts +0 -7
  117. package/abstractions/features/GetPulumiResourceNamePrefix.js +0 -5
  118. package/abstractions/features/GetPulumiResourceNamePrefix.js.map +0 -1
  119. package/abstractions/features/RefreshApp.d.ts +0 -18
  120. package/abstractions/features/RefreshApp.js +0 -5
  121. package/abstractions/features/RefreshApp.js.map +0 -1
  122. package/abstractions/features/RunPulumiCommand.d.ts +0 -19
  123. package/abstractions/features/RunPulumiCommand.js +0 -5
  124. package/abstractions/features/RunPulumiCommand.js.map +0 -1
  125. package/abstractions/features/hooks/AdminAfterDeploy.d.ts +0 -9
  126. package/abstractions/features/hooks/AdminAfterDeploy.js +0 -5
  127. package/abstractions/features/hooks/AdminAfterDeploy.js.map +0 -1
  128. package/abstractions/features/hooks/AdminBeforeDeploy.d.ts +0 -9
  129. package/abstractions/features/hooks/AdminBeforeDeploy.js +0 -5
  130. package/abstractions/features/hooks/AdminBeforeDeploy.js.map +0 -1
  131. package/abstractions/features/hooks/AfterDeploy.d.ts +0 -9
  132. package/abstractions/features/hooks/AfterDeploy.js +0 -5
  133. package/abstractions/features/hooks/AfterDeploy.js.map +0 -1
  134. package/abstractions/features/hooks/ApiAfterDeploy.d.ts +0 -9
  135. package/abstractions/features/hooks/ApiAfterDeploy.js +0 -5
  136. package/abstractions/features/hooks/ApiAfterDeploy.js.map +0 -1
  137. package/abstractions/features/hooks/ApiBeforeDeploy.d.ts +0 -9
  138. package/abstractions/features/hooks/ApiBeforeDeploy.js +0 -5
  139. package/abstractions/features/hooks/ApiBeforeDeploy.js.map +0 -1
  140. package/abstractions/features/hooks/BeforeDeploy.d.ts +0 -9
  141. package/abstractions/features/hooks/BeforeDeploy.js +0 -5
  142. package/abstractions/features/hooks/BeforeDeploy.js.map +0 -1
  143. package/abstractions/features/hooks/CoreAfterDeploy.d.ts +0 -9
  144. package/abstractions/features/hooks/CoreAfterDeploy.js +0 -5
  145. package/abstractions/features/hooks/CoreAfterDeploy.js.map +0 -1
  146. package/abstractions/features/hooks/CoreBeforeDeploy.d.ts +0 -9
  147. package/abstractions/features/hooks/CoreBeforeDeploy.js +0 -5
  148. package/abstractions/features/hooks/CoreBeforeDeploy.js.map +0 -1
  149. package/abstractions/services/GetPulumiService.d.ts +0 -14
  150. package/abstractions/services/GetPulumiService.js +0 -5
  151. package/abstractions/services/GetPulumiService.js.map +0 -1
  152. package/abstractions/services/IsRemotePulumiBackendService.d.ts +0 -7
  153. package/abstractions/services/IsRemotePulumiBackendService.js +0 -5
  154. package/abstractions/services/IsRemotePulumiBackendService.js.map +0 -1
  155. package/abstractions/services/ListAppLambdaFunctionsService.d.ts +0 -23
  156. package/abstractions/services/ListAppLambdaFunctionsService.js +0 -5
  157. package/abstractions/services/ListAppLambdaFunctionsService.js.map +0 -1
  158. package/abstractions/services/ListDeployedEnvironmentsService.d.ts +0 -12
  159. package/abstractions/services/ListDeployedEnvironmentsService.js +0 -5
  160. package/abstractions/services/ListDeployedEnvironmentsService.js.map +0 -1
  161. package/abstractions/services/ProjectInfoService/GetPulumiVersionService.d.ts +0 -12
  162. package/abstractions/services/ProjectInfoService/GetPulumiVersionService.js +0 -5
  163. package/abstractions/services/ProjectInfoService/GetPulumiVersionService.js.map +0 -1
  164. package/abstractions/services/PulumiExportService.d.ts +0 -13
  165. package/abstractions/services/PulumiExportService.js +0 -6
  166. package/abstractions/services/PulumiExportService.js.map +0 -1
  167. package/abstractions/services/PulumiGetConfigPassphraseService.d.ts +0 -7
  168. package/abstractions/services/PulumiGetConfigPassphraseService.js +0 -5
  169. package/abstractions/services/PulumiGetConfigPassphraseService.js.map +0 -1
  170. package/abstractions/services/PulumiGetSecretsProviderService.d.ts +0 -7
  171. package/abstractions/services/PulumiGetSecretsProviderService.js +0 -5
  172. package/abstractions/services/PulumiGetSecretsProviderService.js.map +0 -1
  173. package/abstractions/services/PulumiGetStackOutputService.d.ts +0 -13
  174. package/abstractions/services/PulumiGetStackOutputService.js +0 -5
  175. package/abstractions/services/PulumiGetStackOutputService.js.map +0 -1
  176. package/abstractions/services/PulumiImportService.d.ts +0 -8
  177. package/abstractions/services/PulumiImportService.js +0 -5
  178. package/abstractions/services/PulumiImportService.js.map +0 -1
  179. package/abstractions/services/PulumiLoginService.d.ts +0 -16
  180. package/abstractions/services/PulumiLoginService.js +0 -5
  181. package/abstractions/services/PulumiLoginService.js.map +0 -1
  182. package/abstractions/services/PulumiSelectStackService.d.ts +0 -10
  183. package/abstractions/services/PulumiSelectStackService.js +0 -5
  184. package/abstractions/services/PulumiSelectStackService.js.map +0 -1
  185. package/abstractions/services/StackOutputCacheService.d.ts +0 -10
  186. package/abstractions/services/StackOutputCacheService.js +0 -5
  187. package/abstractions/services/StackOutputCacheService.js.map +0 -1
  188. package/abstractions/services/WatchedLambdaFunctionsService.d.ts +0 -28
  189. package/abstractions/services/WatchedLambdaFunctionsService.js +0 -5
  190. package/abstractions/services/WatchedLambdaFunctionsService.js.map +0 -1
  191. package/decorators/DeployAppClearWatchedLambdaFunctions.d.ts +0 -17
  192. package/decorators/DeployAppClearWatchedLambdaFunctions.js +0 -32
  193. package/decorators/DeployAppClearWatchedLambdaFunctions.js.map +0 -1
  194. package/decorators/DeployAppRefreshStackOutputCache.d.ts +0 -17
  195. package/decorators/DeployAppRefreshStackOutputCache.js +0 -32
  196. package/decorators/DeployAppRefreshStackOutputCache.js.map +0 -1
  197. package/decorators/DeployAppWithHooks.d.ts +0 -17
  198. package/decorators/DeployAppWithHooks.js +0 -58
  199. package/decorators/DeployAppWithHooks.js.map +0 -1
  200. package/decorators/DeployAppWithWatchedLambdaReplacement.d.ts +0 -17
  201. package/decorators/DeployAppWithWatchedLambdaReplacement.js +0 -39
  202. package/decorators/DeployAppWithWatchedLambdaReplacement.js.map +0 -1
  203. package/decorators/DestroyAppClearStackOutputCache.d.ts +0 -25
  204. package/decorators/DestroyAppClearStackOutputCache.js +0 -29
  205. package/decorators/DestroyAppClearStackOutputCache.js.map +0 -1
  206. package/decorators/GetPulumiServiceWithDownloadInfo.d.ts +0 -11
  207. package/decorators/GetPulumiServiceWithDownloadInfo.js +0 -27
  208. package/decorators/GetPulumiServiceWithDownloadInfo.js.map +0 -1
  209. package/extensions/hooks/AdminAfterDeploy.d.ts +0 -4
  210. package/extensions/hooks/AdminAfterDeploy.js +0 -23
  211. package/extensions/hooks/AdminAfterDeploy.js.map +0 -1
  212. package/extensions/hooks/AdminBeforeDeploy.d.ts +0 -4
  213. package/extensions/hooks/AdminBeforeDeploy.js +0 -23
  214. package/extensions/hooks/AdminBeforeDeploy.js.map +0 -1
  215. package/extensions/hooks/AfterDeploy.d.ts +0 -4
  216. package/extensions/hooks/AfterDeploy.js +0 -22
  217. package/extensions/hooks/AfterDeploy.js.map +0 -1
  218. package/extensions/hooks/ApiAfterDeploy.d.ts +0 -4
  219. package/extensions/hooks/ApiAfterDeploy.js +0 -23
  220. package/extensions/hooks/ApiAfterDeploy.js.map +0 -1
  221. package/extensions/hooks/ApiBeforeDeploy.d.ts +0 -4
  222. package/extensions/hooks/ApiBeforeDeploy.js +0 -23
  223. package/extensions/hooks/ApiBeforeDeploy.js.map +0 -1
  224. package/extensions/hooks/BeforeDeploy.d.ts +0 -4
  225. package/extensions/hooks/BeforeDeploy.js +0 -22
  226. package/extensions/hooks/BeforeDeploy.js.map +0 -1
  227. package/extensions/hooks/CoreAfterDeploy.d.ts +0 -4
  228. package/extensions/hooks/CoreAfterDeploy.js +0 -23
  229. package/extensions/hooks/CoreAfterDeploy.js.map +0 -1
  230. package/extensions/hooks/CoreBeforeDeploy.d.ts +0 -4
  231. package/extensions/hooks/CoreBeforeDeploy.js +0 -23
  232. package/extensions/hooks/CoreBeforeDeploy.js.map +0 -1
  233. package/extensions/pulumi/ProductionEnvironments.js.map +0 -1
  234. package/extensions/pulumi/PulumiResourceNamePrefix.d.ts +0 -4
  235. package/extensions/pulumi/PulumiResourceNamePrefix.js +0 -16
  236. package/extensions/pulumi/PulumiResourceNamePrefix.js.map +0 -1
  237. package/extensions/pulumi/index.d.ts +0 -2
  238. package/extensions/pulumi/index.js +0 -2
  239. package/features/DeployApp/DeployApp.d.ts +0 -14
  240. package/features/DeployApp/DeployApp.js +0 -86
  241. package/features/DeployApp/DeployApp.js.map +0 -1
  242. package/features/DeployApp/index.d.ts +0 -1
  243. package/features/DeployApp/index.js +0 -1
  244. package/features/DestroyApp/DestroyApp.d.ts +0 -14
  245. package/features/DestroyApp/DestroyApp.js +0 -66
  246. package/features/DestroyApp/DestroyApp.js.map +0 -1
  247. package/features/DestroyApp/index.d.ts +0 -1
  248. package/features/DestroyApp/index.js +0 -1
  249. package/features/ExportStack/ExportStack.d.ts +0 -9
  250. package/features/ExportStack/ExportStack.js +0 -26
  251. package/features/ExportStack/ExportStack.js.map +0 -1
  252. package/features/ExportStack/index.d.ts +0 -1
  253. package/features/ExportStack/index.js +0 -1
  254. package/features/GetAppOutput/GetAppOutput.d.ts +0 -12
  255. package/features/GetAppOutput/GetAppOutput.js +0 -51
  256. package/features/GetAppOutput/GetAppOutput.js.map +0 -1
  257. package/features/GetAppOutput/index.d.ts +0 -1
  258. package/features/GetAppOutput/index.js +0 -1
  259. package/features/GetAppStackOutput/GetAppStackOutput.d.ts +0 -10
  260. package/features/GetAppStackOutput/GetAppStackOutput.js +0 -26
  261. package/features/GetAppStackOutput/GetAppStackOutput.js.map +0 -1
  262. package/features/GetAppStackOutput/index.d.ts +0 -1
  263. package/features/GetAppStackOutput/index.js +0 -1
  264. package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.d.ts +0 -7
  265. package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js +0 -25
  266. package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js.map +0 -1
  267. package/features/GetPulumiResourceNamePrefix/index.d.ts +0 -1
  268. package/features/GetPulumiResourceNamePrefix/index.js +0 -1
  269. package/features/RefreshApp/RefreshApp.d.ts +0 -13
  270. package/features/RefreshApp/RefreshApp.js +0 -64
  271. package/features/RefreshApp/RefreshApp.js.map +0 -1
  272. package/features/RefreshApp/index.d.ts +0 -1
  273. package/features/RefreshApp/index.js +0 -1
  274. package/features/RunPulumiCommand/RunPulumiCommand.d.ts +0 -13
  275. package/features/RunPulumiCommand/RunPulumiCommand.js +0 -61
  276. package/features/RunPulumiCommand/RunPulumiCommand.js.map +0 -1
  277. package/features/RunPulumiCommand/index.d.ts +0 -1
  278. package/features/RunPulumiCommand/index.js +0 -1
  279. package/features/Watch/handler/handler.zip +0 -0
  280. package/features/Watch/initInvocationForwarding.d.ts +0 -9
  281. package/features/Watch/initInvocationForwarding.js +0 -91
  282. package/features/Watch/initInvocationForwarding.js.map +0 -1
  283. package/features/Watch/localInvocationWorker.d.ts +0 -1
  284. package/features/Watch/localInvocationWorker.js +0 -31
  285. package/features/Watch/localInvocationWorker.js.map +0 -1
  286. package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.d.ts +0 -7
  287. package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.js +0 -25
  288. package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.js.map +0 -1
  289. package/features/hooks/AdminAfterDeploy/index.d.ts +0 -1
  290. package/features/hooks/AdminAfterDeploy/index.js +0 -1
  291. package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.d.ts +0 -7
  292. package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js +0 -25
  293. package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js.map +0 -1
  294. package/features/hooks/AdminBeforeDeploy/index.d.ts +0 -1
  295. package/features/hooks/AdminBeforeDeploy/index.js +0 -1
  296. package/features/hooks/AfterDeploy/AfterDeploy.d.ts +0 -7
  297. package/features/hooks/AfterDeploy/AfterDeploy.js +0 -25
  298. package/features/hooks/AfterDeploy/AfterDeploy.js.map +0 -1
  299. package/features/hooks/AfterDeploy/index.d.ts +0 -1
  300. package/features/hooks/AfterDeploy/index.js +0 -1
  301. package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.d.ts +0 -7
  302. package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.js +0 -25
  303. package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.js.map +0 -1
  304. package/features/hooks/ApiAfterDeploy/index.d.ts +0 -1
  305. package/features/hooks/ApiAfterDeploy/index.js +0 -1
  306. package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.d.ts +0 -7
  307. package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js +0 -25
  308. package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js.map +0 -1
  309. package/features/hooks/ApiBeforeDeploy/index.d.ts +0 -1
  310. package/features/hooks/ApiBeforeDeploy/index.js +0 -1
  311. package/features/hooks/BeforeDeploy/BeforeDeploy.d.ts +0 -7
  312. package/features/hooks/BeforeDeploy/BeforeDeploy.js +0 -25
  313. package/features/hooks/BeforeDeploy/BeforeDeploy.js.map +0 -1
  314. package/features/hooks/BeforeDeploy/index.d.ts +0 -1
  315. package/features/hooks/BeforeDeploy/index.js +0 -1
  316. package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.d.ts +0 -7
  317. package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.js +0 -25
  318. package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.js.map +0 -1
  319. package/features/hooks/CoreAfterDeploy/index.d.ts +0 -1
  320. package/features/hooks/CoreAfterDeploy/index.js +0 -1
  321. package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.d.ts +0 -7
  322. package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js +0 -25
  323. package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js.map +0 -1
  324. package/features/hooks/CoreBeforeDeploy/index.d.ts +0 -1
  325. package/features/hooks/CoreBeforeDeploy/index.js +0 -1
  326. package/services/InitProjectSdkService/registerPulumiExtensions.d.ts +0 -4
  327. package/services/InitProjectSdkService/registerPulumiExtensions.js +0 -16
  328. package/services/InitProjectSdkService/registerPulumiExtensions.js.map +0 -1
  329. package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.d.ts +0 -14
  330. package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js +0 -15
  331. package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js.map +0 -1
  332. package/services/IsRemotePulumiBackendService/index.d.ts +0 -1
  333. package/services/IsRemotePulumiBackendService/index.js +0 -1
  334. package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.d.ts +0 -18
  335. package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js +0 -61
  336. package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js.map +0 -1
  337. package/services/ListAppLambdaFunctionsService/index.d.ts +0 -1
  338. package/services/ListAppLambdaFunctionsService/index.js +0 -1
  339. package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.d.ts +0 -7
  340. package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js +0 -30
  341. package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js.map +0 -1
  342. package/services/ListDeployedEnvironmentsService/index.d.ts +0 -1
  343. package/services/ListDeployedEnvironmentsService/index.js +0 -1
  344. package/services/ProjectInfoService/GetPulumiVersionService.d.ts +0 -5
  345. package/services/ProjectInfoService/GetPulumiVersionService.js +0 -46
  346. package/services/ProjectInfoService/GetPulumiVersionService.js.map +0 -1
  347. package/services/PulumiExportService/PulumiExportService.d.ts +0 -13
  348. package/services/PulumiExportService/PulumiExportService.js +0 -50
  349. package/services/PulumiExportService/PulumiExportService.js.map +0 -1
  350. package/services/PulumiExportService/index.d.ts +0 -1
  351. package/services/PulumiExportService/index.js +0 -1
  352. package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.d.ts +0 -5
  353. package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js +0 -15
  354. package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js.map +0 -1
  355. package/services/PulumiGetConfigPassphraseService/index.d.ts +0 -1
  356. package/services/PulumiGetConfigPassphraseService/index.js +0 -1
  357. package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.d.ts +0 -5
  358. package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js +0 -15
  359. package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js.map +0 -1
  360. package/services/PulumiGetSecretsProviderService/index.d.ts +0 -1
  361. package/services/PulumiGetSecretsProviderService/index.js +0 -1
  362. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.d.ts +0 -12
  363. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js +0 -64
  364. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +0 -1
  365. package/services/PulumiGetStackOutputService/index.d.ts +0 -1
  366. package/services/PulumiGetStackOutputService/index.js +0 -1
  367. package/services/PulumiGetStackOutputService/mapStackOutput.d.ts +0 -1
  368. package/services/PulumiGetStackOutputService/mapStackOutput.js +0 -22
  369. package/services/PulumiGetStackOutputService/mapStackOutput.js.map +0 -1
  370. package/services/PulumiImportService/PulumiImportService.d.ts +0 -10
  371. package/services/PulumiImportService/PulumiImportService.js +0 -60
  372. package/services/PulumiImportService/PulumiImportService.js.map +0 -1
  373. package/services/PulumiImportService/index.d.ts +0 -1
  374. package/services/PulumiImportService/index.js +0 -1
  375. package/services/PulumiLoginService/PulumiLoginService.d.ts +0 -10
  376. package/services/PulumiLoginService/PulumiLoginService.js +0 -54
  377. package/services/PulumiLoginService/PulumiLoginService.js.map +0 -1
  378. package/services/PulumiLoginService/index.d.ts +0 -1
  379. package/services/PulumiLoginService/index.js +0 -1
  380. package/services/PulumiSelectStackService/PulumiSelectStackService.d.ts +0 -15
  381. package/services/PulumiSelectStackService/PulumiSelectStackService.js +0 -102
  382. package/services/PulumiSelectStackService/PulumiSelectStackService.js.map +0 -1
  383. package/services/PulumiSelectStackService/index.d.ts +0 -1
  384. package/services/PulumiSelectStackService/index.js +0 -1
  385. package/services/StackOutputCacheService/StackOutputCacheService.d.ts +0 -18
  386. package/services/StackOutputCacheService/StackOutputCacheService.js +0 -89
  387. package/services/StackOutputCacheService/StackOutputCacheService.js.map +0 -1
  388. package/services/StackOutputCacheService/index.d.ts +0 -1
  389. package/services/StackOutputCacheService/index.js +0 -1
  390. package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.d.ts +0 -13
  391. package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js +0 -54
  392. package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js.map +0 -1
  393. package/services/WatchedLambdaFunctionsService/index.d.ts +0 -1
  394. package/services/WatchedLambdaFunctionsService/index.js +0 -1
  395. package/utils/env/withPulumiConfigPassphrase.d.ts +0 -1
  396. package/utils/env/withPulumiConfigPassphrase.js +0 -7
  397. package/utils/env/withPulumiConfigPassphrase.js.map +0 -1
  398. /package/extensions/{pulumi/ProductionEnvironments.d.ts → ProductionEnvironments.d.ts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"extensions/pulumi/ProductionEnvironments.js","sources":["../../../src/extensions/pulumi/ProductionEnvironments.ts"],"sourcesContent":["import React, { useEffect } from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\nimport { useRegisterProductionEnvironments } from \"~/services/GetProjectConfigService/ProductionEnvironmentsContext.js\";\n\ninterface RegistrarProps {\n environments: string[];\n}\n\nconst Registrar: React.FC<RegistrarProps> = ({ environments }) => {\n const setProdEnvs = useRegisterProductionEnvironments();\n useEffect(() => {\n if (setProdEnvs) {\n setProdEnvs(environments);\n }\n }, []);\n return null;\n};\n\nexport const ProductionEnvironments = defineExtension({\n type: \"Infra/ProductionEnvironments\",\n tags: { runtimeContext: \"project\", hosting: \"aws\" },\n description: \"Provide names for environments that are considered production environments.\",\n paramsSchema: z.object({\n environments: z.array(\n z.string().superRefine((value, ctx) => {\n if (!value) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: \"Environment name cannot be empty.\"\n });\n return;\n }\n\n // Must allow only letters, numbers, dashes, and underscores.\n if (!/^[a-zA-Z0-9-_]+$/.test(value)) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message:\n \"Environment name can only contain letters, numbers, dashes, and underscores.\"\n });\n }\n })\n )\n }),\n render: props => React.createElement(Registrar, { environments: props.environments })\n});\n"],"names":["Registrar","environments","setProdEnvs","useRegisterProductionEnvironments","useEffect","ProductionEnvironments","defineExtension","z","value","ctx","props","React"],"mappings":";;;;AASA,MAAMA,YAAsC,CAAC,EAAEC,YAAY,EAAE;IACzD,MAAMC,cAAcC;IACpBC,UAAU;QACN,IAAIF,aACAA,YAAYD;IAEpB,GAAG,EAAE;IACL,OAAO;AACX;AAEO,MAAMI,yBAAyBC,gBAAgB;IAClD,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,SAAS;IAAM;IAClD,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,cAAcA,EAAE,KAAK,CACjBA,EAAE,MAAM,GAAG,WAAW,CAAC,CAACC,OAAOC;YAC3B,IAAI,CAACD,OAAO,YACRC,IAAI,QAAQ,CAAC;gBACT,MAAMF,EAAE,YAAY,CAAC,MAAM;gBAC3B,SAAS;YACb;YAKJ,IAAI,CAAC,mBAAmB,IAAI,CAACC,QACzBC,IAAI,QAAQ,CAAC;gBACT,MAAMF,EAAE,YAAY,CAAC,MAAM;gBAC3B,SACI;YACR;QAER;IAER;IACA,QAAQG,CAAAA,QAASC,MAAAA,aAAmB,CAACX,WAAW;YAAE,cAAcU,MAAM,YAAY;QAAC;AACvF"}
@@ -1,4 +0,0 @@
1
- import { z } from "zod";
2
- export declare const PulumiResourceNamePrefix: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- prefix: z.ZodString;
4
- }, z.core.$strip>>;
@@ -1,16 +0,0 @@
1
- import { z } from "zod";
2
- import { defineExtension } from "../../defineExtension/index.js";
3
- const PulumiResourceNamePrefix = defineExtension({
4
- type: "Infra/PulumiResourceNamePrefix",
5
- tags: {
6
- runtimeContext: "project",
7
- hosting: "aws"
8
- },
9
- description: 'Adjust the prefix for Pulumi resource names (default: "wby-").',
10
- paramsSchema: z.object({
11
- prefix: z.string()
12
- })
13
- });
14
- export { PulumiResourceNamePrefix };
15
-
16
- //# sourceMappingURL=PulumiResourceNamePrefix.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extensions/pulumi/PulumiResourceNamePrefix.js","sources":["../../../src/extensions/pulumi/PulumiResourceNamePrefix.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\n\nexport const PulumiResourceNamePrefix = defineExtension({\n type: \"Infra/PulumiResourceNamePrefix\",\n tags: { runtimeContext: \"project\", hosting: \"aws\" },\n description: 'Adjust the prefix for Pulumi resource names (default: \"wby-\").',\n paramsSchema: z.object({\n prefix: z.string()\n })\n});\n"],"names":["PulumiResourceNamePrefix","defineExtension","z"],"mappings":";;AAGO,MAAMA,2BAA2BC,gBAAgB;IACpD,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,SAAS;IAAM;IAClD,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,QAAQA,EAAE,MAAM;IACpB;AACJ"}
@@ -1,2 +0,0 @@
1
- export * from "./PulumiResourceNamePrefix.js";
2
- export * from "./ProductionEnvironments.js";
@@ -1,2 +0,0 @@
1
- export * from "./PulumiResourceNamePrefix.js";
2
- export * from "./ProductionEnvironments.js";
@@ -1,14 +0,0 @@
1
- import { DeployApp, BuildAppWorkspaceService, GetApp, GetProject, GetPulumiService, LoggerService, ProjectSdkParamsService, PulumiGetSecretsProviderService, PulumiSelectStackService } from "../../abstractions/index.js";
2
- export declare class DefaultDeployApp implements DeployApp.Interface {
3
- private getApp;
4
- private buildAppWorkspaceService;
5
- private getProject;
6
- private pulumiSelectStackService;
7
- private getPulumiService;
8
- private pulumiGetSecretsProviderService;
9
- private logger;
10
- private projectSdkParamsService;
11
- constructor(getApp: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, getProject: GetProject.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface, pulumiGetSecretsProviderService: PulumiGetSecretsProviderService.Interface, logger: LoggerService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
12
- execute(params: DeployApp.Params): Promise<void>;
13
- }
14
- export declare const deployApp: import("@webiny/di").Implementation<typeof DefaultDeployApp>;
@@ -1,86 +0,0 @@
1
- import { createImplementation } from "@webiny/di";
2
- import { BuildAppWorkspaceService, DeployApp, GetApp, GetProject, GetPulumiService, LoggerService, ProjectSdkParamsService, PulumiGetSecretsProviderService, PulumiSelectStackService } from "../../abstractions/index.js";
3
- import { createEnvConfiguration, withEnv, withEnvVariant, withProjectName, withPulumiConfigPassphrase, withRegion } from "../../utils/env/index.js";
4
- class DefaultDeployApp {
5
- constructor(getApp, buildAppWorkspaceService, getProject, pulumiSelectStackService, getPulumiService, pulumiGetSecretsProviderService, logger, projectSdkParamsService){
6
- this.getApp = getApp;
7
- this.buildAppWorkspaceService = buildAppWorkspaceService;
8
- this.getProject = getProject;
9
- this.pulumiSelectStackService = pulumiSelectStackService;
10
- this.getPulumiService = getPulumiService;
11
- this.pulumiGetSecretsProviderService = pulumiGetSecretsProviderService;
12
- this.logger = logger;
13
- this.projectSdkParamsService = projectSdkParamsService;
14
- }
15
- async execute(params) {
16
- await this.buildAppWorkspaceService.execute(params.app);
17
- const app = this.getApp.execute(params.app);
18
- await this.pulumiSelectStackService.execute(app);
19
- const pulumi = await this.getPulumiService.execute({
20
- app
21
- });
22
- const project = await this.getProject.execute();
23
- const sdkParams = this.projectSdkParamsService.get();
24
- const env = createEnvConfiguration({
25
- configurations: [
26
- withRegion({
27
- region: sdkParams.region
28
- }),
29
- withEnv({
30
- env: sdkParams.env
31
- }),
32
- withEnvVariant({
33
- variant: sdkParams.variant
34
- }),
35
- withProjectName({
36
- project
37
- }),
38
- withPulumiConfigPassphrase()
39
- ]
40
- });
41
- const secretsProvider = this.pulumiGetSecretsProviderService.execute();
42
- const pulumiProcess = params.preview ? pulumi.run({
43
- command: "preview",
44
- args: {
45
- diff: true,
46
- ...params.pulumiArgs
47
- },
48
- execa: {
49
- env
50
- }
51
- }) : pulumi.run({
52
- command: "up",
53
- args: {
54
- yes: true,
55
- skipPreview: true,
56
- secretsProvider,
57
- ...params.pulumiArgs
58
- },
59
- execa: {
60
- env
61
- }
62
- });
63
- let output = Promise.resolve();
64
- if (params.output) output = params.output(pulumiProcess);
65
- else this.logger.info("No output function provided, skipping output.");
66
- await pulumiProcess;
67
- await output;
68
- }
69
- }
70
- const deployApp = createImplementation({
71
- abstraction: DeployApp,
72
- implementation: DefaultDeployApp,
73
- dependencies: [
74
- GetApp,
75
- BuildAppWorkspaceService,
76
- GetProject,
77
- PulumiSelectStackService,
78
- GetPulumiService,
79
- PulumiGetSecretsProviderService,
80
- LoggerService,
81
- ProjectSdkParamsService
82
- ]
83
- });
84
- export { DefaultDeployApp, deployApp };
85
-
86
- //# sourceMappingURL=DeployApp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"features/DeployApp/DeployApp.js","sources":["../../../src/features/DeployApp/DeployApp.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n DeployApp,\n BuildAppWorkspaceService,\n GetApp,\n GetProject,\n GetPulumiService,\n LoggerService,\n ProjectSdkParamsService,\n PulumiGetSecretsProviderService,\n PulumiSelectStackService\n} from \"~/abstractions/index.js\";\nimport {\n createEnvConfiguration,\n withEnv,\n withEnvVariant,\n withProjectName,\n withPulumiConfigPassphrase,\n withRegion\n} from \"~/utils/env/index.js\";\n\nexport class DefaultDeployApp implements DeployApp.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private getProject: GetProject.Interface,\n private pulumiSelectStackService: PulumiSelectStackService.Interface,\n private getPulumiService: GetPulumiService.Interface,\n private pulumiGetSecretsProviderService: PulumiGetSecretsProviderService.Interface,\n private logger: LoggerService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: DeployApp.Params) {\n await this.buildAppWorkspaceService.execute(params.app);\n\n const app = this.getApp.execute(params.app);\n\n await this.pulumiSelectStackService.execute(app);\n\n // A Pulumi refresh might be executed before the deploy. For example,\n // this is needed if the user run the watch command prior to the deploy.\n // await executeRefresh(commandParams);\n\n const pulumi = await this.getPulumiService.execute({ app });\n const project = await this.getProject.execute();\n const sdkParams = this.projectSdkParamsService.get();\n\n const env = createEnvConfiguration({\n configurations: [\n withRegion({ region: sdkParams.region }),\n withEnv({ env: sdkParams.env }),\n withEnvVariant({ variant: sdkParams.variant }),\n withProjectName({ project }),\n withPulumiConfigPassphrase()\n ]\n });\n\n const secretsProvider = this.pulumiGetSecretsProviderService.execute();\n\n const pulumiProcess = params.preview\n ? pulumi.run({\n command: \"preview\",\n args: {\n diff: true,\n\n // Preview command does not accept \"--secrets-provider\" argument.\n // secretsProvider: PULUMI_SECRETS_PROVIDER,\n\n ...params.pulumiArgs\n },\n execa: { env }\n })\n : pulumi.run({\n command: \"up\",\n args: {\n yes: true,\n skipPreview: true,\n secretsProvider,\n ...params.pulumiArgs\n },\n execa: { env }\n });\n\n // If custom output function is provided, use it. While doing so, we must wait\n // for it to resolve before finishing the build process.\n let output = Promise.resolve();\n if (params.output) {\n output = params.output(pulumiProcess);\n } else {\n this.logger.info(`No output function provided, skipping output.`);\n }\n\n // Promise is returned so that the caller can await it if needed.\n await pulumiProcess;\n await output;\n }\n}\n\nexport const deployApp = createImplementation({\n abstraction: DeployApp,\n implementation: DefaultDeployApp,\n dependencies: [\n GetApp,\n BuildAppWorkspaceService,\n GetProject,\n PulumiSelectStackService,\n GetPulumiService,\n PulumiGetSecretsProviderService,\n LoggerService,\n ProjectSdkParamsService\n ]\n});\n"],"names":["DefaultDeployApp","getApp","buildAppWorkspaceService","getProject","pulumiSelectStackService","getPulumiService","pulumiGetSecretsProviderService","logger","projectSdkParamsService","params","app","pulumi","project","sdkParams","env","createEnvConfiguration","withRegion","withEnv","withEnvVariant","withProjectName","withPulumiConfigPassphrase","secretsProvider","pulumiProcess","output","Promise","deployApp","createImplementation","DeployApp","GetApp","BuildAppWorkspaceService","GetProject","PulumiSelectStackService","GetPulumiService","PulumiGetSecretsProviderService","LoggerService","ProjectSdkParamsService"],"mappings":";;;AAqBO,MAAMA;IACT,YACYC,MAAwB,EACxBC,wBAA4D,EAC5DC,UAAgC,EAChCC,wBAA4D,EAC5DC,gBAA4C,EAC5CC,+BAA0E,EAC1EC,MAA+B,EAC/BC,uBAA0D,CACpE;aARUP,MAAM,GAANA;aACAC,wBAAwB,GAAxBA;aACAC,UAAU,GAAVA;aACAC,wBAAwB,GAAxBA;aACAC,gBAAgB,GAAhBA;aACAC,+BAA+B,GAA/BA;aACAC,MAAM,GAANA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAAwB,EAAE;QACpC,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA,OAAO,GAAG;QAEtD,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAE1C,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACC;QAM5C,MAAMC,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAED;QAAI;QACzD,MAAME,UAAU,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO;QAC7C,MAAMC,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAElD,MAAMC,MAAMC,uBAAuB;YAC/B,gBAAgB;gBACZC,WAAW;oBAAE,QAAQH,UAAU,MAAM;gBAAC;gBACtCI,QAAQ;oBAAE,KAAKJ,UAAU,GAAG;gBAAC;gBAC7BK,eAAe;oBAAE,SAASL,UAAU,OAAO;gBAAC;gBAC5CM,gBAAgB;oBAAEP;gBAAQ;gBAC1BQ;aACH;QACL;QAEA,MAAMC,kBAAkB,IAAI,CAAC,+BAA+B,CAAC,OAAO;QAEpE,MAAMC,gBAAgBb,OAAO,OAAO,GAC9BE,OAAO,GAAG,CAAC;YACP,SAAS;YACT,MAAM;gBACF,MAAM;gBAKN,GAAGF,OAAO,UAAU;YACxB;YACA,OAAO;gBAAEK;YAAI;QACjB,KACAH,OAAO,GAAG,CAAC;YACP,SAAS;YACT,MAAM;gBACF,KAAK;gBACL,aAAa;gBACbU;gBACA,GAAGZ,OAAO,UAAU;YACxB;YACA,OAAO;gBAAEK;YAAI;QACjB;QAIN,IAAIS,SAASC,QAAQ,OAAO;QAC5B,IAAIf,OAAO,MAAM,EACbc,SAASd,OAAO,MAAM,CAACa;aAEvB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;QAIrB,MAAMA;QACN,MAAMC;IACV;AACJ;AAEO,MAAME,YAAYC,qBAAqB;IAC1C,aAAaC;IACb,gBAAgB3B;IAChB,cAAc;QACV4B;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
@@ -1 +0,0 @@
1
- export * from "./DeployApp.js";
@@ -1 +0,0 @@
1
- export * from "./DeployApp.js";
@@ -1,14 +0,0 @@
1
- import { DestroyApp, BuildAppWorkspaceService, GetApp, GetProject, GetPulumiService, ProjectSdkParamsService, PulumiSelectStackService } from "../../abstractions/index.js";
2
- export declare class DefaultDestroyApp implements DestroyApp.Interface {
3
- private getApp;
4
- private buildAppWorkspaceService;
5
- private getProject;
6
- private pulumiSelectStackService;
7
- private getPulumiService;
8
- private projectSdkParamsService;
9
- constructor(getApp: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, getProject: GetProject.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
10
- execute(params: DestroyApp.Params): Promise<{
11
- pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
12
- }>;
13
- }
14
- export declare const destroyApp: import("@webiny/di").Implementation<typeof DefaultDestroyApp>;
@@ -1,66 +0,0 @@
1
- import { createImplementation } from "@webiny/di";
2
- import { BuildAppWorkspaceService, DestroyApp, GetApp, GetProject, GetPulumiService, ProjectSdkParamsService, PulumiSelectStackService } from "../../abstractions/index.js";
3
- import { createEnvConfiguration, withEnv, withEnvVariant, withProjectName, withPulumiConfigPassphrase, withRegion } from "../../utils/env/index.js";
4
- class DefaultDestroyApp {
5
- constructor(getApp, buildAppWorkspaceService, getProject, pulumiSelectStackService, getPulumiService, projectSdkParamsService){
6
- this.getApp = getApp;
7
- this.buildAppWorkspaceService = buildAppWorkspaceService;
8
- this.getProject = getProject;
9
- this.pulumiSelectStackService = pulumiSelectStackService;
10
- this.getPulumiService = getPulumiService;
11
- this.projectSdkParamsService = projectSdkParamsService;
12
- }
13
- async execute(params) {
14
- await this.buildAppWorkspaceService.execute(params.app);
15
- const app = this.getApp.execute(params.app);
16
- await this.pulumiSelectStackService.execute(app);
17
- const pulumi = await this.getPulumiService.execute({
18
- app
19
- });
20
- const project = await this.getProject.execute();
21
- const sdkParams = this.projectSdkParamsService.get();
22
- const env = createEnvConfiguration({
23
- configurations: [
24
- withRegion({
25
- region: sdkParams.region
26
- }),
27
- withEnv({
28
- env: sdkParams.env
29
- }),
30
- withEnvVariant({
31
- variant: sdkParams.variant
32
- }),
33
- withPulumiConfigPassphrase(),
34
- withProjectName({
35
- project
36
- })
37
- ]
38
- });
39
- return {
40
- pulumiProcess: pulumi.run({
41
- command: "destroy",
42
- args: {
43
- yes: true
44
- },
45
- execa: {
46
- env
47
- }
48
- })
49
- };
50
- }
51
- }
52
- const destroyApp = createImplementation({
53
- abstraction: DestroyApp,
54
- implementation: DefaultDestroyApp,
55
- dependencies: [
56
- GetApp,
57
- BuildAppWorkspaceService,
58
- GetProject,
59
- PulumiSelectStackService,
60
- GetPulumiService,
61
- ProjectSdkParamsService
62
- ]
63
- });
64
- export { DefaultDestroyApp, destroyApp };
65
-
66
- //# sourceMappingURL=DestroyApp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"features/DestroyApp/DestroyApp.js","sources":["../../../src/features/DestroyApp/DestroyApp.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n DestroyApp,\n BuildAppWorkspaceService,\n GetApp,\n GetProject,\n GetPulumiService,\n ProjectSdkParamsService,\n PulumiSelectStackService\n} from \"~/abstractions/index.js\";\nimport {\n createEnvConfiguration,\n withEnv,\n withEnvVariant,\n withProjectName,\n withPulumiConfigPassphrase,\n withRegion\n} from \"~/utils/env/index.js\";\n\nexport class DefaultDestroyApp implements DestroyApp.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private getProject: GetProject.Interface,\n private pulumiSelectStackService: PulumiSelectStackService.Interface,\n private getPulumiService: GetPulumiService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: DestroyApp.Params) {\n await this.buildAppWorkspaceService.execute(params.app);\n\n const app = this.getApp.execute(params.app);\n\n await this.pulumiSelectStackService.execute(app);\n\n const pulumi = await this.getPulumiService.execute({ app });\n const project = await this.getProject.execute();\n const sdkParams = this.projectSdkParamsService.get();\n\n const env = createEnvConfiguration({\n configurations: [\n withRegion({ region: sdkParams.region }),\n withEnv({ env: sdkParams.env }),\n withEnvVariant({ variant: sdkParams.variant }),\n withPulumiConfigPassphrase(),\n withProjectName({ project })\n ]\n });\n\n return {\n pulumiProcess: pulumi.run({\n command: \"destroy\",\n args: {\n yes: true\n },\n execa: { env }\n })\n };\n }\n}\n\nexport const destroyApp = createImplementation({\n abstraction: DestroyApp,\n implementation: DefaultDestroyApp,\n dependencies: [\n GetApp,\n BuildAppWorkspaceService,\n GetProject,\n PulumiSelectStackService,\n GetPulumiService,\n ProjectSdkParamsService\n ]\n});\n"],"names":["DefaultDestroyApp","getApp","buildAppWorkspaceService","getProject","pulumiSelectStackService","getPulumiService","projectSdkParamsService","params","app","pulumi","project","sdkParams","env","createEnvConfiguration","withRegion","withEnv","withEnvVariant","withPulumiConfigPassphrase","withProjectName","destroyApp","createImplementation","DestroyApp","GetApp","BuildAppWorkspaceService","GetProject","PulumiSelectStackService","GetPulumiService","ProjectSdkParamsService"],"mappings":";;;AAmBO,MAAMA;IACT,YACYC,MAAwB,EACxBC,wBAA4D,EAC5DC,UAAgC,EAChCC,wBAA4D,EAC5DC,gBAA4C,EAC5CC,uBAA0D,CACpE;aANUL,MAAM,GAANA;aACAC,wBAAwB,GAAxBA;aACAC,UAAU,GAAVA;aACAC,wBAAwB,GAAxBA;aACAC,gBAAgB,GAAhBA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAAyB,EAAE;QACrC,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA,OAAO,GAAG;QAEtD,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAE1C,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACC;QAE5C,MAAMC,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAED;QAAI;QACzD,MAAME,UAAU,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO;QAC7C,MAAMC,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAElD,MAAMC,MAAMC,uBAAuB;YAC/B,gBAAgB;gBACZC,WAAW;oBAAE,QAAQH,UAAU,MAAM;gBAAC;gBACtCI,QAAQ;oBAAE,KAAKJ,UAAU,GAAG;gBAAC;gBAC7BK,eAAe;oBAAE,SAASL,UAAU,OAAO;gBAAC;gBAC5CM;gBACAC,gBAAgB;oBAAER;gBAAQ;aAC7B;QACL;QAEA,OAAO;YACH,eAAeD,OAAO,GAAG,CAAC;gBACtB,SAAS;gBACT,MAAM;oBACF,KAAK;gBACT;gBACA,OAAO;oBAAEG;gBAAI;YACjB;QACJ;IACJ;AACJ;AAEO,MAAMO,aAAaC,qBAAqB;IAC3C,aAAaC;IACb,gBAAgBrB;IAChB,cAAc;QACVsB;QACAC;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
@@ -1 +0,0 @@
1
- export * from "./DestroyApp.js";
@@ -1 +0,0 @@
1
- export * from "./DestroyApp.js";
@@ -1,9 +0,0 @@
1
- import { BuildAppWorkspaceService, GetApp, ExportStack, PulumiExportService } from "../../abstractions/index.js";
2
- export declare class DefaultExportStack implements ExportStack.Interface {
3
- private getApp;
4
- private buildAppWorkspaceService;
5
- private pulumiExportService;
6
- constructor(getApp: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, pulumiExportService: PulumiExportService.Interface);
7
- execute<TExport extends Record<string, any> = Record<string, string>>(params: ExportStack.Params): Promise<TExport | null>;
8
- }
9
- export declare const exportStack: import("@webiny/di").Implementation<typeof DefaultExportStack>;
@@ -1,26 +0,0 @@
1
- import { createImplementation } from "@webiny/di";
2
- import { BuildAppWorkspaceService, ExportStack, GetApp, PulumiExportService } from "../../abstractions/index.js";
3
- class DefaultExportStack {
4
- constructor(getApp, buildAppWorkspaceService, pulumiExportService){
5
- this.getApp = getApp;
6
- this.buildAppWorkspaceService = buildAppWorkspaceService;
7
- this.pulumiExportService = pulumiExportService;
8
- }
9
- async execute(params) {
10
- await this.buildAppWorkspaceService.execute(params.app);
11
- const app = this.getApp.execute(params.app);
12
- return this.pulumiExportService.execute(app);
13
- }
14
- }
15
- const exportStack = createImplementation({
16
- abstraction: ExportStack,
17
- implementation: DefaultExportStack,
18
- dependencies: [
19
- GetApp,
20
- BuildAppWorkspaceService,
21
- PulumiExportService
22
- ]
23
- });
24
- export { DefaultExportStack, exportStack };
25
-
26
- //# sourceMappingURL=ExportStack.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"features/ExportStack/ExportStack.js","sources":["../../../src/features/ExportStack/ExportStack.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n BuildAppWorkspaceService,\n GetApp,\n ExportStack,\n PulumiExportService\n} from \"~/abstractions/index.js\";\n\nexport class DefaultExportStack implements ExportStack.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private pulumiExportService: PulumiExportService.Interface\n ) {}\n\n async execute<TExport extends Record<string, any> = Record<string, string>>(\n params: ExportStack.Params\n ) {\n await this.buildAppWorkspaceService.execute(params.app);\n\n const app = this.getApp.execute(params.app);\n return this.pulumiExportService.execute<TExport>(app);\n }\n}\n\nexport const exportStack = createImplementation({\n abstraction: ExportStack,\n implementation: DefaultExportStack,\n dependencies: [GetApp, BuildAppWorkspaceService, PulumiExportService]\n});\n"],"names":["DefaultExportStack","getApp","buildAppWorkspaceService","pulumiExportService","params","app","exportStack","createImplementation","ExportStack","GetApp","BuildAppWorkspaceService","PulumiExportService"],"mappings":";;AAQO,MAAMA;IACT,YACYC,MAAwB,EACxBC,wBAA4D,EAC5DC,mBAAkD,CAC5D;aAHUF,MAAM,GAANA;aACAC,wBAAwB,GAAxBA;aACAC,mBAAmB,GAAnBA;IACT;IAEH,MAAM,QACFC,MAA0B,EAC5B;QACE,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA,OAAO,GAAG;QAEtD,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAC1C,OAAO,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAUC;IACrD;AACJ;AAEO,MAAMC,cAAcC,qBAAqB;IAC5C,aAAaC;IACb,gBAAgBR;IAChB,cAAc;QAACS;QAAQC;QAA0BC;KAAoB;AACzE"}
@@ -1 +0,0 @@
1
- export * from "./ExportStack.js";
@@ -1 +0,0 @@
1
- export * from "./ExportStack.js";
@@ -1,12 +0,0 @@
1
- import { BuildAppWorkspaceService, GetApp, GetAppOutput, GetPulumiService, PulumiSelectStackService } from "../../abstractions/index.js";
2
- export declare class DefaultGetAppOutput implements GetAppOutput.Interface {
3
- private getApp;
4
- private buildAppWorkspaceService;
5
- private pulumiSelectStackService;
6
- private getPulumiService;
7
- constructor(getApp: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface);
8
- execute(params: GetAppOutput.Params): Promise<{
9
- pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
10
- }>;
11
- }
12
- export declare const getAppOutput: import("@webiny/di").Implementation<typeof DefaultGetAppOutput>;
@@ -1,51 +0,0 @@
1
- import { createImplementation } from "@webiny/di";
2
- import { BuildAppWorkspaceService, GetApp, GetAppOutput, GetPulumiService, PulumiSelectStackService } from "../../abstractions/index.js";
3
- import { createEnvConfiguration, withPulumiConfigPassphrase } from "../../utils/env/index.js";
4
- class DefaultGetAppOutput {
5
- constructor(getApp, buildAppWorkspaceService, pulumiSelectStackService, getPulumiService){
6
- this.getApp = getApp;
7
- this.buildAppWorkspaceService = buildAppWorkspaceService;
8
- this.pulumiSelectStackService = pulumiSelectStackService;
9
- this.getPulumiService = getPulumiService;
10
- }
11
- async execute(params) {
12
- await this.buildAppWorkspaceService.execute(params.app);
13
- const app = this.getApp.execute(params.app);
14
- await this.pulumiSelectStackService.execute(app);
15
- const pulumi = await this.getPulumiService.execute({
16
- app
17
- });
18
- const env = createEnvConfiguration({
19
- configurations: [
20
- withPulumiConfigPassphrase()
21
- ]
22
- });
23
- return {
24
- pulumiProcess: pulumi.run({
25
- command: [
26
- "stack",
27
- "output"
28
- ],
29
- args: {
30
- json: params.json || false
31
- },
32
- execa: {
33
- env
34
- }
35
- })
36
- };
37
- }
38
- }
39
- const getAppOutput = createImplementation({
40
- abstraction: GetAppOutput,
41
- implementation: DefaultGetAppOutput,
42
- dependencies: [
43
- GetApp,
44
- BuildAppWorkspaceService,
45
- PulumiSelectStackService,
46
- GetPulumiService
47
- ]
48
- });
49
- export { DefaultGetAppOutput, getAppOutput };
50
-
51
- //# sourceMappingURL=GetAppOutput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"features/GetAppOutput/GetAppOutput.js","sources":["../../../src/features/GetAppOutput/GetAppOutput.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n BuildAppWorkspaceService,\n GetApp,\n GetAppOutput,\n GetPulumiService,\n PulumiSelectStackService\n} from \"~/abstractions/index.js\";\nimport { createEnvConfiguration, withPulumiConfigPassphrase } from \"~/utils/env/index.js\";\n\nexport class DefaultGetAppOutput implements GetAppOutput.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private pulumiSelectStackService: PulumiSelectStackService.Interface,\n private getPulumiService: GetPulumiService.Interface\n ) {}\n\n async execute(params: GetAppOutput.Params) {\n await this.buildAppWorkspaceService.execute(params.app);\n\n const app = this.getApp.execute(params.app);\n\n await this.pulumiSelectStackService.execute(app);\n\n const pulumi = await this.getPulumiService.execute({ app });\n\n const env = createEnvConfiguration({\n configurations: [withPulumiConfigPassphrase()]\n });\n\n return {\n pulumiProcess: pulumi.run({\n command: [\"stack\", \"output\"],\n args: {\n json: params.json || false\n },\n execa: { env }\n })\n };\n }\n}\n\nexport const getAppOutput = createImplementation({\n abstraction: GetAppOutput,\n implementation: DefaultGetAppOutput,\n dependencies: [GetApp, BuildAppWorkspaceService, PulumiSelectStackService, GetPulumiService]\n});\n"],"names":["DefaultGetAppOutput","getApp","buildAppWorkspaceService","pulumiSelectStackService","getPulumiService","params","app","pulumi","env","createEnvConfiguration","withPulumiConfigPassphrase","getAppOutput","createImplementation","GetAppOutput","GetApp","BuildAppWorkspaceService","PulumiSelectStackService","GetPulumiService"],"mappings":";;;AAUO,MAAMA;IACT,YACYC,MAAwB,EACxBC,wBAA4D,EAC5DC,wBAA4D,EAC5DC,gBAA4C,CACtD;aAJUH,MAAM,GAANA;aACAC,wBAAwB,GAAxBA;aACAC,wBAAwB,GAAxBA;aACAC,gBAAgB,GAAhBA;IACT;IAEH,MAAM,QAAQC,MAA2B,EAAE;QACvC,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA,OAAO,GAAG;QAEtD,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAE1C,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACC;QAE5C,MAAMC,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAED;QAAI;QAEzD,MAAME,MAAMC,uBAAuB;YAC/B,gBAAgB;gBAACC;aAA6B;QAClD;QAEA,OAAO;YACH,eAAeH,OAAO,GAAG,CAAC;gBACtB,SAAS;oBAAC;oBAAS;iBAAS;gBAC5B,MAAM;oBACF,MAAMF,OAAO,IAAI,IAAI;gBACzB;gBACA,OAAO;oBAAEG;gBAAI;YACjB;QACJ;IACJ;AACJ;AAEO,MAAMG,eAAeC,qBAAqB;IAC7C,aAAaC;IACb,gBAAgBb;IAChB,cAAc;QAACc;QAAQC;QAA0BC;QAA0BC;KAAiB;AAChG"}
@@ -1 +0,0 @@
1
- export * from "./GetAppOutput.js";
@@ -1 +0,0 @@
1
- export * from "./GetAppOutput.js";
@@ -1,10 +0,0 @@
1
- import { BuildAppWorkspaceService, GetApp, GetAppStackOutput, PulumiGetStackOutputService } from "../../abstractions/index.js";
2
- import { type AppName } from "../../abstractions/types.js";
3
- export declare class DefaultGetAppStackOutput implements GetAppStackOutput.Interface {
4
- private getAppService;
5
- private buildAppWorkspaceService;
6
- private pulumiGetStackOutputService;
7
- constructor(getAppService: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, pulumiGetStackOutputService: PulumiGetStackOutputService.Interface);
8
- execute<TOutput extends GetAppStackOutput.StackOutput = GetAppStackOutput.StackOutput>(appName: AppName): Promise<TOutput | null>;
9
- }
10
- export declare const getAppStackOutput: import("@webiny/di").Implementation<typeof DefaultGetAppStackOutput>;
@@ -1,26 +0,0 @@
1
- import { createImplementation } from "@webiny/di";
2
- import { BuildAppWorkspaceService, GetAppService, GetAppStackOutput, PulumiGetStackOutputService } from "../../abstractions/index.js";
3
- class DefaultGetAppStackOutput {
4
- constructor(getAppService, buildAppWorkspaceService, pulumiGetStackOutputService){
5
- this.getAppService = getAppService;
6
- this.buildAppWorkspaceService = buildAppWorkspaceService;
7
- this.pulumiGetStackOutputService = pulumiGetStackOutputService;
8
- }
9
- async execute(appName) {
10
- await this.buildAppWorkspaceService.execute(appName);
11
- const app = this.getAppService.execute(appName);
12
- return this.pulumiGetStackOutputService.execute(app);
13
- }
14
- }
15
- const getAppStackOutput = createImplementation({
16
- abstraction: GetAppStackOutput,
17
- implementation: DefaultGetAppStackOutput,
18
- dependencies: [
19
- GetAppService,
20
- BuildAppWorkspaceService,
21
- PulumiGetStackOutputService
22
- ]
23
- });
24
- export { DefaultGetAppStackOutput, getAppStackOutput };
25
-
26
- //# sourceMappingURL=GetAppStackOutput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"features/GetAppStackOutput/GetAppStackOutput.js","sources":["../../../src/features/GetAppStackOutput/GetAppStackOutput.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n BuildAppWorkspaceService,\n GetApp,\n GetAppService,\n GetAppStackOutput,\n PulumiGetStackOutputService\n} from \"~/abstractions/index.js\";\nimport { type AppName } from \"~/abstractions/types.js\";\n\nexport class DefaultGetAppStackOutput implements GetAppStackOutput.Interface {\n constructor(\n private getAppService: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private pulumiGetStackOutputService: PulumiGetStackOutputService.Interface\n ) {}\n\n async execute<TOutput extends GetAppStackOutput.StackOutput = GetAppStackOutput.StackOutput>(\n appName: AppName\n ) {\n await this.buildAppWorkspaceService.execute(appName);\n\n const app = this.getAppService.execute(appName);\n return this.pulumiGetStackOutputService.execute<TOutput>(app);\n }\n}\n\nexport const getAppStackOutput = createImplementation({\n abstraction: GetAppStackOutput,\n implementation: DefaultGetAppStackOutput,\n dependencies: [GetAppService, BuildAppWorkspaceService, PulumiGetStackOutputService]\n});\n"],"names":["DefaultGetAppStackOutput","getAppService","buildAppWorkspaceService","pulumiGetStackOutputService","appName","app","getAppStackOutput","createImplementation","GetAppStackOutput","GetAppService","BuildAppWorkspaceService","PulumiGetStackOutputService"],"mappings":";;AAUO,MAAMA;IACT,YACYC,aAA+B,EAC/BC,wBAA4D,EAC5DC,2BAAkE,CAC5E;aAHUF,aAAa,GAAbA;aACAC,wBAAwB,GAAxBA;aACAC,2BAA2B,GAA3BA;IACT;IAEH,MAAM,QACFC,OAAgB,EAClB;QACE,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA;QAE5C,MAAMC,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAACD;QACvC,OAAO,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAUC;IAC7D;AACJ;AAEO,MAAMC,oBAAoBC,qBAAqB;IAClD,aAAaC;IACb,gBAAgBR;IAChB,cAAc;QAACS;QAAeC;QAA0BC;KAA4B;AACxF"}
@@ -1 +0,0 @@
1
- export * from "./GetAppStackOutput.js";
@@ -1 +0,0 @@
1
- export * from "./GetAppStackOutput.js";
@@ -1,7 +0,0 @@
1
- import { GetProjectConfigService, GetPulumiResourceNamePrefix } from "../../abstractions/index.js";
2
- export declare class DefaultGetPulumiResourceNamePrefix implements GetPulumiResourceNamePrefix.Interface {
3
- private getProjectConfigService;
4
- constructor(getProjectConfigService: GetProjectConfigService.Interface);
5
- execute(): Promise<string>;
6
- }
7
- export declare const getPulumiResourceNamePrefix: import("@webiny/di").Implementation<typeof DefaultGetPulumiResourceNamePrefix>;
@@ -1,25 +0,0 @@
1
- import { createImplementation } from "@webiny/di";
2
- import { GetProjectConfigService, GetPulumiResourceNamePrefix } from "../../abstractions/index.js";
3
- import { PulumiResourceNamePrefix } from "../../extensions/pulumi/index.js";
4
- class DefaultGetPulumiResourceNamePrefix {
5
- constructor(getProjectConfigService){
6
- this.getProjectConfigService = getProjectConfigService;
7
- }
8
- async execute() {
9
- const projectConfig = await this.getProjectConfigService.execute();
10
- let pulumiResourceNamePrefix = "wby-";
11
- const [pulumiResourceNamePrefixExt] = projectConfig.extensionsByType(PulumiResourceNamePrefix);
12
- if (pulumiResourceNamePrefixExt) pulumiResourceNamePrefix = pulumiResourceNamePrefixExt.params.prefix;
13
- return pulumiResourceNamePrefix;
14
- }
15
- }
16
- const getPulumiResourceNamePrefix = createImplementation({
17
- abstraction: GetPulumiResourceNamePrefix,
18
- implementation: DefaultGetPulumiResourceNamePrefix,
19
- dependencies: [
20
- GetProjectConfigService
21
- ]
22
- });
23
- export { DefaultGetPulumiResourceNamePrefix, getPulumiResourceNamePrefix };
24
-
25
- //# sourceMappingURL=GetPulumiResourceNamePrefix.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js","sources":["../../../src/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { GetProjectConfigService, GetPulumiResourceNamePrefix } from \"~/abstractions/index.js\";\nimport { PulumiResourceNamePrefix as PulumiResourceNamePrefixExt } from \"~/extensions/pulumi/index.js\";\n\nexport class DefaultGetPulumiResourceNamePrefix implements GetPulumiResourceNamePrefix.Interface {\n constructor(private getProjectConfigService: GetProjectConfigService.Interface) {}\n async execute() {\n const projectConfig = await this.getProjectConfigService.execute();\n\n let pulumiResourceNamePrefix = \"wby-\";\n const [pulumiResourceNamePrefixExt] = projectConfig.extensionsByType(\n PulumiResourceNamePrefixExt\n );\n\n if (pulumiResourceNamePrefixExt) {\n pulumiResourceNamePrefix = pulumiResourceNamePrefixExt.params.prefix;\n }\n\n return pulumiResourceNamePrefix;\n }\n}\n\nexport const getPulumiResourceNamePrefix = createImplementation({\n abstraction: GetPulumiResourceNamePrefix,\n implementation: DefaultGetPulumiResourceNamePrefix,\n dependencies: [GetProjectConfigService]\n});\n"],"names":["DefaultGetPulumiResourceNamePrefix","getProjectConfigService","projectConfig","pulumiResourceNamePrefix","pulumiResourceNamePrefixExt","PulumiResourceNamePrefixExt","getPulumiResourceNamePrefix","createImplementation","GetPulumiResourceNamePrefix","GetProjectConfigService"],"mappings":";;;AAIO,MAAMA;IACT,YAAoBC,uBAA0D,CAAE;aAA5DA,uBAAuB,GAAvBA;IAA6D;IACjF,MAAM,UAAU;QACZ,MAAMC,gBAAgB,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO;QAEhE,IAAIC,2BAA2B;QAC/B,MAAM,CAACC,4BAA4B,GAAGF,cAAc,gBAAgB,CAChEG;QAGJ,IAAID,6BACAD,2BAA2BC,4BAA4B,MAAM,CAAC,MAAM;QAGxE,OAAOD;IACX;AACJ;AAEO,MAAMG,8BAA8BC,qBAAqB;IAC5D,aAAaC;IACb,gBAAgBR;IAChB,cAAc;QAACS;KAAwB;AAC3C"}
@@ -1 +0,0 @@
1
- export * from "./GetPulumiResourceNamePrefix.js";
@@ -1 +0,0 @@
1
- export * from "./GetPulumiResourceNamePrefix.js";
@@ -1,13 +0,0 @@
1
- import { RefreshApp, GetApp, GetProject, GetPulumiService, ProjectSdkParamsService, PulumiSelectStackService } from "../../abstractions/index.js";
2
- export declare class DefaultRefreshApp implements RefreshApp.Interface {
3
- private getApp;
4
- private getProject;
5
- private pulumiSelectStackService;
6
- private getPulumiService;
7
- private projectSdkParamsService;
8
- constructor(getApp: GetApp.Interface, getProject: GetProject.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
9
- execute(params: RefreshApp.Params): Promise<{
10
- pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
11
- }>;
12
- }
13
- export declare const refreshApp: import("@webiny/di").Implementation<typeof DefaultRefreshApp>;
@@ -1,64 +0,0 @@
1
- import { createImplementation } from "@webiny/di";
2
- import { GetApp, GetProject, GetPulumiService, ProjectSdkParamsService, PulumiSelectStackService, RefreshApp } from "../../abstractions/index.js";
3
- import { createEnvConfiguration, withEnv, withEnvVariant, withProjectName, withPulumiConfigPassphrase, withRegion } from "../../utils/env/index.js";
4
- class DefaultRefreshApp {
5
- constructor(getApp, getProject, pulumiSelectStackService, getPulumiService, projectSdkParamsService){
6
- this.getApp = getApp;
7
- this.getProject = getProject;
8
- this.pulumiSelectStackService = pulumiSelectStackService;
9
- this.getPulumiService = getPulumiService;
10
- this.projectSdkParamsService = projectSdkParamsService;
11
- }
12
- async execute(params) {
13
- const app = this.getApp.execute(params.app);
14
- const sdkParams = this.projectSdkParamsService.get();
15
- if (!sdkParams.env) throw new Error('Please specify environment, for example "dev".');
16
- await this.pulumiSelectStackService.execute(app);
17
- const pulumi = await this.getPulumiService.execute({
18
- app
19
- });
20
- const project = await this.getProject.execute();
21
- const env = createEnvConfiguration({
22
- configurations: [
23
- withRegion({
24
- region: sdkParams.region
25
- }),
26
- withEnv({
27
- env: sdkParams.env
28
- }),
29
- withEnvVariant({
30
- variant: sdkParams.variant
31
- }),
32
- withPulumiConfigPassphrase(),
33
- withProjectName({
34
- project
35
- })
36
- ]
37
- });
38
- return {
39
- pulumiProcess: pulumi.run({
40
- command: "refresh",
41
- args: {
42
- yes: true
43
- },
44
- execa: {
45
- env
46
- }
47
- })
48
- };
49
- }
50
- }
51
- const refreshApp = createImplementation({
52
- abstraction: RefreshApp,
53
- implementation: DefaultRefreshApp,
54
- dependencies: [
55
- GetApp,
56
- GetProject,
57
- PulumiSelectStackService,
58
- GetPulumiService,
59
- ProjectSdkParamsService
60
- ]
61
- });
62
- export { DefaultRefreshApp, refreshApp };
63
-
64
- //# sourceMappingURL=RefreshApp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"features/RefreshApp/RefreshApp.js","sources":["../../../src/features/RefreshApp/RefreshApp.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n RefreshApp,\n GetApp,\n GetProject,\n GetPulumiService,\n ProjectSdkParamsService,\n PulumiSelectStackService\n} from \"~/abstractions/index.js\";\nimport {\n createEnvConfiguration,\n withEnv,\n withEnvVariant,\n withProjectName,\n withPulumiConfigPassphrase,\n withRegion\n} from \"~/utils/env/index.js\";\n\nexport class DefaultRefreshApp implements RefreshApp.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private getProject: GetProject.Interface,\n private pulumiSelectStackService: PulumiSelectStackService.Interface,\n private getPulumiService: GetPulumiService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: RefreshApp.Params) {\n const app = this.getApp.execute(params.app);\n const sdkParams = this.projectSdkParamsService.get();\n\n if (!sdkParams.env) {\n throw new Error(`Please specify environment, for example \"dev\".`);\n }\n\n await this.pulumiSelectStackService.execute(app);\n\n const pulumi = await this.getPulumiService.execute({ app });\n const project = await this.getProject.execute();\n\n const env = createEnvConfiguration({\n configurations: [\n withRegion({ region: sdkParams.region }),\n withEnv({ env: sdkParams.env }),\n withEnvVariant({ variant: sdkParams.variant }),\n withPulumiConfigPassphrase(),\n withProjectName({ project })\n ]\n });\n\n return {\n pulumiProcess: pulumi.run({\n command: \"refresh\",\n args: {\n yes: true\n },\n execa: { env }\n })\n };\n }\n}\n\nexport const refreshApp = createImplementation({\n abstraction: RefreshApp,\n implementation: DefaultRefreshApp,\n dependencies: [\n GetApp,\n GetProject,\n PulumiSelectStackService,\n GetPulumiService,\n ProjectSdkParamsService\n ]\n});\n"],"names":["DefaultRefreshApp","getApp","getProject","pulumiSelectStackService","getPulumiService","projectSdkParamsService","params","app","sdkParams","Error","pulumi","project","env","createEnvConfiguration","withRegion","withEnv","withEnvVariant","withPulumiConfigPassphrase","withProjectName","refreshApp","createImplementation","RefreshApp","GetApp","GetProject","PulumiSelectStackService","GetPulumiService","ProjectSdkParamsService"],"mappings":";;;AAkBO,MAAMA;IACT,YACYC,MAAwB,EACxBC,UAAgC,EAChCC,wBAA4D,EAC5DC,gBAA4C,EAC5CC,uBAA0D,CACpE;aALUJ,MAAM,GAANA;aACAC,UAAU,GAAVA;aACAC,wBAAwB,GAAxBA;aACAC,gBAAgB,GAAhBA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAAyB,EAAE;QACrC,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAC1C,MAAME,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAElD,IAAI,CAACA,UAAU,GAAG,EACd,MAAM,IAAIC,MAAM;QAGpB,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACF;QAE5C,MAAMG,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAEH;QAAI;QACzD,MAAMI,UAAU,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO;QAE7C,MAAMC,MAAMC,uBAAuB;YAC/B,gBAAgB;gBACZC,WAAW;oBAAE,QAAQN,UAAU,MAAM;gBAAC;gBACtCO,QAAQ;oBAAE,KAAKP,UAAU,GAAG;gBAAC;gBAC7BQ,eAAe;oBAAE,SAASR,UAAU,OAAO;gBAAC;gBAC5CS;gBACAC,gBAAgB;oBAAEP;gBAAQ;aAC7B;QACL;QAEA,OAAO;YACH,eAAeD,OAAO,GAAG,CAAC;gBACtB,SAAS;gBACT,MAAM;oBACF,KAAK;gBACT;gBACA,OAAO;oBAAEE;gBAAI;YACjB;QACJ;IACJ;AACJ;AAEO,MAAMO,aAAaC,qBAAqB;IAC3C,aAAaC;IACb,gBAAgBrB;IAChB,cAAc;QACVsB;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
@@ -1 +0,0 @@
1
- export * from "./RefreshApp.js";
@@ -1 +0,0 @@
1
- export * from "./RefreshApp.js";
@@ -1,13 +0,0 @@
1
- import { RunPulumiCommand, GetApp, GetProject, GetPulumiService, ProjectSdkParamsService, PulumiSelectStackService } from "../../abstractions/index.js";
2
- export declare class DefaultRunPulumiCommand implements RunPulumiCommand.Interface {
3
- private getApp;
4
- private getProject;
5
- private pulumiSelectStackService;
6
- private getPulumiService;
7
- private projectSdkParamsService;
8
- constructor(getApp: GetApp.Interface, getProject: GetProject.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
9
- execute(params: RunPulumiCommand.Params): Promise<{
10
- pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
11
- }>;
12
- }
13
- export declare const runPulumiCommand: import("@webiny/di").Implementation<typeof DefaultRunPulumiCommand>;