@webiny/project-aws 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 (355) hide show
  1. package/AwsProjectSdk.d.ts +38 -0
  2. package/AwsProjectSdk.js +61 -0
  3. package/AwsProjectSdk.js.map +1 -0
  4. package/abstractions/features/DestroyApp.d.ts +18 -0
  5. package/abstractions/features/DestroyApp.js +5 -0
  6. package/abstractions/features/DestroyApp.js.map +1 -0
  7. package/abstractions/features/ExportStack.d.ts +18 -0
  8. package/abstractions/features/ExportStack.js +5 -0
  9. package/abstractions/features/ExportStack.js.map +1 -0
  10. package/abstractions/features/GetAppOutput.d.ts +18 -0
  11. package/abstractions/features/GetAppOutput.js +5 -0
  12. package/abstractions/features/GetAppOutput.js.map +1 -0
  13. package/abstractions/features/GetAppStackOutput.d.ts +18 -0
  14. package/abstractions/features/GetAppStackOutput.js +5 -0
  15. package/abstractions/features/GetAppStackOutput.js.map +1 -0
  16. package/abstractions/features/GetPulumiResourceNamePrefix.d.ts +7 -0
  17. package/abstractions/features/GetPulumiResourceNamePrefix.js +5 -0
  18. package/abstractions/features/GetPulumiResourceNamePrefix.js.map +1 -0
  19. package/abstractions/features/RefreshApp.d.ts +18 -0
  20. package/abstractions/features/RefreshApp.js +5 -0
  21. package/abstractions/features/RefreshApp.js.map +1 -0
  22. package/abstractions/features/RunPulumiCommand.d.ts +19 -0
  23. package/abstractions/features/RunPulumiCommand.js +5 -0
  24. package/abstractions/features/RunPulumiCommand.js.map +1 -0
  25. package/abstractions/index.d.ts +21 -0
  26. package/abstractions/index.js +21 -0
  27. package/abstractions/pulumiTypes.d.ts +3 -0
  28. package/abstractions/services/GetPulumiService.d.ts +20 -0
  29. package/abstractions/services/GetPulumiService.js +5 -0
  30. package/abstractions/services/GetPulumiService.js.map +1 -0
  31. package/abstractions/services/GetPulumiVersionService.d.ts +12 -0
  32. package/abstractions/services/GetPulumiVersionService.js +5 -0
  33. package/abstractions/services/GetPulumiVersionService.js.map +1 -0
  34. package/abstractions/services/IsRemotePulumiBackendService.d.ts +7 -0
  35. package/abstractions/services/IsRemotePulumiBackendService.js +5 -0
  36. package/abstractions/services/IsRemotePulumiBackendService.js.map +1 -0
  37. package/abstractions/services/ListAppLambdaFunctionsService.d.ts +23 -0
  38. package/abstractions/services/ListAppLambdaFunctionsService.js +5 -0
  39. package/abstractions/services/ListAppLambdaFunctionsService.js.map +1 -0
  40. package/abstractions/services/ListDeployedEnvironmentsService.d.ts +12 -0
  41. package/abstractions/services/ListDeployedEnvironmentsService.js +5 -0
  42. package/abstractions/services/ListDeployedEnvironmentsService.js.map +1 -0
  43. package/abstractions/services/PulumiExportService.d.ts +13 -0
  44. package/abstractions/services/PulumiExportService.js +6 -0
  45. package/abstractions/services/PulumiExportService.js.map +1 -0
  46. package/abstractions/services/PulumiGetConfigPassphraseService.d.ts +7 -0
  47. package/abstractions/services/PulumiGetConfigPassphraseService.js +5 -0
  48. package/abstractions/services/PulumiGetConfigPassphraseService.js.map +1 -0
  49. package/abstractions/services/PulumiGetSecretsProviderService.d.ts +7 -0
  50. package/abstractions/services/PulumiGetSecretsProviderService.js +5 -0
  51. package/abstractions/services/PulumiGetSecretsProviderService.js.map +1 -0
  52. package/abstractions/services/PulumiGetStackOutputService.d.ts +13 -0
  53. package/abstractions/services/PulumiGetStackOutputService.js +5 -0
  54. package/abstractions/services/PulumiGetStackOutputService.js.map +1 -0
  55. package/abstractions/services/PulumiImportService.d.ts +8 -0
  56. package/abstractions/services/PulumiImportService.js +5 -0
  57. package/abstractions/services/PulumiImportService.js.map +1 -0
  58. package/abstractions/services/PulumiLoginService.d.ts +19 -0
  59. package/abstractions/services/PulumiLoginService.js +5 -0
  60. package/abstractions/services/PulumiLoginService.js.map +1 -0
  61. package/abstractions/services/PulumiSelectStackService.d.ts +10 -0
  62. package/abstractions/services/PulumiSelectStackService.js +5 -0
  63. package/abstractions/services/PulumiSelectStackService.js.map +1 -0
  64. package/abstractions/services/StackOutputCacheService.d.ts +10 -0
  65. package/abstractions/services/StackOutputCacheService.js +5 -0
  66. package/abstractions/services/StackOutputCacheService.js.map +1 -0
  67. package/abstractions/services/WatchedLambdaFunctionsService.d.ts +28 -0
  68. package/abstractions/services/WatchedLambdaFunctionsService.js +5 -0
  69. package/abstractions/services/WatchedLambdaFunctionsService.js.map +1 -0
  70. package/api.d.ts +1 -15
  71. package/decorators/DeployAppClearWatchedLambdaFunctions.d.ts +20 -0
  72. package/decorators/DeployAppClearWatchedLambdaFunctions.js +35 -0
  73. package/decorators/DeployAppClearWatchedLambdaFunctions.js.map +1 -0
  74. package/decorators/DeployAppRefreshStackOutputCache.d.ts +20 -0
  75. package/decorators/DeployAppRefreshStackOutputCache.js +34 -0
  76. package/decorators/DeployAppRefreshStackOutputCache.js.map +1 -0
  77. package/decorators/DeployAppWithHooks.d.ts +25 -0
  78. package/decorators/DeployAppWithHooks.js +58 -0
  79. package/decorators/DeployAppWithHooks.js.map +1 -0
  80. package/decorators/DeployAppWithWatchedLambdaReplacement.d.ts +20 -0
  81. package/decorators/DeployAppWithWatchedLambdaReplacement.js +42 -0
  82. package/decorators/DeployAppWithWatchedLambdaReplacement.js.map +1 -0
  83. package/decorators/DestroyAppClearStackOutputCache.d.ts +28 -0
  84. package/decorators/DestroyAppClearStackOutputCache.js +31 -0
  85. package/decorators/DestroyAppClearStackOutputCache.js.map +1 -0
  86. package/decorators/GetPulumiServiceWithDownloadInfo.d.ts +13 -0
  87. package/decorators/GetPulumiServiceWithDownloadInfo.js +28 -0
  88. package/decorators/GetPulumiServiceWithDownloadInfo.js.map +1 -0
  89. package/decorators/ProjectInfoWithPulumi.d.ts +34 -0
  90. package/decorators/ProjectInfoWithPulumi.js +36 -0
  91. package/decorators/ProjectInfoWithPulumi.js.map +1 -0
  92. package/extensions/ApiRoute.d.ts +7 -16
  93. package/extensions/ApiRoute.js +4 -66
  94. package/extensions/ApiRoute.js.map +1 -1
  95. package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.d.ts +3 -2
  96. package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.js +2 -1
  97. package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.js.map +1 -1
  98. package/extensions/OpenSearch/EnsureOsWasDeployed.d.ts +2 -2
  99. package/extensions/OpenSearch/EnsureOsWasDeployed.js +1 -2
  100. package/extensions/OpenSearch/EnsureOsWasDeployed.js.map +1 -1
  101. package/extensions/OpenSearch.js +2 -2
  102. package/extensions/OpenSearch.js.map +1 -1
  103. package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.d.ts +2 -2
  104. package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js +2 -1
  105. package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js.map +1 -1
  106. package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.d.ts +3 -2
  107. package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js +2 -1
  108. package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js.map +1 -1
  109. package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.d.ts +5 -2
  110. package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js +3 -1
  111. package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js.map +1 -1
  112. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.d.ts +3 -1
  113. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.js +2 -1
  114. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.js.map +1 -1
  115. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.d.ts +3 -1
  116. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.js +2 -1
  117. package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.js.map +1 -1
  118. package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.d.ts +3 -1
  119. package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.js +2 -1
  120. package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.js.map +1 -1
  121. package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.d.ts +3 -2
  122. package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js +2 -1
  123. package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js.map +1 -1
  124. package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.d.ts +4 -2
  125. package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js +3 -1
  126. package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js.map +1 -1
  127. package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.d.ts +6 -2
  128. package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.js +2 -1
  129. package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.js.map +1 -1
  130. package/extensions/ProjectAws/TelemetryNoLongerNewUser.d.ts +2 -2
  131. package/extensions/ProjectAws/TelemetryNoLongerNewUser.js +1 -1
  132. package/extensions/ProjectAws/TelemetryNoLongerNewUser.js.map +1 -1
  133. package/extensions/ProjectAws/UploadAdminAppToS3.d.ts +4 -2
  134. package/extensions/ProjectAws/UploadAdminAppToS3.js +2 -2
  135. package/extensions/ProjectAws/UploadAdminAppToS3.js.map +1 -1
  136. package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.d.ts +5 -2
  137. package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.js +2 -1
  138. package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.js.map +1 -1
  139. package/extensions/ProjectAws/ValidateProductionPulumiState.d.ts +5 -2
  140. package/extensions/ProjectAws/ValidateProductionPulumiState.js +3 -1
  141. package/extensions/ProjectAws/ValidateProductionPulumiState.js.map +1 -1
  142. package/extensions/ProjectAws/definitions.js +5 -1
  143. package/extensions/ProjectAws/definitions.js.map +1 -1
  144. package/extensions/ProjectAws.js +2 -1
  145. package/extensions/ProjectAws.js.map +1 -1
  146. package/extensions/RegisterRoutesPulumi.js +2 -2
  147. package/extensions/RegisterRoutesPulumi.js.map +1 -1
  148. package/extensions/definitions.js +0 -2
  149. package/extensions/definitions.js.map +1 -1
  150. package/extensions/registerExtensionImplementations.js +2 -1
  151. package/extensions/registerExtensionImplementations.js.map +1 -1
  152. package/extensions/toApiGatewayPath.d.ts +2 -0
  153. package/extensions/toApiGatewayPath.js +6 -0
  154. package/extensions/toApiGatewayPath.js.map +1 -0
  155. package/features/DeployApp/DeployApp.d.ts +22 -0
  156. package/features/DeployApp/DeployApp.js +91 -0
  157. package/features/DeployApp/DeployApp.js.map +1 -0
  158. package/features/DeployApp/index.d.ts +1 -0
  159. package/features/DeployApp/index.js +1 -0
  160. package/features/DestroyApp/DestroyApp.d.ts +20 -0
  161. package/features/DestroyApp/DestroyApp.js +70 -0
  162. package/features/DestroyApp/DestroyApp.js.map +1 -0
  163. package/features/DestroyApp/index.d.ts +1 -0
  164. package/features/DestroyApp/index.js +1 -0
  165. package/features/ExportStack/ExportStack.d.ts +12 -0
  166. package/features/ExportStack/ExportStack.js +28 -0
  167. package/features/ExportStack/ExportStack.js.map +1 -0
  168. package/features/ExportStack/index.d.ts +1 -0
  169. package/features/ExportStack/index.js +1 -0
  170. package/features/GetAppOutput/GetAppOutput.d.ts +16 -0
  171. package/features/GetAppOutput/GetAppOutput.js +55 -0
  172. package/features/GetAppOutput/GetAppOutput.js.map +1 -0
  173. package/features/GetAppOutput/index.d.ts +1 -0
  174. package/features/GetAppOutput/index.js +1 -0
  175. package/features/GetAppStackOutput/GetAppStackOutput.d.ts +13 -0
  176. package/features/GetAppStackOutput/GetAppStackOutput.js +28 -0
  177. package/features/GetAppStackOutput/GetAppStackOutput.js.map +1 -0
  178. package/features/GetAppStackOutput/index.d.ts +1 -0
  179. package/features/GetAppStackOutput/index.js +1 -0
  180. package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.d.ts +8 -0
  181. package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js +26 -0
  182. package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js.map +1 -0
  183. package/features/GetPulumiResourceNamePrefix/index.d.ts +1 -0
  184. package/features/GetPulumiResourceNamePrefix/index.js +1 -0
  185. package/features/InvokeLambdaFunction.d.ts +1 -1
  186. package/features/InvokeLambdaFunction.js +1 -1
  187. package/features/InvokeLambdaFunction.js.map +1 -1
  188. package/features/RefreshApp/RefreshApp.d.ts +18 -0
  189. package/features/RefreshApp/RefreshApp.js +68 -0
  190. package/features/RefreshApp/RefreshApp.js.map +1 -0
  191. package/features/RefreshApp/index.d.ts +1 -0
  192. package/features/RefreshApp/index.js +1 -0
  193. package/features/RunPulumiCommand/RunPulumiCommand.d.ts +18 -0
  194. package/features/RunPulumiCommand/RunPulumiCommand.js +65 -0
  195. package/features/RunPulumiCommand/RunPulumiCommand.js.map +1 -0
  196. package/features/RunPulumiCommand/index.d.ts +1 -0
  197. package/features/RunPulumiCommand/index.js +1 -0
  198. package/features/Watch/AwsWatch.d.ts +9 -1
  199. package/features/Watch/AwsWatch.js +6 -2
  200. package/features/Watch/AwsWatch.js.map +1 -1
  201. package/features/Watch/getIotEndpoint.d.ts +2 -2
  202. package/features/Watch/getIotEndpoint.js.map +1 -1
  203. package/features/Watch/initInvocationForwarding.d.ts +9 -0
  204. package/features/Watch/initInvocationForwarding.js +91 -0
  205. package/features/Watch/initInvocationForwarding.js.map +1 -0
  206. package/features/Watch/localInvocationWorker.d.ts +1 -0
  207. package/features/Watch/localInvocationWorker.js +31 -0
  208. package/features/Watch/localInvocationWorker.js.map +1 -0
  209. package/features/Watch/replaceLambdaFunctions.d.ts +7 -3
  210. package/features/Watch/replaceLambdaFunctions.js.map +1 -1
  211. package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.d.ts +7 -0
  212. package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.js +25 -0
  213. package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.js.map +1 -0
  214. package/features/hooks/AdminAfterDeploy/index.d.ts +1 -0
  215. package/features/hooks/AdminAfterDeploy/index.js +1 -0
  216. package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.d.ts +7 -0
  217. package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js +25 -0
  218. package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js.map +1 -0
  219. package/features/hooks/AdminBeforeDeploy/index.d.ts +1 -0
  220. package/features/hooks/AdminBeforeDeploy/index.js +1 -0
  221. package/features/hooks/AfterDeploy/AfterDeploy.d.ts +7 -0
  222. package/features/hooks/AfterDeploy/AfterDeploy.js +25 -0
  223. package/features/hooks/AfterDeploy/AfterDeploy.js.map +1 -0
  224. package/features/hooks/AfterDeploy/index.d.ts +1 -0
  225. package/features/hooks/AfterDeploy/index.js +1 -0
  226. package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.d.ts +7 -0
  227. package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.js +25 -0
  228. package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.js.map +1 -0
  229. package/features/hooks/ApiAfterDeploy/index.d.ts +1 -0
  230. package/features/hooks/ApiAfterDeploy/index.js +1 -0
  231. package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.d.ts +7 -0
  232. package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js +25 -0
  233. package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js.map +1 -0
  234. package/features/hooks/ApiBeforeDeploy/index.d.ts +1 -0
  235. package/features/hooks/ApiBeforeDeploy/index.js +1 -0
  236. package/features/hooks/BeforeDeploy/BeforeDeploy.d.ts +7 -0
  237. package/features/hooks/BeforeDeploy/BeforeDeploy.js +25 -0
  238. package/features/hooks/BeforeDeploy/BeforeDeploy.js.map +1 -0
  239. package/features/hooks/BeforeDeploy/index.d.ts +1 -0
  240. package/features/hooks/BeforeDeploy/index.js +1 -0
  241. package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.d.ts +7 -0
  242. package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.js +25 -0
  243. package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.js.map +1 -0
  244. package/features/hooks/CoreAfterDeploy/index.d.ts +1 -0
  245. package/features/hooks/CoreAfterDeploy/index.js +1 -0
  246. package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.d.ts +7 -0
  247. package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js +25 -0
  248. package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js.map +1 -0
  249. package/features/hooks/CoreBeforeDeploy/index.d.ts +1 -0
  250. package/features/hooks/CoreBeforeDeploy/index.js +1 -0
  251. package/index.d.ts +2 -0
  252. package/index.js +2 -0
  253. package/infra.js +2 -2
  254. package/infra.js.map +1 -1
  255. package/package.json +15 -12
  256. package/pulumi/apps/blueGreen/types.d.ts +2 -2
  257. package/pulumi/apps/syncSystem/types.d.ts +2 -2
  258. package/pulumi/getAwsProjectSdk.d.ts +2 -12
  259. package/pulumi/getAwsProjectSdk.js +2 -3
  260. package/pulumi/getAwsProjectSdk.js.map +1 -1
  261. package/pulumi/getStackOutput.d.ts +4 -5
  262. package/pulumi/getStackOutput.js.map +1 -1
  263. package/pulumi/types.d.ts +2 -2
  264. package/registerAwsProjectFeatures.js +38 -9
  265. package/registerAwsProjectFeatures.js.map +1 -1
  266. package/services/AdminStackOutputService.d.ts +1 -1
  267. package/services/AdminStackOutputService.js +1 -1
  268. package/services/AdminStackOutputService.js.map +1 -1
  269. package/services/ApiStackOutputService.d.ts +1 -1
  270. package/services/ApiStackOutputService.js +1 -1
  271. package/services/ApiStackOutputService.js.map +1 -1
  272. package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.d.ts +10 -0
  273. package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.js +30 -0
  274. package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.js.map +1 -0
  275. package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.d.ts +9 -0
  276. package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.js +24 -0
  277. package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.js.map +1 -0
  278. package/services/CoreStackOutputService.d.ts +1 -1
  279. package/services/CoreStackOutputService.js +1 -1
  280. package/services/CoreStackOutputService.js.map +1 -1
  281. package/services/GetPulumiService/GetPulumiService.d.ts +3 -1
  282. package/services/GetPulumiService/GetPulumiService.js +2 -1
  283. package/services/GetPulumiService/GetPulumiService.js.map +1 -1
  284. package/services/GetPulumiVersionService/GetPulumiVersionService.d.ts +5 -0
  285. package/services/GetPulumiVersionService/GetPulumiVersionService.js +46 -0
  286. package/services/GetPulumiVersionService/GetPulumiVersionService.js.map +1 -0
  287. package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.d.ts +14 -0
  288. package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js +15 -0
  289. package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js.map +1 -0
  290. package/services/IsRemotePulumiBackendService/index.d.ts +1 -0
  291. package/services/IsRemotePulumiBackendService/index.js +1 -0
  292. package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.d.ts +20 -0
  293. package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js +63 -0
  294. package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js.map +1 -0
  295. package/services/ListAppLambdaFunctionsService/index.d.ts +1 -0
  296. package/services/ListAppLambdaFunctionsService/index.js +1 -0
  297. package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.d.ts +8 -0
  298. package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js +31 -0
  299. package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js.map +1 -0
  300. package/services/ListDeployedEnvironmentsService/index.d.ts +1 -0
  301. package/services/ListDeployedEnvironmentsService/index.js +1 -0
  302. package/services/PulumiExportService/PulumiExportService.d.ts +16 -0
  303. package/services/PulumiExportService/PulumiExportService.js +54 -0
  304. package/services/PulumiExportService/PulumiExportService.js.map +1 -0
  305. package/services/PulumiExportService/index.d.ts +1 -0
  306. package/services/PulumiExportService/index.js +1 -0
  307. package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.d.ts +5 -0
  308. package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js +15 -0
  309. package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js.map +1 -0
  310. package/services/PulumiGetConfigPassphraseService/index.d.ts +1 -0
  311. package/services/PulumiGetConfigPassphraseService/index.js +1 -0
  312. package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.d.ts +5 -0
  313. package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js +15 -0
  314. package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js.map +1 -0
  315. package/services/PulumiGetSecretsProviderService/index.d.ts +1 -0
  316. package/services/PulumiGetSecretsProviderService/index.js +1 -0
  317. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.d.ts +16 -0
  318. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js +69 -0
  319. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +1 -0
  320. package/services/PulumiGetStackOutputService/index.d.ts +1 -0
  321. package/services/PulumiGetStackOutputService/index.js +1 -0
  322. package/services/PulumiGetStackOutputService/mapStackOutput.d.ts +1 -0
  323. package/services/PulumiGetStackOutputService/mapStackOutput.js +22 -0
  324. package/services/PulumiGetStackOutputService/mapStackOutput.js.map +1 -0
  325. package/services/PulumiImportService/PulumiImportService.d.ts +13 -0
  326. package/services/PulumiImportService/PulumiImportService.js +64 -0
  327. package/services/PulumiImportService/PulumiImportService.js.map +1 -0
  328. package/services/PulumiImportService/index.d.ts +1 -0
  329. package/services/PulumiImportService/index.js +1 -0
  330. package/services/PulumiLoginService/PulumiLoginService.d.ts +13 -0
  331. package/services/PulumiLoginService/PulumiLoginService.js +59 -0
  332. package/services/PulumiLoginService/PulumiLoginService.js.map +1 -0
  333. package/services/PulumiLoginService/index.d.ts +1 -0
  334. package/services/PulumiLoginService/index.js +1 -0
  335. package/services/PulumiSelectStackService/PulumiSelectStackService.d.ts +20 -0
  336. package/services/PulumiSelectStackService/PulumiSelectStackService.js +106 -0
  337. package/services/PulumiSelectStackService/PulumiSelectStackService.js.map +1 -0
  338. package/services/PulumiSelectStackService/index.d.ts +1 -0
  339. package/services/PulumiSelectStackService/index.js +1 -0
  340. package/services/StackOutputCacheService/StackOutputCacheService.d.ts +21 -0
  341. package/services/StackOutputCacheService/StackOutputCacheService.js +90 -0
  342. package/services/StackOutputCacheService/StackOutputCacheService.js.map +1 -0
  343. package/services/StackOutputCacheService/index.d.ts +1 -0
  344. package/services/StackOutputCacheService/index.js +1 -0
  345. package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.d.ts +14 -0
  346. package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js +55 -0
  347. package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js.map +1 -0
  348. package/services/WatchedLambdaFunctionsService/index.d.ts +1 -0
  349. package/services/WatchedLambdaFunctionsService/index.js +1 -0
  350. package/utils/withPulumiConfigPassphrase.d.ts +1 -0
  351. package/utils/withPulumiConfigPassphrase.js +7 -0
  352. package/utils/withPulumiConfigPassphrase.js.map +1 -0
  353. package/extensions/routePath.d.ts +0 -20
  354. package/extensions/routePath.js +0 -13
  355. package/extensions/routePath.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services/StackOutputCacheService/StackOutputCacheService.js","sources":["../../../src/services/StackOutputCacheService/StackOutputCacheService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { GetProjectService } from \"@webiny/project/abstractions/index.js\";\nimport { LoggerService } from \"@webiny/project/abstractions/index.js\";\nimport { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport { StackOutputCacheService } from \"~/abstractions/services/StackOutputCacheService.js\";\nimport { type IAppModel } from \"@webiny/project/abstractions/models/index.js\";\nimport fs from \"fs/promises\";\n\nexport class DefaultStackOutputCacheService implements StackOutputCacheService.Interface {\n private static readonly DEFAULT_ENV = \"dev\";\n private static readonly DEFAULT_REGION = \"default\";\n private static readonly DEFAULT_VARIANT = \"default\";\n\n constructor(\n private getProjectService: GetProjectService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface,\n private loggerService: LoggerService.Interface\n ) {}\n\n async read(app: IAppModel): Promise<Record<string, any> | null> {\n const cachePath = this.getCachePath(app);\n\n try {\n const content = await fs.readFile(cachePath, \"utf-8\");\n const data = JSON.parse(content);\n this.loggerService.debug(\n { app: app.name, cacheKey: this.getCacheKey(app) },\n \"Stack output read from cache\"\n );\n return data;\n } catch {\n // File doesn't exist or couldn't be read/parsed - this is expected on first run.\n return null;\n }\n }\n\n async write(app: IAppModel, data: Record<string, any>): Promise<void> {\n const cachePath = this.getCachePath(app);\n const cacheDir = this.getCacheDir().toString();\n\n try {\n // Create cache directory if it doesn't exist.\n await fs.mkdir(cacheDir, { recursive: true });\n await fs.writeFile(cachePath, JSON.stringify(data, null, 2), \"utf-8\");\n this.loggerService.debug(\"Stack output stored to cache\", {\n app: app.name,\n cacheKey: this.getCacheKey(app)\n });\n } catch (error) {\n this.loggerService.error(\"Could not write to cache file.\", cachePath, error);\n }\n }\n\n async delete(app: IAppModel): Promise<void> {\n const cachePath = this.getCachePath(app);\n\n try {\n // `force: true` makes this a no-op if the cache file doesn't exist.\n await fs.rm(cachePath, { force: true });\n this.loggerService.debug(\"Stack output cache deleted.\", {\n app: app.name,\n cacheKey: this.getCacheKey(app)\n });\n } catch (error) {\n this.loggerService.error(\"Could not delete stack output cache file.\", cachePath, error);\n }\n }\n\n private getCacheKey(app: IAppModel): string {\n const sdkParams = this.projectSdkParamsService.get();\n const env = sdkParams.env || DefaultStackOutputCacheService.DEFAULT_ENV;\n const region = sdkParams.region || DefaultStackOutputCacheService.DEFAULT_REGION;\n const variant = sdkParams.variant || DefaultStackOutputCacheService.DEFAULT_VARIANT;\n return `${app.name}-${env}-${region}-${variant}.json`;\n }\n\n private getCacheDir() {\n const project = this.getProjectService.execute();\n return project.paths.dotWebinyFolder.join(\"caches\", \"stack-output\");\n }\n\n private getCachePath(app: IAppModel): string {\n return this.getCacheDir().join(this.getCacheKey(app)).toString();\n }\n}\n\nexport const stackOutputCacheService = createImplementation({\n abstraction: StackOutputCacheService,\n implementation: DefaultStackOutputCacheService,\n dependencies: [GetProjectService, ProjectSdkParamsService, LoggerService]\n});\n"],"names":["DefaultStackOutputCacheService","getProjectService","projectSdkParamsService","loggerService","app","cachePath","content","fs","data","JSON","cacheDir","error","sdkParams","env","region","variant","project","stackOutputCacheService","createImplementation","StackOutputCacheService","GetProjectService","ProjectSdkParamsService","LoggerService"],"mappings":";;;;AAQO,MAAMA;;aACe,WAAW,GAAG;;;aACd,cAAc,GAAG;;;aACjB,eAAe,GAAG;;IAE1C,YACYC,iBAA8C,EAC9CC,uBAA0D,EAC1DC,aAAsC,CAChD;aAHUF,iBAAiB,GAAjBA;aACAC,uBAAuB,GAAvBA;aACAC,aAAa,GAAbA;IACT;IAEH,MAAM,KAAKC,GAAc,EAAuC;QAC5D,MAAMC,YAAY,IAAI,CAAC,YAAY,CAACD;QAEpC,IAAI;YACA,MAAME,UAAU,MAAMC,SAAAA,QAAW,CAACF,WAAW;YAC7C,MAAMG,OAAOC,KAAK,KAAK,CAACH;YACxB,IAAI,CAAC,aAAa,CAAC,KAAK,CACpB;gBAAE,KAAKF,IAAI,IAAI;gBAAE,UAAU,IAAI,CAAC,WAAW,CAACA;YAAK,GACjD;YAEJ,OAAOI;QACX,EAAE,OAAM;YAEJ,OAAO;QACX;IACJ;IAEA,MAAM,MAAMJ,GAAc,EAAEI,IAAyB,EAAiB;QAClE,MAAMH,YAAY,IAAI,CAAC,YAAY,CAACD;QACpC,MAAMM,WAAW,IAAI,CAAC,WAAW,GAAG,QAAQ;QAE5C,IAAI;YAEA,MAAMH,SAAAA,KAAQ,CAACG,UAAU;gBAAE,WAAW;YAAK;YAC3C,MAAMH,SAAAA,SAAY,CAACF,WAAWI,KAAK,SAAS,CAACD,MAAM,MAAM,IAAI;YAC7D,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,gCAAgC;gBACrD,KAAKJ,IAAI,IAAI;gBACb,UAAU,IAAI,CAAC,WAAW,CAACA;YAC/B;QACJ,EAAE,OAAOO,OAAO;YACZ,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,kCAAkCN,WAAWM;QAC1E;IACJ;IAEA,MAAM,OAAOP,GAAc,EAAiB;QACxC,MAAMC,YAAY,IAAI,CAAC,YAAY,CAACD;QAEpC,IAAI;YAEA,MAAMG,SAAAA,EAAK,CAACF,WAAW;gBAAE,OAAO;YAAK;YACrC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,+BAA+B;gBACpD,KAAKD,IAAI,IAAI;gBACb,UAAU,IAAI,CAAC,WAAW,CAACA;YAC/B;QACJ,EAAE,OAAOO,OAAO;YACZ,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,6CAA6CN,WAAWM;QACrF;IACJ;IAEQ,YAAYP,GAAc,EAAU;QACxC,MAAMQ,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAClD,MAAMC,MAAMD,UAAU,GAAG,IAAIZ,+BAA+B,WAAW;QACvE,MAAMc,SAASF,UAAU,MAAM,IAAIZ,+BAA+B,cAAc;QAChF,MAAMe,UAAUH,UAAU,OAAO,IAAIZ,+BAA+B,eAAe;QACnF,OAAO,GAAGI,IAAI,IAAI,CAAC,CAAC,EAAES,IAAI,CAAC,EAAEC,OAAO,CAAC,EAAEC,QAAQ,KAAK,CAAC;IACzD;IAEQ,cAAc;QAClB,MAAMC,UAAU,IAAI,CAAC,iBAAiB,CAAC,OAAO;QAC9C,OAAOA,QAAQ,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU;IACxD;IAEQ,aAAaZ,GAAc,EAAU;QACzC,OAAO,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,CAACA,MAAM,QAAQ;IAClE;AACJ;AAEO,MAAMa,0BAA0BC,qBAAqB;IACxD,aAAaC;IACb,gBAAgBnB;IAChB,cAAc;QAACoB;QAAmBC;QAAyBC;KAAc;AAC7E"}
