@webiny/project-aws 0.0.0-unstable.7be00a75a9 → 0.0.0-unstable.9f53ea597d
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/appTemplates/api/graphql/package.json +9 -0
- package/_templates/appTemplates/api/graphql/src/index.ts +20 -9
- package/_templates/extensions/OpenSearch/api/graphql/src/index.ts +23 -14
- package/_templates/extensions/OpenSearch/coreDdbToEsHandler/dynamoToElastic/src/index.ts +7 -6
- package/_templates/extensions/sqlite/api/graphql/src/index.ts +90 -0
- package/abstractions/features/pulumi/SetAdminCustomDomains.d.ts +9 -0
- package/abstractions/features/pulumi/SetAdminCustomDomains.js +5 -0
- package/abstractions/features/pulumi/SetAdminCustomDomains.js.map +1 -0
- package/abstractions/features/pulumi/SetApiCustomDomains.d.ts +9 -0
- package/abstractions/features/pulumi/SetApiCustomDomains.js +5 -0
- package/abstractions/features/pulumi/SetApiCustomDomains.js.map +1 -0
- package/abstractions/features/pulumi/index.d.ts +2 -0
- package/abstractions/features/pulumi/index.js +2 -0
- package/api.d.ts +7 -4
- package/api.js +2 -0
- package/api.js.map +1 -1
- package/apps/createAdminApp.d.ts +1 -1
- package/apps/createCoreApp.d.ts +13 -13
- package/exports/infra/admin.d.ts +1 -0
- package/exports/infra/admin.js +1 -0
- package/exports/infra/api.d.ts +1 -0
- package/exports/infra/api.js +1 -0
- package/extensions/ApiRoute.d.ts +4 -4
- package/extensions/BackgroundTasks.d.ts +4 -0
- package/extensions/BackgroundTasks.js +24 -0
- package/extensions/BackgroundTasks.js.map +1 -0
- package/package.json +15 -15
- package/project.d.ts +7 -0
- package/pulumi/apps/admin/createAdminPulumiApp.d.ts +1 -1
- package/pulumi/apps/admin/createAdminPulumiApp.js +3 -1
- package/pulumi/apps/admin/createAdminPulumiApp.js.map +1 -1
- package/pulumi/apps/api/ApiBackgroundTask.js +13 -13
- package/pulumi/apps/api/ApiCloudfront.js +2 -2
- package/pulumi/apps/api/ApiFileManager.js +2 -2
- package/pulumi/apps/api/ApiGateway.js +6 -6
- package/pulumi/apps/api/ApiGraphql.js +14 -14
- package/pulumi/apps/api/ApiScheduler.js +7 -7
- package/pulumi/apps/api/ApiWebsocket.js +15 -15
- package/pulumi/apps/api/backgroundTask/policy.js +2 -2
- package/pulumi/apps/api/backgroundTask/role.js +3 -3
- package/pulumi/apps/api/createApiPulumiApp.js +9 -7
- package/pulumi/apps/api/createApiPulumiApp.js.map +1 -1
- package/pulumi/apps/api/handleGuardDutyEvents.js +5 -5
- package/pulumi/apps/awsUtils.d.ts +1 -1
- package/pulumi/apps/awsUtils.js +3 -3
- package/pulumi/apps/blueGreen/BlueGreenRouterApiGateway.js +3 -3
- package/pulumi/apps/blueGreen/BlueGreenRouterCloudFront.js +3 -3
- package/pulumi/apps/blueGreen/BlueGreenRouterCloudFrontStore.js +2 -2
- package/pulumi/apps/blueGreen/cloudfront/createCloudFrontDefaultCacheBehaviorPolicies.js +3 -3
- package/pulumi/apps/blueGreen/createBlueGreenPulumiApp.js +4 -4
- package/pulumi/apps/core/CoreAuditLogsDynamo.js +2 -2
- package/pulumi/apps/core/CoreCognito.d.ts +1 -0
- package/pulumi/apps/core/CoreCognito.js +7 -4
- package/pulumi/apps/core/CoreCognito.js.map +1 -1
- package/pulumi/apps/core/CoreDynamo.js +2 -2
- package/pulumi/apps/core/CoreEventBus.js +2 -2
- package/pulumi/apps/core/CoreFileManager.js +7 -7
- package/pulumi/apps/core/CoreOpenSearch.d.ts +1 -1
- package/pulumi/apps/core/CoreOpenSearch.js +24 -24
- package/pulumi/apps/core/CoreVpc.js +16 -16
- package/pulumi/apps/core/WatchCommand.js +12 -12
- package/pulumi/apps/core/cognitoIdentityProviders/configure.js +13 -5
- package/pulumi/apps/core/cognitoIdentityProviders/configure.js.map +1 -1
- package/pulumi/apps/core/configureS3BucketMalwareProtection.js +20 -20
- package/pulumi/apps/core/createCorePulumiApp.d.ts +13 -13
- package/pulumi/apps/core/createCorePulumiApp.js +36 -20
- package/pulumi/apps/core/createCorePulumiApp.js.map +1 -1
- package/pulumi/apps/core/webinyWatchCommand/handler.d.ts +1 -1
- package/pulumi/apps/createAppBucket.js +12 -12
- package/pulumi/apps/extensions/getVpcConfigFromExtension.d.ts +4 -4
- package/pulumi/apps/lambdaUtils.js +8 -8
- package/pulumi/apps/react/createReactPulumiApp.d.ts +1 -1
- package/pulumi/apps/react/createReactPulumiApp.js +7 -7
- package/pulumi/apps/react/createReactPulumiApp.js.map +1 -1
- package/pulumi/apps/syncSystem/SyncSystemDynamo.js +2 -2
- package/pulumi/apps/syncSystem/SyncSystemDynamoDb.js +2 -2
- package/pulumi/apps/syncSystem/SyncSystemEventBus.js +8 -8
- package/pulumi/apps/syncSystem/SyncSystemLambda.js +11 -11
- package/pulumi/apps/syncSystem/SyncSystemResolverLambda.js +3 -3
- package/pulumi/apps/syncSystem/SyncSystemSQS.js +2 -2
- package/pulumi/apps/syncSystem/SyncSystemWorkerLambda.js +4 -4
- package/pulumi/apps/syncSystem/addTableItems.js +5 -5
- package/pulumi/apps/syncSystem/api/attachCognitoPermissions.js +4 -4
- package/pulumi/apps/syncSystem/api/attachDynamoDbPermissions.js +3 -3
- package/pulumi/apps/syncSystem/api/attachEventBusPermissions.js +3 -3
- package/pulumi/apps/syncSystem/api/attachS3Permissions.js +4 -4
- package/pulumi/apps/syncSystem/createSyncSystemPulumiApp.js +7 -7
- package/pulumi/apps/syncSystem/lambda/createSyncSystemResolverLambdaPolicy.js +2 -2
- package/pulumi/extensions/index.d.ts +2 -2
- package/pulumi/features/DefaultSetAdminCustomDomains.d.ts +8 -0
- package/pulumi/features/DefaultSetAdminCustomDomains.js +12 -0
- package/pulumi/features/DefaultSetAdminCustomDomains.js.map +1 -0
- package/pulumi/features/DefaultSetApiCustomDomains.d.ts +8 -0
- package/pulumi/features/DefaultSetApiCustomDomains.js +12 -0
- package/pulumi/features/DefaultSetApiCustomDomains.js.map +1 -0
- package/pulumi/features/index.d.ts +2 -0
- package/pulumi/features/index.js +2 -0
- package/pulumi/utils/addDomainsUrlsOutputs.js +3 -3
- package/pulumi/utils/addServiceManifestTableItem.js +4 -4
- package/pulumi/utils/createAssetArchive.js +3 -3
- package/pulumi/utils/lambdaEnvVariables.js +2 -2
- package/pulumi/utils/tagResources.js +2 -2
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@webiny/api-aco": "latest",
|
|
8
|
+
"@webiny/api-aco-ddb": "latest",
|
|
9
|
+
"@webiny/api-aco-sql": "latest",
|
|
8
10
|
"@webiny/api-audit-logs": "latest",
|
|
11
|
+
"@webiny/api-audit-logs-ddb": "latest",
|
|
12
|
+
"@webiny/api-audit-logs-sql": "latest",
|
|
9
13
|
"@webiny/api-background-tasks-ddb": "latest",
|
|
10
14
|
"@webiny/api-background-tasks-os": "latest",
|
|
11
15
|
"@webiny/api-core": "latest",
|
|
@@ -26,10 +30,15 @@
|
|
|
26
30
|
"@webiny/api-mailer": "latest",
|
|
27
31
|
"@webiny/api-record-locking": "latest",
|
|
28
32
|
"@webiny/api-scheduler": "latest",
|
|
33
|
+
"@webiny/api-scheduler-aws": "latest",
|
|
29
34
|
"@webiny/api-website-builder": "latest",
|
|
30
35
|
"@webiny/api-website-builder-scheduler": "latest",
|
|
31
36
|
"@webiny/api-website-builder-workflows": "latest",
|
|
32
37
|
"@webiny/api-websockets": "latest",
|
|
38
|
+
"@webiny/api-websockets-aws": "latest",
|
|
39
|
+
"@webiny/api-websockets-ddb": "latest",
|
|
40
|
+
"@webiny/api-websockets-server": "latest",
|
|
41
|
+
"@webiny/api-websockets-sql": "latest",
|
|
33
42
|
"@webiny/api-workflows": "latest",
|
|
34
43
|
"@webiny/aws-sdk": "latest",
|
|
35
44
|
"@webiny/build-tools": "latest",
|
|
@@ -4,23 +4,28 @@ import graphqlPlugins from "@webiny/handler-graphql";
|
|
|
4
4
|
import { createApiCore } from "@webiny/api-core";
|
|
5
5
|
import { createApiCoreDdb } from "@webiny/api-core-ddb";
|
|
6
6
|
import dbPlugins from "@webiny/handler-db";
|
|
7
|
-
import { DynamoDbDriver } from "@webiny/db-dynamodb";
|
|
8
|
-
import { createFileManagerContext
|
|
7
|
+
import { DynamoDbDriver, registerDynamoDBCore } from "@webiny/db-dynamodb";
|
|
8
|
+
import { createFileManagerContext } from "@webiny/api-file-manager";
|
|
9
9
|
import { createFileManagerAco } from "@webiny/api-file-manager-aco";
|
|
10
10
|
import { createFileManagerS3, createAssetDelivery } from "@webiny/api-file-manager-s3";
|
|
11
|
-
import {
|
|
11
|
+
import { createCmsExtension } from "@webiny/api-headless-cms";
|
|
12
12
|
import { registerDynamoDbStorageOperations } from "@webiny/api-headless-cms-ddb";
|
|
13
13
|
import { createHcmsTasks } from "@webiny/api-headless-cms-tasks";
|
|
14
14
|
import { createAco } from "@webiny/api-aco";
|
|
15
|
+
import { registerAcoDdbStorageOperations } from "@webiny/api-aco-ddb";
|
|
15
16
|
import { createAcoHcmsContext } from "@webiny/api-headless-cms-aco";
|
|
16
17
|
import securityPlugins from "./security";
|
|
17
18
|
import { createWebsiteBuilder } from "@webiny/api-website-builder";
|
|
18
19
|
import { createAuditLogs } from "@webiny/api-audit-logs";
|
|
20
|
+
import { registerAuditLogsDdbStorageOperations } from "@webiny/api-audit-logs-ddb";
|
|
19
21
|
import { createBackgroundTasks } from "@webiny/api-background-tasks-ddb";
|
|
20
22
|
import { createWebsockets } from "@webiny/api-websockets";
|
|
23
|
+
import { createAwsWebsockets } from "@webiny/api-websockets-aws";
|
|
24
|
+
import { registerWebsocketsDdbStorageOperations } from "@webiny/api-websockets-ddb";
|
|
21
25
|
import { createRecordLocking } from "@webiny/api-record-locking";
|
|
22
26
|
import { createHeadlessCmsScheduler } from "@webiny/api-headless-cms-scheduler";
|
|
23
|
-
import {
|
|
27
|
+
import { registerSchedulerExtension } from "@webiny/api-scheduler";
|
|
28
|
+
import { registerSchedulerAwsExtension } from "@webiny/api-scheduler-aws";
|
|
24
29
|
import { createSchedulerClient } from "@webiny/aws-sdk/client-scheduler/index.js";
|
|
25
30
|
import { createMailerContext, createMailerGraphQL } from "@webiny/api-mailer";
|
|
26
31
|
import { createWorkflows } from "@webiny/api-workflows";
|
|
@@ -37,6 +42,7 @@ const documentClient = getDocumentClient();
|
|
|
37
42
|
|
|
38
43
|
export const handler = createHandler({
|
|
39
44
|
plugins: [
|
|
45
|
+
registerDynamoDBCore({ documentClient }),
|
|
40
46
|
createApiCore({
|
|
41
47
|
storageOperations: createApiCoreDdb({ documentClient })
|
|
42
48
|
}),
|
|
@@ -47,27 +53,32 @@ export const handler = createHandler({
|
|
|
47
53
|
}),
|
|
48
54
|
securityPlugins(),
|
|
49
55
|
createWebsockets(),
|
|
56
|
+
createAwsWebsockets(),
|
|
57
|
+
registerWebsocketsDdbStorageOperations({ documentClient }),
|
|
50
58
|
registerDynamoDbStorageOperations(),
|
|
51
|
-
|
|
52
|
-
createHeadlessCmsGraphQL(),
|
|
59
|
+
createCmsExtension(),
|
|
53
60
|
createMailerContext(),
|
|
54
61
|
createMailerGraphQL(),
|
|
55
62
|
createWebsiteBuilder(),
|
|
56
63
|
createRecordLocking(),
|
|
57
64
|
createBackgroundTasks(),
|
|
58
65
|
createFileManagerContext(),
|
|
59
|
-
createFileManagerGraphQL(),
|
|
60
66
|
createFileManagerAco(),
|
|
61
67
|
createAssetDelivery(),
|
|
62
68
|
createFileManagerS3(),
|
|
63
|
-
|
|
69
|
+
registerAcoDdbStorageOperations({ documentClient }),
|
|
70
|
+
createAco(),
|
|
64
71
|
createWorkflows(),
|
|
65
72
|
createHeadlessCmsWorkflows(),
|
|
66
73
|
createWebsiteBuilderWorkflows(),
|
|
74
|
+
registerAuditLogsDdbStorageOperations({
|
|
75
|
+
documentClient,
|
|
76
|
+
}),
|
|
67
77
|
createAuditLogs(),
|
|
68
78
|
createAcoHcmsContext(),
|
|
69
79
|
createHcmsTasks(),
|
|
70
|
-
|
|
80
|
+
registerSchedulerExtension(),
|
|
81
|
+
registerSchedulerAwsExtension({
|
|
71
82
|
getClient: config => {
|
|
72
83
|
return createSchedulerClient(config);
|
|
73
84
|
}
|
|
@@ -4,24 +4,29 @@ import graphqlPlugins from "@webiny/handler-graphql";
|
|
|
4
4
|
import { createApiCore } from "@webiny/api-core";
|
|
5
5
|
import { createApiCoreDdb } from "@webiny/api-core-ddb";
|
|
6
6
|
import dbPlugins from "@webiny/handler-db";
|
|
7
|
-
import { DynamoDbDriver } from "@webiny/db-dynamodb";
|
|
8
|
-
import {
|
|
9
|
-
import { createFileManagerContext
|
|
7
|
+
import { DynamoDbDriver, registerDynamoDBCore } from "@webiny/db-dynamodb";
|
|
8
|
+
import { OpenSearchClientOptions, registerOpenSearchCore } from "@webiny/api-opensearch";
|
|
9
|
+
import { createFileManagerContext } from "@webiny/api-file-manager";
|
|
10
10
|
import { createFileManagerAco } from "@webiny/api-file-manager-aco";
|
|
11
11
|
import { createAssetDelivery, createFileManagerS3 } from "@webiny/api-file-manager-s3";
|
|
12
|
-
import {
|
|
12
|
+
import { createCmsExtension } from "@webiny/api-headless-cms";
|
|
13
13
|
import { registerCmsOpenSearchStorageOperations } from "@webiny/api-headless-cms-ddb-es";
|
|
14
14
|
import { createHcmsTasks } from "@webiny/api-headless-cms-tasks-ddb-es";
|
|
15
15
|
import { createAco } from "@webiny/api-aco";
|
|
16
|
+
import { registerAcoDdbStorageOperations } from "@webiny/api-aco-ddb";
|
|
16
17
|
import { createAcoHcmsContext } from "@webiny/api-headless-cms-aco";
|
|
17
18
|
import securityPlugins from "./security.js";
|
|
18
19
|
import { createWebsiteBuilder } from "@webiny/api-website-builder";
|
|
20
|
+
import { registerAuditLogsDdbStorageOperations } from "@webiny/api-audit-logs-ddb";
|
|
19
21
|
import { createAuditLogs } from "@webiny/api-audit-logs";
|
|
20
22
|
import { createBackgroundTasks } from "@webiny/api-background-tasks-os";
|
|
21
23
|
import { createWebsockets } from "@webiny/api-websockets";
|
|
24
|
+
import { createAwsWebsockets } from "@webiny/api-websockets-aws";
|
|
25
|
+
import { registerWebsocketsDdbStorageOperations } from "@webiny/api-websockets-ddb";
|
|
22
26
|
import { createRecordLocking } from "@webiny/api-record-locking";
|
|
23
27
|
import { createSchedulerClient } from "@webiny/aws-sdk/client-scheduler/index.js";
|
|
24
|
-
import {
|
|
28
|
+
import { registerSchedulerExtension } from "@webiny/api-scheduler";
|
|
29
|
+
import { registerSchedulerAwsExtension } from "@webiny/api-scheduler-aws";
|
|
25
30
|
import { createHeadlessCmsScheduler } from "@webiny/api-headless-cms-scheduler";
|
|
26
31
|
import { createMailerContext, createMailerGraphQL } from "@webiny/api-mailer";
|
|
27
32
|
import { createWorkflows } from "@webiny/api-workflows";
|
|
@@ -39,49 +44,53 @@ const documentClient = getDocumentClient();
|
|
|
39
44
|
const osUsername = process.env.OPENSEARCH_USERNAME;
|
|
40
45
|
const osPassword = process.env.OPENSEARCH_PASSWORD;
|
|
41
46
|
|
|
42
|
-
const openSearchClientOptions:
|
|
47
|
+
const openSearchClientOptions: OpenSearchClientOptions = {
|
|
43
48
|
endpoint: `https://${process.env.OPENSEARCH_ENDPOINT}`
|
|
44
49
|
};
|
|
45
50
|
if (osUsername && osPassword) {
|
|
46
51
|
openSearchClientOptions.auth = { username: osUsername, password: osPassword };
|
|
47
52
|
}
|
|
48
53
|
|
|
49
|
-
const openSearchClient = createOpenSearchClient(openSearchClientOptions);
|
|
50
|
-
|
|
51
54
|
export const handler = createHandler({
|
|
52
55
|
plugins: [
|
|
56
|
+
registerDynamoDBCore({ documentClient }),
|
|
57
|
+
registerOpenSearchCore(openSearchClientOptions),
|
|
53
58
|
createApiCore({
|
|
54
59
|
storageOperations: createApiCoreDdb({ documentClient })
|
|
55
60
|
}),
|
|
56
61
|
graphqlPlugins({ debug }),
|
|
57
|
-
createOpenSearchContext(openSearchClient),
|
|
58
62
|
dbPlugins({
|
|
59
63
|
table: process.env.DB_TABLE,
|
|
60
64
|
driver: new DynamoDbDriver({ documentClient })
|
|
61
65
|
}),
|
|
62
66
|
securityPlugins(),
|
|
63
67
|
createWebsockets(),
|
|
68
|
+
createAwsWebsockets(),
|
|
69
|
+
registerWebsocketsDdbStorageOperations({ documentClient }),
|
|
64
70
|
registerCmsOpenSearchStorageOperations(),
|
|
65
|
-
|
|
66
|
-
createHeadlessCmsGraphQL(),
|
|
71
|
+
createCmsExtension(),
|
|
67
72
|
createMailerContext(),
|
|
68
73
|
createMailerGraphQL(),
|
|
69
74
|
createWebsiteBuilder(),
|
|
70
75
|
createRecordLocking(),
|
|
71
76
|
createBackgroundTasks(),
|
|
72
77
|
createFileManagerContext(),
|
|
73
|
-
createFileManagerGraphQL(),
|
|
74
78
|
createFileManagerAco(),
|
|
75
79
|
createAssetDelivery(),
|
|
76
80
|
createFileManagerS3(),
|
|
77
|
-
|
|
81
|
+
registerAcoDdbStorageOperations({ documentClient }),
|
|
82
|
+
createAco(),
|
|
78
83
|
createWorkflows(),
|
|
79
84
|
createHeadlessCmsWorkflows(),
|
|
80
85
|
createWebsiteBuilderWorkflows(),
|
|
86
|
+
registerAuditLogsDdbStorageOperations({
|
|
87
|
+
documentClient
|
|
88
|
+
}),
|
|
81
89
|
createAuditLogs(),
|
|
82
90
|
createAcoHcmsContext(),
|
|
83
91
|
createHcmsTasks(),
|
|
84
|
-
|
|
92
|
+
registerSchedulerExtension(),
|
|
93
|
+
registerSchedulerAwsExtension({
|
|
85
94
|
getClient: config => {
|
|
86
95
|
return createSchedulerClient(config);
|
|
87
96
|
}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { createHandler } from "@webiny/handler-aws";
|
|
2
|
-
import {
|
|
2
|
+
import { type OpenSearchClientOptions, registerOpenSearchCore } from "@webiny/api-opensearch";
|
|
3
3
|
import { createEventHandler } from "@webiny/api-dynamodb-to-elasticsearch";
|
|
4
4
|
|
|
5
5
|
const osUsername = process.env.OPENSEARCH_USERNAME;
|
|
6
6
|
const osPassword = process.env.OPENSEARCH_PASSWORD;
|
|
7
7
|
|
|
8
|
-
const clientOptions:
|
|
8
|
+
const clientOptions: OpenSearchClientOptions = {
|
|
9
9
|
endpoint: `https://${process.env.OPENSEARCH_ENDPOINT}`
|
|
10
10
|
};
|
|
11
11
|
if (osUsername && osPassword) {
|
|
12
|
-
clientOptions.auth = {
|
|
12
|
+
clientOptions.auth = {
|
|
13
|
+
username: osUsername,
|
|
14
|
+
password: osPassword
|
|
15
|
+
};
|
|
13
16
|
}
|
|
14
17
|
|
|
15
|
-
const client = createOpenSearchClient(clientOptions);
|
|
16
|
-
|
|
17
18
|
export const handler = createHandler({
|
|
18
|
-
plugins: [
|
|
19
|
+
plugins: [registerOpenSearchCore(clientOptions), createEventHandler()],
|
|
19
20
|
options: {
|
|
20
21
|
bodyLimit: 536870912 // 512MB
|
|
21
22
|
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { resolve } from "path";
|
|
2
|
+
import knexLib from "knex";
|
|
3
|
+
import { createHandler } from "@webiny/handler-aws";
|
|
4
|
+
import graphqlPlugins from "@webiny/handler-graphql";
|
|
5
|
+
import { createApiCore } from "@webiny/api-core";
|
|
6
|
+
import { createApiCoreSql, registerSQLCore } from "@webiny/api-core-sql";
|
|
7
|
+
import { createFileManagerContext } from "@webiny/api-file-manager";
|
|
8
|
+
import { createFileManagerAco } from "@webiny/api-file-manager-aco";
|
|
9
|
+
import { createAssetDelivery, createFileManagerS3 } from "@webiny/api-file-manager-s3";
|
|
10
|
+
import { createCmsExtension } from "@webiny/api-headless-cms";
|
|
11
|
+
import { registerSqlStorageOperations } from "@webiny/api-headless-cms-sql";
|
|
12
|
+
import { createAco } from "@webiny/api-aco";
|
|
13
|
+
import { registerAcoSqlStorageOperations } from "@webiny/api-aco-sql";
|
|
14
|
+
import { createAcoHcmsContext } from "@webiny/api-headless-cms-aco";
|
|
15
|
+
import securityPlugins from "./security.js";
|
|
16
|
+
import { createWebsiteBuilder } from "@webiny/api-website-builder";
|
|
17
|
+
import { createAuditLogs } from "@webiny/api-audit-logs";
|
|
18
|
+
import { registerAuditLogsSqlStorageOperations } from "@webiny/api-audit-logs-sql";
|
|
19
|
+
import { createBackgroundTasks } from "@webiny/api-background-tasks-os";
|
|
20
|
+
import { createWebsockets } from "@webiny/api-websockets";
|
|
21
|
+
import { createAwsWebsockets } from "@webiny/api-websockets-aws";
|
|
22
|
+
import { registerWebsocketsSqlStorageOperations } from "@webiny/api-websockets-sql";
|
|
23
|
+
import { createRecordLocking } from "@webiny/api-record-locking";
|
|
24
|
+
import { registerSchedulerExtension } from "@webiny/api-scheduler";
|
|
25
|
+
import { registerSchedulerServerExtension } from "@webiny/api-scheduler-server";
|
|
26
|
+
import { createHeadlessCmsScheduler } from "@webiny/api-headless-cms-scheduler";
|
|
27
|
+
import { createMailerContext, createMailerGraphQL } from "@webiny/api-mailer";
|
|
28
|
+
import { createWorkflows } from "@webiny/api-workflows";
|
|
29
|
+
import { createHeadlessCmsWorkflows } from "@webiny/api-headless-cms-workflows";
|
|
30
|
+
import { createWebsiteBuilderWorkflows } from "@webiny/api-website-builder-workflows";
|
|
31
|
+
import { createWebsiteBuilderScheduler } from "@webiny/api-website-builder-scheduler";
|
|
32
|
+
import { createWebhooks } from "@webiny/webhooks/api";
|
|
33
|
+
|
|
34
|
+
import { extensions } from "./extensions";
|
|
35
|
+
|
|
36
|
+
const debug = process.env.DEBUG === "true";
|
|
37
|
+
|
|
38
|
+
const knex = knexLib({
|
|
39
|
+
client: "better-sqlite3",
|
|
40
|
+
connection: {
|
|
41
|
+
filename: resolve(process.cwd(), "db", "webiny.db")
|
|
42
|
+
},
|
|
43
|
+
useNullAsDefault: true
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export const handler = createHandler({
|
|
47
|
+
plugins: [
|
|
48
|
+
registerSQLCore({
|
|
49
|
+
knex
|
|
50
|
+
}),
|
|
51
|
+
createApiCore({
|
|
52
|
+
storageOperations: createApiCoreSql({ knex })
|
|
53
|
+
}),
|
|
54
|
+
graphqlPlugins({ debug }),
|
|
55
|
+
securityPlugins(),
|
|
56
|
+
createWebsockets(),
|
|
57
|
+
createAwsWebsockets(),
|
|
58
|
+
registerWebsocketsSqlStorageOperations({ knex }),
|
|
59
|
+
registerSqlStorageOperations({
|
|
60
|
+
knex
|
|
61
|
+
}),
|
|
62
|
+
createCmsExtension(),
|
|
63
|
+
createMailerContext(),
|
|
64
|
+
createMailerGraphQL(),
|
|
65
|
+
createWebsiteBuilder(),
|
|
66
|
+
createRecordLocking(),
|
|
67
|
+
createBackgroundTasks(),
|
|
68
|
+
createFileManagerContext(),
|
|
69
|
+
createFileManagerAco(),
|
|
70
|
+
createAssetDelivery(),
|
|
71
|
+
createFileManagerS3(),
|
|
72
|
+
registerAcoSqlStorageOperations({ knex }),
|
|
73
|
+
createAco(),
|
|
74
|
+
createWorkflows(),
|
|
75
|
+
createHeadlessCmsWorkflows(),
|
|
76
|
+
createWebsiteBuilderWorkflows(),
|
|
77
|
+
registerAuditLogsSqlStorageOperations({
|
|
78
|
+
knex
|
|
79
|
+
}),
|
|
80
|
+
createAuditLogs(),
|
|
81
|
+
createAcoHcmsContext(),
|
|
82
|
+
registerSchedulerExtension(),
|
|
83
|
+
registerSchedulerServerExtension(),
|
|
84
|
+
createHeadlessCmsScheduler(),
|
|
85
|
+
createWebsiteBuilderScheduler(),
|
|
86
|
+
createWebhooks(),
|
|
87
|
+
extensions()
|
|
88
|
+
],
|
|
89
|
+
debug
|
|
90
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CustomDomainParams } from "../../../pulumi/apps/customDomain.js";
|
|
2
|
+
export interface ISetAdminCustomDomains {
|
|
3
|
+
execute(params: CustomDomainParams): void;
|
|
4
|
+
}
|
|
5
|
+
export declare const SetAdminCustomDomains: import("@webiny/di").Abstraction<ISetAdminCustomDomains>;
|
|
6
|
+
export declare namespace SetAdminCustomDomains {
|
|
7
|
+
type Interface = ISetAdminCustomDomains;
|
|
8
|
+
type Params = CustomDomainParams;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abstractions/features/pulumi/SetAdminCustomDomains.js","sources":["../../../../src/abstractions/features/pulumi/SetAdminCustomDomains.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/project/abstractions/createAbstraction.js\";\nimport type { CustomDomainParams } from \"~/pulumi/apps/customDomain.js\";\n\nexport interface ISetAdminCustomDomains {\n execute(params: CustomDomainParams): void;\n}\n\nexport const SetAdminCustomDomains =\n createAbstraction<ISetAdminCustomDomains>(\"SetAdminCustomDomains\");\n\nexport namespace SetAdminCustomDomains {\n export type Interface = ISetAdminCustomDomains;\n export type Params = CustomDomainParams;\n}\n"],"names":["SetAdminCustomDomains","createAbstraction"],"mappings":";AAOO,MAAMA,wBACTC,kBAA0C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CustomDomainParams } from "../../../pulumi/apps/customDomain.js";
|
|
2
|
+
export interface ISetApiCustomDomains {
|
|
3
|
+
execute(params: CustomDomainParams): void;
|
|
4
|
+
}
|
|
5
|
+
export declare const SetApiCustomDomains: import("@webiny/di").Abstraction<ISetApiCustomDomains>;
|
|
6
|
+
export declare namespace SetApiCustomDomains {
|
|
7
|
+
type Interface = ISetApiCustomDomains;
|
|
8
|
+
type Params = CustomDomainParams;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abstractions/features/pulumi/SetApiCustomDomains.js","sources":["../../../../src/abstractions/features/pulumi/SetApiCustomDomains.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/project/abstractions/createAbstraction.js\";\nimport type { CustomDomainParams } from \"~/pulumi/apps/customDomain.js\";\n\nexport interface ISetApiCustomDomains {\n execute(params: CustomDomainParams): void;\n}\n\nexport const SetApiCustomDomains = createAbstraction<ISetApiCustomDomains>(\"SetApiCustomDomains\");\n\nexport namespace SetApiCustomDomains {\n export type Interface = ISetApiCustomDomains;\n export type Params = CustomDomainParams;\n}\n"],"names":["SetApiCustomDomains","createAbstraction"],"mappings":";AAOO,MAAMA,sBAAsBC,kBAAwC"}
|
package/api.d.ts
CHANGED
|
@@ -6,18 +6,21 @@ export declare const Api: {
|
|
|
6
6
|
Route: import("@webiny/project/defineExtension/defineExtension.js").ExtensionComponent<import("zod").ZodObject<{
|
|
7
7
|
path: import("zod").ZodString;
|
|
8
8
|
method: import("zod").ZodEnum<{
|
|
9
|
-
|
|
9
|
+
ANY: "ANY";
|
|
10
|
+
DELETE: "DELETE";
|
|
10
11
|
GET: "GET";
|
|
11
|
-
PUT: "PUT";
|
|
12
12
|
HEAD: "HEAD";
|
|
13
13
|
OPTIONS: "OPTIONS";
|
|
14
14
|
PATCH: "PATCH";
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
POST: "POST";
|
|
16
|
+
PUT: "PUT";
|
|
17
17
|
}>;
|
|
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"}
|
package/apps/createAdminApp.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export declare function createAdminApp(): {
|
|
|
3
3
|
name: string;
|
|
4
4
|
description: string;
|
|
5
5
|
getPulumi(): Promise<import("@webiny/pulumi/types").PulumiApp<{
|
|
6
|
-
cloudfront: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cloudfront/distribution").Distribution>;
|
|
7
6
|
bucket: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucket").Bucket>;
|
|
8
7
|
bucketOwnershipControls: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketOwnershipControls").BucketOwnershipControls>;
|
|
9
8
|
bucketAcl: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketAcl").BucketAcl>;
|
|
@@ -11,5 +10,6 @@ export declare function createAdminApp(): {
|
|
|
11
10
|
origin: import("@pulumi/aws/types/input").cloudfront.DistributionOrigin;
|
|
12
11
|
bucketPublicAccessBlock: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketPublicAccessBlock").BucketPublicAccessBlock>;
|
|
13
12
|
bucketPolicy: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketPolicy").BucketPolicy>;
|
|
13
|
+
cloudfront: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cloudfront/distribution").Distribution>;
|
|
14
14
|
}> & import("../pulumi/utils/withServiceManifest").WithServiceManifest>;
|
|
15
15
|
};
|
package/apps/createCoreApp.d.ts
CHANGED
|
@@ -4,19 +4,6 @@ export declare function createCoreApp(): {
|
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
6
6
|
getPulumi(): Promise<import("@webiny/pulumi/types").PulumiApp<{
|
|
7
|
-
fileManagerBucket: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucket").Bucket>;
|
|
8
|
-
eventBus: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cloudwatch/eventBus").EventBus>;
|
|
9
|
-
opensearch: {
|
|
10
|
-
domain: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<import("@webiny/pulumi/PulumiAppResource").PulumiAppResourceConstructor<import("@pulumi/aws/opensearch/domain").Domain, any>> | import("@webiny/pulumi/PulumiAppRemoteResource").PulumiAppRemoteResource<import("@pulumi/aws/opensearch").GetDomainResult>;
|
|
11
|
-
domainPolicy: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/opensearch/domainPolicy").DomainPolicy> | undefined;
|
|
12
|
-
table: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/dynamodb/table").Table>;
|
|
13
|
-
dynamoToElastic: {
|
|
14
|
-
role: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/iam/role").Role>;
|
|
15
|
-
policy: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/iam/policy").Policy>;
|
|
16
|
-
lambda: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/lambda/function").Function>;
|
|
17
|
-
eventSourceMapping: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/lambda/eventSourceMapping").EventSourceMapping>;
|
|
18
|
-
};
|
|
19
|
-
} | undefined;
|
|
20
7
|
userPool: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cognito/userPool").UserPool>;
|
|
21
8
|
userPoolClient: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cognito/userPoolClient").UserPoolClient>;
|
|
22
9
|
dynamoDbTable: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/dynamodb/table").Table>;
|
|
@@ -31,5 +18,18 @@ export declare function createCoreApp(): {
|
|
|
31
18
|
publicSubnets: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/ec2/routeTable").RouteTable>;
|
|
32
19
|
};
|
|
33
20
|
} | null;
|
|
21
|
+
fileManagerBucket: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucket").Bucket>;
|
|
22
|
+
eventBus: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cloudwatch/eventBus").EventBus>;
|
|
23
|
+
opensearch: {
|
|
24
|
+
domain: import("@webiny/pulumi/PulumiAppRemoteResource").PulumiAppRemoteResource<import("@pulumi/aws/opensearch").GetDomainResult> | import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<import("@webiny/pulumi/PulumiAppResource").PulumiAppResourceConstructor<import("@pulumi/aws/opensearch/domain").Domain, any>>;
|
|
25
|
+
domainPolicy: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/opensearch/domainPolicy").DomainPolicy> | undefined;
|
|
26
|
+
table: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/dynamodb/table").Table>;
|
|
27
|
+
dynamoToElastic: {
|
|
28
|
+
role: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/iam/role").Role>;
|
|
29
|
+
policy: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/iam/policy").Policy>;
|
|
30
|
+
lambda: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/lambda/function").Function>;
|
|
31
|
+
eventSourceMapping: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/lambda/eventSourceMapping").EventSourceMapping>;
|
|
32
|
+
};
|
|
33
|
+
} | undefined;
|
|
34
34
|
}> & import("../pulumi/utils/withServiceManifest").WithServiceManifest>;
|
|
35
35
|
};
|
package/exports/infra/admin.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { AdminPulumi } from "../../abstractions/features/pulumi/AdminPulumi.js";
|
|
2
|
+
export { SetAdminCustomDomains } from "../../abstractions/features/pulumi/SetAdminCustomDomains.js";
|
|
2
3
|
export { AdminStackOutputService as GetAdminStackOutput } from "../../abstractions/services/AdminStackOutputService.js";
|
package/exports/infra/admin.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { AdminPulumi } from "../../abstractions/features/pulumi/AdminPulumi.js";
|
|
2
|
+
export { SetAdminCustomDomains } from "../../abstractions/features/pulumi/SetAdminCustomDomains.js";
|
|
2
3
|
export { AdminStackOutputService as GetAdminStackOutput } from "../../abstractions/services/AdminStackOutputService.js";
|
package/exports/infra/api.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { ApiPulumi } from "../../abstractions/features/pulumi/ApiPulumi.js";
|
|
2
|
+
export { SetApiCustomDomains } from "../../abstractions/features/pulumi/SetApiCustomDomains.js";
|
|
2
3
|
export { ApiStackOutputService as GetApiStackOutput } from "../../abstractions/services/ApiStackOutputService.js";
|
package/exports/infra/api.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { ApiPulumi } from "../../abstractions/features/pulumi/ApiPulumi.js";
|
|
2
|
+
export { SetApiCustomDomains } from "../../abstractions/features/pulumi/SetApiCustomDomains.js";
|
|
2
3
|
export { ApiStackOutputService as GetApiStackOutput } from "../../abstractions/services/ApiStackOutputService.js";
|
package/extensions/ApiRoute.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const ApiRoute: import("@webiny/project/extensions").ExtensionComponent<z.ZodObject<{
|
|
3
3
|
path: z.ZodString;
|
|
4
4
|
method: z.ZodEnum<{
|
|
5
|
-
|
|
5
|
+
ANY: "ANY";
|
|
6
|
+
DELETE: "DELETE";
|
|
6
7
|
GET: "GET";
|
|
7
|
-
PUT: "PUT";
|
|
8
8
|
HEAD: "HEAD";
|
|
9
9
|
OPTIONS: "OPTIONS";
|
|
10
10
|
PATCH: "PATCH";
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
POST: "POST";
|
|
12
|
+
PUT: "PUT";
|
|
13
13
|
}>;
|
|
14
14
|
src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
15
15
|
routeName: z.ZodOptional<z.ZodString>;
|
|
@@ -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": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.9f53ea597d",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@pulumi/aws": "^7.
|
|
21
|
-
"@pulumi/pulumi": "^3.
|
|
22
|
-
"@pulumi/random": "4.
|
|
23
|
-
"@webiny/api-headless-cms": "0.0.0-unstable.
|
|
24
|
-
"@webiny/aws-layers": "0.0.0-unstable.
|
|
25
|
-
"@webiny/aws-sdk": "0.0.0-unstable.
|
|
26
|
-
"@webiny/cli-core": "0.0.0-unstable.
|
|
27
|
-
"@webiny/di": "
|
|
28
|
-
"@webiny/project": "0.0.0-unstable.
|
|
29
|
-
"@webiny/pulumi": "0.0.0-unstable.
|
|
30
|
-
"@webiny/utils": "0.0.0-unstable.
|
|
20
|
+
"@pulumi/aws": "^7.38.0",
|
|
21
|
+
"@pulumi/pulumi": "^3.253.0",
|
|
22
|
+
"@pulumi/random": "4.21.0",
|
|
23
|
+
"@webiny/api-headless-cms": "0.0.0-unstable.9f53ea597d",
|
|
24
|
+
"@webiny/aws-layers": "0.0.0-unstable.9f53ea597d",
|
|
25
|
+
"@webiny/aws-sdk": "0.0.0-unstable.9f53ea597d",
|
|
26
|
+
"@webiny/cli-core": "0.0.0-unstable.9f53ea597d",
|
|
27
|
+
"@webiny/di": "1.0.2",
|
|
28
|
+
"@webiny/project": "0.0.0-unstable.9f53ea597d",
|
|
29
|
+
"@webiny/pulumi": "0.0.0-unstable.9f53ea597d",
|
|
30
|
+
"@webiny/utils": "0.0.0-unstable.9f53ea597d",
|
|
31
31
|
"chalk": "5.6.2",
|
|
32
32
|
"email-addresses": "5.0.0",
|
|
33
33
|
"find-up": "8.0.0",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/lodash": "4.17.24",
|
|
44
44
|
"@types/ncp": "2.0.8",
|
|
45
|
-
"@webiny/build-tools": "0.0.0-unstable.
|
|
46
|
-
"typescript": "
|
|
47
|
-
"vitest": "4.1.
|
|
45
|
+
"@webiny/build-tools": "0.0.0-unstable.9f53ea597d",
|
|
46
|
+
"typescript": "7.0.2",
|
|
47
|
+
"vitest": "4.1.10"
|
|
48
48
|
},
|
|
49
49
|
"adio": {
|
|
50
50
|
"ignoreDirs": [
|