@webiny/project 0.0.0-unstable.e2758ee1cf → 0.0.0-unstable.e6f0dc8ca7

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 (209) hide show
  1. package/abstractions/features/DeployApp.d.ts +0 -1
  2. package/abstractions/features/DeployApp.js.map +1 -1
  3. package/abstractions/features/index.d.ts +0 -1
  4. package/abstractions/features/index.js +0 -1
  5. package/abstractions/features/index.js.map +1 -1
  6. package/defineExtension/models/ExtensionDefinitionModel.d.ts +4 -4
  7. package/defineExtension/models/ExtensionDefinitionModel.js.map +1 -1
  8. package/defineExtension/models/ExtensionInstanceModel.js +4 -1
  9. package/defineExtension/models/ExtensionInstanceModel.js.map +1 -1
  10. package/defineExtension/zodTypes/zodSrcPath.d.ts +1 -1
  11. package/defineExtension/zodTypes/zodSrcPath.js +11 -0
  12. package/defineExtension/zodTypes/zodSrcPath.js.map +1 -1
  13. package/exports/infra/admin.d.ts +0 -1
  14. package/exports/infra/admin.js +0 -1
  15. package/exports/infra/admin.js.map +1 -1
  16. package/exports/infra/api.d.ts +0 -1
  17. package/exports/infra/api.js +0 -1
  18. package/exports/infra/api.js.map +1 -1
  19. package/exports/infra/core.d.ts +0 -1
  20. package/exports/infra/core.js +0 -1
  21. package/exports/infra/core.js.map +1 -1
  22. package/exports/infra.d.ts +8 -0
  23. package/exports/infra.js +10 -0
  24. package/exports/{infra/index.js.map → infra.js.map} +1 -1
  25. package/extensions/AdminBuildParam.d.ts +2 -8
  26. package/extensions/AdminBuildParam.js +1 -1
  27. package/extensions/AdminBuildParam.js.map +1 -1
  28. package/extensions/AdminExtension.d.ts +2 -8
  29. package/extensions/ApiBuildParam.d.ts +2 -8
  30. package/extensions/ApiBuildParam.js +4 -4
  31. package/extensions/ApiBuildParam.js.map +1 -1
  32. package/extensions/ApiExtension.d.ts +2 -8
  33. package/extensions/ApiExtension.js +5 -5
  34. package/extensions/ApiExtension.js.map +1 -1
  35. package/extensions/DatabaseSetup.d.ts +7 -7
  36. package/extensions/EnvVar.d.ts +4 -7
  37. package/extensions/EnvVar.js +4 -0
  38. package/extensions/EnvVar.js.map +1 -1
  39. package/extensions/ExtensionDefinitions.d.ts +1 -5
  40. package/extensions/FeatureFlags.d.ts +17 -79
  41. package/extensions/FeatureFlags.js +12 -0
  42. package/extensions/FeatureFlags.js.map +1 -1
  43. package/extensions/Project/EnsureTelemetryEnabledForOss.js +1 -1
  44. package/extensions/Project/EnsureTelemetryEnabledForOss.js.map +1 -1
  45. package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js +1 -0
  46. package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js.map +1 -1
  47. package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js +1 -0
  48. package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js.map +1 -1
  49. package/extensions/Project/ValidateEncryptionBeforeDeploy.d.ts +12 -0
  50. package/extensions/Project/ValidateEncryptionBeforeDeploy.js +32 -0
  51. package/extensions/Project/ValidateEncryptionBeforeDeploy.js.map +1 -0
  52. package/extensions/Project.js +2 -0
  53. package/extensions/Project.js.map +1 -1
  54. package/extensions/ProjectDecorator.d.ts +3 -7
  55. package/extensions/ProjectId.d.ts +3 -7
  56. package/extensions/ProjectId.js +1 -1
  57. package/extensions/ProjectId.js.map +1 -1
  58. package/extensions/ProjectImplementation.d.ts +3 -9
  59. package/extensions/Telemetry.d.ts +2 -6
  60. package/extensions/hooks/AdminAfterBuild.d.ts +2 -6
  61. package/extensions/hooks/AdminAfterDeploy.d.ts +2 -6
  62. package/extensions/hooks/AdminBeforeBuild.d.ts +2 -6
  63. package/extensions/hooks/AdminBeforeDeploy.d.ts +2 -6
  64. package/extensions/hooks/AdminBeforeWatch.d.ts +2 -6
  65. package/extensions/hooks/AfterBuild.d.ts +2 -6
  66. package/extensions/hooks/AfterDeploy.d.ts +2 -6
  67. package/extensions/hooks/ApiAfterBuild.d.ts +2 -6
  68. package/extensions/hooks/ApiAfterDeploy.d.ts +2 -6
  69. package/extensions/hooks/ApiBeforeBuild.d.ts +2 -6
  70. package/extensions/hooks/ApiBeforeDeploy.d.ts +2 -6
  71. package/extensions/hooks/ApiBeforeWatch.d.ts +2 -6
  72. package/extensions/hooks/BeforeBuild.d.ts +2 -6
  73. package/extensions/hooks/BeforeDeploy.d.ts +2 -6
  74. package/extensions/hooks/BeforeWatch.d.ts +2 -6
  75. package/extensions/hooks/CoreAfterBuild.d.ts +2 -6
  76. package/extensions/hooks/CoreAfterDeploy.d.ts +2 -6
  77. package/extensions/hooks/CoreBeforeBuild.d.ts +2 -6
  78. package/extensions/hooks/CoreBeforeDeploy.d.ts +2 -6
  79. package/extensions/hooks/CoreBeforeWatch.d.ts +2 -6
  80. package/extensions/index.d.ts +38 -145
  81. package/extensions/index.js +5 -8
  82. package/extensions/index.js.map +1 -1
  83. package/extensions/infra/Ci.d.ts +14 -0
  84. package/extensions/infra/Ci.js +29 -0
  85. package/extensions/infra/Ci.js.map +1 -0
  86. package/extensions/infra/Env.d.ts +6 -0
  87. package/extensions/infra/Env.js +21 -0
  88. package/extensions/infra/Env.js.map +1 -1
  89. package/extensions/infra/index.d.ts +1 -0
  90. package/extensions/infra/index.js +1 -0
  91. package/extensions/infra/index.js.map +1 -1
  92. package/extensions/pulumi/AdminStackOutputValue.d.ts +1 -7
  93. package/extensions/pulumi/ApiStackOutputValue.d.ts +1 -7
  94. package/extensions/pulumi/CoreStackOutputValue.d.ts +1 -7
  95. package/extensions/pulumi/ProductionEnvironments.d.ts +2 -6
  96. package/extensions/pulumi/ProductionEnvironments.js +16 -1
  97. package/extensions/pulumi/ProductionEnvironments.js.map +1 -1
  98. package/extensions/pulumi/PulumiResourceNamePrefix.d.ts +1 -5
  99. package/extensions/pulumi/index.d.ts +0 -3
  100. package/extensions/pulumi/index.js +0 -3
  101. package/extensions/pulumi/index.js.map +1 -1
  102. package/features/BuildApp/PackagesBuilder/worker.js +1 -1
  103. package/features/BuildApp/PackagesBuilder/worker.js.map +1 -1
  104. package/features/GetFeatureFlags/GetFeatureFlags.d.ts +1 -2
  105. package/features/GetFeatureFlags/GetFeatureFlags.js +1 -2
  106. package/features/GetFeatureFlags/GetFeatureFlags.js.map +1 -1
  107. package/features/Watch/initInvocationForwarding.d.ts +1 -1
  108. package/features/Watch/initInvocationForwarding.js +1 -1
  109. package/features/Watch/initInvocationForwarding.js.map +1 -1
  110. package/features/Watch/localInvocationWorker.js +5 -1
  111. package/features/Watch/localInvocationWorker.js.map +1 -1
  112. package/features/index.d.ts +0 -1
  113. package/features/index.js +0 -1
  114. package/features/index.js.map +1 -1
  115. package/index.d.ts +1 -0
  116. package/index.js +1 -0
  117. package/index.js.map +1 -1
  118. package/package.json +38 -39
  119. package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js +4 -4
  120. package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js.map +1 -1
  121. package/services/GetProjectConfigService/GetProjectConfigService.js +2 -1
  122. package/services/GetProjectConfigService/GetProjectConfigService.js.map +1 -1
  123. package/services/GetProjectConfigService/ProductionEnvironmentsContext.d.ts +6 -0
  124. package/services/GetProjectConfigService/ProductionEnvironmentsContext.js +21 -0
  125. package/services/GetProjectConfigService/ProductionEnvironmentsContext.js.map +1 -0
  126. package/services/GetProjectConfigService/renderConfigWorker.js +14 -4
  127. package/services/GetProjectConfigService/renderConfigWorker.js.map +1 -1
  128. package/services/GetProjectIdService/GetProjectIdService.js +1 -1
  129. package/services/GetProjectIdService/GetProjectIdService.js.map +1 -1
  130. package/services/GetProjectService/GetProjectService.js +2 -2
  131. package/services/GetProjectService/GetProjectService.js.map +1 -1
  132. package/services/GetProjectVersionService/GetProjectVersionService.js +4 -4
  133. package/services/GetProjectVersionService/GetProjectVersionService.js.map +1 -1
  134. package/services/InitProjectSdkService/InitProjectSdkService.js +0 -6
  135. package/services/InitProjectSdkService/InitProjectSdkService.js.map +1 -1
  136. package/services/InitProjectSdkService/applyWcpEnvVars.js +10 -8
  137. package/services/InitProjectSdkService/applyWcpEnvVars.js.map +1 -1
  138. package/services/InitProjectSdkService/registerPulumiExtensions.js +5 -3
  139. package/services/InitProjectSdkService/registerPulumiExtensions.js.map +1 -1
  140. package/services/InstallExtensionService/downloadFolderFromS3.js +33 -42
  141. package/services/InstallExtensionService/downloadFolderFromS3.js.map +1 -1
  142. package/services/InstallExtensionService/types.d.ts +4 -0
  143. package/services/InstallExtensionService/types.js.map +1 -1
  144. package/services/InstallExtensionService/updateWebinyConfig.js +74 -47
  145. package/services/InstallExtensionService/updateWebinyConfig.js.map +1 -1
  146. package/services/ListPackagesService/ListPackagesService.js +1 -1
  147. package/services/ListPackagesService/ListPackagesService.js.map +1 -1
  148. package/services/ProjectInfoService/ProjectInfoService.js +3 -3
  149. package/services/ProjectInfoService/ProjectInfoService.js.map +1 -1
  150. package/utils/ExtensionSrcResolver.js +2 -1
  151. package/utils/ExtensionSrcResolver.js.map +1 -1
  152. package/utils/index.d.ts +1 -0
  153. package/utils/index.js +1 -0
  154. package/utils/index.js.map +1 -1
  155. package/utils/requireConfig.js +9 -5
  156. package/utils/requireConfig.js.map +1 -1
  157. package/utils/toImportSpecifier.d.ts +5 -0
  158. package/utils/toImportSpecifier.js +12 -0
  159. package/utils/toImportSpecifier.js.map +1 -0
  160. package/abstractions/features/pulumi/AdminPulumi.d.ts +0 -8
  161. package/abstractions/features/pulumi/AdminPulumi.js +0 -4
  162. package/abstractions/features/pulumi/AdminPulumi.js.map +0 -1
  163. package/abstractions/features/pulumi/ApiPulumi.d.ts +0 -8
  164. package/abstractions/features/pulumi/ApiPulumi.js +0 -4
  165. package/abstractions/features/pulumi/ApiPulumi.js.map +0 -1
  166. package/abstractions/features/pulumi/CorePulumi.d.ts +0 -8
  167. package/abstractions/features/pulumi/CorePulumi.js +0 -4
  168. package/abstractions/features/pulumi/CorePulumi.js.map +0 -1
  169. package/abstractions/features/pulumi/index.d.ts +0 -3
  170. package/abstractions/features/pulumi/index.js +0 -5
  171. package/abstractions/features/pulumi/index.js.map +0 -1
  172. package/exports/infra/index.d.ts +0 -8
  173. package/exports/infra/index.js +0 -10
  174. package/extensions/pulumi/AdminPulumi.d.ts +0 -8
  175. package/extensions/pulumi/AdminPulumi.js +0 -25
  176. package/extensions/pulumi/AdminPulumi.js.map +0 -1
  177. package/extensions/pulumi/ApiPulumi.d.ts +0 -8
  178. package/extensions/pulumi/ApiPulumi.js +0 -25
  179. package/extensions/pulumi/ApiPulumi.js.map +0 -1
  180. package/extensions/pulumi/CorePulumi.d.ts +0 -8
  181. package/extensions/pulumi/CorePulumi.js +0 -25
  182. package/extensions/pulumi/CorePulumi.js.map +0 -1
  183. package/features/BuildApp/PackagesBuilder/utils/requireConfig.d.ts +0 -18
  184. package/features/BuildApp/PackagesBuilder/utils/requireConfig.js +0 -15
  185. package/features/BuildApp/PackagesBuilder/utils/requireConfig.js.map +0 -1
  186. package/features/Watch/watchers/utils/requireConfig.d.ts +0 -18
  187. package/features/Watch/watchers/utils/requireConfig.js +0 -15
  188. package/features/Watch/watchers/utils/requireConfig.js.map +0 -1
  189. package/features/pulumi/AdminPulumi/AdminPulumi.d.ts +0 -7
  190. package/features/pulumi/AdminPulumi/AdminPulumi.js +0 -21
  191. package/features/pulumi/AdminPulumi/AdminPulumi.js.map +0 -1
  192. package/features/pulumi/AdminPulumi/index.d.ts +0 -1
  193. package/features/pulumi/AdminPulumi/index.js +0 -3
  194. package/features/pulumi/AdminPulumi/index.js.map +0 -1
  195. package/features/pulumi/ApiPulumi/ApiPulumi.d.ts +0 -7
  196. package/features/pulumi/ApiPulumi/ApiPulumi.js +0 -21
  197. package/features/pulumi/ApiPulumi/ApiPulumi.js.map +0 -1
  198. package/features/pulumi/ApiPulumi/index.d.ts +0 -1
  199. package/features/pulumi/ApiPulumi/index.js +0 -3
  200. package/features/pulumi/ApiPulumi/index.js.map +0 -1
  201. package/features/pulumi/CorePulumi/CorePulumi.d.ts +0 -7
  202. package/features/pulumi/CorePulumi/CorePulumi.js +0 -21
  203. package/features/pulumi/CorePulumi/CorePulumi.js.map +0 -1
  204. package/features/pulumi/CorePulumi/index.d.ts +0 -1
  205. package/features/pulumi/CorePulumi/index.js +0 -3
  206. package/features/pulumi/CorePulumi/index.js.map +0 -1
  207. package/features/pulumi/index.d.ts +0 -3
  208. package/features/pulumi/index.js +0 -5
  209. package/features/pulumi/index.js.map +0 -1
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const AfterBuild: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
- }, "strip", z.ZodTypeAny, {
5
- src: string;
6
- }, {
7
- src: string;
8
- }>>;
3
+ src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ }, z.core.$strip>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const AfterDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
- }, "strip", z.ZodTypeAny, {
5
- src: string;
6
- }, {
7
- src: string;
8
- }>>;
3
+ src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ }, z.core.$strip>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const ApiAfterBuild: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
- }, "strip", z.ZodTypeAny, {
5
- src: string;
6
- }, {
7
- src: string;
8
- }>>;
3
+ src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ }, z.core.$strip>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const ApiAfterDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
- }, "strip", z.ZodTypeAny, {
5
- src: string;
6
- }, {
7
- src: string;
8
- }>>;
3
+ src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ }, z.core.$strip>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const ApiBeforeBuild: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
- }, "strip", z.ZodTypeAny, {
5
- src: string;
6
- }, {
7
- src: string;
8
- }>>;
3
+ src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ }, z.core.$strip>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const ApiBeforeDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
- }, "strip", z.ZodTypeAny, {
5
- src: string;
6
- }, {
7
- src: string;
8
- }>>;
3
+ src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ }, z.core.$strip>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const ApiBeforeWatch: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
- }, "strip", z.ZodTypeAny, {
5
- src: string;
6
- }, {
7
- src: string;
8
- }>>;
3
+ src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ }, z.core.$strip>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const BeforeBuild: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
- }, "strip", z.ZodTypeAny, {
5
- src: string;
6
- }, {
7
- src: string;
8
- }>>;
3
+ src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ }, z.core.$strip>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const BeforeDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
- }, "strip", z.ZodTypeAny, {
5
- src: string;
6
- }, {
7
- src: string;
8
- }>>;
3
+ src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ }, z.core.$strip>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const BeforeWatch: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
- }, "strip", z.ZodTypeAny, {
5
- src: string;
6
- }, {
7
- src: string;
8
- }>>;
3
+ src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ }, z.core.$strip>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const CoreAfterBuild: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
- }, "strip", z.ZodTypeAny, {
5
- src: string;
6
- }, {
7
- src: string;
8
- }>>;
3
+ src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ }, z.core.$strip>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const CoreAfterDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
- }, "strip", z.ZodTypeAny, {
5
- src: string;
6
- }, {
7
- src: string;
8
- }>>;
3
+ src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ }, z.core.$strip>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const CoreBeforeBuild: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
- }, "strip", z.ZodTypeAny, {
5
- src: string;
6
- }, {
7
- src: string;
8
- }>>;
3
+ src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ }, z.core.$strip>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const CoreBeforeDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
- }, "strip", z.ZodTypeAny, {
5
- src: string;
6
- }, {
7
- src: string;
8
- }>>;
3
+ src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ }, z.core.$strip>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const CoreBeforeWatch: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
- src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
- }, "strip", z.ZodTypeAny, {
5
- src: string;
6
- }, {
7
- src: string;
8
- }>>;
3
+ src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ }, z.core.$strip>>;
@@ -11,7 +11,7 @@ import { AdminBuildParam } from "./AdminBuildParam.js";
11
11
  import { AdminExtension } from "./AdminExtension.js";
