@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.
- package/abstractions/features/DeployApp.d.ts +0 -1
- package/abstractions/features/DeployApp.js.map +1 -1
- package/abstractions/features/index.d.ts +0 -1
- package/abstractions/features/index.js +0 -1
- package/abstractions/features/index.js.map +1 -1
- package/defineExtension/models/ExtensionDefinitionModel.d.ts +4 -4
- package/defineExtension/models/ExtensionDefinitionModel.js.map +1 -1
- package/defineExtension/models/ExtensionInstanceModel.js +4 -1
- package/defineExtension/models/ExtensionInstanceModel.js.map +1 -1
- package/defineExtension/zodTypes/zodSrcPath.d.ts +1 -1
- package/defineExtension/zodTypes/zodSrcPath.js +11 -0
- package/defineExtension/zodTypes/zodSrcPath.js.map +1 -1
- package/exports/infra/admin.d.ts +0 -1
- package/exports/infra/admin.js +0 -1
- package/exports/infra/admin.js.map +1 -1
- package/exports/infra/api.d.ts +0 -1
- package/exports/infra/api.js +0 -1
- package/exports/infra/api.js.map +1 -1
- package/exports/infra/core.d.ts +0 -1
- package/exports/infra/core.js +0 -1
- package/exports/infra/core.js.map +1 -1
- package/exports/infra.d.ts +8 -0
- package/exports/infra.js +10 -0
- package/exports/{infra/index.js.map → infra.js.map} +1 -1
- package/extensions/AdminBuildParam.d.ts +2 -8
- package/extensions/AdminBuildParam.js +1 -1
- package/extensions/AdminBuildParam.js.map +1 -1
- package/extensions/AdminExtension.d.ts +2 -8
- package/extensions/ApiBuildParam.d.ts +2 -8
- package/extensions/ApiBuildParam.js +4 -4
- package/extensions/ApiBuildParam.js.map +1 -1
- package/extensions/ApiExtension.d.ts +2 -8
- package/extensions/ApiExtension.js +5 -5
- package/extensions/ApiExtension.js.map +1 -1
- package/extensions/DatabaseSetup.d.ts +7 -7
- package/extensions/EnvVar.d.ts +4 -7
- package/extensions/EnvVar.js +4 -0
- package/extensions/EnvVar.js.map +1 -1
- package/extensions/ExtensionDefinitions.d.ts +1 -5
- package/extensions/FeatureFlags.d.ts +17 -79
- package/extensions/FeatureFlags.js +12 -0
- package/extensions/FeatureFlags.js.map +1 -1
- package/extensions/Project/EnsureTelemetryEnabledForOss.js +1 -1
- package/extensions/Project/EnsureTelemetryEnabledForOss.js.map +1 -1
- package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js +1 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js.map +1 -1
- package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js +1 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js.map +1 -1
- package/extensions/Project/ValidateEncryptionBeforeDeploy.d.ts +12 -0
- package/extensions/Project/ValidateEncryptionBeforeDeploy.js +32 -0
- package/extensions/Project/ValidateEncryptionBeforeDeploy.js.map +1 -0
- package/extensions/Project.js +2 -0
- package/extensions/Project.js.map +1 -1
- package/extensions/ProjectDecorator.d.ts +3 -7
- package/extensions/ProjectId.d.ts +3 -7
- package/extensions/ProjectId.js +1 -1
- package/extensions/ProjectId.js.map +1 -1
- package/extensions/ProjectImplementation.d.ts +3 -9
- package/extensions/Telemetry.d.ts +2 -6
- package/extensions/hooks/AdminAfterBuild.d.ts +2 -6
- package/extensions/hooks/AdminAfterDeploy.d.ts +2 -6
- package/extensions/hooks/AdminBeforeBuild.d.ts +2 -6
- package/extensions/hooks/AdminBeforeDeploy.d.ts +2 -6
- package/extensions/hooks/AdminBeforeWatch.d.ts +2 -6
- package/extensions/hooks/AfterBuild.d.ts +2 -6
- package/extensions/hooks/AfterDeploy.d.ts +2 -6
- package/extensions/hooks/ApiAfterBuild.d.ts +2 -6
- package/extensions/hooks/ApiAfterDeploy.d.ts +2 -6
- package/extensions/hooks/ApiBeforeBuild.d.ts +2 -6
- package/extensions/hooks/ApiBeforeDeploy.d.ts +2 -6
- package/extensions/hooks/ApiBeforeWatch.d.ts +2 -6
- package/extensions/hooks/BeforeBuild.d.ts +2 -6
- package/extensions/hooks/BeforeDeploy.d.ts +2 -6
- package/extensions/hooks/BeforeWatch.d.ts +2 -6
- package/extensions/hooks/CoreAfterBuild.d.ts +2 -6
- package/extensions/hooks/CoreAfterDeploy.d.ts +2 -6
- package/extensions/hooks/CoreBeforeBuild.d.ts +2 -6
- package/extensions/hooks/CoreBeforeDeploy.d.ts +2 -6
- package/extensions/hooks/CoreBeforeWatch.d.ts +2 -6
- package/extensions/index.d.ts +38 -145
- package/extensions/index.js +5 -8
- package/extensions/index.js.map +1 -1
- package/extensions/infra/Ci.d.ts +14 -0
- package/extensions/infra/Ci.js +29 -0
- package/extensions/infra/Ci.js.map +1 -0
- package/extensions/infra/Env.d.ts +6 -0
- package/extensions/infra/Env.js +21 -0
- package/extensions/infra/Env.js.map +1 -1
- package/extensions/infra/index.d.ts +1 -0
- package/extensions/infra/index.js +1 -0
- package/extensions/infra/index.js.map +1 -1
- package/extensions/pulumi/AdminStackOutputValue.d.ts +1 -7
- package/extensions/pulumi/ApiStackOutputValue.d.ts +1 -7
- package/extensions/pulumi/CoreStackOutputValue.d.ts +1 -7
- package/extensions/pulumi/ProductionEnvironments.d.ts +2 -6
- package/extensions/pulumi/ProductionEnvironments.js +16 -1
- package/extensions/pulumi/ProductionEnvironments.js.map +1 -1
- package/extensions/pulumi/PulumiResourceNamePrefix.d.ts +1 -5
- package/extensions/pulumi/index.d.ts +0 -3
- package/extensions/pulumi/index.js +0 -3
- package/extensions/pulumi/index.js.map +1 -1
- package/features/BuildApp/PackagesBuilder/worker.js +1 -1
- package/features/BuildApp/PackagesBuilder/worker.js.map +1 -1
- package/features/GetFeatureFlags/GetFeatureFlags.d.ts +1 -2
- package/features/GetFeatureFlags/GetFeatureFlags.js +1 -2
- package/features/GetFeatureFlags/GetFeatureFlags.js.map +1 -1
- package/features/Watch/initInvocationForwarding.d.ts +1 -1
- package/features/Watch/initInvocationForwarding.js +1 -1
- package/features/Watch/initInvocationForwarding.js.map +1 -1
- package/features/Watch/localInvocationWorker.js +5 -1
- package/features/Watch/localInvocationWorker.js.map +1 -1
- package/features/index.d.ts +0 -1
- package/features/index.js +0 -1
- package/features/index.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +38 -39
- package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js +4 -4
- package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js.map +1 -1
- package/services/GetProjectConfigService/GetProjectConfigService.js +2 -1
- package/services/GetProjectConfigService/GetProjectConfigService.js.map +1 -1
- package/services/GetProjectConfigService/ProductionEnvironmentsContext.d.ts +6 -0
- package/services/GetProjectConfigService/ProductionEnvironmentsContext.js +21 -0
- package/services/GetProjectConfigService/ProductionEnvironmentsContext.js.map +1 -0
- package/services/GetProjectConfigService/renderConfigWorker.js +14 -4
- package/services/GetProjectConfigService/renderConfigWorker.js.map +1 -1
- package/services/GetProjectIdService/GetProjectIdService.js +1 -1
- package/services/GetProjectIdService/GetProjectIdService.js.map +1 -1
- package/services/GetProjectService/GetProjectService.js +2 -2
- package/services/GetProjectService/GetProjectService.js.map +1 -1
- package/services/GetProjectVersionService/GetProjectVersionService.js +4 -4
- package/services/GetProjectVersionService/GetProjectVersionService.js.map +1 -1
- package/services/InitProjectSdkService/InitProjectSdkService.js +0 -6
- package/services/InitProjectSdkService/InitProjectSdkService.js.map +1 -1
- package/services/InitProjectSdkService/applyWcpEnvVars.js +10 -8
- package/services/InitProjectSdkService/applyWcpEnvVars.js.map +1 -1
- package/services/InitProjectSdkService/registerPulumiExtensions.js +5 -3
- package/services/InitProjectSdkService/registerPulumiExtensions.js.map +1 -1
- package/services/InstallExtensionService/downloadFolderFromS3.js +33 -42
- package/services/InstallExtensionService/downloadFolderFromS3.js.map +1 -1
- package/services/InstallExtensionService/types.d.ts +4 -0
- package/services/InstallExtensionService/types.js.map +1 -1
- package/services/InstallExtensionService/updateWebinyConfig.js +74 -47
- package/services/InstallExtensionService/updateWebinyConfig.js.map +1 -1
- package/services/ListPackagesService/ListPackagesService.js +1 -1
- package/services/ListPackagesService/ListPackagesService.js.map +1 -1
- package/services/ProjectInfoService/ProjectInfoService.js +3 -3
- package/services/ProjectInfoService/ProjectInfoService.js.map +1 -1
- package/utils/ExtensionSrcResolver.js +2 -1
- package/utils/ExtensionSrcResolver.js.map +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -0
- package/utils/index.js.map +1 -1
- package/utils/requireConfig.js +9 -5
- package/utils/requireConfig.js.map +1 -1
- package/utils/toImportSpecifier.d.ts +5 -0
- package/utils/toImportSpecifier.js +12 -0
- package/utils/toImportSpecifier.js.map +1 -0
- package/abstractions/features/pulumi/AdminPulumi.d.ts +0 -8
- package/abstractions/features/pulumi/AdminPulumi.js +0 -4
- package/abstractions/features/pulumi/AdminPulumi.js.map +0 -1
- package/abstractions/features/pulumi/ApiPulumi.d.ts +0 -8
- package/abstractions/features/pulumi/ApiPulumi.js +0 -4
- package/abstractions/features/pulumi/ApiPulumi.js.map +0 -1
- package/abstractions/features/pulumi/CorePulumi.d.ts +0 -8
- package/abstractions/features/pulumi/CorePulumi.js +0 -4
- package/abstractions/features/pulumi/CorePulumi.js.map +0 -1
- package/abstractions/features/pulumi/index.d.ts +0 -3
- package/abstractions/features/pulumi/index.js +0 -5
- package/abstractions/features/pulumi/index.js.map +0 -1
- package/exports/infra/index.d.ts +0 -8
- package/exports/infra/index.js +0 -10
- package/extensions/pulumi/AdminPulumi.d.ts +0 -8
- package/extensions/pulumi/AdminPulumi.js +0 -25
- package/extensions/pulumi/AdminPulumi.js.map +0 -1
- package/extensions/pulumi/ApiPulumi.d.ts +0 -8
- package/extensions/pulumi/ApiPulumi.js +0 -25
- package/extensions/pulumi/ApiPulumi.js.map +0 -1
- package/extensions/pulumi/CorePulumi.d.ts +0 -8
- package/extensions/pulumi/CorePulumi.js +0 -25
- package/extensions/pulumi/CorePulumi.js.map +0 -1
- package/features/BuildApp/PackagesBuilder/utils/requireConfig.d.ts +0 -18
- package/features/BuildApp/PackagesBuilder/utils/requireConfig.js +0 -15
- package/features/BuildApp/PackagesBuilder/utils/requireConfig.js.map +0 -1
- package/features/Watch/watchers/utils/requireConfig.d.ts +0 -18
- package/features/Watch/watchers/utils/requireConfig.js +0 -15
- package/features/Watch/watchers/utils/requireConfig.js.map +0 -1
- package/features/pulumi/AdminPulumi/AdminPulumi.d.ts +0 -7
- package/features/pulumi/AdminPulumi/AdminPulumi.js +0 -21
- package/features/pulumi/AdminPulumi/AdminPulumi.js.map +0 -1
- package/features/pulumi/AdminPulumi/index.d.ts +0 -1
- package/features/pulumi/AdminPulumi/index.js +0 -3
- package/features/pulumi/AdminPulumi/index.js.map +0 -1
- package/features/pulumi/ApiPulumi/ApiPulumi.d.ts +0 -7
- package/features/pulumi/ApiPulumi/ApiPulumi.js +0 -21
- package/features/pulumi/ApiPulumi/ApiPulumi.js.map +0 -1
- package/features/pulumi/ApiPulumi/index.d.ts +0 -1
- package/features/pulumi/ApiPulumi/index.js +0 -3
- package/features/pulumi/ApiPulumi/index.js.map +0 -1
- package/features/pulumi/CorePulumi/CorePulumi.d.ts +0 -7
- package/features/pulumi/CorePulumi/CorePulumi.js +0 -21
- package/features/pulumi/CorePulumi/CorePulumi.js.map +0 -1
- package/features/pulumi/CorePulumi/index.d.ts +0 -1
- package/features/pulumi/CorePulumi/index.js +0 -3
- package/features/pulumi/CorePulumi/index.js.map +0 -1
- package/features/pulumi/index.d.ts +0 -3
- package/features/pulumi/index.js +0 -5
- 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.
|
|
4
|
-
},
|
|
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.
|
|
4
|
-
},
|
|
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.
|
|
4
|
-
},
|
|
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.
|
|
4
|
-
},
|
|
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.
|
|
4
|
-
},
|
|
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.
|
|
4
|
-
},
|
|
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.
|
|
4
|
-
},
|
|
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.
|
|
4
|
-
},
|
|
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.
|
|
4
|
-
},
|
|
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.
|
|
4
|
-
},
|
|
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.
|
|
4
|
-
},
|
|
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.
|
|
4
|
-
},
|
|
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.
|
|
4
|
-
},
|
|
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.
|
|
4
|
-
},
|
|
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.
|
|
4
|
-
},
|
|
5
|
-
src: string;
|
|
6
|
-
}, {
|
|
7
|
-
src: string;
|
|
8
|
-
}>>;
|
|
3
|
+
src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
4
|
+
}, z.core.$strip>>;
|
package/extensions/index.d.ts
CHANGED
|
@@ -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 {
|
|
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("
|
|
52
|
+
export declare const definitions: (import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
56
53
|
src: import("zod").ZodString;
|
|
57
|
-
}, "strip
|
|
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
|
|
70
|
-
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
|
181
|
-
|
|
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
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}>> | import("
|
|
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
|
|
208
|
-
},
|
|
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";
|
package/extensions/index.js
CHANGED
|
@@ -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 {
|
|
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
|
-
|
|
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
|
|
package/extensions/index.js.map
CHANGED
|
@@ -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","
|
|
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","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,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oB,CAACsC,GAAG,EACxBjC,MAAM,CAACiC,GAAG,EACV/B,YAAY,CAAC+B,GAAG;AAEhB;AACA1B,eAAe,CAAC0B,GAAG,EACnBzB,gBAAgB,CAACyB,GAAG,EACpBZ,WAAW,CAACY,GAAG,EACfnB,YAAY,CAACmB,GAAG,EAChBlB,WAAW,CAACkB,GAAG,EACfrB,UAAU,CAACqB,GAAG,EACdpB,WAAW,CAACoB,GAAG,EACfxB,gBAAgB,CAACwB,GAAG,EACpBvB,iBAAiB,CAACuB,GAAG,EACrBtB,gBAAgB,CAACsB,GAAG,EACpBjB,aAAa,CAACiB,GAAG,EACjBhB,cAAc,CAACgB,GAAG,EAClBf,cAAc,CAACe,GAAG,EAClBd,eAAe,CAACc,GAAG,EACnBb,cAAc,CAACa,GAAG,EAClBX,cAAc,CAACW,GAAG,EAClBV,eAAe,CAACU,GAAG,EACnBT,eAAe,CAACS,GAAG,EACnBR,gBAAgB,CAACQ,GAAG,EACpBP,eAAe,CAACO,GAAG;AAEnB;AACAL,wBAAwB,CAACK,GAAG,EAC5BN,sBAAsB,CAACM,GAAG,EAC1BJ,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 };
|
package/extensions/infra/Env.js
CHANGED
|
@@ -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;
|
|
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 hoo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,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 @@
|
|
|
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":[]}
|