@@ -0,0 +1 @@
1
+ export * from "./StackOutputCacheService.js";
@@ -0,0 +1 @@
1
+ export * from "./StackOutputCacheService.js";
@@ -0,0 +1,14 @@
1
+ import { WatchedLambdaFunctionsService } from "../../abstractions/services/WatchedLambdaFunctionsService.js";
2
+ import { LocalStorageService } from "@webiny/project/abstractions/index.js";
3
+ export declare class DefaultWatchedLambdaFunctionsService implements WatchedLambdaFunctionsService.Interface {
4
+ private localStorageService;
5
+ constructor(localStorageService: LocalStorageService.Interface);
6
+ markDirty(params: WatchedLambdaFunctionsService.Params, functionUrns: string[]): void;
7
+ getDirty(params: WatchedLambdaFunctionsService.Params): string[];
8
+ clearDirty(params: WatchedLambdaFunctionsService.Params): void;
9
+ clearAll(): void;
10
+ private getCacheKey;
11
+ private getData;
12
+ private setData;
13
+ }
14
+ export declare const watchedLambdaFunctionsService: import("@webiny/di").Implementation<typeof DefaultWatchedLambdaFunctionsService>;
@@ -0,0 +1,55 @@
1
+ import { createImplementation } from "@webiny/di";
2
+ import { WatchedLambdaFunctionsService } from "../../abstractions/services/WatchedLambdaFunctionsService.js";
3
+ import { LocalStorageService } from "@webiny/project/abstractions/index.js";
4
+ const WATCHED_LAMBDA_FUNCTIONS_KEY = "watchedLambdaFunctions";
5
+ class DefaultWatchedLambdaFunctionsService {
6
+ constructor(localStorageService){
7
+ this.localStorageService = localStorageService;
8
+ }
9
+ markDirty(params, functionUrns) {
10
+ const key = this.getCacheKey(params);
11
+ const data = this.getData(key);
12
+ if (!data[params.name]) data[params.name] = [];
13
+ for (const urn of functionUrns)if (!data[params.name].includes(urn)) data[params.name].push(urn);
14
+ this.setData(key, data);
15
+ }
16
+ getDirty(params) {
17
+ const key = this.getCacheKey(params);
18
+ const data = this.getData(key);
19
+ return data[params.name] || [];
20
+ }
21
+ clearDirty(params) {
22
+ const key = this.getCacheKey(params);
23
+ const data = this.getData(key);
24
+ delete data[params.name];
25
+ this.setData(key, data);
26
+ }
27
+ clearAll() {
28
+ this.setData(WATCHED_LAMBDA_FUNCTIONS_KEY, {});
29
+ }
30
+ getCacheKey(params) {
31
+ return params.deploymentId ? `${WATCHED_LAMBDA_FUNCTIONS_KEY}-${params.deploymentId}` : WATCHED_LAMBDA_FUNCTIONS_KEY;
32
+ }
33
+ getData(key) {
34
+ const data = this.localStorageService.get(key);
35
+ if (!data) return {};
36
+ try {
37
+ return "string" == typeof data ? JSON.parse(data) : data;
38
+ } catch {
39
+ return {};
40
+ }
41
+ }
42
+ setData(key, data) {
43
+ this.localStorageService.set(key, data);
44
+ }
45
+ }
46
+ const watchedLambdaFunctionsService = createImplementation({
47
+ abstraction: WatchedLambdaFunctionsService,
48
+ implementation: DefaultWatchedLambdaFunctionsService,
49
+ dependencies: [
50
+ LocalStorageService
51
+ ]
52
+ });
53
+ export { DefaultWatchedLambdaFunctionsService, watchedLambdaFunctionsService };
54
+
55
+ //# sourceMappingURL=WatchedLambdaFunctionsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js","sources":["../../../src/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { WatchedLambdaFunctionsService } from \"~/abstractions/services/WatchedLambdaFunctionsService.js\";\nimport { LocalStorageService } from \"@webiny/project/abstractions/index.js\";\n\nconst WATCHED_LAMBDA_FUNCTIONS_KEY = \"watchedLambdaFunctions\";\n\ninterface WatchedLambdaFunctionsData {\n [app: string]: string[]; // app name -> array of Lambda URNs\n}\n\nexport class DefaultWatchedLambdaFunctionsService\n implements WatchedLambdaFunctionsService.Interface\n{\n constructor(private localStorageService: LocalStorageService.Interface) {}\n\n markDirty(params: WatchedLambdaFunctionsService.Params, functionUrns: string[]): void {\n const key = this.getCacheKey(params);\n const data = this.getData(key);\n\n if (!data[params.name]) {\n data[params.name] = [];\n }\n\n // Add new URNs, avoiding duplicates.\n for (const urn of functionUrns) {\n if (!data[params.name].includes(urn)) {\n data[params.name].push(urn);\n }\n }\n\n this.setData(key, data);\n }\n\n getDirty(params: WatchedLambdaFunctionsService.Params): string[] {\n const key = this.getCacheKey(params);\n const data = this.getData(key);\n return data[params.name] || [];\n }\n\n clearDirty(params: WatchedLambdaFunctionsService.Params): void {\n const key = this.getCacheKey(params);\n const data = this.getData(key);\n delete data[params.name];\n this.setData(key, data);\n }\n\n clearAll(): void {\n this.setData(WATCHED_LAMBDA_FUNCTIONS_KEY, {});\n }\n\n private getCacheKey(params: WatchedLambdaFunctionsService.Params): string {\n return params.deploymentId\n ? `${WATCHED_LAMBDA_FUNCTIONS_KEY}-${params.deploymentId}`\n : WATCHED_LAMBDA_FUNCTIONS_KEY;\n }\n\n private getData(key: string): WatchedLambdaFunctionsData {\n const data = this.localStorageService.get(key);\n if (!data) {\n return {};\n }\n\n try {\n return typeof data === \"string\" ? JSON.parse(data) : data;\n } catch {\n return {};\n }\n }\n\n private setData(key: string, data: WatchedLambdaFunctionsData): void {\n this.localStorageService.set(key, data);\n }\n}\n\nexport const watchedLambdaFunctionsService = createImplementation({\n abstraction: WatchedLambdaFunctionsService,\n implementation: DefaultWatchedLambdaFunctionsService,\n dependencies: [LocalStorageService]\n});\n"],"names":["WATCHED_LAMBDA_FUNCTIONS_KEY","DefaultWatchedLambdaFunctionsService","localStorageService","params","functionUrns","key","data","urn","JSON","watchedLambdaFunctionsService","createImplementation","WatchedLambdaFunctionsService","LocalStorageService"],"mappings":";;;AAIA,MAAMA,+BAA+B;AAM9B,MAAMC;IAGT,YAAoBC,mBAAkD,CAAE;aAApDA,mBAAmB,GAAnBA;IAAqD;IAEzE,UAAUC,MAA4C,EAAEC,YAAsB,EAAQ;QAClF,MAAMC,MAAM,IAAI,CAAC,WAAW,CAACF;QAC7B,MAAMG,OAAO,IAAI,CAAC,OAAO,CAACD;QAE1B,IAAI,CAACC,IAAI,CAACH,OAAO,IAAI,CAAC,EAClBG,IAAI,CAACH,OAAO,IAAI,CAAC,GAAG,EAAE;QAI1B,KAAK,MAAMI,OAAOH,aACd,IAAI,CAACE,IAAI,CAACH,OAAO,IAAI,CAAC,CAAC,QAAQ,CAACI,MAC5BD,IAAI,CAACH,OAAO,IAAI,CAAC,CAAC,IAAI,CAACI;QAI/B,IAAI,CAAC,OAAO,CAACF,KAAKC;IACtB;IAEA,SAASH,MAA4C,EAAY;QAC7D,MAAME,MAAM,IAAI,CAAC,WAAW,CAACF;QAC7B,MAAMG,OAAO,IAAI,CAAC,OAAO,CAACD;QAC1B,OAAOC,IAAI,CAACH,OAAO,IAAI,CAAC,IAAI,EAAE;IAClC;IAEA,WAAWA,MAA4C,EAAQ;QAC3D,MAAME,MAAM,IAAI,CAAC,WAAW,CAACF;QAC7B,MAAMG,OAAO,IAAI,CAAC,OAAO,CAACD;QAC1B,OAAOC,IAAI,CAACH,OAAO,IAAI,CAAC;QACxB,IAAI,CAAC,OAAO,CAACE,KAAKC;IACtB;IAEA,WAAiB;QACb,IAAI,CAAC,OAAO,CAACN,8BAA8B,CAAC;IAChD;IAEQ,YAAYG,MAA4C,EAAU;QACtE,OAAOA,OAAO,YAAY,GACpB,GAAGH,6BAA6B,CAAC,EAAEG,OAAO,YAAY,EAAE,GACxDH;IACV;IAEQ,QAAQK,GAAW,EAA8B;QACrD,MAAMC,OAAO,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAACD;QAC1C,IAAI,CAACC,MACD,OAAO,CAAC;QAGZ,IAAI;YACA,OAAO,AAAgB,YAAhB,OAAOA,OAAoBE,KAAK,KAAK,CAACF,QAAQA;QACzD,EAAE,OAAM;YACJ,OAAO,CAAC;QACZ;IACJ;IAEQ,QAAQD,GAAW,EAAEC,IAAgC,EAAQ;QACjE,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAACD,KAAKC;IACtC;AACJ;AAEO,MAAMG,gCAAgCC,qBAAqB;IAC9D,aAAaC;IACb,gBAAgBV;IAChB,cAAc;QAACW;KAAoB;AACvC"}
@@ -0,0 +1 @@
1
+ export * from "./WatchedLambdaFunctionsService.js";
@@ -0,0 +1 @@
1
+ export * from "./WatchedLambdaFunctionsService.js";
@@ -0,0 +1 @@
1
+ export declare const withPulumiConfigPassphrase: (passphrase?: string) => import("@webiny/project/utils/env").IConfigurationCb;
@@ -0,0 +1,7 @@
1
+ import { createConfiguration } from "@webiny/project/utils/env/configuration.js";
2
+ const withPulumiConfigPassphrase = (passphrase)=>createConfiguration(()=>({
3
+ PULUMI_CONFIG_PASSPHRASE: passphrase || process.env.PULUMI_CONFIG_PASSPHRASE || "webiny"
4
+ }));
5
+ export { withPulumiConfigPassphrase };
6
+
7
+ //# sourceMappingURL=withPulumiConfigPassphrase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils/withPulumiConfigPassphrase.js","sources":["../../src/utils/withPulumiConfigPassphrase.ts"],"sourcesContent":["import { createConfiguration } from \"@webiny/project/utils/env/configuration.js\";\n\nexport const withPulumiConfigPassphrase = (passphrase?: string) => {\n // TODO: use PulumiGetConfigPassphraseService instead.\n return createConfiguration(() => {\n return {\n PULUMI_CONFIG_PASSPHRASE: passphrase || process.env.PULUMI_CONFIG_PASSPHRASE || \"webiny\"\n };\n });\n};\n"],"names":["withPulumiConfigPassphrase","passphrase","createConfiguration","process"],"mappings":";AAEO,MAAMA,6BAA6B,CAACC,aAEhCC,oBAAoB,IAChB;YACH,0BAA0BD,cAAcE,QAAQ,GAAG,CAAC,wBAAwB,IAAI;QACpF"}
@@ -1,20 +0,0 @@
1
- /**
2
- * The `path` prop on `<Api.Route>` feeds two consumers that spell path parameters differently:
3
- * API Gateway wants `{orderId}`, the DI `HttpRouter` wants `:orderId`. Rather than pick a winner and
4
- * break whichever projects already used the other, accept both and convert per consumer.
5
- *
6
- * Wildcards are left alone. `HttpRouter` matches a trailing `/*`, API Gateway spells the same thing
7
- * `{proxy+}`, and translating between them changes what the route captures — so a wildcard route
8
- * has to be written for the target it's aimed at.
9
- */
10
- /** `/orders/:orderId` → `/orders/{orderId}`. Already-braced segments pass through. */
11
- export declare function toApiGatewayPath(path: string): string;
12
- /** `/orders/{orderId}` → `/orders/:orderId`. Already-colon segments pass through. */
13
- export declare function toRouterPath(path: string): string;
14
- /**
15
- * `/asd/{id}/xs` + POST → `asd-xs-post`. Handles either parameter syntax.
16
- *
17
- * Used for BOTH the Pulumi resource name and the route's DI name, so the name a decorator matches
18
- * on is the same one that shows up in infrastructure.
19
- */
20
- export declare function deriveRouteName(routePath: string, method: string): string;
@@ -1,13 +0,0 @@
1
- function toApiGatewayPath(path) {
2
- return path.replace(/(^|\/):([^/]+)/g, (_match, prefix, name)=>`${prefix}{${name}}`);
3
- }
4
- function toRouterPath(path) {
5
- return path.replace(/\{([^}]+)\}/g, (_match, name)=>`:${name}`);
6
- }
7
- function deriveRouteName(routePath, method) {
8
- const pathPart = routePath.replace(/^\//, "").replace(/\{[^}]*\}/g, "").replace(/(^|\/):[^/]+/g, "$1").replace(/\/+/g, "-").replace(/^-+|-+$/g, "").toLowerCase();
9
- return `${pathPart}-${method.toLowerCase()}`;
10
- }
11
- export { deriveRouteName, toApiGatewayPath, toRouterPath };
12
-
13
- //# sourceMappingURL=routePath.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extensions/routePath.js","sources":["../../src/extensions/routePath.ts"],"sourcesContent":["/**\n * The `path` prop on `<Api.Route>` feeds two consumers that spell path parameters differently:\n * API Gateway wants `{orderId}`, the DI `HttpRouter` wants `:orderId`. Rather than pick a winner and\n * break whichever projects already used the other, accept both and convert per consumer.\n *\n * Wildcards are left alone. `HttpRouter` matches a trailing `/*`, API Gateway spells the same thing\n * `{proxy+}`, and translating between them changes what the route captures — so a wildcard route\n * has to be written for the target it's aimed at.\n */\n\n/** `/orders/:orderId` → `/orders/{orderId}`. Already-braced segments pass through. */\nexport function toApiGatewayPath(path: string): string {\n return path.replace(/(^|\\/):([^/]+)/g, (_match, prefix: string, name: string) => {\n return `${prefix}{${name}}`;\n });\n}\n\n/** `/orders/{orderId}` → `/orders/:orderId`. Already-colon segments pass through. */\nexport function toRouterPath(path: string): string {\n return path.replace(/\\{([^}]+)\\}/g, (_match, name: string) => {\n return `:${name}`;\n });\n}\n\n/**\n * `/asd/{id}/xs` + POST → `asd-xs-post`. Handles either parameter syntax.\n *\n * Used for BOTH the Pulumi resource name and the route's DI name, so the name a decorator matches\n * on is the same one that shows up in infrastructure.\n */\nexport function deriveRouteName(routePath: string, method: string): string {\n // /asd/{id}/xs + POST → asd-xs-post. Strips parameters in either syntax.\n const pathPart = routePath\n .replace(/^\\//, \"\")\n .replace(/\\{[^}]*\\}/g, \"\")\n .replace(/(^|\\/):[^/]+/g, \"$1\")\n .replace(/\\/+/g, \"-\")\n .replace(/^-+|-+$/g, \"\")\n .toLowerCase();\n\n return `${pathPart}-${method.toLowerCase()}`;\n}\n"],"names":["toApiGatewayPath","path","_match","prefix","name","toRouterPath","deriveRouteName","routePath","method","pathPart"],"mappings":"AAWO,SAASA,iBAAiBC,IAAY;IACzC,OAAOA,KAAK,OAAO,CAAC,mBAAmB,CAACC,QAAQC,QAAgBC,OACrD,GAAGD,OAAO,CAAC,EAAEC,KAAK,CAAC,CAAC;AAEnC;AAGO,SAASC,aAAaJ,IAAY;IACrC,OAAOA,KAAK,OAAO,CAAC,gBAAgB,CAACC,QAAQE,OAClC,CAAC,CAAC,EAAEA,MAAM;AAEzB;AAQO,SAASE,gBAAgBC,SAAiB,EAAEC,MAAc;IAE7D,MAAMC,WAAWF,UACZ,OAAO,CAAC,OAAO,IACf,OAAO,CAAC,cAAc,IACtB,OAAO,CAAC,iBAAiB,MACzB,OAAO,CAAC,QAAQ,KAChB,OAAO,CAAC,YAAY,IACpB,WAAW;IAEhB,OAAO,GAAGE,SAAS,CAAC,EAAED,OAAO,WAAW,IAAI;AAChD"}