12
12
  import { ApiExtension } from "./ApiExtension.js";
13
13
  import { AdminAfterBuild, AdminAfterDeploy, AdminBeforeBuild, AdminBeforeDeploy, AdminBeforeWatch, AfterBuild, AfterDeploy, BeforeDeploy, BeforeWatch, ApiAfterBuild, ApiAfterDeploy, ApiBeforeBuild, ApiBeforeDeploy, ApiBeforeWatch, BeforeBuild, CoreAfterBuild, CoreAfterDeploy, CoreBeforeBuild, CoreBeforeDeploy, CoreBeforeWatch } from "./hooks/index.js";
14
- import { AdminPulumi, ApiPulumi, CorePulumi, ProductionEnvironments, PulumiResourceNamePrefix, CoreStackOutputValue, ApiStackOutputValue, AdminStackOutputValue } from "./pulumi/index.js";
14
+ import { ProductionEnvironments, PulumiResourceNamePrefix, CoreStackOutputValue, ApiStackOutputValue, AdminStackOutputValue } from "./pulumi/index.js";
15
15
  export { Telemetry };
16
16
  export { ProjectId };
17
17
  export { ProjectDecorator };
@@ -44,173 +44,66 @@ export { CoreBeforeDeploy };
44
44
  export { CoreBeforeWatch };
