@webiny/api-core 6.0.0-rc.1 → 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/ApiCoreFeature.js +2 -0
- package/ApiCoreFeature.js.map +1 -1
- package/features/featureFlags/FeatureFlags.d.ts +12 -0
- package/features/featureFlags/FeatureFlags.js +18 -0
- package/features/featureFlags/FeatureFlags.js.map +1 -0
- package/features/featureFlags/abstractions.d.ts +8 -0
- package/features/featureFlags/abstractions.js +4 -0
- package/features/featureFlags/abstractions.js.map +1 -0
- package/features/featureFlags/feature.d.ts +1 -0
- package/features/featureFlags/feature.js +10 -0
- package/features/featureFlags/feature.js.map +1 -0
- package/features/wcp/WcpContext/WcpContext.d.ts +1 -0
- package/features/wcp/WcpContext/WcpContext.js +3 -0
- package/features/wcp/WcpContext/WcpContext.js.map +1 -1
- package/features/wcp/WcpContext/abstractions.d.ts +1 -0
- package/features/wcp/WcpContext/abstractions.js.map +1 -1
- package/features/wcp/WcpContext/decorators/WcpContextWithFeatureFlagsDecorator.d.ts +77 -0
- package/features/wcp/WcpContext/decorators/WcpContextWithFeatureFlagsDecorator.js +117 -0
- package/features/wcp/WcpContext/decorators/WcpContextWithFeatureFlagsDecorator.js.map +1 -0
- package/features/wcp/WcpFeature.js +2 -0
- package/features/wcp/WcpFeature.js.map +1 -1
- package/graphql/wcp/graphql.js +1 -1
- package/graphql/wcp/graphql.js.map +1 -1
- package/legacy/wcp/LegacyWcpContext.d.ts +1 -0
- package/legacy/wcp/LegacyWcpContext.js +3 -0
- package/legacy/wcp/LegacyWcpContext.js.map +1 -1
- package/package.json +17 -18
- package/extensions/BuildParam.d.ts +0 -11
- package/extensions/BuildParam.js +0 -119
- package/extensions/BuildParam.js.map +0 -1
- package/extensions/GenericExtension.d.ts +0 -10
- package/extensions/GenericExtension.js +0 -7
- package/extensions/GenericExtension.js.map +0 -1
- package/extensions/eventHandlers/AfterAuthentication.d.ts +0 -10
- package/extensions/eventHandlers/AfterAuthentication.js +0 -9
- package/extensions/eventHandlers/AfterAuthentication.js.map +0 -1
- package/extensions/eventHandlers/ApiKeyAfterCreate.d.ts +0 -10
- package/extensions/eventHandlers/ApiKeyAfterCreate.js +0 -9
- package/extensions/eventHandlers/ApiKeyAfterCreate.js.map +0 -1
- package/extensions/eventHandlers/ApiKeyAfterDelete.d.ts +0 -10
- package/extensions/eventHandlers/ApiKeyAfterDelete.js +0 -9
- package/extensions/eventHandlers/ApiKeyAfterDelete.js.map +0 -1
- package/extensions/eventHandlers/ApiKeyAfterUpdate.d.ts +0 -10
- package/extensions/eventHandlers/ApiKeyAfterUpdate.js +0 -9
- package/extensions/eventHandlers/ApiKeyAfterUpdate.js.map +0 -1
- package/extensions/eventHandlers/ApiKeyBeforeCreate.d.ts +0 -10
- package/extensions/eventHandlers/ApiKeyBeforeCreate.js +0 -9
- package/extensions/eventHandlers/ApiKeyBeforeCreate.js.map +0 -1
- package/extensions/eventHandlers/ApiKeyBeforeDelete.d.ts +0 -10
- package/extensions/eventHandlers/ApiKeyBeforeDelete.js +0 -9
- package/extensions/eventHandlers/ApiKeyBeforeDelete.js.map +0 -1
- package/extensions/eventHandlers/ApiKeyBeforeUpdate.d.ts +0 -10
- package/extensions/eventHandlers/ApiKeyBeforeUpdate.js +0 -9
- package/extensions/eventHandlers/ApiKeyBeforeUpdate.js.map +0 -1
- package/extensions/eventHandlers/BeforeAuthentication.d.ts +0 -10
- package/extensions/eventHandlers/BeforeAuthentication.js +0 -9
- package/extensions/eventHandlers/BeforeAuthentication.js.map +0 -1
- package/extensions/eventHandlers/RoleAfterCreate.d.ts +0 -10
- package/extensions/eventHandlers/RoleAfterCreate.js +0 -9
- package/extensions/eventHandlers/RoleAfterCreate.js.map +0 -1
- package/extensions/eventHandlers/RoleAfterDelete.d.ts +0 -10
- package/extensions/eventHandlers/RoleAfterDelete.js +0 -9
- package/extensions/eventHandlers/RoleAfterDelete.js.map +0 -1
- package/extensions/eventHandlers/RoleAfterUpdate.d.ts +0 -10
- package/extensions/eventHandlers/RoleAfterUpdate.js +0 -9
- package/extensions/eventHandlers/RoleAfterUpdate.js.map +0 -1
- package/extensions/eventHandlers/RoleBeforeCreate.d.ts +0 -10
- package/extensions/eventHandlers/RoleBeforeCreate.js +0 -9
- package/extensions/eventHandlers/RoleBeforeCreate.js.map +0 -1
- package/extensions/eventHandlers/RoleBeforeDelete.d.ts +0 -10
- package/extensions/eventHandlers/RoleBeforeDelete.js +0 -9
- package/extensions/eventHandlers/RoleBeforeDelete.js.map +0 -1
- package/extensions/eventHandlers/RoleBeforeUpdate.d.ts +0 -10
- package/extensions/eventHandlers/RoleBeforeUpdate.js +0 -9
- package/extensions/eventHandlers/RoleBeforeUpdate.js.map +0 -1
- package/extensions/eventHandlers/SystemInstalled.d.ts +0 -10
- package/extensions/eventHandlers/SystemInstalled.js +0 -9
- package/extensions/eventHandlers/SystemInstalled.js.map +0 -1
- package/extensions/eventHandlers/TeamAfterCreate.d.ts +0 -10
- package/extensions/eventHandlers/TeamAfterCreate.js +0 -9
- package/extensions/eventHandlers/TeamAfterCreate.js.map +0 -1
- package/extensions/eventHandlers/TeamAfterDelete.d.ts +0 -10
- package/extensions/eventHandlers/TeamAfterDelete.js +0 -9
- package/extensions/eventHandlers/TeamAfterDelete.js.map +0 -1
- package/extensions/eventHandlers/TeamAfterUpdate.d.ts +0 -10
- package/extensions/eventHandlers/TeamAfterUpdate.js +0 -9
- package/extensions/eventHandlers/TeamAfterUpdate.js.map +0 -1
- package/extensions/eventHandlers/TeamBeforeCreate.d.ts +0 -10
- package/extensions/eventHandlers/TeamBeforeCreate.js +0 -9
- package/extensions/eventHandlers/TeamBeforeCreate.js.map +0 -1
- package/extensions/eventHandlers/TeamBeforeDelete.d.ts +0 -10
- package/extensions/eventHandlers/TeamBeforeDelete.js +0 -9
- package/extensions/eventHandlers/TeamBeforeDelete.js.map +0 -1
- package/extensions/eventHandlers/TeamBeforeUpdate.d.ts +0 -10
- package/extensions/eventHandlers/TeamBeforeUpdate.js +0 -9
- package/extensions/eventHandlers/TeamBeforeUpdate.js.map +0 -1
- package/extensions/eventHandlers/TenantAfterCreate.d.ts +0 -10
- package/extensions/eventHandlers/TenantAfterCreate.js +0 -9
- package/extensions/eventHandlers/TenantAfterCreate.js.map +0 -1
- package/extensions/eventHandlers/TenantAfterDelete.d.ts +0 -10
- package/extensions/eventHandlers/TenantAfterDelete.js +0 -9
- package/extensions/eventHandlers/TenantAfterDelete.js.map +0 -1
- package/extensions/eventHandlers/TenantAfterUpdate.d.ts +0 -10
- package/extensions/eventHandlers/TenantAfterUpdate.js +0 -9
- package/extensions/eventHandlers/TenantAfterUpdate.js.map +0 -1
- package/extensions/eventHandlers/TenantBeforeCreate.d.ts +0 -10
- package/extensions/eventHandlers/TenantBeforeCreate.js +0 -9
- package/extensions/eventHandlers/TenantBeforeCreate.js.map +0 -1
- package/extensions/eventHandlers/TenantBeforeDelete.d.ts +0 -10
- package/extensions/eventHandlers/TenantBeforeDelete.js +0 -9
- package/extensions/eventHandlers/TenantBeforeDelete.js.map +0 -1
- package/extensions/eventHandlers/TenantBeforeUpdate.d.ts +0 -10
- package/extensions/eventHandlers/TenantBeforeUpdate.js +0 -9
- package/extensions/eventHandlers/TenantBeforeUpdate.js.map +0 -1
- package/extensions/eventHandlers/TenantInstalled.d.ts +0 -10
- package/extensions/eventHandlers/TenantInstalled.js +0 -9
- package/extensions/eventHandlers/TenantInstalled.js.map +0 -1
- package/extensions/eventHandlers/UserAfterCreate.d.ts +0 -10
- package/extensions/eventHandlers/UserAfterCreate.js +0 -9
- package/extensions/eventHandlers/UserAfterCreate.js.map +0 -1
- package/extensions/eventHandlers/UserAfterDelete.d.ts +0 -10
- package/extensions/eventHandlers/UserAfterDelete.js +0 -9
- package/extensions/eventHandlers/UserAfterDelete.js.map +0 -1
- package/extensions/eventHandlers/UserAfterUpdate.d.ts +0 -10
- package/extensions/eventHandlers/UserAfterUpdate.js +0 -9
- package/extensions/eventHandlers/UserAfterUpdate.js.map +0 -1
- package/extensions/eventHandlers/UserBeforeCreate.d.ts +0 -10
- package/extensions/eventHandlers/UserBeforeCreate.js +0 -9
- package/extensions/eventHandlers/UserBeforeCreate.js.map +0 -1
- package/extensions/eventHandlers/UserBeforeDelete.d.ts +0 -10
- package/extensions/eventHandlers/UserBeforeDelete.js +0 -9
- package/extensions/eventHandlers/UserBeforeDelete.js.map +0 -1
- package/extensions/eventHandlers/UserBeforeUpdate.d.ts +0 -10
- package/extensions/eventHandlers/UserBeforeUpdate.js +0 -9
- package/extensions/eventHandlers/UserBeforeUpdate.js.map +0 -1
- package/extensions/eventHandlers/index.d.ts +0 -34
- package/extensions/eventHandlers/index.js +0 -49
- package/extensions/eventHandlers/index.js.map +0 -1
- package/extensions/index.d.ts +0 -58
- package/extensions/index.js +0 -49
- package/extensions/index.js.map +0 -1
package/extensions/BuildParam.js
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { Node, Project } from "ts-morph";
|
|
3
|
-
import { defineExtension } from "@webiny/project/defineExtension";
|
|
4
|
-
import crypto from "crypto";
|
|
5
|
-
import path from "path";
|
|
6
|
-
import fs from "fs";
|
|
7
|
-
export const BuildParam = defineExtension({
|
|
8
|
-
type: "Api/BuildParam",
|
|
9
|
-
tags: {
|
|
10
|
-
runtimeContext: "app-build",
|
|
11
|
-
appName: "api"
|
|
12
|
-
},
|
|
13
|
-
description: "Add build-time parameter to API app.",
|
|
14
|
-
multiple: true,
|
|
15
|
-
paramsSchema: () => {
|
|
16
|
-
return z.object({
|
|
17
|
-
paramName: z.string(),
|
|
18
|
-
value: z.union([z.string(), z.record(z.any()), z.array(z.any()), z.number(), z.boolean()])
|
|
19
|
-
});
|
|
20
|
-
},
|
|
21
|
-
async build(params, ctx) {
|
|
22
|
-
const extensionsTsFilePath = ctx.project.paths.workspaceFolder.join("apps", "api", "graphql", "src", "extensions.ts").toString();
|
|
23
|
-
const buildParamsDir = ctx.project.paths.workspaceFolder.join("apps", "api", "graphql", "src", "buildParams").toString();
|
|
24
|
-
const {
|
|
25
|
-
paramName,
|
|
26
|
-
value
|
|
27
|
-
} = params;
|
|
28
|
-
|
|
29
|
-
// Serialize value to a TypeScript literal.
|
|
30
|
-
const valueStr = JSON.stringify(value, null, 4);
|
|
31
|
-
|
|
32
|
-
// Generate a unique class name based on the paramName.
|
|
33
|
-
const hash = crypto.createHash("sha256").update(paramName).digest("hex");
|
|
34
|
-
const className = `BuildParam_${hash.slice(-10)}`;
|
|
35
|
-
const fileName = `${className}.ts`;
|
|
36
|
-
const filePath = path.join(buildParamsDir, fileName);
|
|
37
|
-
|
|
38
|
-
// Ensure buildParams directory exists.
|
|
39
|
-
if (!fs.existsSync(buildParamsDir)) {
|
|
40
|
-
fs.mkdirSync(buildParamsDir, {
|
|
41
|
-
recursive: true
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// Check if file already exists.
|
|
46
|
-
if (fs.existsSync(filePath)) {
|
|
47
|
-
// File exists, just ensure it's imported in extensions.ts
|
|
48
|
-
} else {
|
|
49
|
-
// Create the BuildParam implementation file.
|
|
50
|
-
const fileContent = `import { BuildParam } from "webiny/api/buildParams";
|
|
51
|
-
|
|
52
|
-
class ${className} implements BuildParam.Interface {
|
|
53
|
-
key = "${paramName}";
|
|
54
|
-
value = ${valueStr};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export default BuildParam.createImplementation({
|
|
58
|
-
implementation: ${className},
|
|
59
|
-
dependencies: []
|
|
60
|
-
});
|
|
61
|
-
`;
|
|
62
|
-
fs.writeFileSync(filePath, fileContent, "utf8");
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// Now update extensions.ts to import and register this BuildParam.
|
|
66
|
-
const project = new Project();
|
|
67
|
-
project.addSourceFileAtPath(extensionsTsFilePath);
|
|
68
|
-
const source = project.getSourceFileOrThrow(extensionsTsFilePath);
|
|
69
|
-
|
|
70
|
-
// Calculate import path relative to extensions.ts.
|
|
71
|
-
let importPath = path.relative(path.dirname(extensionsTsFilePath), filePath).replace(/\.tsx?$/, ".js");
|
|
72
|
-
|
|
73
|
-
// Ensure the path starts with ./
|
|
74
|
-
if (!importPath.startsWith(".")) {
|
|
75
|
-
importPath = "./" + importPath;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// Check if import already exists.
|
|
79
|
-
const existingImportDeclaration = source.getImportDeclaration(importPath);
|
|
80
|
-
if (existingImportDeclaration) {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
let index = 1;
|
|
84
|
-
const importDeclarations = source.getImportDeclarations();
|
|
85
|
-
if (importDeclarations.length) {
|
|
86
|
-
const last = importDeclarations[importDeclarations.length - 1];
|
|
87
|
-
index = last.getChildIndex() + 1;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// Add import for the BuildParam implementation.
|
|
91
|
-
source.insertImportDeclaration(index, {
|
|
92
|
-
defaultImport: className,
|
|
93
|
-
moduleSpecifier: importPath
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
// Add the registration to the plugins array.
|
|
97
|
-
const pluginsArray = source.getFirstDescendant(node => Node.isArrayLiteralExpression(node));
|
|
98
|
-
pluginsArray.addElement(`\ncreateContextPlugin(ctx => {\n\tregisterExtension(ctx.container, ${className});\n})`);
|
|
99
|
-
{
|
|
100
|
-
let index = 1;
|
|
101
|
-
const importDeclarations = source.getImportDeclarations();
|
|
102
|
-
if (importDeclarations.length) {
|
|
103
|
-
const last = importDeclarations[importDeclarations.length - 1];
|
|
104
|
-
index = last.getChildIndex() + 1;
|
|
105
|
-
}
|
|
106
|
-
const contextPluginImportPath = "@webiny/api/plugins/ContextPlugin";
|
|
107
|
-
const existingContextPluginImport = source.getImportDeclaration(contextPluginImportPath);
|
|
108
|
-
if (!existingContextPluginImport) {
|
|
109
|
-
source.insertImportDeclaration(index, {
|
|
110
|
-
namedImports: ["createContextPlugin"],
|
|
111
|
-
moduleSpecifier: contextPluginImportPath
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
await source.save();
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
//# sourceMappingURL=BuildParam.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["z","Node","Project","defineExtension","crypto","path","fs","BuildParam","type","tags","runtimeContext","appName","description","multiple","paramsSchema","object","paramName","string","value","union","record","any","array","number","boolean","build","params","ctx","extensionsTsFilePath","project","paths","workspaceFolder","join","toString","buildParamsDir","valueStr","JSON","stringify","hash","createHash","update","digest","className","slice","fileName","filePath","existsSync","mkdirSync","recursive","fileContent","writeFileSync","addSourceFileAtPath","source","getSourceFileOrThrow","importPath","relative","dirname","replace","startsWith","existingImportDeclaration","getImportDeclaration","index","importDeclarations","getImportDeclarations","length","last","getChildIndex","insertImportDeclaration","defaultImport","moduleSpecifier","pluginsArray","getFirstDescendant","node","isArrayLiteralExpression","addElement","contextPluginImportPath","existingContextPluginImport","namedImports","save"],"sources":["BuildParam.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { Node, Project, ArrayLiteralExpression } from \"ts-morph\";\nimport { defineExtension } from \"@webiny/project/defineExtension\";\nimport crypto from \"crypto\";\nimport path from \"path\";\nimport fs from \"fs\";\n\nexport const BuildParam = defineExtension({\n type: \"Api/BuildParam\",\n tags: { runtimeContext: \"app-build\", appName: \"api\" },\n description: \"Add build-time parameter to API app.\",\n multiple: true,\n paramsSchema: () => {\n return z.object({\n paramName: z.string(),\n value: z.union([\n z.string(),\n z.record(z.any()),\n z.array(z.any()),\n z.number(),\n z.boolean()\n ])\n });\n },\n async build(params, ctx) {\n const extensionsTsFilePath = ctx.project.paths.workspaceFolder\n .join(\"apps\", \"api\", \"graphql\", \"src\", \"extensions.ts\")\n .toString();\n\n const buildParamsDir = ctx.project.paths.workspaceFolder\n .join(\"apps\", \"api\", \"graphql\", \"src\", \"buildParams\")\n .toString();\n\n const { paramName, value } = params;\n\n // Serialize value to a TypeScript literal.\n const valueStr = JSON.stringify(value, null, 4);\n\n // Generate a unique class name based on the paramName.\n const hash = crypto.createHash(\"sha256\").update(paramName).digest(\"hex\");\n const className = `BuildParam_${hash.slice(-10)}`;\n const fileName = `${className}.ts`;\n const filePath = path.join(buildParamsDir, fileName);\n\n // Ensure buildParams directory exists.\n if (!fs.existsSync(buildParamsDir)) {\n fs.mkdirSync(buildParamsDir, { recursive: true });\n }\n\n // Check if file already exists.\n if (fs.existsSync(filePath)) {\n // File exists, just ensure it's imported in extensions.ts\n } else {\n // Create the BuildParam implementation file.\n const fileContent = `import { BuildParam } from \"webiny/api/buildParams\";\n\nclass ${className} implements BuildParam.Interface {\n key = \"${paramName}\";\n value = ${valueStr};\n}\n\nexport default BuildParam.createImplementation({\n implementation: ${className},\n dependencies: []\n});\n`;\n fs.writeFileSync(filePath, fileContent, \"utf8\");\n }\n\n // Now update extensions.ts to import and register this BuildParam.\n const project = new Project();\n project.addSourceFileAtPath(extensionsTsFilePath);\n\n const source = project.getSourceFileOrThrow(extensionsTsFilePath);\n\n // Calculate import path relative to extensions.ts.\n let importPath = path\n .relative(path.dirname(extensionsTsFilePath), filePath)\n .replace(/\\.tsx?$/, \".js\");\n\n // Ensure the path starts with ./\n if (!importPath.startsWith(\".\")) {\n importPath = \"./\" + importPath;\n }\n\n // Check if import already exists.\n const existingImportDeclaration = source.getImportDeclaration(importPath);\n if (existingImportDeclaration) {\n return;\n }\n\n let index = 1;\n\n const importDeclarations = source.getImportDeclarations();\n if (importDeclarations.length) {\n const last = importDeclarations[importDeclarations.length - 1];\n index = last.getChildIndex() + 1;\n }\n\n // Add import for the BuildParam implementation.\n source.insertImportDeclaration(index, {\n defaultImport: className,\n moduleSpecifier: importPath\n });\n\n // Add the registration to the plugins array.\n const pluginsArray = source.getFirstDescendant(node =>\n Node.isArrayLiteralExpression(node)\n ) as ArrayLiteralExpression;\n\n pluginsArray.addElement(\n `\\ncreateContextPlugin(ctx => {\\n\\tregisterExtension(ctx.container, ${className});\\n})`\n );\n\n {\n let index = 1;\n\n const importDeclarations = source.getImportDeclarations();\n if (importDeclarations.length) {\n const last = importDeclarations[importDeclarations.length - 1];\n index = last.getChildIndex() + 1;\n }\n\n const contextPluginImportPath = \"@webiny/api/plugins/ContextPlugin\";\n const existingContextPluginImport =\n source.getImportDeclaration(contextPluginImportPath);\n if (!existingContextPluginImport) {\n source.insertImportDeclaration(index, {\n namedImports: [\"createContextPlugin\"],\n moduleSpecifier: contextPluginImportPath\n });\n }\n }\n\n await source.save();\n }\n});\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const GenericExtension: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","GenericExtension","type","description"],"sources":["GenericExtension.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\n\nexport const GenericExtension = defineApiExtension({\n type: \"Api/Extension\",\n description: \"Add any API extension.\"\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AAEpE,OAAO,MAAMC,gBAAgB,GAAGD,kBAAkB,CAAC;EAC/CE,IAAI,EAAE,eAAe;EACrBC,WAAW,EAAE;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const AfterAuthentication: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { AfterAuthenticationHandler } from "../../features/security/authentication/AuthenticationContext/index.js";
|
|
3
|
-
export const AfterAuthentication = defineApiExtension({
|
|
4
|
-
type: "Security/AfterAuthentication",
|
|
5
|
-
description: "Add custom logic to be executed after authentication.",
|
|
6
|
-
abstraction: AfterAuthenticationHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=AfterAuthentication.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","AfterAuthenticationHandler","AfterAuthentication","type","description","abstraction"],"sources":["AfterAuthentication.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\nimport { AfterAuthenticationHandler } from \"~/features/security/authentication/AuthenticationContext/index.js\";\n\nexport const AfterAuthentication = defineApiExtension({\n type: \"Security/AfterAuthentication\",\n description: \"Add custom logic to be executed after authentication.\",\n abstraction: AfterAuthenticationHandler\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,0BAA0B;AAEnC,OAAO,MAAMC,mBAAmB,GAAGF,kBAAkB,CAAC;EAClDG,IAAI,EAAE,8BAA8B;EACpCC,WAAW,EAAE,uDAAuD;EACpEC,WAAW,EAAEJ;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const ApiKeyAfterCreate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { ApiKeyAfterCreateHandler } from "../../features/security/apiKeys/CreateApiKey/index.js";
|
|
3
|
-
export const ApiKeyAfterCreate = defineApiExtension({
|
|
4
|
-
type: "Security/ApiKeyAfterCreate",
|
|
5
|
-
description: "Add custom logic to be executed after an API key is created.",
|
|
6
|
-
abstraction: ApiKeyAfterCreateHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=ApiKeyAfterCreate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","ApiKeyAfterCreateHandler","ApiKeyAfterCreate","type","description","abstraction"],"sources":["ApiKeyAfterCreate.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\nimport { ApiKeyAfterCreateHandler } from \"~/features/security/apiKeys/CreateApiKey/index.js\";\n\nexport const ApiKeyAfterCreate = defineApiExtension({\n type: \"Security/ApiKeyAfterCreate\",\n description: \"Add custom logic to be executed after an API key is created.\",\n abstraction: ApiKeyAfterCreateHandler\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,wBAAwB;AAEjC,OAAO,MAAMC,iBAAiB,GAAGF,kBAAkB,CAAC;EAChDG,IAAI,EAAE,4BAA4B;EAClCC,WAAW,EAAE,8DAA8D;EAC3EC,WAAW,EAAEJ;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const ApiKeyAfterDelete: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { ApiKeyAfterDeleteHandler } from "../../features/security/apiKeys/DeleteApiKey/index.js";
|
|
3
|
-
export const ApiKeyAfterDelete = defineApiExtension({
|
|
4
|
-
type: "Security/ApiKeyAfterDelete",
|
|
5
|
-
description: "Add custom logic to be executed after an API key is deleted.",
|
|
6
|
-
abstraction: ApiKeyAfterDeleteHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=ApiKeyAfterDelete.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","ApiKeyAfterDeleteHandler","ApiKeyAfterDelete","type","description","abstraction"],"sources":["ApiKeyAfterDelete.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\nimport { ApiKeyAfterDeleteHandler } from \"~/features/security/apiKeys/DeleteApiKey/index.js\";\n\nexport const ApiKeyAfterDelete = defineApiExtension({\n type: \"Security/ApiKeyAfterDelete\",\n description: \"Add custom logic to be executed after an API key is deleted.\",\n abstraction: ApiKeyAfterDeleteHandler\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,wBAAwB;AAEjC,OAAO,MAAMC,iBAAiB,GAAGF,kBAAkB,CAAC;EAChDG,IAAI,EAAE,4BAA4B;EAClCC,WAAW,EAAE,8DAA8D;EAC3EC,WAAW,EAAEJ;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const ApiKeyAfterUpdate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { ApiKeyAfterUpdateHandler } from "../../features/security/apiKeys/UpdateApiKey/index.js";
|
|
3
|
-
export const ApiKeyAfterUpdate = defineApiExtension({
|
|
4
|
-
type: "Security/ApiKeyAfterUpdate",
|
|
5
|
-
description: "Add custom logic to be executed after an API key is updated.",
|
|
6
|
-
abstraction: ApiKeyAfterUpdateHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=ApiKeyAfterUpdate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","ApiKeyAfterUpdateHandler","ApiKeyAfterUpdate","type","description","abstraction"],"sources":["ApiKeyAfterUpdate.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\nimport { ApiKeyAfterUpdateHandler } from \"~/features/security/apiKeys/UpdateApiKey/index.js\";\n\nexport const ApiKeyAfterUpdate = defineApiExtension({\n type: \"Security/ApiKeyAfterUpdate\",\n description: \"Add custom logic to be executed after an API key is updated.\",\n abstraction: ApiKeyAfterUpdateHandler\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,wBAAwB;AAEjC,OAAO,MAAMC,iBAAiB,GAAGF,kBAAkB,CAAC;EAChDG,IAAI,EAAE,4BAA4B;EAClCC,WAAW,EAAE,8DAA8D;EAC3EC,WAAW,EAAEJ;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const ApiKeyBeforeCreate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { ApiKeyBeforeCreateHandler } from "../../features/security/apiKeys/CreateApiKey/index.js";
|
|
3
|
-
export const ApiKeyBeforeCreate = defineApiExtension({
|
|
4
|
-
type: "Security/ApiKeyBeforeCreate",
|
|
5
|
-
description: "Add custom logic to be executed before an API key is created.",
|
|
6
|
-
abstraction: ApiKeyBeforeCreateHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=ApiKeyBeforeCreate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","ApiKeyBeforeCreateHandler","ApiKeyBeforeCreate","type","description","abstraction"],"sources":["ApiKeyBeforeCreate.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\nimport { ApiKeyBeforeCreateHandler } from \"~/features/security/apiKeys/CreateApiKey/index.js\";\n\nexport const ApiKeyBeforeCreate = defineApiExtension({\n type: \"Security/ApiKeyBeforeCreate\",\n description: \"Add custom logic to be executed before an API key is created.\",\n abstraction: ApiKeyBeforeCreateHandler\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,yBAAyB;AAElC,OAAO,MAAMC,kBAAkB,GAAGF,kBAAkB,CAAC;EACjDG,IAAI,EAAE,6BAA6B;EACnCC,WAAW,EAAE,+DAA+D;EAC5EC,WAAW,EAAEJ;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const ApiKeyBeforeDelete: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { ApiKeyBeforeDeleteHandler } from "../../features/security/apiKeys/DeleteApiKey/index.js";
|
|
3
|
-
export const ApiKeyBeforeDelete = defineApiExtension({
|
|
4
|
-
type: "Security/ApiKeyBeforeDelete",
|
|
5
|
-
description: "Add custom logic to be executed before an API key is deleted.",
|
|
6
|
-
abstraction: ApiKeyBeforeDeleteHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=ApiKeyBeforeDelete.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","ApiKeyBeforeDeleteHandler","ApiKeyBeforeDelete","type","description","abstraction"],"sources":["ApiKeyBeforeDelete.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\nimport { ApiKeyBeforeDeleteHandler } from \"~/features/security/apiKeys/DeleteApiKey/index.js\";\n\nexport const ApiKeyBeforeDelete = defineApiExtension({\n type: \"Security/ApiKeyBeforeDelete\",\n description: \"Add custom logic to be executed before an API key is deleted.\",\n abstraction: ApiKeyBeforeDeleteHandler\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,yBAAyB;AAElC,OAAO,MAAMC,kBAAkB,GAAGF,kBAAkB,CAAC;EACjDG,IAAI,EAAE,6BAA6B;EACnCC,WAAW,EAAE,+DAA+D;EAC5EC,WAAW,EAAEJ;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const ApiKeyBeforeUpdate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { ApiKeyBeforeUpdateHandler } from "../../features/security/apiKeys/UpdateApiKey/index.js";
|
|
3
|
-
export const ApiKeyBeforeUpdate = defineApiExtension({
|
|
4
|
-
type: "Security/ApiKeyBeforeUpdate",
|
|
5
|
-
description: "Add custom logic to be executed before an API key is updated.",
|
|
6
|
-
abstraction: ApiKeyBeforeUpdateHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=ApiKeyBeforeUpdate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","ApiKeyBeforeUpdateHandler","ApiKeyBeforeUpdate","type","description","abstraction"],"sources":["ApiKeyBeforeUpdate.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\nimport { ApiKeyBeforeUpdateHandler } from \"~/features/security/apiKeys/UpdateApiKey/index.js\";\n\nexport const ApiKeyBeforeUpdate = defineApiExtension({\n type: \"Security/ApiKeyBeforeUpdate\",\n description: \"Add custom logic to be executed before an API key is updated.\",\n abstraction: ApiKeyBeforeUpdateHandler\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,yBAAyB;AAElC,OAAO,MAAMC,kBAAkB,GAAGF,kBAAkB,CAAC;EACjDG,IAAI,EAAE,6BAA6B;EACnCC,WAAW,EAAE,+DAA+D;EAC5EC,WAAW,EAAEJ;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const BeforeAuthentication: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { BeforeAuthenticationHandler } from "../../features/security/authentication/AuthenticationContext/index.js";
|
|
3
|
-
export const BeforeAuthentication = defineApiExtension({
|
|
4
|
-
type: "Security/BeforeAuthentication",
|
|
5
|
-
description: "Add custom logic to be executed before authentication.",
|
|
6
|
-
abstraction: BeforeAuthenticationHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=BeforeAuthentication.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","BeforeAuthenticationHandler","BeforeAuthentication","type","description","abstraction"],"sources":["BeforeAuthentication.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\nimport { BeforeAuthenticationHandler } from \"~/features/security/authentication/AuthenticationContext/index.js\";\n\nexport const BeforeAuthentication = defineApiExtension({\n type: \"Security/BeforeAuthentication\",\n description: \"Add custom logic to be executed before authentication.\",\n abstraction: BeforeAuthenticationHandler\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,2BAA2B;AAEpC,OAAO,MAAMC,oBAAoB,GAAGF,kBAAkB,CAAC;EACnDG,IAAI,EAAE,+BAA+B;EACrCC,WAAW,EAAE,wDAAwD;EACrEC,WAAW,EAAEJ;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const RoleAfterCreate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { RoleAfterCreateHandler } from "../../features/security/roles/CreateRole/index.js";
|
|
3
|
-
export const RoleAfterCreate = defineApiExtension({
|
|
4
|
-
type: "Security/RoleAfterCreate",
|
|
5
|
-
description: "Add custom logic to be executed after a role is created.",
|
|
6
|
-
abstraction: RoleAfterCreateHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=RoleAfterCreate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","RoleAfterCreateHandler","RoleAfterCreate","type","description","abstraction"],"sources":["RoleAfterCreate.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\nimport { RoleAfterCreateHandler } from \"~/features/security/roles/CreateRole/index.js\";\n\nexport const RoleAfterCreate = defineApiExtension({\n type: \"Security/RoleAfterCreate\",\n description: \"Add custom logic to be executed after a role is created.\",\n abstraction: RoleAfterCreateHandler\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,sBAAsB;AAE/B,OAAO,MAAMC,eAAe,GAAGF,kBAAkB,CAAC;EAC9CG,IAAI,EAAE,0BAA0B;EAChCC,WAAW,EAAE,0DAA0D;EACvEC,WAAW,EAAEJ;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const RoleAfterDelete: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { RoleAfterDeleteHandler } from "../../features/security/roles/DeleteRole/index.js";
|
|
3
|
-
export const RoleAfterDelete = defineApiExtension({
|
|
4
|
-
type: "Security/RoleAfterDelete",
|
|
5
|
-
description: "Add custom logic to be executed after a role is deleted.",
|
|
6
|
-
abstraction: RoleAfterDeleteHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=RoleAfterDelete.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","RoleAfterDeleteHandler","RoleAfterDelete","type","description","abstraction"],"sources":["RoleAfterDelete.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\nimport { RoleAfterDeleteHandler } from \"~/features/security/roles/DeleteRole/index.js\";\n\nexport const RoleAfterDelete = defineApiExtension({\n type: \"Security/RoleAfterDelete\",\n description: \"Add custom logic to be executed after a role is deleted.\",\n abstraction: RoleAfterDeleteHandler\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,sBAAsB;AAE/B,OAAO,MAAMC,eAAe,GAAGF,kBAAkB,CAAC;EAC9CG,IAAI,EAAE,0BAA0B;EAChCC,WAAW,EAAE,0DAA0D;EACvEC,WAAW,EAAEJ;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const RoleAfterUpdate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { RoleAfterUpdateHandler } from "../../features/security/roles/UpdateRole/index.js";
|
|
3
|
-
export const RoleAfterUpdate = defineApiExtension({
|
|
4
|
-
type: "Security/RoleAfterUpdate",
|
|
5
|
-
description: "Add custom logic to be executed after a role is updated.",
|
|
6
|
-
abstraction: RoleAfterUpdateHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=RoleAfterUpdate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","RoleAfterUpdateHandler","RoleAfterUpdate","type","description","abstraction"],"sources":["RoleAfterUpdate.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\nimport { RoleAfterUpdateHandler } from \"~/features/security/roles/UpdateRole/index.js\";\n\nexport const RoleAfterUpdate = defineApiExtension({\n type: \"Security/RoleAfterUpdate\",\n description: \"Add custom logic to be executed after a role is updated.\",\n abstraction: RoleAfterUpdateHandler\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,sBAAsB;AAE/B,OAAO,MAAMC,eAAe,GAAGF,kBAAkB,CAAC;EAC9CG,IAAI,EAAE,0BAA0B;EAChCC,WAAW,EAAE,0DAA0D;EACvEC,WAAW,EAAEJ;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const RoleBeforeCreate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { RoleBeforeCreateHandler } from "../../features/security/roles/CreateRole/index.js";
|
|
3
|
-
export const RoleBeforeCreate = defineApiExtension({
|
|
4
|
-
type: "Security/RoleBeforeCreate",
|
|
5
|
-
description: "Add custom logic to be executed before a role is created.",
|
|
6
|
-
abstraction: RoleBeforeCreateHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=RoleBeforeCreate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","RoleBeforeCreateHandler","RoleBeforeCreate","type","description","abstraction"],"sources":["RoleBeforeCreate.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\nimport { RoleBeforeCreateHandler } from \"~/features/security/roles/CreateRole/index.js\";\n\nexport const RoleBeforeCreate = defineApiExtension({\n type: \"Security/RoleBeforeCreate\",\n description: \"Add custom logic to be executed before a role is created.\",\n abstraction: RoleBeforeCreateHandler\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,uBAAuB;AAEhC,OAAO,MAAMC,gBAAgB,GAAGF,kBAAkB,CAAC;EAC/CG,IAAI,EAAE,2BAA2B;EACjCC,WAAW,EAAE,2DAA2D;EACxEC,WAAW,EAAEJ;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const RoleBeforeDelete: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { RoleBeforeDeleteHandler } from "../../features/security/roles/DeleteRole/index.js";
|
|
3
|
-
export const RoleBeforeDelete = defineApiExtension({
|
|
4
|
-
type: "Security/RoleBeforeDelete",
|
|
5
|
-
description: "Add custom logic to be executed before a role is deleted.",
|
|
6
|
-
abstraction: RoleBeforeDeleteHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=RoleBeforeDelete.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","RoleBeforeDeleteHandler","RoleBeforeDelete","type","description","abstraction"],"sources":["RoleBeforeDelete.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\nimport { RoleBeforeDeleteHandler } from \"~/features/security/roles/DeleteRole/index.js\";\n\nexport const RoleBeforeDelete = defineApiExtension({\n type: \"Security/RoleBeforeDelete\",\n description: \"Add custom logic to be executed before a role is deleted.\",\n abstraction: RoleBeforeDeleteHandler\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,uBAAuB;AAEhC,OAAO,MAAMC,gBAAgB,GAAGF,kBAAkB,CAAC;EAC/CG,IAAI,EAAE,2BAA2B;EACjCC,WAAW,EAAE,2DAA2D;EACxEC,WAAW,EAAEJ;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const RoleBeforeUpdate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { RoleBeforeUpdateHandler } from "../../features/security/roles/UpdateRole/index.js";
|
|
3
|
-
export const RoleBeforeUpdate = defineApiExtension({
|
|
4
|
-
type: "Security/RoleBeforeUpdate",
|
|
5
|
-
description: "Add custom logic to be executed before a role is updated.",
|
|
6
|
-
abstraction: RoleBeforeUpdateHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=RoleBeforeUpdate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","RoleBeforeUpdateHandler","RoleBeforeUpdate","type","description","abstraction"],"sources":["RoleBeforeUpdate.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\nimport { RoleBeforeUpdateHandler } from \"~/features/security/roles/UpdateRole/index.js\";\n\nexport const RoleBeforeUpdate = defineApiExtension({\n type: \"Security/RoleBeforeUpdate\",\n description: \"Add custom logic to be executed before a role is updated.\",\n abstraction: RoleBeforeUpdateHandler\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,uBAAuB;AAEhC,OAAO,MAAMC,gBAAgB,GAAGF,kBAAkB,CAAC;EAC/CG,IAAI,EAAE,2BAA2B;EACjCC,WAAW,EAAE,2DAA2D;EACxEC,WAAW,EAAEJ;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const SystemInstalled: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { SystemInstalledHandler } from "../../features/system/InstallSystem/index.js";
|
|
3
|
-
export const SystemInstalled = defineApiExtension({
|
|
4
|
-
type: "System/SystemInstalled",
|
|
5
|
-
description: "Add custom logic to be executed after the system is installed.",
|
|
6
|
-
abstraction: SystemInstalledHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=SystemInstalled.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineApiExtension","SystemInstalledHandler","SystemInstalled","type","description","abstraction"],"sources":["SystemInstalled.ts"],"sourcesContent":["import { defineApiExtension } from \"@webiny/project/defineExtension\";\nimport { SystemInstalledHandler } from \"~/features/system/InstallSystem/index.js\";\n\nexport const SystemInstalled = defineApiExtension({\n type: \"System/SystemInstalled\",\n description: \"Add custom logic to be executed after the system is installed.\",\n abstraction: SystemInstalledHandler\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,sBAAsB;AAE/B,OAAO,MAAMC,eAAe,GAAGF,kBAAkB,CAAC;EAC9CG,IAAI,EAAE,wBAAwB;EAC9BC,WAAW,EAAE,gEAAgE;EAC7EC,WAAW,EAAEJ;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const TeamAfterCreate: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
3
|
-
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
exportName?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
src: string;
|
|
9
|
-
exportName?: string | undefined;
|
|
10
|
-
}>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineApiExtension } from "@webiny/project/defineExtension";
|
|
2
|
-
import { TeamAfterCreateHandler } from "../../features/security/teams/CreateTeam/index.js";
|
|
3
|
-
export const TeamAfterCreate = defineApiExtension({
|
|
4
|
-
type: "Security/TeamAfterCreate",
|
|
5
|
-
description: "Add custom logic to be executed after a team is created.",
|
|
6
|
-
abstraction: TeamAfterCreateHandler
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=TeamAfterCreate.js.map
|