@webiny/project-aws 6.0.0-rc.0 → 6.0.0-rc.2
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/_templates/extensions/ApiLambdaFunction/package.json +9 -0
- package/_templates/extensions/ApiLambdaFunction/tsconfig.json +7 -0
- package/_templates/extensions/ApiLambdaFunction/webiny.config.ts +8 -0
- package/admin.d.ts +2 -2
- package/admin.js +1 -1
- package/admin.js.map +1 -1
- package/api.d.ts +2 -2
- package/api.js +2 -2
- package/api.js.map +1 -1
- package/exports/extensions.d.ts +0 -1
- package/exports/extensions.js +0 -1
- package/exports/extensions.js.map +1 -1
- package/extensions/ApiLambdaFunction.d.ts +11 -0
- package/extensions/ApiLambdaFunction.js +68 -0
- package/extensions/ApiLambdaFunction.js.map +1 -0
- package/extensions/OpenSearch.js +3 -4
- package/extensions/OpenSearch.js.map +1 -1
- package/extensions/ProjectAws/definitions.js +1 -3
- package/extensions/ProjectAws/definitions.js.map +1 -1
- package/extensions/ProjectAws.js +5 -2
- package/extensions/ProjectAws.js.map +1 -1
- package/extensions/definitions.d.ts +3 -0
- package/extensions/definitions.js +6 -0
- package/extensions/definitions.js.map +1 -0
- package/extensions/index.d.ts +1 -0
- package/extensions/index.js +1 -0
- package/extensions/index.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/infra.d.ts +10 -0
- package/infra.js +5 -2
- package/infra.js.map +1 -1
- package/package.json +13 -15
- package/project.d.ts +84 -0
- package/project.js +4 -3
- package/project.js.map +1 -1
- package/security.d.ts +0 -356
- package/security.js +0 -53
- package/security.js.map +0 -1
package/admin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const Admin: {
|
|
2
|
-
Extension: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
+
Extension: import("@webiny/project/defineExtension/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
3
3
|
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
4
4
|
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
5
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -9,7 +9,7 @@ export declare const Admin: {
|
|
|
9
9
|
src: string;
|
|
10
10
|
exportName?: string | undefined;
|
|
11
11
|
}>>;
|
|
12
|
-
BuildParam: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
12
|
+
BuildParam: import("@webiny/project/defineExtension/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
13
13
|
paramName: import("zod").ZodString;
|
|
14
14
|
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]>;
|
|
15
15
|
}, "strip", import("zod").ZodTypeAny, {
|
package/admin.js
CHANGED
package/admin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AdminExtension","AdminBuildParam","Admin","Extension","BuildParam"],"sources":["admin.ts"],"sourcesContent":["import { AdminExtension, AdminBuildParam } from \"@webiny/
|
|
1
|
+
{"version":3,"names":["AdminExtension","AdminBuildParam","Admin","Extension","BuildParam"],"sources":["admin.ts"],"sourcesContent":["import { AdminExtension, AdminBuildParam } from \"@webiny/project/extensions/index.js\";\n\nexport const Admin = {\n Extension: AdminExtension,\n BuildParam: AdminBuildParam\n};\n"],"mappings":"AAAA,SAASA,cAAc,EAAEC,eAAe,QAAQ,qCAAqC;AAErF,OAAO,MAAMC,KAAK,GAAG;EACjBC,SAAS,EAAEH,cAAc;EACzBI,UAAU,EAAEH;AAChB,CAAC","ignoreList":[]}
|
package/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const Api: {
|
|
2
|
-
Extension: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
+
Extension: import("@webiny/project/defineExtension/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
3
3
|
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
4
4
|
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
5
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -9,7 +9,7 @@ export declare const Api: {
|
|
|
9
9
|
src: string;
|
|
10
10
|
exportName?: string | undefined;
|
|
11
11
|
}>>;
|
|
12
|
-
BuildParam: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
12
|
+
BuildParam: import("@webiny/project/defineExtension/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
13
13
|
paramName: import("zod").ZodString;
|
|
14
14
|
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]>;
|
|
15
15
|
}, "strip", import("zod").ZodTypeAny, {
|
package/api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApiExtension, BuildParam } from "@webiny/project/extensions/index.js";
|
|
2
2
|
export const Api = {
|
|
3
|
-
Extension:
|
|
3
|
+
Extension: ApiExtension,
|
|
4
4
|
BuildParam: BuildParam
|
|
5
5
|
};
|
|
6
6
|
|
package/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["ApiExtension","BuildParam","Api","Extension"],"sources":["api.ts"],"sourcesContent":["import { ApiExtension, BuildParam } from \"@webiny/project/extensions/index.js\";\n\nexport const Api = {\n Extension: ApiExtension,\n BuildParam: BuildParam\n};\n"],"mappings":"AAAA,SAASA,YAAY,EAAEC,UAAU,QAAQ,qCAAqC;AAE9E,OAAO,MAAMC,GAAG,GAAG;EACfC,SAAS,EAAEH,YAAY;EACvBC,UAAU,EAAEA;AAChB,CAAC","ignoreList":[]}
|
package/exports/extensions.d.ts
CHANGED
|
@@ -3,5 +3,4 @@ export { Admin } from "../admin.js";
|
|
|
3
3
|
export { Cli } from "../cli.js";
|
|
4
4
|
export { Infra } from "../infra.js";
|
|
5
5
|
export { Project } from "../project.js";
|
|
6
|
-
export { Security } from "../security.js";
|
|
7
6
|
export { ApiStackOutputService, CoreStackOutputService, ApiGqlClient, AdminStackOutputService, InvokeLambdaFunction } from "../abstractions/index.js";
|
package/exports/extensions.js
CHANGED
|
@@ -3,7 +3,6 @@ export { Admin } from "../admin.js";
|
|
|
3
3
|
export { Cli } from "../cli.js";
|
|
4
4
|
export { Infra } from "../infra.js";
|
|
5
5
|
export { Project } from "../project.js";
|
|
6
|
-
export { Security } from "../security.js";
|
|
7
6
|
export { ApiStackOutputService, CoreStackOutputService, ApiGqlClient, AdminStackOutputService, InvokeLambdaFunction } from "../abstractions/index.js";
|
|
8
7
|
|
|
9
8
|
//# sourceMappingURL=extensions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Api","Admin","Cli","Infra","Project","
|
|
1
|
+
{"version":3,"names":["Api","Admin","Cli","Infra","Project","ApiStackOutputService","CoreStackOutputService","ApiGqlClient","AdminStackOutputService","InvokeLambdaFunction"],"sources":["extensions.ts"],"sourcesContent":["export { Api } from \"~/api.js\";\nexport { Admin } from \"~/admin.js\";\nexport { Cli } from \"~/cli.js\";\nexport { Infra } from \"~/infra.js\";\nexport { Project } from \"~/project.js\";\nexport {\n ApiStackOutputService,\n CoreStackOutputService,\n ApiGqlClient,\n AdminStackOutputService,\n InvokeLambdaFunction\n} from \"~/abstractions/index.js\";\n"],"mappings":"AAAA,SAASA,GAAG;AACZ,SAASC,KAAK;AACd,SAASC,GAAG;AACZ,SAASC,KAAK;AACd,SAASC,OAAO;AAChB,SACIC,qBAAqB,EACrBC,sBAAsB,EACtBC,YAAY,EACZC,uBAAuB,EACvBC,oBAAoB","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ApiLambdaFunction: import("@webiny/project/defineExtension/defineExtension").ExtensionComponent<z.ZodObject<{
|
|
3
|
+
functionSrc: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
4
|
+
pulumiSrc: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
functionSrc: string;
|
|
7
|
+
pulumiSrc: string;
|
|
8
|
+
}, {
|
|
9
|
+
functionSrc: string;
|
|
10
|
+
pulumiSrc: string;
|
|
11
|
+
}>>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import path from "path";
|
|
3
|
+
import fs from "fs";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { replaceInPath } from "replace-in-path";
|
|
6
|
+
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
7
|
+
import { zodSrcPath } from "@webiny/project/defineExtension/zodTypes/zodSrcPath.js";
|
|
8
|
+
import { ExtensionSrcResolver } from "@webiny/project/utils/index.js";
|
|
9
|
+
import { ApiPulumi as ApiPulumiAbstraction } from "@webiny/project/abstractions/features/pulumi/index.js";
|
|
10
|
+
import { ApiPulumi } from "@webiny/project/extensions/index.js";
|
|
11
|
+
import { getTemplatesFolderPath } from "../utils/index.js";
|
|
12
|
+
export const ApiLambdaFunction = defineExtension({
|
|
13
|
+
type: "Api/LambdaFunction",
|
|
14
|
+
tags: {
|
|
15
|
+
runtimeContext: "app-build",
|
|
16
|
+
appName: "api"
|
|
17
|
+
},
|
|
18
|
+
description: "Add a custom Lambda function to the API app.",
|
|
19
|
+
multiple: true,
|
|
20
|
+
paramsSchema: ({
|
|
21
|
+
project
|
|
22
|
+
}) => {
|
|
23
|
+
return z.object({
|
|
24
|
+
functionSrc: zodSrcPath({
|
|
25
|
+
project
|
|
26
|
+
}),
|
|
27
|
+
pulumiSrc: zodSrcPath({
|
|
28
|
+
project,
|
|
29
|
+
abstraction: ApiPulumiAbstraction
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
async build(params, ctx) {
|
|
34
|
+
const absoluteFunctionSrc = ExtensionSrcResolver.resolvePath(params.functionSrc, ctx.project);
|
|
35
|
+
|
|
36
|
+
// Derive function name from the handler file name (without extension).
|
|
37
|
+
const functionName = path.parse(absoluteFunctionSrc).name;
|
|
38
|
+
const fnWorkspacePath = ctx.project.paths.workspaceFolder.join("apps", "api", functionName).toString();
|
|
39
|
+
|
|
40
|
+
// 1. Scaffold from template if the folder doesn't exist yet.
|
|
41
|
+
if (!fs.existsSync(fnWorkspacePath)) {
|
|
42
|
+
const templatePath = path.join(getTemplatesFolderPath(), "extensions", "ApiLambdaFunction");
|
|
43
|
+
fs.cpSync(templatePath, fnWorkspacePath, {
|
|
44
|
+
recursive: true
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// Replace the {{functionName}} placeholder in package.json.
|
|
48
|
+
replaceInPath(path.join(fnWorkspacePath, "package.json"), {
|
|
49
|
+
find: "{{functionName}}",
|
|
50
|
+
replaceWith: functionName
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// 2. Copy user's handler file → <functionName>/src/index.ts.
|
|
55
|
+
const srcDir = path.join(fnWorkspacePath, "src");
|
|
56
|
+
fs.mkdirSync(srcDir, {
|
|
57
|
+
recursive: true
|
|
58
|
+
});
|
|
59
|
+
fs.copyFileSync(absoluteFunctionSrc, path.join(srcDir, "index.ts"));
|
|
60
|
+
},
|
|
61
|
+
render(props) {
|
|
62
|
+
return /*#__PURE__*/React.createElement(ApiPulumi, {
|
|
63
|
+
src: props.pulumiSrc
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=ApiLambdaFunction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","path","fs","z","replaceInPath","defineExtension","zodSrcPath","ExtensionSrcResolver","ApiPulumi","ApiPulumiAbstraction","getTemplatesFolderPath","ApiLambdaFunction","type","tags","runtimeContext","appName","description","multiple","paramsSchema","project","object","functionSrc","pulumiSrc","abstraction","build","params","ctx","absoluteFunctionSrc","resolvePath","functionName","parse","name","fnWorkspacePath","paths","workspaceFolder","join","toString","existsSync","templatePath","cpSync","recursive","find","replaceWith","srcDir","mkdirSync","copyFileSync","render","props","createElement","src"],"sources":["ApiLambdaFunction.tsx"],"sourcesContent":["import React from \"react\";\nimport path from \"path\";\nimport fs from \"fs\";\nimport { z } from \"zod\";\nimport { replaceInPath } from \"replace-in-path\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport { zodSrcPath } from \"@webiny/project/defineExtension/zodTypes/zodSrcPath.js\";\nimport { ExtensionSrcResolver } from \"@webiny/project/utils/index.js\";\nimport { ApiPulumi as ApiPulumiAbstraction } from \"@webiny/project/abstractions/features/pulumi/index.js\";\nimport { ApiPulumi } from \"@webiny/project/extensions/index.js\";\nimport { getTemplatesFolderPath } from \"~/utils/index.js\";\n\nexport const ApiLambdaFunction = defineExtension({\n type: \"Api/LambdaFunction\",\n tags: { runtimeContext: \"app-build\", appName: \"api\" },\n description: \"Add a custom Lambda function to the API app.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n functionSrc: zodSrcPath({ project }),\n pulumiSrc: zodSrcPath({ project, abstraction: ApiPulumiAbstraction })\n });\n },\n async build(params, ctx) {\n const absoluteFunctionSrc = ExtensionSrcResolver.resolvePath(\n params.functionSrc,\n ctx.project\n );\n\n // Derive function name from the handler file name (without extension).\n const functionName = path.parse(absoluteFunctionSrc).name;\n\n const fnWorkspacePath = ctx.project.paths.workspaceFolder\n .join(\"apps\", \"api\", functionName)\n .toString();\n\n // 1. Scaffold from template if the folder doesn't exist yet.\n if (!fs.existsSync(fnWorkspacePath)) {\n const templatePath = path.join(\n getTemplatesFolderPath(),\n \"extensions\",\n \"ApiLambdaFunction\"\n );\n\n fs.cpSync(templatePath, fnWorkspacePath, { recursive: true });\n\n // Replace the {{functionName}} placeholder in package.json.\n replaceInPath(path.join(fnWorkspacePath, \"package.json\"), {\n find: \"{{functionName}}\",\n replaceWith: functionName\n });\n }\n\n // 2. Copy user's handler file → <functionName>/src/index.ts.\n const srcDir = path.join(fnWorkspacePath, \"src\");\n fs.mkdirSync(srcDir, { recursive: true });\n fs.copyFileSync(absoluteFunctionSrc, path.join(srcDir, \"index.ts\"));\n },\n render(props) {\n return <ApiPulumi src={props.pulumiSrc} />;\n }\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,IAAI,MAAM,MAAM;AACvB,OAAOC,EAAE,MAAM,IAAI;AACnB,SAASC,CAAC,QAAQ,KAAK;AACvB,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,eAAe,QAAQ,0CAA0C;AAC1E,SAASC,UAAU,QAAQ,wDAAwD;AACnF,SAASC,oBAAoB,QAAQ,gCAAgC;AACrE,SAASC,SAAS,IAAIC,oBAAoB,QAAQ,uDAAuD;AACzG,SAASD,SAAS,QAAQ,qCAAqC;AAC/D,SAASE,sBAAsB;AAE/B,OAAO,MAAMC,iBAAiB,GAAGN,eAAe,CAAC;EAC7CO,IAAI,EAAE,oBAAoB;EAC1BC,IAAI,EAAE;IAAEC,cAAc,EAAE,WAAW;IAAEC,OAAO,EAAE;EAAM,CAAC;EACrDC,WAAW,EAAE,8CAA8C;EAC3DC,QAAQ,EAAE,IAAI;EACdC,YAAY,EAAEA,CAAC;IAAEC;EAAQ,CAAC,KAAK;IAC3B,OAAOhB,CAAC,CAACiB,MAAM,CAAC;MACZC,WAAW,EAAEf,UAAU,CAAC;QAAEa;MAAQ,CAAC,CAAC;MACpCG,SAAS,EAAEhB,UAAU,CAAC;QAAEa,OAAO;QAAEI,WAAW,EAAEd;MAAqB,CAAC;IACxE,CAAC,CAAC;EACN,CAAC;EACD,MAAMe,KAAKA,CAACC,MAAM,EAAEC,GAAG,EAAE;IACrB,MAAMC,mBAAmB,GAAGpB,oBAAoB,CAACqB,WAAW,CACxDH,MAAM,CAACJ,WAAW,EAClBK,GAAG,CAACP,OACR,CAAC;;IAED;IACA,MAAMU,YAAY,GAAG5B,IAAI,CAAC6B,KAAK,CAACH,mBAAmB,CAAC,CAACI,IAAI;IAEzD,MAAMC,eAAe,GAAGN,GAAG,CAACP,OAAO,CAACc,KAAK,CAACC,eAAe,CACpDC,IAAI,CAAC,MAAM,EAAE,KAAK,EAAEN,YAAY,CAAC,CACjCO,QAAQ,CAAC,CAAC;;IAEf;IACA,IAAI,CAAClC,EAAE,CAACmC,UAAU,CAACL,eAAe,CAAC,EAAE;MACjC,MAAMM,YAAY,GAAGrC,IAAI,CAACkC,IAAI,CAC1BzB,sBAAsB,CAAC,CAAC,EACxB,YAAY,EACZ,mBACJ,CAAC;MAEDR,EAAE,CAACqC,MAAM,CAACD,YAAY,EAAEN,eAAe,EAAE;QAAEQ,SAAS,EAAE;MAAK,CAAC,CAAC;;MAE7D;MACApC,aAAa,CAACH,IAAI,CAACkC,IAAI,CAACH,eAAe,EAAE,cAAc,CAAC,EAAE;QACtDS,IAAI,EAAE,kBAAkB;QACxBC,WAAW,EAAEb;MACjB,CAAC,CAAC;IACN;;IAEA;IACA,MAAMc,MAAM,GAAG1C,IAAI,CAACkC,IAAI,CAACH,eAAe,EAAE,KAAK,CAAC;IAChD9B,EAAE,CAAC0C,SAAS,CAACD,MAAM,EAAE;MAAEH,SAAS,EAAE;IAAK,CAAC,CAAC;IACzCtC,EAAE,CAAC2C,YAAY,CAAClB,mBAAmB,EAAE1B,IAAI,CAACkC,IAAI,CAACQ,MAAM,EAAE,UAAU,CAAC,CAAC;EACvE,CAAC;EACDG,MAAMA,CAACC,KAAK,EAAE;IACV,oBAAO/C,KAAA,CAAAgD,aAAA,CAACxC,SAAS;MAACyC,GAAG,EAAEF,KAAK,CAACzB;IAAU,CAAE,CAAC;EAC9C;AACJ,CAAC,CAAC","ignoreList":[]}
|
package/extensions/OpenSearch.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
3
3
|
import { OpenSearch as PulumiOpenSearch } from "../pulumi/extensions/index.js";
|
|
4
|
-
import { Infra } from "../index.js";
|
|
5
4
|
import { createPathResolver } from "@webiny/project";
|
|
6
|
-
import { ProjectDecorator, DatabaseSetup } from "@webiny/project/extensions/index.js";
|
|
5
|
+
import { CoreBeforeDeploy, ProjectDecorator, DatabaseSetup } from "@webiny/project/extensions/index.js";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
const p = createPathResolver(import.meta.dirname, "OpenSearch");
|
|
9
8
|
export const OpenSearch = defineExtension({
|
|
@@ -25,9 +24,9 @@ export const OpenSearch = defineExtension({
|
|
|
25
24
|
src: p("InjectDdbEsLambdaFnHandler.js")
|
|
26
25
|
}), /*#__PURE__*/React.createElement(ProjectDecorator, {
|
|
27
26
|
src: p("ReplaceApiLambdaFnHandlers.js")
|
|
28
|
-
}), /*#__PURE__*/React.createElement(
|
|
27
|
+
}), /*#__PURE__*/React.createElement(CoreBeforeDeploy, {
|
|
29
28
|
src: p("EnsureOsServiceRoleBeforeCoreDeploy.js")
|
|
30
|
-
}), /*#__PURE__*/React.createElement(
|
|
29
|
+
}), /*#__PURE__*/React.createElement(CoreBeforeDeploy, {
|
|
31
30
|
src: p("EnsureOsWasDeployed.js")
|
|
32
31
|
})));
|
|
33
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","defineExtension","OpenSearch","PulumiOpenSearch","
|
|
1
|
+
{"version":3,"names":["React","defineExtension","OpenSearch","PulumiOpenSearch","createPathResolver","CoreBeforeDeploy","ProjectDecorator","DatabaseSetup","z","p","import","meta","dirname","type","tags","runtimeContext","description","paramsSchema","object","enabled","boolean","describe","default","optional","domainName","string","indexPrefix","sharedIndexes","render","props","createElement","Fragment","setupName","src"],"sources":["OpenSearch.tsx"],"sourcesContent":["import React from \"react\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport { OpenSearch as PulumiOpenSearch } from \"~/pulumi/extensions/index.js\";\nimport { createPathResolver } from \"@webiny/project\";\nimport {\n CoreBeforeDeploy,\n ProjectDecorator,\n DatabaseSetup\n} from \"@webiny/project/extensions/index.js\";\nimport { z } from \"zod\";\n\nconst p = createPathResolver(import.meta.dirname, \"OpenSearch\");\n\nexport const OpenSearch = defineExtension({\n type: \"Project/OpenSearch\",\n tags: { runtimeContext: \"project\" },\n description: \"Enable and configure Opensearch integration with project-level setup.\",\n paramsSchema: z.object({\n enabled: z.boolean().describe(\"Whether to enable OpenSearch.\").default(false).optional(),\n domainName: z.string().describe(\"The name of the Opensearch domain.\").optional(),\n indexPrefix: z\n .string()\n .describe(\"A prefix to be added to all Opensearch indexes.\")\n .optional(),\n sharedIndexes: z\n .boolean()\n .describe(\n \"Whether to use shared indexes across all environments (true) or separate indexes per environment (false).\"\n )\n .default(false)\n .optional()\n }),\n render: props => {\n return (\n <>\n <PulumiOpenSearch {...props} />\n {props.enabled && (\n <>\n {/* Override database setup to indicate OpenSearch is enabled. */}\n <DatabaseSetup setupName=\"ddb+os\" />\n <ProjectDecorator src={p(\"InjectDdbEsLambdaFnHandler.js\")} />\n <ProjectDecorator src={p(\"ReplaceApiLambdaFnHandlers.js\")} />\n <CoreBeforeDeploy src={p(\"EnsureOsServiceRoleBeforeCoreDeploy.js\")} />\n <CoreBeforeDeploy src={p(\"EnsureOsWasDeployed.js\")} />\n </>\n )}\n </>\n );\n }\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAAQ,0CAA0C;AAC1E,SAASC,UAAU,IAAIC,gBAAgB;AACvC,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,SACIC,gBAAgB,EAChBC,gBAAgB,EAChBC,aAAa,QACV,qCAAqC;AAC5C,SAASC,CAAC,QAAQ,KAAK;AAEvB,MAAMC,CAAC,GAAGL,kBAAkB,CAACM,MAAM,CAACC,IAAI,CAACC,OAAO,EAAE,YAAY,CAAC;AAE/D,OAAO,MAAMV,UAAU,GAAGD,eAAe,CAAC;EACtCY,IAAI,EAAE,oBAAoB;EAC1BC,IAAI,EAAE;IAAEC,cAAc,EAAE;EAAU,CAAC;EACnCC,WAAW,EAAE,uEAAuE;EACpFC,YAAY,EAAET,CAAC,CAACU,MAAM,CAAC;IACnBC,OAAO,EAAEX,CAAC,CAACY,OAAO,CAAC,CAAC,CAACC,QAAQ,CAAC,+BAA+B,CAAC,CAACC,OAAO,CAAC,KAAK,CAAC,CAACC,QAAQ,CAAC,CAAC;IACxFC,UAAU,EAAEhB,CAAC,CAACiB,MAAM,CAAC,CAAC,CAACJ,QAAQ,CAAC,oCAAoC,CAAC,CAACE,QAAQ,CAAC,CAAC;IAChFG,WAAW,EAAElB,CAAC,CACTiB,MAAM,CAAC,CAAC,CACRJ,QAAQ,CAAC,iDAAiD,CAAC,CAC3DE,QAAQ,CAAC,CAAC;IACfI,aAAa,EAAEnB,CAAC,CACXY,OAAO,CAAC,CAAC,CACTC,QAAQ,CACL,2GACJ,CAAC,CACAC,OAAO,CAAC,KAAK,CAAC,CACdC,QAAQ,CAAC;EAClB,CAAC,CAAC;EACFK,MAAM,EAAEC,KAAK,IAAI;IACb,oBACI7B,KAAA,CAAA8B,aAAA,CAAA9B,KAAA,CAAA+B,QAAA,qBACI/B,KAAA,CAAA8B,aAAA,CAAC3B,gBAAgB,EAAK0B,KAAQ,CAAC,EAC9BA,KAAK,CAACV,OAAO,iBACVnB,KAAA,CAAA8B,aAAA,CAAA9B,KAAA,CAAA+B,QAAA,qBAEI/B,KAAA,CAAA8B,aAAA,CAACvB,aAAa;MAACyB,SAAS,EAAC;IAAQ,CAAE,CAAC,eACpChC,KAAA,CAAA8B,aAAA,CAACxB,gBAAgB;MAAC2B,GAAG,EAAExB,CAAC,CAAC,+BAA+B;IAAE,CAAE,CAAC,eAC7DT,KAAA,CAAA8B,aAAA,CAACxB,gBAAgB;MAAC2B,GAAG,EAAExB,CAAC,CAAC,+BAA+B;IAAE,CAAE,CAAC,eAC7DT,KAAA,CAAA8B,aAAA,CAACzB,gBAAgB;MAAC4B,GAAG,EAAExB,CAAC,CAAC,wCAAwC;IAAE,CAAE,CAAC,eACtET,KAAA,CAAA8B,aAAA,CAACzB,gBAAgB;MAAC4B,GAAG,EAAExB,CAAC,CAAC,wBAAwB;IAAE,CAAE,CACvD,CAER,CAAC;EAEX;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { definitions as projectDefinitions } from "@webiny/project/extensions/index.js";
|
|
2
2
|
import { definitions as cliDefinitions } from "@webiny/cli-core/extensions/index.js";
|
|
3
|
-
import { definitions as apiCoreDefinitions } from "@webiny/api-core/extensions/index.js";
|
|
4
3
|
import { definitions as cmsDefinitions } from "@webiny/api-headless-cms/extensions/index.js";
|
|
5
|
-
import { definitions as adminDefinitions } from "@webiny/app-admin/extensions/index.js";
|
|
6
4
|
import { definitions as projectAws } from "../../pulumi/extensions/index.js";
|
|
7
5
|
import { AutoInstall } from "./AutoInstall.js";
|
|
8
|
-
const definitions = [...cliDefinitions, ...
|
|
6
|
+
const definitions = [...cliDefinitions, ...projectDefinitions, ...cmsDefinitions, ...projectAws, AutoInstall.def];
|
|
9
7
|
export default definitions;
|
|
10
8
|
|
|
11
9
|
//# sourceMappingURL=definitions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["definitions","projectDefinitions","cliDefinitions","
|
|
1
|
+
{"version":3,"names":["definitions","projectDefinitions","cliDefinitions","cmsDefinitions","projectAws","AutoInstall","def"],"sources":["definitions.ts"],"sourcesContent":["import {\n definitions as projectDefinitions,\n type ExtensionDefinitionModel\n} from \"@webiny/project/extensions/index.js\";\nimport { definitions as cliDefinitions } from \"@webiny/cli-core/extensions/index.js\";\nimport { definitions as cmsDefinitions } from \"@webiny/api-headless-cms/extensions/index.js\";\nimport { definitions as projectAws } from \"~/pulumi/extensions/index.js\";\nimport { AutoInstall } from \"./AutoInstall.js\";\n\nconst definitions = [\n ...cliDefinitions,\n ...projectDefinitions,\n ...cmsDefinitions,\n ...projectAws,\n AutoInstall.def\n] as unknown as ExtensionDefinitionModel<any>[];\n\nexport default definitions;\n"],"mappings":"AAAA,SACIA,WAAW,IAAIC,kBAAkB,QAE9B,qCAAqC;AAC5C,SAASD,WAAW,IAAIE,cAAc,QAAQ,sCAAsC;AACpF,SAASF,WAAW,IAAIG,cAAc,QAAQ,8CAA8C;AAC5F,SAASH,WAAW,IAAII,UAAU;AAClC,SAASC,WAAW;AAEpB,MAAML,WAAW,GAAG,CAChB,GAAGE,cAAc,EACjB,GAAGD,kBAAkB,EACrB,GAAGE,cAAc,EACjB,GAAGC,UAAU,EACbC,WAAW,CAACC,GAAG,CAC4B;AAE/C,eAAeN,WAAW","ignoreList":[]}
|
package/extensions/ProjectAws.js
CHANGED
|
@@ -2,15 +2,16 @@ import React from "react";
|
|
|
2
2
|
import { AdminAfterDeploy, AdminBeforeBuild, AdminBeforeWatch, AfterDeploy, ApiAfterDeploy, BeforeDeploy, DatabaseSetup, ExtensionDefinitions, Project, ProjectDecorator, ProjectImplementation } from "@webiny/project/extensions/index.js";
|
|
3
3
|
import { createPathResolver } from "@webiny/project";
|
|
4
4
|
import { CliCommand } from "@webiny/cli-core/extensions/index.js";
|
|
5
|
+
import { CorePulumi } from "@webiny/project/extensions/index.js";
|
|
5
6
|
// import { TenantManager } from "@webiny/tenant-manager";
|
|
6
|
-
|
|
7
|
+
|
|
7
8
|
const p = createPathResolver(import.meta.dirname);
|
|
8
9
|
export const ProjectAws = () => {
|
|
9
10
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Project, null), /*#__PURE__*/React.createElement(ProjectDecorator, {
|
|
10
11
|
src: p("ProjectAws/BuildAppWorkspace.js")
|
|
11
12
|
}), /*#__PURE__*/React.createElement(DatabaseSetup, {
|
|
12
13
|
setupName: "ddb"
|
|
13
|
-
}), /*#__PURE__*/React.createElement(
|
|
14
|
+
}), /*#__PURE__*/React.createElement(CorePulumi, {
|
|
14
15
|
src: p("ProjectAws/SetDatabaseSetupOutput.js")
|
|
15
16
|
}), /*#__PURE__*/React.createElement(ProjectImplementation, {
|
|
16
17
|
src: p("ProjectAws/CoreStackOutputService.js"),
|
|
@@ -31,6 +32,8 @@ export const ProjectAws = () => {
|
|
|
31
32
|
src: p("ProjectAws/UploadAdminAppToS3.js")
|
|
32
33
|
}), /*#__PURE__*/React.createElement(ApiAfterDeploy, {
|
|
33
34
|
src: p("ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js")
|
|
35
|
+
}), /*#__PURE__*/React.createElement(ExtensionDefinitions, {
|
|
36
|
+
src: p("definitions.js")
|
|
34
37
|
}), /*#__PURE__*/React.createElement(ExtensionDefinitions, {
|
|
35
38
|
src: p("ProjectAws/definitions.js")
|
|
36
39
|
}), /*#__PURE__*/React.createElement(AdminBeforeBuild, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","AdminAfterDeploy","AdminBeforeBuild","AdminBeforeWatch","AfterDeploy","ApiAfterDeploy","BeforeDeploy","DatabaseSetup","ExtensionDefinitions","Project","ProjectDecorator","ProjectImplementation","createPathResolver","CliCommand","
|
|
1
|
+
{"version":3,"names":["React","AdminAfterDeploy","AdminBeforeBuild","AdminBeforeWatch","AfterDeploy","ApiAfterDeploy","BeforeDeploy","DatabaseSetup","ExtensionDefinitions","Project","ProjectDecorator","ProjectImplementation","createPathResolver","CliCommand","CorePulumi","p","import","meta","dirname","ProjectAws","createElement","Fragment","src","setupName","singleton"],"sources":["ProjectAws.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n AdminAfterDeploy,\n AdminBeforeBuild,\n AdminBeforeWatch,\n AfterDeploy,\n ApiAfterDeploy,\n BeforeDeploy,\n DatabaseSetup,\n ExtensionDefinitions,\n Project,\n ProjectDecorator,\n ProjectImplementation\n} from \"@webiny/project/extensions/index.js\";\nimport { createPathResolver } from \"@webiny/project\";\nimport { CliCommand } from \"@webiny/cli-core/extensions/index.js\";\nimport { CorePulumi } from \"@webiny/project/extensions/index.js\";\n// import { TenantManager } from \"@webiny/tenant-manager\";\n\nconst p = createPathResolver(import.meta.dirname);\n\nexport const ProjectAws = () => {\n return (\n <>\n <Project />\n <ProjectDecorator src={p(\"ProjectAws/BuildAppWorkspace.js\")} />\n\n {/* Database Setup - default to DynamoDB only */}\n <DatabaseSetup setupName=\"ddb\" />\n\n {/* Set database setup output value in Core stack */}\n <CorePulumi src={p(\"ProjectAws/SetDatabaseSetupOutput.js\")} />\n\n {/* Stack Output Services */}\n <ProjectImplementation src={p(\"ProjectAws/CoreStackOutputService.js\")} singleton />\n <ProjectImplementation src={p(\"ProjectAws/ApiStackOutputService.js\")} singleton />\n <ProjectImplementation src={p(\"ProjectAws/AdminStackOutputService.js\")} singleton />\n\n <ProjectImplementation src={p(\"../features/InvokeLambdaFunction.js\")} singleton />\n <ProjectImplementation src={p(\"../features/ApiGqlClient.js\")} singleton />\n\n <AdminAfterDeploy src={p(\"ProjectAws/UploadAdminAppToS3.js\")} />\n\n {/* We'll bring this back once needed. */}\n {/* <ApiAfterDeploy src={p(\"ProjectAws/ExecuteDataMigrations.js\")} /> */}\n\n <ApiAfterDeploy src={p(\"ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js\")} />\n <ExtensionDefinitions src={p(\"definitions.js\")} />\n <ExtensionDefinitions src={p(\"ProjectAws/definitions.js\")} />\n\n {/* Admin env vars */}\n <AdminBeforeBuild src={p(\"ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.js\")} />\n <AdminBeforeWatch src={p(\"ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.js\")} />\n\n {/* Blue-green */}\n <CliCommand src={p(\"ProjectAws/BlueGreenDeployments/SetPrimaryVariantCliCommand.js\")} />\n <BeforeDeploy src={p(\"ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js\")} />\n <AfterDeploy\n src={p(\"ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js\")}\n />\n\n {/* Tenant Manager */}\n {/*<TenantManager />*/}\n </>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACIC,gBAAgB,EAChBC,gBAAgB,EAChBC,gBAAgB,EAChBC,WAAW,EACXC,cAAc,EACdC,YAAY,EACZC,aAAa,EACbC,oBAAoB,EACpBC,OAAO,EACPC,gBAAgB,EAChBC,qBAAqB,QAClB,qCAAqC;AAC5C,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,SAASC,UAAU,QAAQ,sCAAsC;AACjE,SAASC,UAAU,QAAQ,qCAAqC;AAChE;;AAEA,MAAMC,CAAC,GAAGH,kBAAkB,CAACI,MAAM,CAACC,IAAI,CAACC,OAAO,CAAC;AAEjD,OAAO,MAAMC,UAAU,GAAGA,CAAA,KAAM;EAC5B,oBACInB,KAAA,CAAAoB,aAAA,CAAApB,KAAA,CAAAqB,QAAA,qBACIrB,KAAA,CAAAoB,aAAA,CAACX,OAAO,MAAE,CAAC,eACXT,KAAA,CAAAoB,aAAA,CAACV,gBAAgB;IAACY,GAAG,EAAEP,CAAC,CAAC,iCAAiC;EAAE,CAAE,CAAC,eAG/Df,KAAA,CAAAoB,aAAA,CAACb,aAAa;IAACgB,SAAS,EAAC;EAAK,CAAE,CAAC,eAGjCvB,KAAA,CAAAoB,aAAA,CAACN,UAAU;IAACQ,GAAG,EAAEP,CAAC,CAAC,sCAAsC;EAAE,CAAE,CAAC,eAG9Df,KAAA,CAAAoB,aAAA,CAACT,qBAAqB;IAACW,GAAG,EAAEP,CAAC,CAAC,sCAAsC,CAAE;IAACS,SAAS;EAAA,CAAE,CAAC,eACnFxB,KAAA,CAAAoB,aAAA,CAACT,qBAAqB;IAACW,GAAG,EAAEP,CAAC,CAAC,qCAAqC,CAAE;IAACS,SAAS;EAAA,CAAE,CAAC,eAClFxB,KAAA,CAAAoB,aAAA,CAACT,qBAAqB;IAACW,GAAG,EAAEP,CAAC,CAAC,uCAAuC,CAAE;IAACS,SAAS;EAAA,CAAE,CAAC,eAEpFxB,KAAA,CAAAoB,aAAA,CAACT,qBAAqB;IAACW,GAAG,EAAEP,CAAC,CAAC,qCAAqC,CAAE;IAACS,SAAS;EAAA,CAAE,CAAC,eAClFxB,KAAA,CAAAoB,aAAA,CAACT,qBAAqB;IAACW,GAAG,EAAEP,CAAC,CAAC,6BAA6B,CAAE;IAACS,SAAS;EAAA,CAAE,CAAC,eAE1ExB,KAAA,CAAAoB,aAAA,CAACnB,gBAAgB;IAACqB,GAAG,EAAEP,CAAC,CAAC,kCAAkC;EAAE,CAAE,CAAC,eAKhEf,KAAA,CAAAoB,aAAA,CAACf,cAAc;IAACiB,GAAG,EAAEP,CAAC,CAAC,qDAAqD;EAAE,CAAE,CAAC,eACjFf,KAAA,CAAAoB,aAAA,CAACZ,oBAAoB;IAACc,GAAG,EAAEP,CAAC,CAAC,gBAAgB;EAAE,CAAE,CAAC,eAClDf,KAAA,CAAAoB,aAAA,CAACZ,oBAAoB;IAACc,GAAG,EAAEP,CAAC,CAAC,2BAA2B;EAAE,CAAE,CAAC,eAG7Df,KAAA,CAAAoB,aAAA,CAAClB,gBAAgB;IAACoB,GAAG,EAAEP,CAAC,CAAC,0DAA0D;EAAE,CAAE,CAAC,eACxFf,KAAA,CAAAoB,aAAA,CAACjB,gBAAgB;IAACmB,GAAG,EAAEP,CAAC,CAAC,0DAA0D;EAAE,CAAE,CAAC,eAGxFf,KAAA,CAAAoB,aAAA,CAACP,UAAU;IAACS,GAAG,EAAEP,CAAC,CAAC,gEAAgE;EAAE,CAAE,CAAC,eACxFf,KAAA,CAAAoB,aAAA,CAACd,YAAY;IAACgB,GAAG,EAAEP,CAAC,CAAC,8DAA8D;EAAE,CAAE,CAAC,eACxFf,KAAA,CAAAoB,aAAA,CAAChB,WAAW;IACRkB,GAAG,EAAEP,CAAC,CAAC,mEAAmE;EAAE,CAC/E,CAIH,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ApiLambdaFunction","OpenSearch","definitions","def"],"sources":["definitions.ts"],"sourcesContent":["import { ApiLambdaFunction } from \"./ApiLambdaFunction.js\";\nimport { OpenSearch } from \"./OpenSearch.js\";\nimport { type ExtensionDefinitionModel } from \"@webiny/project/defineExtension\";\n\nconst definitions = [\n ApiLambdaFunction.def,\n OpenSearch.def\n] as unknown as ExtensionDefinitionModel<any>[];\n\nexport default definitions;\n"],"mappings":"AAAA,SAASA,iBAAiB;AAC1B,SAASC,UAAU;AAGnB,MAAMC,WAAW,GAAG,CAChBF,iBAAiB,CAACG,GAAG,EACrBF,UAAU,CAACE,GAAG,CAC6B;AAE/C,eAAeD,WAAW","ignoreList":[]}
|
package/extensions/index.d.ts
CHANGED
package/extensions/index.js
CHANGED
package/extensions/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./OpenSearch.js\";\nexport * from \"./AwsDefaultRegion.js\";\nexport * from \"./ProjectAws/AutoInstall.js\";\nexport * from \"./ProjectAws.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./OpenSearch.js\";\nexport * from \"./AwsDefaultRegion.js\";\nexport * from \"./ProjectAws/AutoInstall.js\";\nexport * from \"./ProjectAws.js\";\nexport * from \"./ApiLambdaFunction.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./api.js\";\nexport * from \"./admin.js\";\nexport * from \"./cli.js\";\nexport * from \"./infra.js\";\nexport * from \"./project.js\";\nexport * from \"./
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./api.js\";\nexport * from \"./admin.js\";\nexport * from \"./cli.js\";\nexport * from \"./infra.js\";\nexport * from \"./project.js\";\nexport * from \"./abstractions/index.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
package/infra.d.ts
CHANGED
|
@@ -341,6 +341,16 @@ export declare const Infra: {
|
|
|
341
341
|
key: string;
|
|
342
342
|
value?: any;
|
|
343
343
|
}>>;
|
|
344
|
+
LambdaFunction: import("@webiny/project/defineExtension/defineExtension.js").ExtensionComponent<import("zod").ZodObject<{
|
|
345
|
+
functionSrc: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
346
|
+
pulumiSrc: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
347
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
348
|
+
functionSrc: string;
|
|
349
|
+
pulumiSrc: string;
|
|
350
|
+
}, {
|
|
351
|
+
functionSrc: string;
|
|
352
|
+
pulumiSrc: string;
|
|
353
|
+
}>>;
|
|
344
354
|
};
|
|
345
355
|
Core: {
|
|
346
356
|
BeforeBuild: import("@webiny/project/defineExtension/defineExtension.js").ExtensionComponent<import("zod").ZodObject<{
|
package/infra.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AdminAfterBuild, AdminAfterDeploy, AdminBeforeBuild, AdminBeforeDeploy, AdminBeforeWatch, AdminPulumi, AdminStackOutputValue, ApiAfterBuild, ApiAfterDeploy, ApiBeforeBuild, ApiBeforeDeploy, ApiBeforeWatch, ApiPulumi, ApiStackOutputValue, CoreAfterBuild, CoreAfterDeploy, CoreBeforeBuild, CoreBeforeDeploy, CoreBeforeWatch, CorePulumi, CoreStackOutputValue, ProductionEnvironments, PulumiResourceNamePrefix } from "@webiny/project/extensions/index.js";
|
|
2
2
|
import { AdminCustomDomains, AwsTags, BlueGreenDeployments, Vpc } from "./pulumi/extensions/index.js";
|
|
3
|
-
import { OpenSearch
|
|
3
|
+
import { OpenSearch } from "./extensions/OpenSearch.js";
|
|
4
|
+
import { AwsDefaultRegion } from "./extensions/AwsDefaultRegion.js";
|
|
5
|
+
import { ApiLambdaFunction } from "./extensions/ApiLambdaFunction.js";
|
|
4
6
|
import { EnvIs, EnvIsNot } from "@webiny/project/extensions/infra/index.js";
|
|
5
7
|
export const Infra = {
|
|
6
8
|
Vpc,
|
|
@@ -33,7 +35,8 @@ export const Infra = {
|
|
|
33
35
|
AfterBuild: ApiAfterBuild,
|
|
34
36
|
AfterDeploy: ApiAfterDeploy,
|
|
35
37
|
Pulumi: ApiPulumi,
|
|
36
|
-
StackOutputValue: ApiStackOutputValue
|
|
38
|
+
StackOutputValue: ApiStackOutputValue,
|
|
39
|
+
LambdaFunction: ApiLambdaFunction
|
|
37
40
|
},
|
|
38
41
|
Core: {
|
|
39
42
|
BeforeBuild: CoreBeforeBuild,
|
package/infra.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AdminAfterBuild","AdminAfterDeploy","AdminBeforeBuild","AdminBeforeDeploy","AdminBeforeWatch","AdminPulumi","AdminStackOutputValue","ApiAfterBuild","ApiAfterDeploy","ApiBeforeBuild","ApiBeforeDeploy","ApiBeforeWatch","ApiPulumi","ApiStackOutputValue","CoreAfterBuild","CoreAfterDeploy","CoreBeforeBuild","CoreBeforeDeploy","CoreBeforeWatch","CorePulumi","CoreStackOutputValue","ProductionEnvironments","PulumiResourceNamePrefix","AdminCustomDomains","AwsTags","BlueGreenDeployments","Vpc","OpenSearch","AwsDefaultRegion","EnvIs","EnvIsNot","Infra","Aws","DefaultRegion","Tags","Env","Is","IsNot","Admin","BeforeBuild","BeforeDeploy","BeforeWatch","AfterBuild","AfterDeploy","Pulumi","CustomDomains","StackOutputValue","Api","Core"],"sources":["infra.ts"],"sourcesContent":["import {\n AdminAfterBuild,\n AdminAfterDeploy,\n AdminBeforeBuild,\n AdminBeforeDeploy,\n AdminBeforeWatch,\n AdminPulumi,\n AdminStackOutputValue,\n ApiAfterBuild,\n ApiAfterDeploy,\n ApiBeforeBuild,\n ApiBeforeDeploy,\n ApiBeforeWatch,\n ApiPulumi,\n ApiStackOutputValue,\n CoreAfterBuild,\n CoreAfterDeploy,\n CoreBeforeBuild,\n CoreBeforeDeploy,\n CoreBeforeWatch,\n CorePulumi,\n CoreStackOutputValue,\n ProductionEnvironments,\n PulumiResourceNamePrefix\n} from \"@webiny/project/extensions/index.js\";\n\nimport {\n AdminCustomDomains,\n AwsTags,\n BlueGreenDeployments,\n Vpc\n} from \"./pulumi/extensions/index.js\";\n\nimport { OpenSearch
|
|
1
|
+
{"version":3,"names":["AdminAfterBuild","AdminAfterDeploy","AdminBeforeBuild","AdminBeforeDeploy","AdminBeforeWatch","AdminPulumi","AdminStackOutputValue","ApiAfterBuild","ApiAfterDeploy","ApiBeforeBuild","ApiBeforeDeploy","ApiBeforeWatch","ApiPulumi","ApiStackOutputValue","CoreAfterBuild","CoreAfterDeploy","CoreBeforeBuild","CoreBeforeDeploy","CoreBeforeWatch","CorePulumi","CoreStackOutputValue","ProductionEnvironments","PulumiResourceNamePrefix","AdminCustomDomains","AwsTags","BlueGreenDeployments","Vpc","OpenSearch","AwsDefaultRegion","ApiLambdaFunction","EnvIs","EnvIsNot","Infra","Aws","DefaultRegion","Tags","Env","Is","IsNot","Admin","BeforeBuild","BeforeDeploy","BeforeWatch","AfterBuild","AfterDeploy","Pulumi","CustomDomains","StackOutputValue","Api","LambdaFunction","Core"],"sources":["infra.ts"],"sourcesContent":["import {\n AdminAfterBuild,\n AdminAfterDeploy,\n AdminBeforeBuild,\n AdminBeforeDeploy,\n AdminBeforeWatch,\n AdminPulumi,\n AdminStackOutputValue,\n ApiAfterBuild,\n ApiAfterDeploy,\n ApiBeforeBuild,\n ApiBeforeDeploy,\n ApiBeforeWatch,\n ApiPulumi,\n ApiStackOutputValue,\n CoreAfterBuild,\n CoreAfterDeploy,\n CoreBeforeBuild,\n CoreBeforeDeploy,\n CoreBeforeWatch,\n CorePulumi,\n CoreStackOutputValue,\n ProductionEnvironments,\n PulumiResourceNamePrefix\n} from \"@webiny/project/extensions/index.js\";\n\nimport {\n AdminCustomDomains,\n AwsTags,\n BlueGreenDeployments,\n Vpc\n} from \"./pulumi/extensions/index.js\";\n\nimport { OpenSearch } from \"./extensions/OpenSearch.js\";\nimport { AwsDefaultRegion } from \"./extensions/AwsDefaultRegion.js\";\nimport { ApiLambdaFunction } from \"./extensions/ApiLambdaFunction.js\";\nimport { EnvIs, EnvIsNot } from \"@webiny/project/extensions/infra/index.js\";\n\nexport const Infra = {\n Vpc,\n BlueGreenDeployments,\n OpenSearch,\n PulumiResourceNamePrefix,\n ProductionEnvironments,\n Aws: {\n DefaultRegion: AwsDefaultRegion,\n Tags: AwsTags\n },\n Env: {\n Is: EnvIs,\n IsNot: EnvIsNot\n },\n Admin: {\n BeforeBuild: AdminBeforeBuild,\n BeforeDeploy: AdminBeforeDeploy,\n BeforeWatch: AdminBeforeWatch,\n AfterBuild: AdminAfterBuild,\n AfterDeploy: AdminAfterDeploy,\n Pulumi: AdminPulumi,\n CustomDomains: AdminCustomDomains,\n StackOutputValue: AdminStackOutputValue\n },\n Api: {\n BeforeBuild: ApiBeforeBuild,\n BeforeDeploy: ApiBeforeDeploy,\n BeforeWatch: ApiBeforeWatch,\n AfterBuild: ApiAfterBuild,\n AfterDeploy: ApiAfterDeploy,\n Pulumi: ApiPulumi,\n StackOutputValue: ApiStackOutputValue,\n LambdaFunction: ApiLambdaFunction\n },\n Core: {\n BeforeBuild: CoreBeforeBuild,\n BeforeDeploy: CoreBeforeDeploy,\n BeforeWatch: CoreBeforeWatch,\n AfterBuild: CoreAfterBuild,\n AfterDeploy: CoreAfterDeploy,\n Pulumi: CorePulumi,\n StackOutputValue: CoreStackOutputValue\n }\n};\n"],"mappings":"AAAA,SACIA,eAAe,EACfC,gBAAgB,EAChBC,gBAAgB,EAChBC,iBAAiB,EACjBC,gBAAgB,EAChBC,WAAW,EACXC,qBAAqB,EACrBC,aAAa,EACbC,cAAc,EACdC,cAAc,EACdC,eAAe,EACfC,cAAc,EACdC,SAAS,EACTC,mBAAmB,EACnBC,cAAc,EACdC,eAAe,EACfC,eAAe,EACfC,gBAAgB,EAChBC,eAAe,EACfC,UAAU,EACVC,oBAAoB,EACpBC,sBAAsB,EACtBC,wBAAwB,QACrB,qCAAqC;AAE5C,SACIC,kBAAkB,EAClBC,OAAO,EACPC,oBAAoB,EACpBC,GAAG;AAGP,SAASC,UAAU;AACnB,SAASC,gBAAgB;AACzB,SAASC,iBAAiB;AAC1B,SAASC,KAAK,EAAEC,QAAQ,QAAQ,2CAA2C;AAE3E,OAAO,MAAMC,KAAK,GAAG;EACjBN,GAAG;EACHD,oBAAoB;EACpBE,UAAU;EACVL,wBAAwB;EACxBD,sBAAsB;EACtBY,GAAG,EAAE;IACDC,aAAa,EAAEN,gBAAgB;IAC/BO,IAAI,EAAEX;EACV,CAAC;EACDY,GAAG,EAAE;IACDC,EAAE,EAAEP,KAAK;IACTQ,KAAK,EAAEP;EACX,CAAC;EACDQ,KAAK,EAAE;IACHC,WAAW,EAAEtC,gBAAgB;IAC7BuC,YAAY,EAAEtC,iBAAiB;IAC/BuC,WAAW,EAAEtC,gBAAgB;IAC7BuC,UAAU,EAAE3C,eAAe;IAC3B4C,WAAW,EAAE3C,gBAAgB;IAC7B4C,MAAM,EAAExC,WAAW;IACnByC,aAAa,EAAEvB,kBAAkB;IACjCwB,gBAAgB,EAAEzC;EACtB,CAAC;EACD0C,GAAG,EAAE;IACDR,WAAW,EAAE/B,cAAc;IAC3BgC,YAAY,EAAE/B,eAAe;IAC7BgC,WAAW,EAAE/B,cAAc;IAC3BgC,UAAU,EAAEpC,aAAa;IACzBqC,WAAW,EAAEpC,cAAc;IAC3BqC,MAAM,EAAEjC,SAAS;IACjBmC,gBAAgB,EAAElC,mBAAmB;IACrCoC,cAAc,EAAEpB;EACpB,CAAC;EACDqB,IAAI,EAAE;IACFV,WAAW,EAAExB,eAAe;IAC5ByB,YAAY,EAAExB,gBAAgB;IAC9ByB,WAAW,EAAExB,eAAe;IAC5ByB,UAAU,EAAE7B,cAAc;IAC1B8B,WAAW,EAAE7B,eAAe;IAC5B8B,MAAM,EAAE1B,UAAU;IAClB4B,gBAAgB,EAAE3B;EACtB;AACJ,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/project-aws",
|
|
3
|
-
"version": "6.0.0-rc.
|
|
3
|
+
"version": "6.0.0-rc.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"repository": {
|
|
@@ -18,17 +18,15 @@
|
|
|
18
18
|
"@pulumi/aws": "^7.20.0",
|
|
19
19
|
"@pulumi/pulumi": "^3.223.0",
|
|
20
20
|
"@pulumi/random": "4.19.1",
|
|
21
|
-
"@webiny/api-
|
|
22
|
-
"@webiny/
|
|
23
|
-
"@webiny/
|
|
24
|
-
"@webiny/
|
|
25
|
-
"@webiny/
|
|
26
|
-
"@webiny/
|
|
27
|
-
"@webiny/
|
|
28
|
-
"@webiny/
|
|
29
|
-
"@webiny/
|
|
30
|
-
"@webiny/utils": "6.0.0-rc.0",
|
|
31
|
-
"@webiny/wcp": "6.0.0-rc.0",
|
|
21
|
+
"@webiny/api-headless-cms": "6.0.0-rc.2",
|
|
22
|
+
"@webiny/aws-layers": "6.0.0-rc.2",
|
|
23
|
+
"@webiny/aws-sdk": "6.0.0-rc.2",
|
|
24
|
+
"@webiny/cli-core": "6.0.0-rc.2",
|
|
25
|
+
"@webiny/data-migration": "6.0.0-rc.2",
|
|
26
|
+
"@webiny/project": "6.0.0-rc.2",
|
|
27
|
+
"@webiny/pulumi": "6.0.0-rc.2",
|
|
28
|
+
"@webiny/utils": "6.0.0-rc.2",
|
|
29
|
+
"@webiny/wcp": "6.0.0-rc.2",
|
|
32
30
|
"chalk": "4.1.2",
|
|
33
31
|
"find-up": "5.0.0",
|
|
34
32
|
"invariant": "2.2.4",
|
|
@@ -39,9 +37,9 @@
|
|
|
39
37
|
"zod": "3.25.76"
|
|
40
38
|
},
|
|
41
39
|
"devDependencies": {
|
|
42
|
-
"@types/lodash": "4.17.
|
|
40
|
+
"@types/lodash": "4.17.24",
|
|
43
41
|
"@types/ncp": "2.0.8",
|
|
44
|
-
"@webiny/build-tools": "6.0.0-rc.
|
|
42
|
+
"@webiny/build-tools": "6.0.0-rc.2",
|
|
45
43
|
"typescript": "5.9.3"
|
|
46
44
|
},
|
|
47
45
|
"adio": {
|
|
@@ -59,5 +57,5 @@
|
|
|
59
57
|
]
|
|
60
58
|
}
|
|
61
59
|
},
|
|
62
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "5facada4cbb8617cc60e3c98be0f1839f44be38e"
|
|
63
61
|
}
|
package/project.d.ts
CHANGED
|
@@ -45,4 +45,88 @@ export declare const Project: {
|
|
|
45
45
|
password: string;
|
|
46
46
|
};
|
|
47
47
|
}>>;
|
|
48
|
+
FeatureFlags: import("@webiny/project/defineExtension/defineExtension.js").ExtensionComponent<import("zod").ZodObject<{
|
|
49
|
+
features: import("zod").ZodObject<{
|
|
50
|
+
multiTenancy: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
51
|
+
advancedPublishingWorkflow: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
52
|
+
advancedAccessControlLayer: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodObject<{
|
|
53
|
+
teams: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
54
|
+
privateFiles: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
55
|
+
folderLevelPermissions: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
56
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
57
|
+
teams?: boolean | undefined;
|
|
58
|
+
privateFiles?: boolean | undefined;
|
|
59
|
+
folderLevelPermissions?: boolean | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
teams?: boolean | undefined;
|
|
62
|
+
privateFiles?: boolean | undefined;
|
|
63
|
+
folderLevelPermissions?: boolean | undefined;
|
|
64
|
+
}>]>>;
|
|
65
|
+
auditLogs: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
66
|
+
recordLocking: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
67
|
+
fileManager: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodObject<{
|
|
68
|
+
threatDetection: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
69
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
70
|
+
threatDetection?: boolean | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
threatDetection?: boolean | undefined;
|
|
73
|
+
}>]>>;
|
|
74
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
75
|
+
multiTenancy?: boolean | undefined;
|
|
76
|
+
advancedPublishingWorkflow?: boolean | undefined;
|
|
77
|
+
advancedAccessControlLayer?: boolean | {
|
|
78
|
+
teams?: boolean | undefined;
|
|
79
|
+
privateFiles?: boolean | undefined;
|
|
80
|
+
folderLevelPermissions?: boolean | undefined;
|
|
81
|
+
} | undefined;
|
|
82
|
+
auditLogs?: boolean | undefined;
|
|
83
|
+
recordLocking?: boolean | undefined;
|
|
84
|
+
fileManager?: boolean | {
|
|
85
|
+
threatDetection?: boolean | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
multiTenancy?: boolean | undefined;
|
|
89
|
+
advancedPublishingWorkflow?: boolean | undefined;
|
|
90
|
+
advancedAccessControlLayer?: boolean | {
|
|
91
|
+
teams?: boolean | undefined;
|
|
92
|
+
privateFiles?: boolean | undefined;
|
|
93
|
+
folderLevelPermissions?: boolean | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
auditLogs?: boolean | undefined;
|
|
96
|
+
recordLocking?: boolean | undefined;
|
|
97
|
+
fileManager?: boolean | {
|
|
98
|
+
threatDetection?: boolean | undefined;
|
|
99
|
+
} | undefined;
|
|
100
|
+
}>;
|
|
101
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
102
|
+
features: {
|
|
103
|
+
multiTenancy?: boolean | undefined;
|
|
104
|
+
advancedPublishingWorkflow?: boolean | undefined;
|
|
105
|
+
advancedAccessControlLayer?: boolean | {
|
|
106
|
+
teams?: boolean | undefined;
|
|
107
|
+
privateFiles?: boolean | undefined;
|
|
108
|
+
folderLevelPermissions?: boolean | undefined;
|
|
109
|
+
} | undefined;
|
|
110
|
+
auditLogs?: boolean | undefined;
|
|
111
|
+
recordLocking?: boolean | undefined;
|
|
112
|
+
fileManager?: boolean | {
|
|
113
|
+
threatDetection?: boolean | undefined;
|
|
114
|
+
} | undefined;
|
|
115
|
+
};
|
|
116
|
+
}, {
|
|
117
|
+
features: {
|
|
118
|
+
multiTenancy?: boolean | undefined;
|
|
119
|
+
advancedPublishingWorkflow?: boolean | undefined;
|
|
120
|
+
advancedAccessControlLayer?: boolean | {
|
|
121
|
+
teams?: boolean | undefined;
|
|
122
|
+
privateFiles?: boolean | undefined;
|
|
123
|
+
folderLevelPermissions?: boolean | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
auditLogs?: boolean | undefined;
|
|
126
|
+
recordLocking?: boolean | undefined;
|
|
127
|
+
fileManager?: boolean | {
|
|
128
|
+
threatDetection?: boolean | undefined;
|
|
129
|
+
} | undefined;
|
|
130
|
+
};
|
|
131
|
+
}>>;
|
|
48
132
|
};
|
package/project.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ProjectId, Telemetry } from "@webiny/project/extensions/index.js";
|
|
1
|
+
import { ProjectId, Telemetry, FeatureFlags } from "@webiny/project/extensions/index.js";
|
|
2
2
|
import { AutoInstall } from "./extensions/index.js";
|
|
3
3
|
export const Project = {
|
|
4
4
|
Id: ProjectId,
|
|
5
|
-
Telemetry
|
|
6
|
-
AutoInstall
|
|
5
|
+
Telemetry,
|
|
6
|
+
AutoInstall,
|
|
7
|
+
FeatureFlags
|
|
7
8
|
};
|
|
8
9
|
|
|
9
10
|
//# sourceMappingURL=project.js.map
|
package/project.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ProjectId","Telemetry","AutoInstall","Project","Id"],"sources":["project.ts"],"sourcesContent":["import { ProjectId, Telemetry } from \"@webiny/project/extensions/index.js\";\nimport { AutoInstall } from \"./extensions/index.js\";\n\nexport const Project = {\n Id: ProjectId,\n Telemetry
|
|
1
|
+
{"version":3,"names":["ProjectId","Telemetry","FeatureFlags","AutoInstall","Project","Id"],"sources":["project.ts"],"sourcesContent":["import { ProjectId, Telemetry, FeatureFlags } from \"@webiny/project/extensions/index.js\";\nimport { AutoInstall } from \"./extensions/index.js\";\n\nexport const Project = {\n Id: ProjectId,\n Telemetry,\n AutoInstall,\n FeatureFlags\n};\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,SAAS,EAAEC,YAAY,QAAQ,qCAAqC;AACxF,SAASC,WAAW;AAEpB,OAAO,MAAMC,OAAO,GAAG;EACnBC,EAAE,EAAEL,SAAS;EACbC,SAAS;EACTE,WAAW;EACXD;AACJ,CAAC","ignoreList":[]}
|
package/security.d.ts
DELETED
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
export declare const Security: {
|
|
2
|
-
ApiKey: {
|
|
3
|
-
BeforeCreate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
4
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
5
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
7
|
-
src: string;
|
|
8
|
-
exportName?: string | undefined;
|
|
9
|
-
}, {
|
|
10
|
-
src: string;
|
|
11
|
-
exportName?: string | undefined;
|
|
12
|
-
}>>;
|
|
13
|
-
AfterCreate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
14
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
15
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
17
|
-
src: string;
|
|
18
|
-
exportName?: string | undefined;
|
|
19
|
-
}, {
|
|
20
|
-
src: string;
|
|
21
|
-
exportName?: string | undefined;
|
|
22
|
-
}>>;
|
|
23
|
-
BeforeUpdate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
24
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
25
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
26
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
27
|
-
src: string;
|
|
28
|
-
exportName?: string | undefined;
|
|
29
|
-
}, {
|
|
30
|
-
src: string;
|
|
31
|
-
exportName?: string | undefined;
|
|
32
|
-
}>>;
|
|
33
|
-
AfterUpdate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
34
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
35
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
37
|
-
src: string;
|
|
38
|
-
exportName?: string | undefined;
|
|
39
|
-
}, {
|
|
40
|
-
src: string;
|
|
41
|
-
exportName?: string | undefined;
|
|
42
|
-
}>>;
|
|
43
|
-
BeforeDelete: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
44
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
45
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
47
|
-
src: string;
|
|
48
|
-
exportName?: string | undefined;
|
|
49
|
-
}, {
|
|
50
|
-
src: string;
|
|
51
|
-
exportName?: string | undefined;
|
|
52
|
-
}>>;
|
|
53
|
-
AfterDelete: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
54
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
55
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
57
|
-
src: string;
|
|
58
|
-
exportName?: string | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
src: string;
|
|
61
|
-
exportName?: string | undefined;
|
|
62
|
-
}>>;
|
|
63
|
-
};
|
|
64
|
-
Role: {
|
|
65
|
-
BeforeCreate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
66
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
67
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
68
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
69
|
-
src: string;
|
|
70
|
-
exportName?: string | undefined;
|
|
71
|
-
}, {
|
|
72
|
-
src: string;
|
|
73
|
-
exportName?: string | undefined;
|
|
74
|
-
}>>;
|
|
75
|
-
AfterCreate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
76
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
77
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
79
|
-
src: string;
|
|
80
|
-
exportName?: string | undefined;
|
|
81
|
-
}, {
|
|
82
|
-
src: string;
|
|
83
|
-
exportName?: string | undefined;
|
|
84
|
-
}>>;
|
|
85
|
-
BeforeUpdate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
86
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
87
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
88
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
89
|
-
src: string;
|
|
90
|
-
exportName?: string | undefined;
|
|
91
|
-
}, {
|
|
92
|
-
src: string;
|
|
93
|
-
exportName?: string | undefined;
|
|
94
|
-
}>>;
|
|
95
|
-
AfterUpdate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
96
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
97
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
98
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
99
|
-
src: string;
|
|
100
|
-
exportName?: string | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
src: string;
|
|
103
|
-
exportName?: string | undefined;
|
|
104
|
-
}>>;
|
|
105
|
-
BeforeDelete: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
106
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
107
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
108
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
109
|
-
src: string;
|
|
110
|
-
exportName?: string | undefined;
|
|
111
|
-
}, {
|
|
112
|
-
src: string;
|
|
113
|
-
exportName?: string | undefined;
|
|
114
|
-
}>>;
|
|
115
|
-
AfterDelete: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
116
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
117
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
118
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
119
|
-
src: string;
|
|
120
|
-
exportName?: string | undefined;
|
|
121
|
-
}, {
|
|
122
|
-
src: string;
|
|
123
|
-
exportName?: string | undefined;
|
|
124
|
-
}>>;
|
|
125
|
-
};
|
|
126
|
-
Team: {
|
|
127
|
-
BeforeCreate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
128
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
129
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
130
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
131
|
-
src: string;
|
|
132
|
-
exportName?: string | undefined;
|
|
133
|
-
}, {
|
|
134
|
-
src: string;
|
|
135
|
-
exportName?: string | undefined;
|
|
136
|
-
}>>;
|
|
137
|
-
AfterCreate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
138
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
139
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
140
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
141
|
-
src: string;
|
|
142
|
-
exportName?: string | undefined;
|
|
143
|
-
}, {
|
|
144
|
-
src: string;
|
|
145
|
-
exportName?: string | undefined;
|
|
146
|
-
}>>;
|
|
147
|
-
BeforeUpdate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
148
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
149
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
150
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
151
|
-
src: string;
|
|
152
|
-
exportName?: string | undefined;
|
|
153
|
-
}, {
|
|
154
|
-
src: string;
|
|
155
|
-
exportName?: string | undefined;
|
|
156
|
-
}>>;
|
|
157
|
-
AfterUpdate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
158
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
159
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
160
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
161
|
-
src: string;
|
|
162
|
-
exportName?: string | undefined;
|
|
163
|
-
}, {
|
|
164
|
-
src: string;
|
|
165
|
-
exportName?: string | undefined;
|
|
166
|
-
}>>;
|
|
167
|
-
BeforeDelete: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
168
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
169
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
170
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
171
|
-
src: string;
|
|
172
|
-
exportName?: string | undefined;
|
|
173
|
-
}, {
|
|
174
|
-
src: string;
|
|
175
|
-
exportName?: string | undefined;
|
|
176
|
-
}>>;
|
|
177
|
-
AfterDelete: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
178
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
179
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
180
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
181
|
-
src: string;
|
|
182
|
-
exportName?: string | undefined;
|
|
183
|
-
}, {
|
|
184
|
-
src: string;
|
|
185
|
-
exportName?: string | undefined;
|
|
186
|
-
}>>;
|
|
187
|
-
};
|
|
188
|
-
Authentication: {
|
|
189
|
-
Before: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
190
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
191
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
192
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
193
|
-
src: string;
|
|
194
|
-
exportName?: string | undefined;
|
|
195
|
-
}, {
|
|
196
|
-
src: string;
|
|
197
|
-
exportName?: string | undefined;
|
|
198
|
-
}>>;
|
|
199
|
-
After: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
200
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
201
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
202
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
203
|
-
src: string;
|
|
204
|
-
exportName?: string | undefined;
|
|
205
|
-
}, {
|
|
206
|
-
src: string;
|
|
207
|
-
exportName?: string | undefined;
|
|
208
|
-
}>>;
|
|
209
|
-
};
|
|
210
|
-
User: {
|
|
211
|
-
BeforeCreate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
212
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
213
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
214
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
215
|
-
src: string;
|
|
216
|
-
exportName?: string | undefined;
|
|
217
|
-
}, {
|
|
218
|
-
src: string;
|
|
219
|
-
exportName?: string | undefined;
|
|
220
|
-
}>>;
|
|
221
|
-
AfterCreate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
222
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
223
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
224
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
225
|
-
src: string;
|
|
226
|
-
exportName?: string | undefined;
|
|
227
|
-
}, {
|
|
228
|
-
src: string;
|
|
229
|
-
exportName?: string | undefined;
|
|
230
|
-
}>>;
|
|
231
|
-
BeforeUpdate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
232
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
233
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
234
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
235
|
-
src: string;
|
|
236
|
-
exportName?: string | undefined;
|
|
237
|
-
}, {
|
|
238
|
-
src: string;
|
|
239
|
-
exportName?: string | undefined;
|
|
240
|
-
}>>;
|
|
241
|
-
AfterUpdate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
242
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
243
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
244
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
245
|
-
src: string;
|
|
246
|
-
exportName?: string | undefined;
|
|
247
|
-
}, {
|
|
248
|
-
src: string;
|
|
249
|
-
exportName?: string | undefined;
|
|
250
|
-
}>>;
|
|
251
|
-
BeforeDelete: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
252
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
253
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
254
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
255
|
-
src: string;
|
|
256
|
-
exportName?: string | undefined;
|
|
257
|
-
}, {
|
|
258
|
-
src: string;
|
|
259
|
-
exportName?: string | undefined;
|
|
260
|
-
}>>;
|
|
261
|
-
AfterDelete: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
262
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
263
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
264
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
265
|
-
src: string;
|
|
266
|
-
exportName?: string | undefined;
|
|
267
|
-
}, {
|
|
268
|
-
src: string;
|
|
269
|
-
exportName?: string | undefined;
|
|
270
|
-
}>>;
|
|
271
|
-
};
|
|
272
|
-
Tenant: {
|
|
273
|
-
BeforeCreate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
274
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
275
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
276
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
277
|
-
src: string;
|
|
278
|
-
exportName?: string | undefined;
|
|
279
|
-
}, {
|
|
280
|
-
src: string;
|
|
281
|
-
exportName?: string | undefined;
|
|
282
|
-
}>>;
|
|
283
|
-
AfterCreate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
284
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
285
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
286
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
287
|
-
src: string;
|
|
288
|
-
exportName?: string | undefined;
|
|
289
|
-
}, {
|
|
290
|
-
src: string;
|
|
291
|
-
exportName?: string | undefined;
|
|
292
|
-
}>>;
|
|
293
|
-
BeforeUpdate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
294
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
295
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
296
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
297
|
-
src: string;
|
|
298
|
-
exportName?: string | undefined;
|
|
299
|
-
}, {
|
|
300
|
-
src: string;
|
|
301
|
-
exportName?: string | undefined;
|
|
302
|
-
}>>;
|
|
303
|
-
AfterUpdate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
304
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
305
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
306
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
307
|
-
src: string;
|
|
308
|
-
exportName?: string | undefined;
|
|
309
|
-
}, {
|
|
310
|
-
src: string;
|
|
311
|
-
exportName?: string | undefined;
|
|
312
|
-
}>>;
|
|
313
|
-
BeforeDelete: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
314
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
315
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
316
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
317
|
-
src: string;
|
|
318
|
-
exportName?: string | undefined;
|
|
319
|
-
}, {
|
|
320
|
-
src: string;
|
|
321
|
-
exportName?: string | undefined;
|
|
322
|
-
}>>;
|
|
323
|
-
AfterDelete: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
324
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
325
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
326
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
327
|
-
src: string;
|
|
328
|
-
exportName?: string | undefined;
|
|
329
|
-
}, {
|
|
330
|
-
src: string;
|
|
331
|
-
exportName?: string | undefined;
|
|
332
|
-
}>>;
|
|
333
|
-
Installed: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
334
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
335
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
336
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
337
|
-
src: string;
|
|
338
|
-
exportName?: string | undefined;
|
|
339
|
-
}, {
|
|
340
|
-
src: string;
|
|
341
|
-
exportName?: string | undefined;
|
|
342
|
-
}>>;
|
|
343
|
-
};
|
|
344
|
-
System: {
|
|
345
|
-
Installed: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
346
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
347
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
348
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
349
|
-
src: string;
|
|
350
|
-
exportName?: string | undefined;
|
|
351
|
-
}, {
|
|
352
|
-
src: string;
|
|
353
|
-
exportName?: string | undefined;
|
|
354
|
-
}>>;
|
|
355
|
-
};
|
|
356
|
-
};
|
package/security.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ApiKeyBeforeCreate, ApiKeyAfterCreate, ApiKeyBeforeUpdate, ApiKeyAfterUpdate, ApiKeyBeforeDelete, ApiKeyAfterDelete, RoleBeforeCreate, RoleAfterCreate, RoleBeforeUpdate, RoleAfterUpdate, RoleBeforeDelete, RoleAfterDelete, TeamBeforeCreate, TeamAfterCreate, TeamBeforeUpdate, TeamAfterUpdate, TeamBeforeDelete, TeamAfterDelete, BeforeAuthentication, AfterAuthentication, UserBeforeCreate, UserAfterCreate, UserBeforeUpdate, UserAfterUpdate, UserBeforeDelete, UserAfterDelete, TenantBeforeCreate, TenantAfterCreate, TenantBeforeUpdate, TenantAfterUpdate, TenantBeforeDelete, TenantAfterDelete, TenantInstalled, SystemInstalled } from "@webiny/api-core/extensions/index.js";
|
|
2
|
-
export const Security = {
|
|
3
|
-
ApiKey: {
|
|
4
|
-
BeforeCreate: ApiKeyBeforeCreate,
|
|
5
|
-
AfterCreate: ApiKeyAfterCreate,
|
|
6
|
-
BeforeUpdate: ApiKeyBeforeUpdate,
|
|
7
|
-
AfterUpdate: ApiKeyAfterUpdate,
|
|
8
|
-
BeforeDelete: ApiKeyBeforeDelete,
|
|
9
|
-
AfterDelete: ApiKeyAfterDelete
|
|
10
|
-
},
|
|
11
|
-
Role: {
|
|
12
|
-
BeforeCreate: RoleBeforeCreate,
|
|
13
|
-
AfterCreate: RoleAfterCreate,
|
|
14
|
-
BeforeUpdate: RoleBeforeUpdate,
|
|
15
|
-
AfterUpdate: RoleAfterUpdate,
|
|
16
|
-
BeforeDelete: RoleBeforeDelete,
|
|
17
|
-
AfterDelete: RoleAfterDelete
|
|
18
|
-
},
|
|
19
|
-
Team: {
|
|
20
|
-
BeforeCreate: TeamBeforeCreate,
|
|
21
|
-
AfterCreate: TeamAfterCreate,
|
|
22
|
-
BeforeUpdate: TeamBeforeUpdate,
|
|
23
|
-
AfterUpdate: TeamAfterUpdate,
|
|
24
|
-
BeforeDelete: TeamBeforeDelete,
|
|
25
|
-
AfterDelete: TeamAfterDelete
|
|
26
|
-
},
|
|
27
|
-
Authentication: {
|
|
28
|
-
Before: BeforeAuthentication,
|
|
29
|
-
After: AfterAuthentication
|
|
30
|
-
},
|
|
31
|
-
User: {
|
|
32
|
-
BeforeCreate: UserBeforeCreate,
|
|
33
|
-
AfterCreate: UserAfterCreate,
|
|
34
|
-
BeforeUpdate: UserBeforeUpdate,
|
|
35
|
-
AfterUpdate: UserAfterUpdate,
|
|
36
|
-
BeforeDelete: UserBeforeDelete,
|
|
37
|
-
AfterDelete: UserAfterDelete
|
|
38
|
-
},
|
|
39
|
-
Tenant: {
|
|
40
|
-
BeforeCreate: TenantBeforeCreate,
|
|
41
|
-
AfterCreate: TenantAfterCreate,
|
|
42
|
-
BeforeUpdate: TenantBeforeUpdate,
|
|
43
|
-
AfterUpdate: TenantAfterUpdate,
|
|
44
|
-
BeforeDelete: TenantBeforeDelete,
|
|
45
|
-
AfterDelete: TenantAfterDelete,
|
|
46
|
-
Installed: TenantInstalled
|
|
47
|
-
},
|
|
48
|
-
System: {
|
|
49
|
-
Installed: SystemInstalled
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
//# sourceMappingURL=security.js.map
|
package/security.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ApiKeyBeforeCreate","ApiKeyAfterCreate","ApiKeyBeforeUpdate","ApiKeyAfterUpdate","ApiKeyBeforeDelete","ApiKeyAfterDelete","RoleBeforeCreate","RoleAfterCreate","RoleBeforeUpdate","RoleAfterUpdate","RoleBeforeDelete","RoleAfterDelete","TeamBeforeCreate","TeamAfterCreate","TeamBeforeUpdate","TeamAfterUpdate","TeamBeforeDelete","TeamAfterDelete","BeforeAuthentication","AfterAuthentication","UserBeforeCreate","UserAfterCreate","UserBeforeUpdate","UserAfterUpdate","UserBeforeDelete","UserAfterDelete","TenantBeforeCreate","TenantAfterCreate","TenantBeforeUpdate","TenantAfterUpdate","TenantBeforeDelete","TenantAfterDelete","TenantInstalled","SystemInstalled","Security","ApiKey","BeforeCreate","AfterCreate","BeforeUpdate","AfterUpdate","BeforeDelete","AfterDelete","Role","Team","Authentication","Before","After","User","Tenant","Installed","System"],"sources":["security.ts"],"sourcesContent":["import {\n ApiKeyBeforeCreate,\n ApiKeyAfterCreate,\n ApiKeyBeforeUpdate,\n ApiKeyAfterUpdate,\n ApiKeyBeforeDelete,\n ApiKeyAfterDelete,\n RoleBeforeCreate,\n RoleAfterCreate,\n RoleBeforeUpdate,\n RoleAfterUpdate,\n RoleBeforeDelete,\n RoleAfterDelete,\n TeamBeforeCreate,\n TeamAfterCreate,\n TeamBeforeUpdate,\n TeamAfterUpdate,\n TeamBeforeDelete,\n TeamAfterDelete,\n BeforeAuthentication,\n AfterAuthentication,\n UserBeforeCreate,\n UserAfterCreate,\n UserBeforeUpdate,\n UserAfterUpdate,\n UserBeforeDelete,\n UserAfterDelete,\n TenantBeforeCreate,\n TenantAfterCreate,\n TenantBeforeUpdate,\n TenantAfterUpdate,\n TenantBeforeDelete,\n TenantAfterDelete,\n TenantInstalled,\n SystemInstalled\n} from \"@webiny/api-core/extensions/index.js\";\n\nexport const Security = {\n ApiKey: {\n BeforeCreate: ApiKeyBeforeCreate,\n AfterCreate: ApiKeyAfterCreate,\n BeforeUpdate: ApiKeyBeforeUpdate,\n AfterUpdate: ApiKeyAfterUpdate,\n BeforeDelete: ApiKeyBeforeDelete,\n AfterDelete: ApiKeyAfterDelete\n },\n Role: {\n BeforeCreate: RoleBeforeCreate,\n AfterCreate: RoleAfterCreate,\n BeforeUpdate: RoleBeforeUpdate,\n AfterUpdate: RoleAfterUpdate,\n BeforeDelete: RoleBeforeDelete,\n AfterDelete: RoleAfterDelete\n },\n Team: {\n BeforeCreate: TeamBeforeCreate,\n AfterCreate: TeamAfterCreate,\n BeforeUpdate: TeamBeforeUpdate,\n AfterUpdate: TeamAfterUpdate,\n BeforeDelete: TeamBeforeDelete,\n AfterDelete: TeamAfterDelete\n },\n Authentication: {\n Before: BeforeAuthentication,\n After: AfterAuthentication\n },\n User: {\n BeforeCreate: UserBeforeCreate,\n AfterCreate: UserAfterCreate,\n BeforeUpdate: UserBeforeUpdate,\n AfterUpdate: UserAfterUpdate,\n BeforeDelete: UserBeforeDelete,\n AfterDelete: UserAfterDelete\n },\n Tenant: {\n BeforeCreate: TenantBeforeCreate,\n AfterCreate: TenantAfterCreate,\n BeforeUpdate: TenantBeforeUpdate,\n AfterUpdate: TenantAfterUpdate,\n BeforeDelete: TenantBeforeDelete,\n AfterDelete: TenantAfterDelete,\n Installed: TenantInstalled\n },\n System: {\n Installed: SystemInstalled\n }\n};\n"],"mappings":"AAAA,SACIA,kBAAkB,EAClBC,iBAAiB,EACjBC,kBAAkB,EAClBC,iBAAiB,EACjBC,kBAAkB,EAClBC,iBAAiB,EACjBC,gBAAgB,EAChBC,eAAe,EACfC,gBAAgB,EAChBC,eAAe,EACfC,gBAAgB,EAChBC,eAAe,EACfC,gBAAgB,EAChBC,eAAe,EACfC,gBAAgB,EAChBC,eAAe,EACfC,gBAAgB,EAChBC,eAAe,EACfC,oBAAoB,EACpBC,mBAAmB,EACnBC,gBAAgB,EAChBC,eAAe,EACfC,gBAAgB,EAChBC,eAAe,EACfC,gBAAgB,EAChBC,eAAe,EACfC,kBAAkB,EAClBC,iBAAiB,EACjBC,kBAAkB,EAClBC,iBAAiB,EACjBC,kBAAkB,EAClBC,iBAAiB,EACjBC,eAAe,EACfC,eAAe,QACZ,sCAAsC;AAE7C,OAAO,MAAMC,QAAQ,GAAG;EACpBC,MAAM,EAAE;IACJC,YAAY,EAAEpC,kBAAkB;IAChCqC,WAAW,EAAEpC,iBAAiB;IAC9BqC,YAAY,EAAEpC,kBAAkB;IAChCqC,WAAW,EAAEpC,iBAAiB;IAC9BqC,YAAY,EAAEpC,kBAAkB;IAChCqC,WAAW,EAAEpC;EACjB,CAAC;EACDqC,IAAI,EAAE;IACFN,YAAY,EAAE9B,gBAAgB;IAC9B+B,WAAW,EAAE9B,eAAe;IAC5B+B,YAAY,EAAE9B,gBAAgB;IAC9B+B,WAAW,EAAE9B,eAAe;IAC5B+B,YAAY,EAAE9B,gBAAgB;IAC9B+B,WAAW,EAAE9B;EACjB,CAAC;EACDgC,IAAI,EAAE;IACFP,YAAY,EAAExB,gBAAgB;IAC9ByB,WAAW,EAAExB,eAAe;IAC5ByB,YAAY,EAAExB,gBAAgB;IAC9ByB,WAAW,EAAExB,eAAe;IAC5ByB,YAAY,EAAExB,gBAAgB;IAC9ByB,WAAW,EAAExB;EACjB,CAAC;EACD2B,cAAc,EAAE;IACZC,MAAM,EAAE3B,oBAAoB;IAC5B4B,KAAK,EAAE3B;EACX,CAAC;EACD4B,IAAI,EAAE;IACFX,YAAY,EAAEhB,gBAAgB;IAC9BiB,WAAW,EAAEhB,eAAe;IAC5BiB,YAAY,EAAEhB,gBAAgB;IAC9BiB,WAAW,EAAEhB,eAAe;IAC5BiB,YAAY,EAAEhB,gBAAgB;IAC9BiB,WAAW,EAAEhB;EACjB,CAAC;EACDuB,MAAM,EAAE;IACJZ,YAAY,EAAEV,kBAAkB;IAChCW,WAAW,EAAEV,iBAAiB;IAC9BW,YAAY,EAAEV,kBAAkB;IAChCW,WAAW,EAAEV,iBAAiB;IAC9BW,YAAY,EAAEV,kBAAkB;IAChCW,WAAW,EAAEV,iBAAiB;IAC9BkB,SAAS,EAAEjB;EACf,CAAC;EACDkB,MAAM,EAAE;IACJD,SAAS,EAAEhB;EACf;AACJ,CAAC","ignoreList":[]}
|