45
45
  export { CoreAfterBuild };
46
46
  export { CoreAfterDeploy };
47
- export { CorePulumi };
48
- export { AdminPulumi };
49
- export { ApiPulumi };
50
47
  export { PulumiResourceNamePrefix };
51
48
  export { ProductionEnvironments };
52
49
  export { CoreStackOutputValue };
53
50
  export { ApiStackOutputValue };
54
51
  export { AdminStackOutputValue };
55
- export declare const definitions: (import("../defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
52
+ export declare const definitions: (import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
56
53
  src: import("zod").ZodString;
57
- }, "strip", import("zod").ZodTypeAny, {
58
- src: string;
59
- }, {
60
- src: string;
61
- }>> | import("../defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
62
- src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
63
- }, "strip", import("zod").ZodTypeAny, {
64
- src: string;
65
- }, {
66
- src: string;
67
- }>> | import("../defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
54
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
55
+ src: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>;
56
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
68
57
  enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
69
- }, "strip", import("zod").ZodTypeAny, {
70
- enabled: boolean;
71
- }, {
72
- enabled?: boolean | undefined;
73
- }>> | import("../defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
74
- id: import("zod").ZodEffects<import("zod").ZodString, string, string>;
75
- }, "strip", import("zod").ZodTypeAny, {
76
- id: string;
77
- }, {
78
- id: string;
79
- }>> | import("../defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
58
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
59
+ id: import("zod").ZodString;
60
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
80
61
  varName: import("zod").ZodString;
81
62
  value: import("zod").ZodString;
82
- }, "strip", import("zod").ZodTypeAny, {
83
- value: string;
84
- varName: string;
85
- }, {
86
- value: string;
87
- varName: string;
88
- }>> | import("../defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
63
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
89
64
  features: import("zod").ZodObject<{
90
65
  multiTenancy: import("zod").ZodOptional<import("zod").ZodBoolean>;
91
66
  advancedPublishingWorkflow: import("zod").ZodOptional<import("zod").ZodBoolean>;
92
- advancedAccessControlLayer: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodObject<{
67
+ advancedAccessControlLayer: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodObject<{
93
68
  teams: import("zod").ZodOptional<import("zod").ZodBoolean>;
94
69
  privateFiles: import("zod").ZodOptional<import("zod").ZodBoolean>;
95
70
  folderLevelPermissions: import("zod").ZodOptional<import("zod").ZodBoolean>;
96
71
  hcmsFieldPermissions: import("zod").ZodOptional<import("zod").ZodBoolean>;
97
- }, "strip", import("zod").ZodTypeAny, {
98
- teams?: boolean | undefined;
99
- privateFiles?: boolean | undefined;
100
- folderLevelPermissions?: boolean | undefined;
101
- hcmsFieldPermissions?: boolean | undefined;
102
- }, {
103
- teams?: boolean | undefined;
104
- privateFiles?: boolean | undefined;
105
- folderLevelPermissions?: boolean | undefined;
106
- hcmsFieldPermissions?: boolean | undefined;
107
- }>]>>;
72
+ }, import("zod/v4/core").$strip>]>>;
108
73
  auditLogs: import("zod").ZodOptional<import("zod").ZodBoolean>;
109
74
  recordLocking: import("zod").ZodOptional<import("zod").ZodBoolean>;
110
75
  fileManager: import("zod").ZodOptional<import("zod").ZodObject<{
111
76
  threatDetection: import("zod").ZodOptional<import("zod").ZodBoolean>;
112
- }, "strip", import("zod").ZodTypeAny, {
113
- threatDetection?: boolean | undefined;
114
- }, {
115
- threatDetection?: boolean | undefined;
116
- }>>;
117
- }, "strip", import("zod").ZodTypeAny, {
118
- multiTenancy?: boolean | undefined;
119
- advancedPublishingWorkflow?: boolean | undefined;
120
- advancedAccessControlLayer?: boolean | {
121
- teams?: boolean | undefined;
122
- privateFiles?: boolean | undefined;
123
- folderLevelPermissions?: boolean | undefined;
124
- hcmsFieldPermissions?: boolean | undefined;
125
- } | undefined;
126
- auditLogs?: boolean | undefined;
127
- recordLocking?: boolean | undefined;
128
- fileManager?: {
129
- threatDetection?: boolean | undefined;
130
- } | undefined;
131
- }, {
132
- multiTenancy?: boolean | undefined;
133
- advancedPublishingWorkflow?: boolean | undefined;
134
- advancedAccessControlLayer?: boolean | {
135
- teams?: boolean | undefined;
136
- privateFiles?: boolean | undefined;
137
- folderLevelPermissions?: boolean | undefined;
138
- hcmsFieldPermissions?: boolean | undefined;
139
- } | undefined;
140
- auditLogs?: boolean | undefined;
141
- recordLocking?: boolean | undefined;
142
- fileManager?: {
143
- threatDetection?: boolean | undefined;
144
- } | undefined;
145
- }>;
146
- }, "strip", import("zod").ZodTypeAny, {
147
- features: {
148
- multiTenancy?: boolean | undefined;
149
- advancedPublishingWorkflow?: boolean | undefined;
150
- advancedAccessControlLayer?: boolean | {
151
- teams?: boolean | undefined;
152
- privateFiles?: boolean | undefined;
153
- folderLevelPermissions?: boolean | undefined;
154
- hcmsFieldPermissions?: boolean | undefined;
155
- } | undefined;
156
- auditLogs?: boolean | undefined;
157
- recordLocking?: boolean | undefined;
158
- fileManager?: {
159
- threatDetection?: boolean | undefined;
160
- } | undefined;
161
- };
162
- }, {
163
- features: {
164
- multiTenancy?: boolean | undefined;
165
- advancedPublishingWorkflow?: boolean | undefined;
166
- advancedAccessControlLayer?: boolean | {
167
- teams?: boolean | undefined;
168
- privateFiles?: boolean | undefined;
169
- folderLevelPermissions?: boolean | undefined;
170
- hcmsFieldPermissions?: boolean | undefined;
171
- } | undefined;
172
- auditLogs?: boolean | undefined;
173
- recordLocking?: boolean | undefined;
174
- fileManager?: {
175
- threatDetection?: boolean | undefined;
176
- } | undefined;
177
- };
178
- }>> | import("../defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
77
+ }, import("zod/v4/core").$strip>>;
78
+ aiPowerups: import("zod").ZodOptional<import("zod").ZodObject<{
79
+ enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
80
+ options: import("zod").ZodOptional<import("zod").ZodObject<{
81
+ websiteBuilder: import("zod").ZodOptional<import("zod").ZodObject<{
82
+ pageGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
83
+ }, import("zod/v4/core").$strip>>;
84
+ fileManager: import("zod").ZodOptional<import("zod").ZodObject<{
85
+ imageEnrichment: import("zod").ZodOptional<import("zod").ZodBoolean>;
86
+ }, import("zod/v4/core").$strip>>;
87
+ lexicalGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
88
+ }, import("zod/v4/core").$strip>>;
89
+ }, import("zod/v4/core").$strip>>;
90
+ }, import("zod/v4/core").$strip>;
91
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
179
92
  prefix: import("zod").ZodString;
