@webiny/project-aws 6.4.0-beta.3 → 6.4.0-beta.5
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/api.d.ts +3 -0
- package/api.js +2 -0
- package/api.js.map +1 -1
- package/extensions/BackgroundTasks.d.ts +4 -0
- package/extensions/BackgroundTasks.js +24 -0
- package/extensions/BackgroundTasks.js.map +1 -0
- package/package.json +16 -15
package/api.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ export declare const Api: {
|
|
|
18
18
|
src: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>;
|
|
19
19
|
routeName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
20
|
}, import("zod/v4/core").$strip>>;
|
|
21
|
+
BackgroundTasks: import("@webiny/project/defineExtension/defineExtension.js").ExtensionComponent<import("zod").ZodObject<{
|
|
22
|
+
retentionDays: import("zod").ZodNumber;
|
|
23
|
+
}, import("zod/v4/core").$strip>>;
|
|
21
24
|
Mailer: {
|
|
22
25
|
Smtp: import("@webiny/project/defineExtension/defineExtension.js").ExtensionComponent<import("zod").ZodObject<{
|
|
23
26
|
host: import("zod").ZodString;
|
package/api.js
CHANGED
|
@@ -2,9 +2,11 @@ import { ApiExtension, BuildParam } from "@webiny/project/extensions/index.js";
|
|
|
2
2
|
import { ApiRoute } from "./extensions/ApiRoute.js";
|
|
3
3
|
import { Smtp } from "./extensions/Mailer/Smtp.js";
|
|
4
4
|
import { ModelFieldCompression } from "./extensions/Cms/ModelFieldCompression.js";
|
|
5
|
+
import { BackgroundTasks } from "./extensions/BackgroundTasks.js";
|
|
5
6
|
const Api = {
|
|
6
7
|
Extension: ApiExtension,
|
|
7
8
|
Route: ApiRoute,
|
|
9
|
+
BackgroundTasks: BackgroundTasks,
|
|
8
10
|
Mailer: {
|
|
9
11
|
Smtp: Smtp
|
|
10
12
|
},
|
package/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sources":["../src/api.ts"],"sourcesContent":["import { ApiExtension, BuildParam } from \"@webiny/project/extensions/index.js\";\nimport { ApiRoute } from \"./extensions/ApiRoute.js\";\nimport { Smtp as MailerSmtp } from \"./extensions/Mailer/Smtp.js\";\nimport { ModelFieldCompression as CmsModelFieldCompression } from \"./extensions/Cms/ModelFieldCompression.js\";\n\nexport const Api = {\n Extension: ApiExtension,\n Route: ApiRoute,\n Mailer: {\n Smtp: MailerSmtp\n },\n Cms: {\n ModelFieldCompression: CmsModelFieldCompression\n },\n BuildParam: BuildParam\n};\n"],"names":["Api","ApiExtension","ApiRoute","MailerSmtp","CmsModelFieldCompression","BuildParam"],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.js","sources":["../src/api.ts"],"sourcesContent":["import { ApiExtension, BuildParam } from \"@webiny/project/extensions/index.js\";\nimport { ApiRoute } from \"./extensions/ApiRoute.js\";\nimport { Smtp as MailerSmtp } from \"./extensions/Mailer/Smtp.js\";\nimport { ModelFieldCompression as CmsModelFieldCompression } from \"./extensions/Cms/ModelFieldCompression.js\";\nimport { BackgroundTasks } from \"./extensions/BackgroundTasks.js\";\n\nexport const Api = {\n Extension: ApiExtension,\n Route: ApiRoute,\n BackgroundTasks: BackgroundTasks,\n Mailer: {\n Smtp: MailerSmtp\n },\n Cms: {\n ModelFieldCompression: CmsModelFieldCompression\n },\n BuildParam: BuildParam\n};\n"],"names":["Api","ApiExtension","ApiRoute","BackgroundTasks","MailerSmtp","CmsModelFieldCompression","BuildParam"],"mappings":";;;;;AAMO,MAAMA,MAAM;IACf,WAAWC;IACX,OAAOC;IACP,iBAAiBC;IACjB,QAAQ;QACJ,MAAMC;IACV;IACA,KAAK;QACD,uBAAuBC;IAC3B;IACA,YAAYC;AAChB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
4
|
+
import { BuildParam } from "@webiny/project/extensions/index.js";
|
|
5
|
+
const paramsSchema = z.object({
|
|
6
|
+
retentionDays: z.number().int().min(0).max(3650).describe("Default retention period (in days) for completed background task runs. 0 = never delete. Max 3650.")
|
|
7
|
+
});
|
|
8
|
+
const BackgroundTasks = defineExtension({
|
|
9
|
+
type: "Api/BackgroundTasks",
|
|
10
|
+
tags: {
|
|
11
|
+
runtimeContext: "project"
|
|
12
|
+
},
|
|
13
|
+
description: "Configure default settings for background tasks. The retention value is used as the default when no admin has explicitly set a value via the Settings UI.",
|
|
14
|
+
paramsSchema: paramsSchema,
|
|
15
|
+
render (params) {
|
|
16
|
+
return /*#__PURE__*/ react.createElement(BuildParam, {
|
|
17
|
+
paramName: "BackgroundTasks.RetentionDays",
|
|
18
|
+
value: params.retentionDays
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export { BackgroundTasks };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=BackgroundTasks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions/BackgroundTasks.js","sources":["../../src/extensions/BackgroundTasks.tsx"],"sourcesContent":["import React from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport { BuildParam } from \"@webiny/project/extensions/index.js\";\n\nconst paramsSchema = z.object({\n retentionDays: z\n .number()\n .int()\n .min(0)\n .max(3650)\n .describe(\n \"Default retention period (in days) for completed background task runs. 0 = never delete. Max 3650.\"\n )\n});\n\nexport const BackgroundTasks = defineExtension({\n type: \"Api/BackgroundTasks\",\n tags: { runtimeContext: \"project\" },\n description:\n \"Configure default settings for background tasks. The retention value is used as the default when no admin has explicitly set a value via the Settings UI.\",\n paramsSchema,\n render(params) {\n return (\n <BuildParam paramName=\"BackgroundTasks.RetentionDays\" value={params.retentionDays} />\n );\n }\n});\n"],"names":["paramsSchema","z","BackgroundTasks","defineExtension","params","BuildParam"],"mappings":";;;;AAKA,MAAMA,eAAeC,EAAE,MAAM,CAAC;IAC1B,eAAeA,EAAAA,MACJ,GACN,GAAG,GACH,GAAG,CAAC,GACJ,GAAG,CAAC,MACJ,QAAQ,CACL;AAEZ;AAEO,MAAMC,kBAAkBC,gBAAgB;IAC3C,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aACI;IACJH,cAAAA;IACA,QAAOI,MAAM;QACT,OAAO,WAAP,GACI,oBAACC,YAAUA;YAAC,WAAU;YAAgC,OAAOD,OAAO,aAAa;;IAEzF;AACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/project-aws",
|
|
3
|
-
"version": "6.4.0-beta.
|
|
3
|
+
"version": "6.4.0-beta.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -14,21 +14,20 @@
|
|
|
14
14
|
"author": "Webiny Ltd",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"publishConfig": {
|
|
17
|
-
"access": "public"
|
|
18
|
-
"directory": "dist"
|
|
17
|
+
"access": "public"
|
|
19
18
|
},
|
|
20
19
|
"dependencies": {
|
|
21
20
|
"@pulumi/aws": "^7.30.0",
|
|
22
|
-
"@pulumi/pulumi": "^3.
|
|
23
|
-
"@pulumi/random": "4.
|
|
24
|
-
"@webiny/api-headless-cms": "6.4.0-beta.
|
|
25
|
-
"@webiny/aws-layers": "6.4.0-beta.
|
|
26
|
-
"@webiny/aws-sdk": "6.4.0-beta.
|
|
27
|
-
"@webiny/cli-core": "6.4.0-beta.
|
|
21
|
+
"@pulumi/pulumi": "^3.243.0",
|
|
22
|
+
"@pulumi/random": "4.21.0",
|
|
23
|
+
"@webiny/api-headless-cms": "6.4.0-beta.5",
|
|
24
|
+
"@webiny/aws-layers": "6.4.0-beta.5",
|
|
25
|
+
"@webiny/aws-sdk": "6.4.0-beta.5",
|
|
26
|
+
"@webiny/cli-core": "6.4.0-beta.5",
|
|
28
27
|
"@webiny/di": "1.0.1",
|
|
29
|
-
"@webiny/project": "6.4.0-beta.
|
|
30
|
-
"@webiny/pulumi": "6.4.0-beta.
|
|
31
|
-
"@webiny/utils": "6.4.0-beta.
|
|
28
|
+
"@webiny/project": "6.4.0-beta.5",
|
|
29
|
+
"@webiny/pulumi": "6.4.0-beta.5",
|
|
30
|
+
"@webiny/utils": "6.4.0-beta.5",
|
|
32
31
|
"chalk": "5.6.2",
|
|
33
32
|
"email-addresses": "5.0.0",
|
|
34
33
|
"find-up": "8.0.0",
|
|
@@ -43,9 +42,9 @@
|
|
|
43
42
|
"devDependencies": {
|
|
44
43
|
"@types/lodash": "4.17.24",
|
|
45
44
|
"@types/ncp": "2.0.8",
|
|
46
|
-
"@webiny/build-tools": "6.4.0-beta.
|
|
45
|
+
"@webiny/build-tools": "6.4.0-beta.5",
|
|
47
46
|
"typescript": "6.0.3",
|
|
48
|
-
"vitest": "4.1.
|
|
47
|
+
"vitest": "4.1.7"
|
|
49
48
|
},
|
|
50
49
|
"adio": {
|
|
51
50
|
"ignoreDirs": [
|
|
@@ -57,5 +56,7 @@
|
|
|
57
56
|
]
|
|
58
57
|
}
|
|
59
58
|
},
|
|
60
|
-
"
|
|
59
|
+
"webiny": {
|
|
60
|
+
"publishFrom": "dist"
|
|
61
|
+
}
|
|
61
62
|
}
|