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

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 (385) 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/{pulumi/ProductionEnvironments.js → ProductionEnvironments.js} +2 -2
  33. package/extensions/ProductionEnvironments.js.map +1 -0
  34. package/extensions/api/Route/ApiRoute.d.ts +23 -0
  35. package/extensions/api/Route/ApiRoute.js +92 -0
  36. package/extensions/api/Route/ApiRoute.js.map +1 -0
  37. package/extensions/api/Route/index.d.ts +2 -0
  38. package/extensions/api/Route/index.js +2 -0
  39. package/extensions/api/Route/routePath.d.ts +20 -0
  40. package/extensions/api/Route/routePath.js +10 -0
  41. package/extensions/api/Route/routePath.js.map +1 -0
  42. package/extensions/api/index.d.ts +1 -0
  43. package/extensions/api/index.js +1 -0
  44. package/extensions/hooks/index.d.ts +0 -8
  45. package/extensions/hooks/index.js +0 -8
  46. package/extensions/hosting/extensionImplementations.d.ts +5 -4
  47. package/extensions/hosting/extensionImplementations.js.map +1 -1
  48. package/extensions/index.d.ts +6 -17
  49. package/extensions/index.js +5 -13
  50. package/extensions/index.js.map +1 -1
  51. package/features/GetProductionEnvironments/GetProductionEnvironments.js +1 -1
  52. package/features/GetProductionEnvironments/GetProductionEnvironments.js.map +1 -1
  53. package/features/hooks/index.d.ts +0 -8
  54. package/features/hooks/index.js +0 -8
  55. package/features/index.d.ts +0 -8
  56. package/features/index.js +0 -8
  57. package/index.d.ts +0 -4
  58. package/index.js +1 -5
  59. package/index.js.map +1 -1
  60. package/models/AppModel.js +1 -2
  61. package/models/AppModel.js.map +1 -1
  62. package/models/ProjectModel.js +0 -2
  63. package/models/ProjectModel.js.map +1 -1
  64. package/package.json +8 -14
  65. package/services/GetAppService/GetAppService.js +1 -3
  66. package/services/GetAppService/GetAppService.js.map +1 -1
  67. package/services/GetProjectService/GetProjectService.js +0 -2
  68. package/services/GetProjectService/GetProjectService.js.map +1 -1
  69. package/services/InitProjectSdkService/InitProjectSdkService.d.ts +6 -2
  70. package/services/InitProjectSdkService/InitProjectSdkService.js +18 -12
  71. package/services/InitProjectSdkService/InitProjectSdkService.js.map +1 -1
  72. package/services/InitProjectSdkService/registerHooks.js +4 -16
  73. package/services/InitProjectSdkService/registerHooks.js.map +1 -1
  74. package/services/ProjectInfoService/ProjectInfoService.d.ts +7 -3
  75. package/services/ProjectInfoService/ProjectInfoService.js +3 -11
  76. package/services/ProjectInfoService/ProjectInfoService.js.map +1 -1
  77. package/services/ProjectInfoService/index.d.ts +0 -1
  78. package/services/ProjectInfoService/index.js +0 -1
  79. package/services/index.d.ts +0 -12
  80. package/services/index.js +0 -12
  81. package/utils/env/index.d.ts +0 -1
  82. package/utils/env/index.js +0 -1
  83. package/utils/index.d.ts +1 -0
  84. package/utils/index.js +1 -0
  85. package/utils/registerSrcExtensions.d.ts +13 -0
  86. package/utils/registerSrcExtensions.js +10 -0
  87. package/utils/registerSrcExtensions.js.map +1 -0
  88. package/abstractions/features/DeployApp.d.ts +0 -20
  89. package/abstractions/features/DeployApp.js +0 -5
  90. package/abstractions/features/DeployApp.js.map +0 -1
  91. package/abstractions/features/DestroyApp.d.ts +0 -18
  92. package/abstractions/features/DestroyApp.js +0 -5
  93. package/abstractions/features/DestroyApp.js.map +0 -1
  94. package/abstractions/features/ExportStack.d.ts +0 -18
  95. package/abstractions/features/ExportStack.js +0 -5
  96. package/abstractions/features/ExportStack.js.map +0 -1
  97. package/abstractions/features/GetAppOutput.d.ts +0 -18
  98. package/abstractions/features/GetAppOutput.js +0 -5
  99. package/abstractions/features/GetAppOutput.js.map +0 -1
  100. package/abstractions/features/GetAppStackOutput.d.ts +0 -22
  101. package/abstractions/features/GetAppStackOutput.js +0 -5
  102. package/abstractions/features/GetAppStackOutput.js.map +0 -1
  103. package/abstractions/features/GetPulumiResourceNamePrefix.d.ts +0 -7
  104. package/abstractions/features/GetPulumiResourceNamePrefix.js +0 -5
  105. package/abstractions/features/GetPulumiResourceNamePrefix.js.map +0 -1
  106. package/abstractions/features/RefreshApp.d.ts +0 -18
  107. package/abstractions/features/RefreshApp.js +0 -5
  108. package/abstractions/features/RefreshApp.js.map +0 -1
  109. package/abstractions/features/RunPulumiCommand.d.ts +0 -19
  110. package/abstractions/features/RunPulumiCommand.js +0 -5
  111. package/abstractions/features/RunPulumiCommand.js.map +0 -1
  112. package/abstractions/features/hooks/AdminAfterDeploy.d.ts +0 -9
  113. package/abstractions/features/hooks/AdminAfterDeploy.js +0 -5
  114. package/abstractions/features/hooks/AdminAfterDeploy.js.map +0 -1
  115. package/abstractions/features/hooks/AdminBeforeDeploy.d.ts +0 -9
  116. package/abstractions/features/hooks/AdminBeforeDeploy.js +0 -5
  117. package/abstractions/features/hooks/AdminBeforeDeploy.js.map +0 -1
  118. package/abstractions/features/hooks/AfterDeploy.d.ts +0 -9
  119. package/abstractions/features/hooks/AfterDeploy.js +0 -5
  120. package/abstractions/features/hooks/AfterDeploy.js.map +0 -1
  121. package/abstractions/features/hooks/ApiAfterDeploy.d.ts +0 -9
  122. package/abstractions/features/hooks/ApiAfterDeploy.js +0 -5
  123. package/abstractions/features/hooks/ApiAfterDeploy.js.map +0 -1
  124. package/abstractions/features/hooks/ApiBeforeDeploy.d.ts +0 -9
  125. package/abstractions/features/hooks/ApiBeforeDeploy.js +0 -5
  126. package/abstractions/features/hooks/ApiBeforeDeploy.js.map +0 -1
  127. package/abstractions/features/hooks/BeforeDeploy.d.ts +0 -9
  128. package/abstractions/features/hooks/BeforeDeploy.js +0 -5
  129. package/abstractions/features/hooks/BeforeDeploy.js.map +0 -1
  130. package/abstractions/features/hooks/CoreAfterDeploy.d.ts +0 -9
  131. package/abstractions/features/hooks/CoreAfterDeploy.js +0 -5
  132. package/abstractions/features/hooks/CoreAfterDeploy.js.map +0 -1
  133. package/abstractions/features/hooks/CoreBeforeDeploy.d.ts +0 -9
  134. package/abstractions/features/hooks/CoreBeforeDeploy.js +0 -5
  135. package/abstractions/features/hooks/CoreBeforeDeploy.js.map +0 -1
  136. package/abstractions/services/GetPulumiService.d.ts +0 -14
  137. package/abstractions/services/GetPulumiService.js +0 -5
  138. package/abstractions/services/GetPulumiService.js.map +0 -1
  139. package/abstractions/services/IsRemotePulumiBackendService.d.ts +0 -7
  140. package/abstractions/services/IsRemotePulumiBackendService.js +0 -5
  141. package/abstractions/services/IsRemotePulumiBackendService.js.map +0 -1
  142. package/abstractions/services/ListAppLambdaFunctionsService.d.ts +0 -23
  143. package/abstractions/services/ListAppLambdaFunctionsService.js +0 -5
  144. package/abstractions/services/ListAppLambdaFunctionsService.js.map +0 -1
  145. package/abstractions/services/ListDeployedEnvironmentsService.d.ts +0 -12
  146. package/abstractions/services/ListDeployedEnvironmentsService.js +0 -5
  147. package/abstractions/services/ListDeployedEnvironmentsService.js.map +0 -1
  148. package/abstractions/services/ProjectInfoService/GetPulumiVersionService.d.ts +0 -12
  149. package/abstractions/services/ProjectInfoService/GetPulumiVersionService.js +0 -5
  150. package/abstractions/services/ProjectInfoService/GetPulumiVersionService.js.map +0 -1
  151. package/abstractions/services/PulumiExportService.d.ts +0 -13
  152. package/abstractions/services/PulumiExportService.js +0 -6
  153. package/abstractions/services/PulumiExportService.js.map +0 -1
  154. package/abstractions/services/PulumiGetConfigPassphraseService.d.ts +0 -7
  155. package/abstractions/services/PulumiGetConfigPassphraseService.js +0 -5
  156. package/abstractions/services/PulumiGetConfigPassphraseService.js.map +0 -1
  157. package/abstractions/services/PulumiGetSecretsProviderService.d.ts +0 -7
  158. package/abstractions/services/PulumiGetSecretsProviderService.js +0 -5
  159. package/abstractions/services/PulumiGetSecretsProviderService.js.map +0 -1
  160. package/abstractions/services/PulumiGetStackOutputService.d.ts +0 -13
  161. package/abstractions/services/PulumiGetStackOutputService.js +0 -5
  162. package/abstractions/services/PulumiGetStackOutputService.js.map +0 -1
  163. package/abstractions/services/PulumiImportService.d.ts +0 -8
  164. package/abstractions/services/PulumiImportService.js +0 -5
  165. package/abstractions/services/PulumiImportService.js.map +0 -1
  166. package/abstractions/services/PulumiLoginService.d.ts +0 -16
  167. package/abstractions/services/PulumiLoginService.js +0 -5
  168. package/abstractions/services/PulumiLoginService.js.map +0 -1
  169. package/abstractions/services/PulumiSelectStackService.d.ts +0 -10
  170. package/abstractions/services/PulumiSelectStackService.js +0 -5
  171. package/abstractions/services/PulumiSelectStackService.js.map +0 -1
  172. package/abstractions/services/StackOutputCacheService.d.ts +0 -10
  173. package/abstractions/services/StackOutputCacheService.js +0 -5
  174. package/abstractions/services/StackOutputCacheService.js.map +0 -1
  175. package/abstractions/services/WatchedLambdaFunctionsService.d.ts +0 -28
  176. package/abstractions/services/WatchedLambdaFunctionsService.js +0 -5
  177. package/abstractions/services/WatchedLambdaFunctionsService.js.map +0 -1
  178. package/decorators/DeployAppClearWatchedLambdaFunctions.d.ts +0 -17
  179. package/decorators/DeployAppClearWatchedLambdaFunctions.js +0 -32
  180. package/decorators/DeployAppClearWatchedLambdaFunctions.js.map +0 -1
  181. package/decorators/DeployAppRefreshStackOutputCache.d.ts +0 -17
  182. package/decorators/DeployAppRefreshStackOutputCache.js +0 -32
  183. package/decorators/DeployAppRefreshStackOutputCache.js.map +0 -1
  184. package/decorators/DeployAppWithHooks.d.ts +0 -17
  185. package/decorators/DeployAppWithHooks.js +0 -58
  186. package/decorators/DeployAppWithHooks.js.map +0 -1
  187. package/decorators/DeployAppWithWatchedLambdaReplacement.d.ts +0 -17
  188. package/decorators/DeployAppWithWatchedLambdaReplacement.js +0 -39
  189. package/decorators/DeployAppWithWatchedLambdaReplacement.js.map +0 -1
  190. package/decorators/DestroyAppClearStackOutputCache.d.ts +0 -25
  191. package/decorators/DestroyAppClearStackOutputCache.js +0 -29
  192. package/decorators/DestroyAppClearStackOutputCache.js.map +0 -1
  193. package/decorators/GetPulumiServiceWithDownloadInfo.d.ts +0 -11
  194. package/decorators/GetPulumiServiceWithDownloadInfo.js +0 -27
  195. package/decorators/GetPulumiServiceWithDownloadInfo.js.map +0 -1
  196. package/extensions/hooks/AdminAfterDeploy.d.ts +0 -4
  197. package/extensions/hooks/AdminAfterDeploy.js +0 -23
  198. package/extensions/hooks/AdminAfterDeploy.js.map +0 -1
  199. package/extensions/hooks/AdminBeforeDeploy.d.ts +0 -4
  200. package/extensions/hooks/AdminBeforeDeploy.js +0 -23
  201. package/extensions/hooks/AdminBeforeDeploy.js.map +0 -1
  202. package/extensions/hooks/AfterDeploy.d.ts +0 -4
  203. package/extensions/hooks/AfterDeploy.js +0 -22
  204. package/extensions/hooks/AfterDeploy.js.map +0 -1
  205. package/extensions/hooks/ApiAfterDeploy.d.ts +0 -4
  206. package/extensions/hooks/ApiAfterDeploy.js +0 -23
  207. package/extensions/hooks/ApiAfterDeploy.js.map +0 -1
  208. package/extensions/hooks/ApiBeforeDeploy.d.ts +0 -4
  209. package/extensions/hooks/ApiBeforeDeploy.js +0 -23
  210. package/extensions/hooks/ApiBeforeDeploy.js.map +0 -1
  211. package/extensions/hooks/BeforeDeploy.d.ts +0 -4
  212. package/extensions/hooks/BeforeDeploy.js +0 -22
  213. package/extensions/hooks/BeforeDeploy.js.map +0 -1
  214. package/extensions/hooks/CoreAfterDeploy.d.ts +0 -4
  215. package/extensions/hooks/CoreAfterDeploy.js +0 -23
  216. package/extensions/hooks/CoreAfterDeploy.js.map +0 -1
  217. package/extensions/hooks/CoreBeforeDeploy.d.ts +0 -4
  218. package/extensions/hooks/CoreBeforeDeploy.js +0 -23
  219. package/extensions/hooks/CoreBeforeDeploy.js.map +0 -1
  220. package/extensions/pulumi/ProductionEnvironments.js.map +0 -1
  221. package/extensions/pulumi/PulumiResourceNamePrefix.d.ts +0 -4
  222. package/extensions/pulumi/PulumiResourceNamePrefix.js +0 -16
  223. package/extensions/pulumi/PulumiResourceNamePrefix.js.map +0 -1
  224. package/extensions/pulumi/index.d.ts +0 -2
  225. package/extensions/pulumi/index.js +0 -2
  226. package/features/DeployApp/DeployApp.d.ts +0 -14
  227. package/features/DeployApp/DeployApp.js +0 -86
  228. package/features/DeployApp/DeployApp.js.map +0 -1
  229. package/features/DeployApp/index.d.ts +0 -1
  230. package/features/DeployApp/index.js +0 -1
  231. package/features/DestroyApp/DestroyApp.d.ts +0 -14
  232. package/features/DestroyApp/DestroyApp.js +0 -66
  233. package/features/DestroyApp/DestroyApp.js.map +0 -1
  234. package/features/DestroyApp/index.d.ts +0 -1
  235. package/features/DestroyApp/index.js +0 -1
  236. package/features/ExportStack/ExportStack.d.ts +0 -9
  237. package/features/ExportStack/ExportStack.js +0 -26
  238. package/features/ExportStack/ExportStack.js.map +0 -1
  239. package/features/ExportStack/index.d.ts +0 -1
  240. package/features/ExportStack/index.js +0 -1
  241. package/features/GetAppOutput/GetAppOutput.d.ts +0 -12
  242. package/features/GetAppOutput/GetAppOutput.js +0 -51
  243. package/features/GetAppOutput/GetAppOutput.js.map +0 -1
  244. package/features/GetAppOutput/index.d.ts +0 -1
  245. package/features/GetAppOutput/index.js +0 -1
  246. package/features/GetAppStackOutput/GetAppStackOutput.d.ts +0 -10
  247. package/features/GetAppStackOutput/GetAppStackOutput.js +0 -26
  248. package/features/GetAppStackOutput/GetAppStackOutput.js.map +0 -1
  249. package/features/GetAppStackOutput/index.d.ts +0 -1
  250. package/features/GetAppStackOutput/index.js +0 -1
  251. package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.d.ts +0 -7
  252. package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js +0 -25
  253. package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js.map +0 -1
  254. package/features/GetPulumiResourceNamePrefix/index.d.ts +0 -1
  255. package/features/GetPulumiResourceNamePrefix/index.js +0 -1
  256. package/features/RefreshApp/RefreshApp.d.ts +0 -13
  257. package/features/RefreshApp/RefreshApp.js +0 -64
  258. package/features/RefreshApp/RefreshApp.js.map +0 -1
  259. package/features/RefreshApp/index.d.ts +0 -1
  260. package/features/RefreshApp/index.js +0 -1
  261. package/features/RunPulumiCommand/RunPulumiCommand.d.ts +0 -13
  262. package/features/RunPulumiCommand/RunPulumiCommand.js +0 -61
  263. package/features/RunPulumiCommand/RunPulumiCommand.js.map +0 -1
  264. package/features/RunPulumiCommand/index.d.ts +0 -1
  265. package/features/RunPulumiCommand/index.js +0 -1
  266. package/features/Watch/handler/handler.zip +0 -0
  267. package/features/Watch/initInvocationForwarding.d.ts +0 -9
  268. package/features/Watch/initInvocationForwarding.js +0 -91
  269. package/features/Watch/initInvocationForwarding.js.map +0 -1
  270. package/features/Watch/localInvocationWorker.d.ts +0 -1
  271. package/features/Watch/localInvocationWorker.js +0 -31
  272. package/features/Watch/localInvocationWorker.js.map +0 -1
  273. package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.d.ts +0 -7
  274. package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.js +0 -25
  275. package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.js.map +0 -1
  276. package/features/hooks/AdminAfterDeploy/index.d.ts +0 -1
  277. package/features/hooks/AdminAfterDeploy/index.js +0 -1
  278. package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.d.ts +0 -7
  279. package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js +0 -25
  280. package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js.map +0 -1
  281. package/features/hooks/AdminBeforeDeploy/index.d.ts +0 -1
  282. package/features/hooks/AdminBeforeDeploy/index.js +0 -1
  283. package/features/hooks/AfterDeploy/AfterDeploy.d.ts +0 -7
  284. package/features/hooks/AfterDeploy/AfterDeploy.js +0 -25
  285. package/features/hooks/AfterDeploy/AfterDeploy.js.map +0 -1
  286. package/features/hooks/AfterDeploy/index.d.ts +0 -1
  287. package/features/hooks/AfterDeploy/index.js +0 -1
  288. package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.d.ts +0 -7
  289. package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.js +0 -25
  290. package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.js.map +0 -1
  291. package/features/hooks/ApiAfterDeploy/index.d.ts +0 -1
  292. package/features/hooks/ApiAfterDeploy/index.js +0 -1
  293. package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.d.ts +0 -7
  294. package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js +0 -25
  295. package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js.map +0 -1
  296. package/features/hooks/ApiBeforeDeploy/index.d.ts +0 -1
  297. package/features/hooks/ApiBeforeDeploy/index.js +0 -1
  298. package/features/hooks/BeforeDeploy/BeforeDeploy.d.ts +0 -7
  299. package/features/hooks/BeforeDeploy/BeforeDeploy.js +0 -25
  300. package/features/hooks/BeforeDeploy/BeforeDeploy.js.map +0 -1
  301. package/features/hooks/BeforeDeploy/index.d.ts +0 -1
  302. package/features/hooks/BeforeDeploy/index.js +0 -1
  303. package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.d.ts +0 -7
  304. package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.js +0 -25
  305. package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.js.map +0 -1
  306. package/features/hooks/CoreAfterDeploy/index.d.ts +0 -1
  307. package/features/hooks/CoreAfterDeploy/index.js +0 -1
  308. package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.d.ts +0 -7
  309. package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js +0 -25
  310. package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js.map +0 -1
  311. package/features/hooks/CoreBeforeDeploy/index.d.ts +0 -1
  312. package/features/hooks/CoreBeforeDeploy/index.js +0 -1
  313. package/services/InitProjectSdkService/registerPulumiExtensions.d.ts +0 -4
  314. package/services/InitProjectSdkService/registerPulumiExtensions.js +0 -16
  315. package/services/InitProjectSdkService/registerPulumiExtensions.js.map +0 -1
  316. package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.d.ts +0 -14
  317. package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js +0 -15
  318. package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js.map +0 -1
  319. package/services/IsRemotePulumiBackendService/index.d.ts +0 -1
  320. package/services/IsRemotePulumiBackendService/index.js +0 -1
  321. package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.d.ts +0 -18
  322. package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js +0 -61
  323. package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js.map +0 -1
  324. package/services/ListAppLambdaFunctionsService/index.d.ts +0 -1
  325. package/services/ListAppLambdaFunctionsService/index.js +0 -1
  326. package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.d.ts +0 -7
  327. package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js +0 -30
  328. package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js.map +0 -1
  329. package/services/ListDeployedEnvironmentsService/index.d.ts +0 -1
  330. package/services/ListDeployedEnvironmentsService/index.js +0 -1
  331. package/services/ProjectInfoService/GetPulumiVersionService.d.ts +0 -5
  332. package/services/ProjectInfoService/GetPulumiVersionService.js +0 -46
  333. package/services/ProjectInfoService/GetPulumiVersionService.js.map +0 -1
  334. package/services/PulumiExportService/PulumiExportService.d.ts +0 -13
  335. package/services/PulumiExportService/PulumiExportService.js +0 -50
  336. package/services/PulumiExportService/PulumiExportService.js.map +0 -1
  337. package/services/PulumiExportService/index.d.ts +0 -1
  338. package/services/PulumiExportService/index.js +0 -1
  339. package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.d.ts +0 -5
  340. package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js +0 -15
  341. package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js.map +0 -1
  342. package/services/PulumiGetConfigPassphraseService/index.d.ts +0 -1
  343. package/services/PulumiGetConfigPassphraseService/index.js +0 -1
  344. package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.d.ts +0 -5
  345. package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js +0 -15
  346. package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js.map +0 -1
  347. package/services/PulumiGetSecretsProviderService/index.d.ts +0 -1
  348. package/services/PulumiGetSecretsProviderService/index.js +0 -1
  349. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.d.ts +0 -12
  350. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js +0 -64
  351. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +0 -1
  352. package/services/PulumiGetStackOutputService/index.d.ts +0 -1
  353. package/services/PulumiGetStackOutputService/index.js +0 -1
  354. package/services/PulumiGetStackOutputService/mapStackOutput.d.ts +0 -1
  355. package/services/PulumiGetStackOutputService/mapStackOutput.js +0 -22
  356. package/services/PulumiGetStackOutputService/mapStackOutput.js.map +0 -1
  357. package/services/PulumiImportService/PulumiImportService.d.ts +0 -10
  358. package/services/PulumiImportService/PulumiImportService.js +0 -60
  359. package/services/PulumiImportService/PulumiImportService.js.map +0 -1
  360. package/services/PulumiImportService/index.d.ts +0 -1
  361. package/services/PulumiImportService/index.js +0 -1
  362. package/services/PulumiLoginService/PulumiLoginService.d.ts +0 -10
  363. package/services/PulumiLoginService/PulumiLoginService.js +0 -54
  364. package/services/PulumiLoginService/PulumiLoginService.js.map +0 -1
  365. package/services/PulumiLoginService/index.d.ts +0 -1
  366. package/services/PulumiLoginService/index.js +0 -1
  367. package/services/PulumiSelectStackService/PulumiSelectStackService.d.ts +0 -15
  368. package/services/PulumiSelectStackService/PulumiSelectStackService.js +0 -102
  369. package/services/PulumiSelectStackService/PulumiSelectStackService.js.map +0 -1
  370. package/services/PulumiSelectStackService/index.d.ts +0 -1
  371. package/services/PulumiSelectStackService/index.js +0 -1
  372. package/services/StackOutputCacheService/StackOutputCacheService.d.ts +0 -18
  373. package/services/StackOutputCacheService/StackOutputCacheService.js +0 -89
  374. package/services/StackOutputCacheService/StackOutputCacheService.js.map +0 -1
  375. package/services/StackOutputCacheService/index.d.ts +0 -1
  376. package/services/StackOutputCacheService/index.js +0 -1
  377. package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.d.ts +0 -13
  378. package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js +0 -54
  379. package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js.map +0 -1
  380. package/services/WatchedLambdaFunctionsService/index.d.ts +0 -1
  381. package/services/WatchedLambdaFunctionsService/index.js +0 -1
  382. package/utils/env/withPulumiConfigPassphrase.d.ts +0 -1
  383. package/utils/env/withPulumiConfigPassphrase.js +0 -7
  384. package/utils/env/withPulumiConfigPassphrase.js.map +0 -1
  385. /package/extensions/{pulumi/ProductionEnvironments.d.ts → ProductionEnvironments.d.ts} +0 -0