180
- }, "strip", import("zod").ZodTypeAny, {
181
- prefix: string;
182
- }, {
183
- prefix: string;
184
- }>> | import("../defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
185
- environments: import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodString, string, string>, "many">;
186
- }, "strip", import("zod").ZodTypeAny, {
187
- environments: string[];
188
- }, {
189
- environments: string[];
190
- }>> | import("../defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
93
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
94
+ environments: import("zod").ZodArray<import("zod").ZodString>;
95
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
191
96
  key: import("zod").ZodString;
192
97
  value: import("zod").ZodAny;
193
- }, "strip", import("zod").ZodTypeAny, {
194
- key: string;
195
- value?: any;
196
- }, {
197
- key: string;
198
- value?: any;
199
- }>> | import("../defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
200
- setupName: import("zod").ZodEnum<["ddb", "ddb+es", "ddb+os"]>;
201
- }, "strip", import("zod").ZodTypeAny, {
202
- setupName: "ddb" | "ddb+es" | "ddb+os";
203
- }, {
204
- setupName: "ddb" | "ddb+es" | "ddb+os";
205
- }>> | import("../defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
98
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
99
+ setupName: import("zod").ZodEnum<{
100
+ ddb: "ddb";
101
+ "ddb+es": "ddb+es";
102
+ "ddb+os": "ddb+os";
103
+ }>;
104
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
206
105
  paramName: import("zod").ZodString;
207
- value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>, import("zod").ZodArray<import("zod").ZodAny, "many">, import("zod").ZodNumber, import("zod").ZodBoolean]>;
208
- }, "strip", import("zod").ZodTypeAny, {
209
- value: string | number | boolean | any[] | Record<string, any>;
210
- paramName: string;
211
- }, {
212
- value: string | number | boolean | any[] | Record<string, any>;
213
- paramName: string;
214
- }>>)[];
106
+ value: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>, import("zod").ZodArray<import("zod").ZodAny>, import("zod").ZodNumber, import("zod").ZodBoolean]>;
107
+ }, import("zod/v4/core").$strip>>)[];
215
108
  export { Project } from "./Project.js";
216
109
  export * from "../defineExtension/index.js";
@@ -14,8 +14,8 @@ import { ApiExtension } from "./ApiExtension.js";
14
14
  // Hooks.
15
15
  import { AdminAfterBuild, AdminAfterDeploy, AdminBeforeBuild, AdminBeforeDeploy, AdminBeforeWatch, AfterBuild, AfterDeploy, BeforeDeploy, BeforeWatch, ApiAfterBuild, ApiAfterDeploy, ApiBeforeBuild, ApiBeforeDeploy, ApiBeforeWatch, BeforeBuild, CoreAfterBuild, CoreAfterDeploy, CoreBeforeBuild, CoreBeforeDeploy, CoreBeforeWatch } from "./hooks/index.js";
16
16
 
17
- // Pulumi.
18
- import { AdminPulumi, ApiPulumi, CorePulumi, ProductionEnvironments, PulumiResourceNamePrefix, CoreStackOutputValue, ApiStackOutputValue, AdminStackOutputValue } from "./pulumi/index.js";
17
+ // Pulumi (non-app-specific).
18
+ import { ProductionEnvironments, PulumiResourceNamePrefix, CoreStackOutputValue, ApiStackOutputValue, AdminStackOutputValue } from "./pulumi/index.js";
19
19
 
20
20
  // Exports.
21
21
  export { Telemetry };
@@ -53,10 +53,7 @@ export { CoreBeforeWatch };
53
53
  export { CoreAfterBuild };
54
54
  export { CoreAfterDeploy };
55
55
 
56
- // Pulumi.
57
- export { CorePulumi };
58
- export { AdminPulumi };
59
- export { ApiPulumi };
56
+ // Pulumi (non-app-specific).
60
57
  export { PulumiResourceNamePrefix };
61
58
  export { ProductionEnvironments };
62
59
  export { CoreStackOutputValue };
@@ -67,8 +64,8 @@ export { AdminStackOutputValue };
67
64
  export const definitions = [Telemetry.def, ProjectId.def, ProjectDecorator.def, ProjectImplementation.def, ExtensionDefinitions.def, EnvVar.def, FeatureFlags.def,
68
65
  // Hooks.
69
66
  AdminAfterBuild.def, AdminAfterDeploy.def, BeforeBuild.def, BeforeDeploy.def, BeforeWatch.def, AfterBuild.def, AfterDeploy.def, AdminBeforeBuild.def, AdminBeforeDeploy.def, AdminBeforeWatch.def, ApiAfterBuild.def, ApiAfterDeploy.def, ApiBeforeBuild.def, ApiBeforeDeploy.def, ApiBeforeWatch.def, CoreAfterBuild.def, CoreAfterDeploy.def, CoreBeforeBuild.def, CoreBeforeDeploy.def, CoreBeforeWatch.def,
70
- // Pulumi.
71
- AdminPulumi.def, ApiPulumi.def, CorePulumi.def, PulumiResourceNamePrefix.def, ProductionEnvironments.def, CoreStackOutputValue.def, ApiStackOutputValue.def, AdminStackOutputValue.def, DatabaseSetup.def, BuildParam.def, AdminBuildParam.def, AdminExtension.def, ApiExtension.def];
67
+ // Pulumi (non-app-specific).
68
+ PulumiResourceNamePrefix.def, ProductionEnvironments.def, CoreStackOutputValue.def, ApiStackOutputValue.def, AdminStackOutputValue.def, DatabaseSetup.def, BuildParam.def, AdminBuildParam.def, AdminExtension.def, ApiExtension.def];
72
69
  export { Project } from "./Project.js";
73
70
  export * from "../defineExtension/index.js";
74
71
 
@@ -1 +1 @@
1
- {"version":3,"names":["ExtensionDefinitions","ProjectDecorator","ProjectImplementation","ProjectId","Telemetry","EnvVar","DatabaseSetup","FeatureFlags","BuildParam","AdminBuildParam","AdminExtension","ApiExtension","AdminAfterBuild","AdminAfterDeploy","AdminBeforeBuild","AdminBeforeDeploy","AdminBeforeWatch","AfterBuild","AfterDeploy","BeforeDeploy","BeforeWatch","ApiAfterBuild","ApiAfterDeploy","ApiBeforeBuild","ApiBeforeDeploy","ApiBeforeWatch","BeforeBuild","CoreAfterBuild","CoreAfterDeploy","CoreBeforeBuild","CoreBeforeDeploy","CoreBeforeWatch","AdminPulumi","ApiPulumi","CorePulumi","ProductionEnvironments","PulumiResourceNamePrefix","CoreStackOutputValue","ApiStackOutputValue","AdminStackOutputValue","definitions","def","Project"],"sources":["index.ts"],"sourcesContent":["import { ExtensionDefinitions } from \"./ExtensionDefinitions.js\";\nimport { ProjectDecorator } from \"./ProjectDecorator.js\";\nimport { ProjectImplementation } from \"./ProjectImplementation.js\";\nimport { ProjectId } from \"./ProjectId.js\";\nimport { Telemetry } from \"./Telemetry.js\";\nimport { EnvVar } from \"./EnvVar.js\";\nimport { DatabaseSetup } from \"./DatabaseSetup.js\";\nimport { FeatureFlags } from \"./FeatureFlags.js\";\nimport { BuildParam } from \"./ApiBuildParam.js\";\nimport { AdminBuildParam } from \"./AdminBuildParam.js\";\nimport { AdminExtension } from \"./AdminExtension.js\";\nimport { ApiExtension } from \"./ApiExtension.js\";\n\n// Hooks.\nimport {\n AdminAfterBuild,\n AdminAfterDeploy,\n AdminBeforeBuild,\n AdminBeforeDeploy,\n AdminBeforeWatch,\n AfterBuild,\n AfterDeploy,\n BeforeDeploy,\n BeforeWatch,\n ApiAfterBuild,\n ApiAfterDeploy,\n ApiBeforeBuild,\n ApiBeforeDeploy,\n ApiBeforeWatch,\n BeforeBuild,\n CoreAfterBuild,\n CoreAfterDeploy,\n CoreBeforeBuild,\n CoreBeforeDeploy,\n CoreBeforeWatch\n} from \"./hooks/index.js\";\n\n// Pulumi.\nimport {\n AdminPulumi,\n ApiPulumi,\n CorePulumi,\n ProductionEnvironments,\n PulumiResourceNamePrefix,\n CoreStackOutputValue,\n ApiStackOutputValue,\n AdminStackOutputValue\n} from \"./pulumi/index.js\";\n\n// Exports.\nexport { Telemetry };\nexport { ProjectId };\nexport { ProjectDecorator };\nexport { ProjectImplementation };\nexport { ExtensionDefinitions };\nexport { EnvVar };\nexport { FeatureFlags };\nexport { DatabaseSetup };\nexport { BuildParam };\nexport { AdminBuildParam };\nexport { AdminExtension };\nexport { ApiExtension };\n\n// Hooks.\nexport { BeforeBuild };\nexport { BeforeDeploy };\nexport { BeforeWatch };\nexport { AfterBuild };\nexport { AfterDeploy };\nexport { AdminBeforeBuild };\nexport { AdminBeforeDeploy };\nexport { AdminBeforeWatch };\nexport { AdminAfterBuild };\nexport { AdminAfterDeploy };\nexport { ApiBeforeBuild };\nexport { ApiBeforeDeploy };\nexport { ApiBeforeWatch };\nexport { ApiAfterBuild };\nexport { ApiAfterDeploy };\nexport { CoreBeforeBuild };\nexport { CoreBeforeDeploy };\nexport { CoreBeforeWatch };\nexport { CoreAfterBuild };\nexport { CoreAfterDeploy };\n\n// Pulumi.\nexport { CorePulumi };\nexport { AdminPulumi };\nexport { ApiPulumi };\nexport { PulumiResourceNamePrefix };\nexport { ProductionEnvironments };\nexport { CoreStackOutputValue };\nexport { ApiStackOutputValue };\nexport { AdminStackOutputValue };\n\n// Definitions (used internally). 👇\nexport const definitions = [\n Telemetry.def,\n ProjectId.def,\n ProjectDecorator.def,\n ProjectImplementation.def,\n ExtensionDefinitions.def,\n EnvVar.def,\n FeatureFlags.def,\n\n // Hooks.\n AdminAfterBuild.def,\n AdminAfterDeploy.def,\n BeforeBuild.def,\n BeforeDeploy.def,\n BeforeWatch.def,\n AfterBuild.def,\n AfterDeploy.def,\n AdminBeforeBuild.def,\n AdminBeforeDeploy.def,\n AdminBeforeWatch.def,\n ApiAfterBuild.def,\n ApiAfterDeploy.def,\n ApiBeforeBuild.def,\n ApiBeforeDeploy.def,\n ApiBeforeWatch.def,\n CoreAfterBuild.def,\n CoreAfterDeploy.def,\n CoreBeforeBuild.def,\n CoreBeforeDeploy.def,\n CoreBeforeWatch.def,\n\n // Pulumi.\n AdminPulumi.def,\n ApiPulumi.def,\n CorePulumi.def,\n PulumiResourceNamePrefix.def,\n ProductionEnvironments.def,\n CoreStackOutputValue.def,\n ApiStackOutputValue.def,\n AdminStackOutputValue.def,\n DatabaseSetup.def,\n BuildParam.def,\n AdminBuildParam.def,\n AdminExtension.def,\n ApiExtension.def\n];\n\nexport { Project } from \"./Project.js\";\n\nexport * from \"../defineExtension/index.js\";\n"],"mappings":"AAAA,SAASA,oBAAoB;AAC7B,SAASC,gBAAgB;AACzB,SAASC,qBAAqB;AAC9B,SAASC,SAAS;AAClB,SAASC,SAAS;AAClB,SAASC,MAAM;AACf,SAASC,aAAa;AACtB,SAASC,YAAY;AACrB,SAASC,UAAU;AACnB,SAASC,eAAe;AACxB,SAASC,cAAc;AACvB,SAASC,YAAY;;AAErB;AACA,SACIC,eAAe,EACfC,gBAAgB,EAChBC,gBAAgB,EAChBC,iBAAiB,EACjBC,gBAAgB,EAChBC,UAAU,EACVC,WAAW,EACXC,YAAY,EACZC,WAAW,EACXC,aAAa,EACbC,cAAc,EACdC,cAAc,EACdC,eAAe,EACfC,cAAc,EACdC,WAAW,EACXC,cAAc,EACdC,eAAe,EACfC,eAAe,EACfC,gBAAgB,EAChBC,eAAe;;AAGnB;AACA,SACIC,WAAW,EACXC,SAAS,EACTC,UAAU,EACVC,sBAAsB,EACtBC,wBAAwB,EACxBC,oBAAoB,EACpBC,mBAAmB,EACnBC,qBAAqB;;AAGzB;AACA,SAASnC,SAAS;AAClB,SAASD,SAAS;AAClB,SAASF,gBAAgB;AACzB,SAASC,qBAAqB;AAC9B,SAASF,oBAAoB;AAC7B,SAASK,MAAM;AACf,SAASE,YAAY;AACrB,SAASD,aAAa;AACtB,SAASE,UAAU;AACnB,SAASC,eAAe;AACxB,SAASC,cAAc;AACvB,SAASC,YAAY;;AAErB;AACA,SAASe,WAAW;AACpB,SAASP,YAAY;AACrB,SAASC,WAAW;AACpB,SAASH,UAAU;AACnB,SAASC,WAAW;AACpB,SAASJ,gBAAgB;AACzB,SAASC,iBAAiB;AAC1B,SAASC,gBAAgB;AACzB,SAASJ,eAAe;AACxB,SAASC,gBAAgB;AACzB,SAASU,cAAc;AACvB,SAASC,eAAe;AACxB,SAASC,cAAc;AACvB,SAASJ,aAAa;AACtB,SAASC,cAAc;AACvB,SAASO,eAAe;AACxB,SAASC,gBAAgB;AACzB,SAASC,eAAe;AACxB,SAASJ,cAAc;AACvB,SAASC,eAAe;;AAExB;AACA,SAASM,UAAU;AACnB,SAASF,WAAW;AACpB,SAASC,SAAS;AAClB,SAASG,wBAAwB;AACjC,SAASD,sBAAsB;AAC/B,SAASE,oBAAoB;AAC7B,SAASC,m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version":3,"names":["ExtensionDefinitions","ProjectDecorator","ProjectImplementation","ProjectId","Telemetry","EnvVar","DatabaseSetup","FeatureFlags","BuildParam","AdminBuildParam","AdminExtension","ApiExtension","AdminAfterBuild","AdminAfterDeploy","AdminBeforeBuild","AdminBeforeDeploy","AdminBeforeWatch","AfterBuild","AfterDeploy","BeforeDeploy","BeforeWatch","ApiAfterBuild","ApiAfterDeploy","ApiBeforeBuild","ApiBeforeDeploy","ApiBeforeWatch","BeforeBuild","CoreAfterBuild","CoreAfterDeploy","CoreBeforeBuild","CoreBeforeDeploy","CoreBeforeWatch","ProductionEnvironments","PulumiResourceNamePrefix","CoreStackOutputValue","ApiStackOutputValue","AdminStackOutputValue","definitions","def","Project"],"sources":["index.ts"],"sourcesContent":["import { ExtensionDefinitions } from \"./ExtensionDefinitions.js\";\nimport { ProjectDecorator } from \"./ProjectDecorator.js\";\nimport { ProjectImplementation } from \"./ProjectImplementation.js\";\nimport { ProjectId } from \"./ProjectId.js\";\nimport { Telemetry } from \"./Telemetry.js\";\nimport { EnvVar } from \"./EnvVar.js\";\nimport { DatabaseSetup } from \"./DatabaseSetup.js\";\nimport { FeatureFlags } from \"./FeatureFlags.js\";\nimport { BuildParam } from \"./ApiBuildParam.js\";\nimport { AdminBuildParam } from \"./AdminBuildParam.js\";\nimport { AdminExtension } from \"./AdminExtension.js\";\nimport { ApiExtension } from \"./ApiExtension.js\";\n\n// Hooks.\nimport {\n AdminAfterBuild,\n AdminAfterDeploy,\n AdminBeforeBuild,\n AdminBeforeDeploy,\n AdminBeforeWatch,\n AfterBuild,\n AfterDeploy,\n BeforeDeploy,\n BeforeWatch,\n ApiAfterBuild,\n ApiAfterDeploy,\n ApiBeforeBuild,\n ApiBeforeDeploy,\n ApiBeforeWatch,\n BeforeBuild,\n CoreAfterBuild,\n CoreAfterDeploy,\n CoreBeforeBuild,\n CoreBeforeDeploy,\n CoreBeforeWatch\n} from \"./hooks/index.js\";\n\n// Pulumi (non-app-specific).\nimport {\n ProductionEnvironments,\n PulumiResourceNamePrefix,\n CoreStackOutputValue,\n ApiStackOutputValue,\n AdminStackOutputValue\n} from \"./pulumi/index.js\";\n\n// Exports.\nexport { Telemetry };\nexport { ProjectId };\nexport { ProjectDecorator };\nexport { ProjectImplementation };\nexport { ExtensionDefinitions };\nexport { EnvVar };\nexport { FeatureFlags };\nexport { DatabaseSetup };\nexport { BuildParam };\nexport { AdminBuildParam };\nexport { AdminExtension };\nexport { ApiExtension };\n\n// Hooks.\nexport { BeforeBuild };\nexport { BeforeDeploy };\nexport { BeforeWatch };\nexport { AfterBuild };\nexport { AfterDeploy };\nexport { AdminBeforeBuild };\nexport { AdminBeforeDeploy };\nexport { AdminBeforeWatch };\nexport { AdminAfterBuild };\nexport { AdminAfterDeploy };\nexport { ApiBeforeBuild };\nexport { ApiBeforeDeploy };\nexport { ApiBeforeWatch };\nexport { ApiAfterBuild };\nexport { ApiAfterDeploy };\nexport { CoreBeforeBuild };\nexport { CoreBeforeDeploy };\nexport { CoreBeforeWatch };\nexport { CoreAfterBuild };\nexport { CoreAfterDeploy };\n\n// Pulumi (non-app-specific).\nexport { PulumiResourceNamePrefix };\nexport { ProductionEnvironments };\nexport { CoreStackOutputValue };\nexport { ApiStackOutputValue };\nexport { AdminStackOutputValue };\n\n// Definitions (used internally). 👇\nexport const definitions = [\n Telemetry.def,\n ProjectId.def,\n ProjectDecorator.def,\n ProjectImplementation.def,\n ExtensionDefinitions.def,\n EnvVar.def,\n FeatureFlags.def,\n\n // Hooks.\n AdminAfterBuild.def,\n AdminAfterDeploy.def,\n BeforeBuild.def,\n BeforeDeploy.def,\n BeforeWatch.def,\n AfterBuild.def,\n AfterDeploy.def,\n AdminBeforeBuild.def,\n AdminBeforeDeploy.def,\n AdminBeforeWatch.def,\n ApiAfterBuild.def,\n ApiAfterDeploy.def,\n ApiBeforeBuild.def,\n ApiBeforeDeploy.def,\n ApiBeforeWatch.def,\n CoreAfterBuild.def,\n CoreAfterDeploy.def,\n CoreBeforeBuild.def,\n CoreBeforeDeploy.def,\n CoreBeforeWatch.def,\n\n // Pulumi (non-app-specific).\n PulumiResourceNamePrefix.def,\n ProductionEnvironments.def,\n CoreStackOutputValue.def,\n ApiStackOutputValue.def,\n AdminStackOutputValue.def,\n DatabaseSetup.def,\n BuildParam.def,\n AdminBuildParam.def,\n AdminExtension.def,\n ApiExtension.def\n];\n\nexport { Project } from \"./Project.js\";\n\nexport * from \"../defineExtension/index.js\";\n"],"mappings":"AAAA,SAASA,oBAAoB;AAC7B,SAASC,gBAAgB;AACzB,SAASC,qBAAqB;AAC9B,SAASC,SAAS;AAClB,SAASC,SAAS;AAClB,SAASC,MAAM;AACf,SAASC,aAAa;AACtB,SAASC,YAAY;AACrB,SAASC,UAAU;AACnB,SAASC,eAAe;AACxB,SAASC,cAAc;AACvB,SAASC,YAAY;;AAErB;AACA,SACIC,eAAe,EACfC,gBAAgB,EAChBC,gBAAgB,EAChBC,iBAAiB,EACjBC,gBAAgB,EAChBC,UAAU,EACVC,WAAW,EACXC,YAAY,EACZC,WAAW,EACXC,aAAa,EACbC,cAAc,EACdC,cAAc,EACdC,eAAe,EACfC,cAAc,EACdC,WAAW,EACXC,cAAc,EACdC,eAAe,EACfC,eAAe,EACfC,gBAAgB,EAChBC,eAAe;;AAGnB;AACA,SACIC,sBAAsB,EACtBC,wBAAwB,EACxBC,oBAAoB,EACpBC,mBAAmB,EACnBC,qBAAqB;;AAGzB;AACA,SAAShC,SAAS;AAClB,SAASD,SAAS;AAClB,SAASF,gBAAgB;AACzB,SAASC,qBAAqB;AAC9B,SAASF,oBAAoB;AAC7B,SAASK,MAAM;AACf,SAASE,YAAY;AACrB,SAASD,aAAa;AACtB,SAASE,UAAU;AACnB,SAASC,eAAe;AACxB,SAASC,cAAc;AACvB,SAASC,YAAY;;AAErB;AACA,SAASe,WAAW;AACpB,SAASP,YAAY;AACrB,SAASC,WAAW;AACpB,SAASH,UAAU;AACnB,SAASC,WAAW;AACpB,SAASJ,gBAAgB;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BJ,oBAAoB,CAACI,GAAG,EACxBH,mBAAmB,CAACG,GAAG,EACvBF,qBAAqB,CAACE,GAAG,EACzBhC,aAAa,CAACgC,GAAG,EACjB9B,UAAU,CAAC8B,GAAG,EACd7B,eAAe,CAAC6B,GAAG,EACnB5B,cAAc,CAAC4B,GAAG,EAClB3B,YAAY,CAAC2B,GAAG,CACnB;AAED,SAASC,OAAO;AAEhB","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ export interface CiIsProps {
3
+ children: React.ReactNode;
4
+ }
5
+ /**
6
+ * Conditionally renders children when running in a CI environment.
7
+ * Uses the `ci-info` library to detect CI environments.
8
+ */
9
+ export declare const CiIs: React.FC<CiIsProps>;
10
+ /**
11
+ * Conditionally renders children when NOT running in a CI environment.
12
+ * Uses the `ci-info` library to detect CI environments.
13
+ */
14
+ export declare const CiIsNot: React.FC<CiIsProps>;
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import { isCI } from "ci-info";
3
+ /**
4
+ * Conditionally renders children when running in a CI environment.
5
+ * Uses the `ci-info` library to detect CI environments.
6
+ */
7
+ export const CiIs = ({
8
+ children
9
+ }) => {
10
+ if (!isCI) {
11
+ return null;
12
+ }
13
+ return /*#__PURE__*/React.createElement(React.Fragment, null, children);
14
+ };
15
+
16
+ /**
17
+ * Conditionally renders children when NOT running in a CI environment.
18
+ * Uses the `ci-info` library to detect CI environments.
19
+ */
20
+ export const CiIsNot = ({
21
+ children
22
+ }) => {
23
+ if (isCI) {
24
+ return null;
25
+ }
26
+ return /*#__PURE__*/React.createElement(React.Fragment, null, children);
27
+ };
28
+
29
+ //# sourceMappingURL=Ci.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","isCI","CiIs","children","createElement","Fragment","CiIsNot"],"sources":["Ci.tsx"],"sourcesContent":["import React from \"react\";\nimport { isCI } from \"ci-info\";\n\nexport interface CiIsProps {\n children: React.ReactNode;\n}\n\n/**\n * Conditionally renders children when running in a CI environment.\n * Uses the `ci-info` library to detect CI environments.\n */\nexport const CiIs: React.FC<CiIsProps> = ({ children }) => {\n if (!isCI) {\n return null;\n }\n\n return <>{children}</>;\n};\n\n/**\n * Conditionally renders children when NOT running in a CI environment.\n * Uses the `ci-info` library to detect CI environments.\n */\nexport const CiIsNot: React.FC<CiIsProps> = ({ children }) => {\n if (isCI) {\n return null;\n }\n\n return <>{children}</>;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,SAAS;AAM9B;AACA;AACA;AACA;AACA,OAAO,MAAMC,IAAyB,GAAGA,CAAC;EAAEC;AAAS,CAAC,KAAK;EACvD,IAAI,CAACF,IAAI,EAAE;IACP,OAAO,IAAI;EACf;EAEA,oBAAOD,KAAA,CAAAI,aAAA,CAAAJ,KAAA,CAAAK,QAAA,QAAGF,QAAW,CAAC;AAC1B,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMG,OAA4B,GAAGA,CAAC;EAAEH;AAAS,CAAC,KAAK;EAC1D,IAAIF,IAAI,EAAE;IACN,OAAO,IAAI;EACf;EAEA,oBAAOD,KAAA,CAAAI,aAAA,CAAAJ,KAAA,CAAAK,QAAA,QAAGF,QAAW,CAAC;AAC1B,CAAC","ignoreList":[]}
@@ -16,4 +16,10 @@ export declare const EnvIs: React.FC<EnvIsProps>;
16
16
  * Multiple conditions are AND-ed together (renders when NONE of the conditions match).