@@ -1,23 +0,0 @@
1
- import { defineExtension } from "../../defineExtension/index.js";
2
- import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
3
- import { AdminAfterDeploy } from "../../abstractions/index.js";
4
- import { z } from "zod";
5
- const AdminAfterDeploy_AdminAfterDeploy = defineExtension({
6
- type: "Admin/AfterDeploy",
7
- tags: {
8
- runtimeContext: "project",
9
- application: "admin",
10
- hosting: "aws"
11
- },
12
- description: "Add custom logic to be executed after the ADMIN deployment process.",
13
- multiple: true,
14
- paramsSchema: ({ project })=>z.object({
15
- src: zodSrcPath({
16
- project,
17
- abstraction: AdminAfterDeploy
18
- })
19
- })
20
- });
21
- export { AdminAfterDeploy_AdminAfterDeploy as AdminAfterDeploy };
22
-
23
- //# sourceMappingURL=AdminAfterDeploy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extensions/hooks/AdminAfterDeploy.js","sources":["../../../src/extensions/hooks/AdminAfterDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { AdminAfterDeploy as AdminAfterDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const AdminAfterDeploy = defineExtension({\n type: \"Admin/AfterDeploy\",\n tags: { runtimeContext: \"project\", application: \"admin\", hosting: \"aws\" },\n description: \"Add custom logic to be executed after the ADMIN deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: AdminAfterDeployAbstraction })\n });\n }\n});\n"],"names":["AdminAfterDeploy","defineExtension","project","z","zodSrcPath","AdminAfterDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,oCAAmBC,gBAAgB;IAC5C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;QAAS,SAAS;IAAM;IACxE,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA4B;QACxE;AAER"}
@@ -1,4 +0,0 @@
1
- import { z } from "zod";
2
- export declare const AdminBeforeDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
- }, z.core.$strip>>;
@@ -1,23 +0,0 @@
1
- import { defineExtension } from "../../defineExtension/index.js";
2
- import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
3
- import { AdminBeforeDeploy } from "../../abstractions/index.js";
4
- import { z } from "zod";
5
- const AdminBeforeDeploy_AdminBeforeDeploy = defineExtension({
6
- type: "Admin/BeforeDeploy",
7
- tags: {
8
- runtimeContext: "project",
9
- application: "admin",
10
- hosting: "aws"
11
- },
12
- description: "Add custom logic to be executed before the ADMIN deployment process.",
13
- multiple: true,
14
- paramsSchema: ({ project })=>z.object({
15
- src: zodSrcPath({
16
- project,
17
- abstraction: AdminBeforeDeploy
18
- })
19
- })
20
- });
21
- export { AdminBeforeDeploy_AdminBeforeDeploy as AdminBeforeDeploy };
22
-
23
- //# sourceMappingURL=AdminBeforeDeploy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extensions/hooks/AdminBeforeDeploy.js","sources":["../../../src/extensions/hooks/AdminBeforeDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { AdminBeforeDeploy as AdminBeforeDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const AdminBeforeDeploy = defineExtension({\n type: \"Admin/BeforeDeploy\",\n tags: { runtimeContext: \"project\", application: \"admin\", hosting: \"aws\" },\n description: \"Add custom logic to be executed before the ADMIN deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: AdminBeforeDeployAbstraction })\n });\n }\n});\n"],"names":["AdminBeforeDeploy","defineExtension","project","z","zodSrcPath","AdminBeforeDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,sCAAoBC,gBAAgB;IAC7C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;QAAS,SAAS;IAAM;IACxE,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA6B;QACzE;AAER"}
@@ -1,4 +0,0 @@
1
- import { z } from "zod";
2
- export declare const AfterDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
- }, z.core.$strip>>;
@@ -1,22 +0,0 @@
1
- import { defineExtension } from "../../defineExtension/index.js";
2
- import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
3
- import { AfterDeploy } from "../../abstractions/index.js";
4
- import { z } from "zod";
5
- const AfterDeploy_AfterDeploy = defineExtension({
6
- type: "Project/AfterDeploy",
7
- tags: {
8
- runtimeContext: "project",
9
- hosting: "aws"
10
- },
11
- description: "Add custom logic to be executed after the PROJECT deploy process.",
12
- multiple: true,
13
- paramsSchema: ({ project })=>z.object({
14
- src: zodSrcPath({
15
- project,
16
- abstraction: AfterDeploy
17
- })
18
- })
19
- });
20
- export { AfterDeploy_AfterDeploy as AfterDeploy };
21
-
22
- //# sourceMappingURL=AfterDeploy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extensions/hooks/AfterDeploy.js","sources":["../../../src/extensions/hooks/AfterDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { AfterDeploy as AfterDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const AfterDeploy = defineExtension({\n type: \"Project/AfterDeploy\",\n tags: { runtimeContext: \"project\", hosting: \"aws\" },\n description: \"Add custom logic to be executed after the PROJECT deploy process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: AfterDeployAbstraction })\n });\n }\n});\n"],"names":["AfterDeploy","defineExtension","project","z","zodSrcPath","AfterDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,0BAAcC,gBAAgB;IACvC,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,SAAS;IAAM;IAClD,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAAuB;QACnE;AAER"}
@@ -1,4 +0,0 @@
1
- import { z } from "zod";
2
- export declare const ApiAfterDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
- }, z.core.$strip>>;
@@ -1,23 +0,0 @@
1
- import { defineExtension } from "../../defineExtension/index.js";
2
- import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
3
- import { ApiAfterDeploy } from "../../abstractions/index.js";
4
- import { z } from "zod";
5
- const ApiAfterDeploy_ApiAfterDeploy = defineExtension({
6
- type: "Api/AfterDeploy",
7
- tags: {
8
- runtimeContext: "project",
9
- application: "api",
10
- hosting: "aws"
11
- },
12
- description: "Add custom logic to be executed after the API deployment process.",
13
- multiple: true,
14
- paramsSchema: ({ project })=>z.object({
15
- src: zodSrcPath({
16
- project,
17
- abstraction: ApiAfterDeploy
18
- })
19
- })
20
- });
21
- export { ApiAfterDeploy_ApiAfterDeploy as ApiAfterDeploy };
22
-
23
- //# sourceMappingURL=ApiAfterDeploy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extensions/hooks/ApiAfterDeploy.js","sources":["../../../src/extensions/hooks/ApiAfterDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { ApiAfterDeploy as ApiAfterDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const ApiAfterDeploy = defineExtension({\n type: \"Api/AfterDeploy\",\n tags: { runtimeContext: \"project\", application: \"api\", hosting: \"aws\" },\n description: \"Add custom logic to be executed after the API deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: ApiAfterDeployAbstraction })\n });\n }\n});\n"],"names":["ApiAfterDeploy","defineExtension","project","z","zodSrcPath","ApiAfterDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,gCAAiBC,gBAAgB;IAC1C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;QAAO,SAAS;IAAM;IACtE,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA0B;QACtE;AAER"}
@@ -1,4 +0,0 @@
1
- import { z } from "zod";
2
- export declare const ApiBeforeDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
- }, z.core.$strip>>;
@@ -1,23 +0,0 @@
1
- import { defineExtension } from "../../defineExtension/index.js";
2
- import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
3
- import { ApiBeforeDeploy } from "../../abstractions/index.js";
4
- import { z } from "zod";
5
- const ApiBeforeDeploy_ApiBeforeDeploy = defineExtension({
6
- type: "Api/BeforeDeploy",
7
- tags: {
8
- runtimeContext: "project",
9
- application: "api",
10
- hosting: "aws"
11
- },
12
- description: "Add custom logic to be executed before the API deployment process.",
13
- multiple: true,
14
- paramsSchema: ({ project })=>z.object({
15
- src: zodSrcPath({
16
- project,
17
- abstraction: ApiBeforeDeploy
18
- })
19
- })
20
- });
21
- export { ApiBeforeDeploy_ApiBeforeDeploy as ApiBeforeDeploy };
22
-
23
- //# sourceMappingURL=ApiBeforeDeploy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extensions/hooks/ApiBeforeDeploy.js","sources":["../../../src/extensions/hooks/ApiBeforeDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { ApiBeforeDeploy as ApiBeforeDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const ApiBeforeDeploy = defineExtension({\n type: \"Api/BeforeDeploy\",\n tags: { runtimeContext: \"project\", application: \"api\", hosting: \"aws\" },\n description: \"Add custom logic to be executed before the API deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: ApiBeforeDeployAbstraction })\n });\n }\n});\n"],"names":["ApiBeforeDeploy","defineExtension","project","z","zodSrcPath","ApiBeforeDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,kCAAkBC,gBAAgB;IAC3C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;QAAO,SAAS;IAAM;IACtE,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA2B;QACvE;AAER"}
@@ -1,4 +0,0 @@
1
- import { z } from "zod";
2
- export declare const BeforeDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
- }, z.core.$strip>>;
@@ -1,22 +0,0 @@
1
- import { defineExtension } from "../../defineExtension/index.js";
2
- import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
3
- import { BeforeDeploy } from "../../abstractions/index.js";
4
- import { z } from "zod";
5
- const BeforeDeploy_BeforeDeploy = defineExtension({
6
- type: "Project/BeforeDeploy",
7
- tags: {
8
- runtimeContext: "project",
9
- hosting: "aws"
10
- },
11
- description: "Add custom logic to be executed before the PROJECT deploy process.",
12
- multiple: true,
13
- paramsSchema: ({ project })=>z.object({
14
- src: zodSrcPath({
15
- project,
16
- abstraction: BeforeDeploy
17
- })
18
- })
19
- });
20
- export { BeforeDeploy_BeforeDeploy as BeforeDeploy };
21
-
22
- //# sourceMappingURL=BeforeDeploy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extensions/hooks/BeforeDeploy.js","sources":["../../../src/extensions/hooks/BeforeDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { BeforeDeploy as BeforeDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const BeforeDeploy = defineExtension({\n type: \"Project/BeforeDeploy\",\n tags: { runtimeContext: \"project\", hosting: \"aws\" },\n description: \"Add custom logic to be executed before the PROJECT deploy process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: BeforeDeployAbstraction })\n });\n }\n});\n"],"names":["BeforeDeploy","defineExtension","project","z","zodSrcPath","BeforeDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,4BAAeC,gBAAgB;IACxC,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,SAAS;IAAM;IAClD,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAAwB;QACpE;AAER"}
@@ -1,4 +0,0 @@
1
- import { z } from "zod";
2
- export declare const CoreAfterDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
- }, z.core.$strip>>;
@@ -1,23 +0,0 @@
1
- import { defineExtension } from "../../defineExtension/index.js";
2
- import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
3
- import { CoreAfterDeploy } from "../../abstractions/index.js";
4
- import { z } from "zod";
5
- const CoreAfterDeploy_CoreAfterDeploy = defineExtension({
6
- type: "Core/AfterDeploy",
7
- tags: {
8
- runtimeContext: "project",
9
- application: "core",
10
- hosting: "aws"
11
- },
12
- description: "Add custom logic to be executed after the CORE deployment process.",
13
- multiple: true,
14
- paramsSchema: ({ project })=>z.object({
15
- src: zodSrcPath({
16
- project,
17
- abstraction: CoreAfterDeploy
18
- })
19
- })
20
- });
21
- export { CoreAfterDeploy_CoreAfterDeploy as CoreAfterDeploy };
22
-
23
- //# sourceMappingURL=CoreAfterDeploy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extensions/hooks/CoreAfterDeploy.js","sources":["../../../src/extensions/hooks/CoreAfterDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { CoreAfterDeploy as CoreAfterDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const CoreAfterDeploy = defineExtension({\n type: \"Core/AfterDeploy\",\n tags: { runtimeContext: \"project\", application: \"core\", hosting: \"aws\" },\n description: \"Add custom logic to be executed after the CORE deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: CoreAfterDeployAbstraction })\n });\n }\n});\n"],"names":["CoreAfterDeploy","defineExtension","project","z","zodSrcPath","CoreAfterDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,kCAAkBC,gBAAgB;IAC3C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;QAAQ,SAAS;IAAM;IACvE,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA2B;QACvE;AAER"}
@@ -1,4 +0,0 @@
1
- import { z } from "zod";
2
- export declare const CoreBeforeDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
- }, z.core.$strip>>;
@@ -1,23 +0,0 @@
1
- import { defineExtension } from "../../defineExtension/index.js";
2
- import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
3
- import { CoreBeforeDeploy } from "../../abstractions/index.js";
4
- import { z } from "zod";
5
- const CoreBeforeDeploy_CoreBeforeDeploy = defineExtension({
6
- type: "Core/BeforeDeploy",
7
- tags: {
8
- runtimeContext: "project",
9
- application: "core",
10
- hosting: "aws"
11
- },
12
- description: "Add custom logic to be executed before the CORE deployment process.",
13
- multiple: true,
14
- paramsSchema: ({ project })=>z.object({
15
- src: zodSrcPath({
16
- project,
17
- abstraction: CoreBeforeDeploy
18
- })
19
- })
20
- });
21
- export { CoreBeforeDeploy_CoreBeforeDeploy as CoreBeforeDeploy };
22
-
23
- //# sourceMappingURL=CoreBeforeDeploy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extensions/hooks/CoreBeforeDeploy.js","sources":["../../../src/extensions/hooks/CoreBeforeDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { CoreBeforeDeploy as CoreBeforeDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const CoreBeforeDeploy = defineExtension({\n type: \"Core/BeforeDeploy\",\n tags: { runtimeContext: \"project\", application: \"core\", hosting: \"aws\" },\n description: \"Add custom logic to be executed before the CORE deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: CoreBeforeDeployAbstraction })\n });\n }\n});\n"],"names":["CoreBeforeDeploy","defineExtension","project","z","zodSrcPath","CoreBeforeDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,oCAAmBC,gBAAgB;IAC5C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;QAAQ,SAAS;IAAM;IACvE,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA4B;QACxE;AAER"}
@@ -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>;