17
17
  */
18
18
  export declare const EnvIsNot: React.FC<EnvIsProps>;
19
+ export declare const EnvIsProd: React.FC<{
20
+ children: React.ReactNode;
21
+ }>;
22
+ export declare const EnvIsNotProd: React.FC<{
23
+ children: React.ReactNode;
24
+ }>;
19
25
  export { useEnv, useVariant, useRegion, useEnvContext };
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
2
  import { useEnv, useVariant, useRegion, useEnvContext } from "../../services/GetProjectConfigService/EnvContext.js";
3
+ import { useProductionEnvironments } from "../../services/GetProjectConfigService/ProductionEnvironmentsContext.js";
3
4
  /**
4
5
  * Helper function to check if a value matches any of the allowed values
5
6
  */
@@ -72,6 +73,26 @@ export const EnvIsNot = ({
72
73
  }
73
74
  return /*#__PURE__*/React.createElement(React.Fragment, null, children);
74
75
  };
76
+ export const EnvIsProd = ({
77
+ children
78
+ }) => {
79
+ const env = useEnv();
80
+ const prodEnvs = useProductionEnvironments();
81
+ if (!prodEnvs.includes(env)) {
82
+ return null;
83
+ }
84
+ return /*#__PURE__*/React.createElement(React.Fragment, null, children);
85
+ };
86
+ export const EnvIsNotProd = ({
87
+ children
88
+ }) => {
89
+ const env = useEnv();
90
+ const prodEnvs = useProductionEnvironments();
91
+ if (prodEnvs.includes(env)) {
92
+ return null;
93
+ }
94
+ return /*#__PURE__*/React.createElement(React.Fragment, null, children);
95
+ };
75
96
 
76
97
  // Export hooks for direct use
77
98
  export { useEnv, useVariant, useRegion, useEnvContext };
@@ -1 +1 @@
1
- {"version":3,"names":["React","useEnv","useVariant","useRegion","useEnvContext","matchesValue","current","allowed","allowedArray","Array","isArray","includes","EnvIs","env","variant","region","children","currentEnv","currentVariant","currentRegion","undefined","createElement","Fragment","EnvIsNot"],"sources":["Env.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n useEnv,\n useVariant,\n useRegion,\n useEnvContext\n} from \"~/services/GetProjectConfigService/EnvContext.js\";\n\nexport interface EnvIsProps {\n env?: string | string[];\n variant?: string | string[];\n region?: string | string[];\n children: React.ReactNode;\n}\n\n/**\n * Helper function to check if a value matches any of the allowed values\n */\nconst matchesValue = (current: string | undefined, allowed: string | string[]): boolean => {\n if (!current) {\n return false;\n }\n const allowedArray = Array.isArray(allowed) ? allowed : [allowed];\n return allowedArray.includes(current);\n};\n\n/**\n * Conditionally renders children based on the current environment, variant, or region.\n * Multiple conditions are AND-ed together.\n */\nexport const EnvIs: React.FC<EnvIsProps> = ({ env, variant, region, children }) => {\n const currentEnv = useEnv();\n const currentVariant = useVariant();\n const currentRegion = useRegion();\n\n // Check if env matches\n if (env !== undefined && !matchesValue(currentEnv, env)) {\n return null;\n }\n\n // Check if variant matches\n if (variant !== undefined && !matchesValue(currentVariant, variant)) {\n return null;\n }\n\n // Check if region matches\n if (region !== undefined && !matchesValue(currentRegion, region)) {\n return null;\n }\n\n return <>{children}</>;\n};\n\n/**\n * Conditionally renders children when the current environment, variant, or region does NOT match.\n * Multiple conditions are AND-ed together (renders when NONE of the conditions match).\n */\nexport const EnvIsNot: React.FC<EnvIsProps> = ({ env, variant, region, children }) => {\n const currentEnv = useEnv();\n const currentVariant = useVariant();\n const currentRegion = useRegion();\n\n // Check if env does NOT match\n if (env !== undefined && matchesValue(currentEnv, env)) {\n return null;\n }\n\n // Check if variant does NOT match\n if (variant !== undefined && matchesValue(currentVariant, variant)) {\n return null;\n }\n\n // Check if region does NOT match\n if (region !== undefined && matchesValue(currentRegion, region)) {\n return null;\n }\n\n return <>{children}</>;\n};\n\n// Export hooks for direct use\nexport { useEnv, useVariant, useRegion, useEnvContext };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACIC,MAAM,EACNC,UAAU,EACVC,SAAS,EACTC,aAAa;AAUjB;AACA;AACA;AACA,MAAMC,YAAY,GAAGA,CAACC,OAA2B,EAAEC,OAA0B,KAAc;EACvF,IAAI,CAACD,OAAO,EAAE;IACV,OAAO,KAAK;EAChB;EACA,MAAME,YAAY,GAAGC,KAAK,CAACC,OAAO,CAACH,OAAO,CAAC,GAAGA,OAAO,GAAG,CAACA,OAAO,CAAC;EACjE,OAAOC,YAAY,CAACG,QAAQ,CAACL,OAAO,CAAC;AACzC,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMM,KAA2B,GAAGA,CAAC;EAAEC,GAAG;EAAEC,OAAO;EAAEC,MAAM;EAAEC;AAAS,CAAC,KAAK;EAC/E,MAAMC,UAAU,GAAGhB,MAAM,CAAC,CAAC;EAC3B,MAAMiB,cAAc,GAAGhB,UAAU,CAAC,CAAC;EACnC,MAAMiB,aAAa,GA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,aAAa","ignoreList":[]}
1
+ {"version":3,"names":["React","useEnv","useVariant","useRegion","useEnvContext","useProductionEnvironments","matchesValue","current","allowed","allowedArray","Array","isArray","includes","EnvIs","env","variant","region","children","currentEnv","currentVariant","currentRegion","undefined","createElement","Fragment","EnvIsNot","EnvIsProd","prodEnvs","EnvIsNotProd"],"sources":["Env.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n useEnv,\n useVariant,\n useRegion,\n useEnvContext\n} from \"~/services/GetProjectConfigService/EnvContext.js\";\nimport { useProductionEnvironments } from \"~/services/GetProjectConfigService/ProductionEnvironmentsContext.js\";\n\nexport interface EnvIsProps {\n env?: string | string[];\n variant?: string | string[];\n region?: string | string[];\n children: React.ReactNode;\n}\n\n/**\n * Helper function to check if a value matches any of the allowed values\n */\nconst matchesValue = (current: string | undefined, allowed: string | string[]): boolean => {\n if (!current) {\n return false;\n }\n const allowedArray = Array.isArray(allowed) ? allowed : [allowed];\n return allowedArray.includes(current);\n};\n\n/**\n * Conditionally renders children based on the current environment, variant, or region.\n * Multiple conditions are AND-ed together.\n */\nexport const EnvIs: React.FC<EnvIsProps> = ({ env, variant, region, children }) => {\n const currentEnv = useEnv();\n const currentVariant = useVariant();\n const currentRegion = useRegion();\n\n // Check if env matches\n if (env !== undefined && !matchesValue(currentEnv, env)) {\n return null;\n }\n\n // Check if variant matches\n if (variant !== undefined && !matchesValue(currentVariant, variant)) {\n return null;\n }\n\n // Check if region matches\n if (region !== undefined && !matchesValue(currentRegion, region)) {\n return null;\n }\n\n return <>{children}</>;\n};\n\n/**\n * Conditionally renders children when the current environment, variant, or region does NOT match.\n * Multiple conditions are AND-ed together (renders when NONE of the conditions match).\n */\nexport const EnvIsNot: React.FC<EnvIsProps> = ({ env, variant, region, children }) => {\n const currentEnv = useEnv();\n const currentVariant = useVariant();\n const currentRegion = useRegion();\n\n // Check if env does NOT match\n if (env !== undefined && matchesValue(currentEnv, env)) {\n return null;\n }\n\n // Check if variant does NOT match\n if (variant !== undefined && matchesValue(currentVariant, variant)) {\n return null;\n }\n\n // Check if region does NOT match\n if (region !== undefined && matchesValue(currentRegion, region)) {\n return null;\n }\n\n return <>{children}</>;\n};\n\nexport const EnvIsProd: React.FC<{ children: React.ReactNode }> = ({ children }) => {\n const env = useEnv();\n const prodEnvs = useProductionEnvironments();\n if (!prodEnvs.includes(env)) {\n return null;\n }\n return <>{children}</>;\n};\n\nexport const EnvIsNotProd: React.FC<{ children: React.ReactNode }> = ({ children }) => {\n const env = useEnv();\n const prodEnvs = useProductionEnvironments();\n if (prodEnvs.includes(env)) {\n return null;\n }\n return <>{children}</>;\n};\n\n// Export hooks for direct use\nexport { useEnv, useVariant, useRegion, useEnvContext };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACIC,MAAM,EACNC,UAAU,EACVC,SAAS,EACTC,aAAa;AAEjB,SAASC,yBAAyB;AASlC;AACA;AACA;AACA,MAAMC,YAAY,GAAGA,CAACC,OAA2B,EAAEC,OAA0B,KAAc;EACvF,IAAI,CAACD,OAAO,EAAE;IACV,OAAO,KAAK;EAChB;EACA,MAAME,YAAY,GAAGC,KAAK,CAACC,OAAO,CAACH,OAAO,CAAC,GAAGA,OAAO,GAAG,CAACA,OAAO,CAAC;EACjE,OAAOC,YAAY,CAACG,QAAQ,CAACL,OAAO,CAAC;AACzC,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMM,KAA2B,GAAGA,CAAC;EAAEC,GAAG;EAAEC,OAAO;EAAEC,MAAM;EAAEC;AAAS,CAAC,KAAK;EAC/E,MAAMC,UAAU,GAAGjB,MAAM,CAAC,CAAC;EAC3B,MAAMkB,cAAc,GAAGjB,UAAU,CAAC,CAAC;EACnC,MAAMkB,aAAa,GAAGjB,SAAS,CAAC,CAAC;;EAEjC;EACA,IAAIW,GAAG,KAAKO,SAAS,IAAI,CAACf,YAAY,CAACY,UAAU,EAAEJ,GAAG,CAAC,EAAE;IACrD,OAAO,IAAI;EACf;;EAEA;E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ACE,GAAG,CAAC,EAAE;IACzB,OAAO,IAAI;EACf;EACA,oBAAOd,KAAA,CAAAsB,aAAA,CAAAtB,KAAA,CAAAuB,QAAA,QAAGN,QAAW,CAAC;AAC1B,CAAC;AAED,OAAO,MAAMU,YAAqD,GAAGA,CAAC;EAAEV;AAAS,CAAC,KAAK;EACnF,MAAMH,GAAG,GAAGb,MAAM,CAAC,CAAC;EACpB,MAAMyB,QAAQ,GAAGrB,yBAAyB,CAAC,CAAC;EAC5C,IAAIqB,QAAQ,CAACd,QAAQ,CAACE,GAAG,CAAC,EAAE;IACxB,OAAO,IAAI;EACf;EACA,oBAAOd,KAAA,CAAAsB,aAAA,CAAAtB,KAAA,CAAAuB,QAAA,QAAGN,QAAW,CAAC;AAC1B,CAAC;;AAED;AACA,SAAShB,MAAM,EAAEC,UAAU,EAAEC,SAAS,EAAEC,aAAa","ignoreList":[]}
@@ -1 +1,2 @@
1
1
  export * from "./Env.js";
2
+ export * from "./Ci.js";
@@ -1,3 +1,4 @@
1
1
  export * from "./Env.js";
2
+ export * from "./Ci.js";
2
3
 
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Env.js\";\n"],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Env.js\";\nexport * from \"./Ci.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}