@fy-stack/app-construct 0.0.147-alpha.3065 → 0.0.147-alpha.3066
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/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/lib/ecs/apps/next-app-router-construct.d.ts.map +1 -1
- package/dist/lib/ecs/apps/next-app-router-construct.js +2 -2
- package/dist/lib/lambda/apps/image-app-construct.d.ts +11 -43
- package/dist/lib/lambda/apps/image-app-construct.d.ts.map +1 -1
- package/dist/lib/lambda/apps/next-app-router-construct.d.ts +5 -8
- package/dist/lib/lambda/apps/next-app-router-construct.d.ts.map +1 -1
- package/dist/lib/lambda/apps/next-app-router-construct.js +1 -1
- package/dist/lib/lambda/apps/node-api-construct.d.ts +5 -8
- package/dist/lib/lambda/apps/node-api-construct.d.ts.map +1 -1
- package/dist/lib/lambda/apps/node-app-construct.d.ts +5 -8
- package/dist/lib/lambda/apps/node-app-construct.d.ts.map +1 -1
- package/dist/lib/shared/code-deployment.d.ts.map +1 -1
- package/dist/lib/shared/code-deployment.js +1 -1
- package/dist/lib/shared/public-bucket.d.ts +2 -2
- package/dist/lib/shared/public-bucket.d.ts.map +1 -1
- package/dist/lib/shared/public-bucket.js +1 -1
- package/dist/lib/standalone/image-app-container.d.ts +1 -1
- package/dist/lib/standalone/image-app-container.d.ts.map +1 -1
- package/dist/lib/standalone/next-app-router-code.d.ts.map +1 -1
- package/dist/lib/standalone/next-app-router-code.js +4 -4
- package/dist/lib/standalone/next-app-router-container.d.ts +1 -1
- package/dist/lib/standalone/next-app-router-container.d.ts.map +1 -1
- package/dist/lib/standalone/next-app-router-container.js +1 -1
- package/dist/lib/static/apps/next-pages-export-construct.d.ts +2 -5
- package/dist/lib/static/apps/next-pages-export-construct.d.ts.map +1 -1
- package/dist/lib/static/apps/next-pages-export-construct.js +1 -3
- package/dist/lib/static/apps/static-website-construct.d.ts +3 -7
- package/dist/lib/static/apps/static-website-construct.d.ts.map +1 -1
- package/dist/lib/static/apps/static-website-construct.js +2 -1
- package/dist/lib/static/types.d.ts +1 -1
- package/dist/lib/static/types.d.ts.map +1 -1
- package/dist/lib/util/constants.d.ts +3 -23
- package/dist/lib/util/constants.d.ts.map +1 -1
- package/package.json +5 -3
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export type { LambdaConstructProps } from './lib/lambda/types';
|
|
|
5
5
|
export { lambdaAttach } from './lib/lambda/utils/lambda-attach';
|
|
6
6
|
export { lambdaGrant } from './lib/lambda/utils/lambda-grant';
|
|
7
7
|
export { ImageAppContainer } from './lib/standalone/image-app-container';
|
|
8
|
-
export { NextAppRouterContainer } from './lib/standalone/next-app-router-container';
|
|
9
8
|
export { NextAppRouterCode } from './lib/standalone/next-app-router-code';
|
|
9
|
+
export { NextAppRouterContainer } from './lib/standalone/next-app-router-container';
|
|
10
10
|
export { StaticConstruct } from './lib/static/static-construct';
|
|
11
11
|
export type { StaticConstructProps } from './lib/static/types';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StaticConstruct = exports.
|
|
3
|
+
exports.StaticConstruct = exports.NextAppRouterContainer = exports.NextAppRouterCode = exports.ImageAppContainer = exports.lambdaGrant = exports.lambdaAttach = exports.LambdaConstruct = exports.EcsConstruct = void 0;
|
|
4
4
|
var ecs_construct_1 = require("./lib/ecs/ecs-construct");
|
|
5
5
|
Object.defineProperty(exports, "EcsConstruct", { enumerable: true, get: function () { return ecs_construct_1.EcsConstruct; } });
|
|
6
6
|
var lambda_construct_1 = require("./lib/lambda/lambda-construct");
|
|
@@ -11,9 +11,9 @@ var lambda_grant_1 = require("./lib/lambda/utils/lambda-grant");
|
|
|
11
11
|
Object.defineProperty(exports, "lambdaGrant", { enumerable: true, get: function () { return lambda_grant_1.lambdaGrant; } });
|
|
12
12
|
var image_app_container_1 = require("./lib/standalone/image-app-container");
|
|
13
13
|
Object.defineProperty(exports, "ImageAppContainer", { enumerable: true, get: function () { return image_app_container_1.ImageAppContainer; } });
|
|
14
|
-
var next_app_router_container_1 = require("./lib/standalone/next-app-router-container");
|
|
15
|
-
Object.defineProperty(exports, "NextAppRouterContainer", { enumerable: true, get: function () { return next_app_router_container_1.NextAppRouterContainer; } });
|
|
16
14
|
var next_app_router_code_1 = require("./lib/standalone/next-app-router-code");
|
|
17
15
|
Object.defineProperty(exports, "NextAppRouterCode", { enumerable: true, get: function () { return next_app_router_code_1.NextAppRouterCode; } });
|
|
16
|
+
var next_app_router_container_1 = require("./lib/standalone/next-app-router-container");
|
|
17
|
+
Object.defineProperty(exports, "NextAppRouterContainer", { enumerable: true, get: function () { return next_app_router_container_1.NextAppRouterContainer; } });
|
|
18
18
|
var static_construct_1 = require("./lib/static/static-construct");
|
|
19
19
|
Object.defineProperty(exports, "StaticConstruct", { enumerable: true, get: function () { return static_construct_1.StaticConstruct; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-app-router-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/ecs/apps/next-app-router-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"next-app-router-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/ecs/apps/next-app-router-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAE3C,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAWvC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvD,KAAK,kBAAkB,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;AAEjD,qBAAa,sBAAuB,SAAQ,SAAU,YAAW,YAAY;IAOjC,OAAO,CAAC,KAAK;IANhD,SAAS,EAAE,GAAG,CAAC,mBAAmB,CAAC;IACnC,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC;IAEpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;IACpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAU;gBAEpB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAU,KAAK,EAAE,kBAAkB;IA8B3E,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IAcpE,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAI3C,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAO7C,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;CAG7B"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NextAppRouterConstruct = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
|
|
6
5
|
const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
|
|
6
|
+
const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
|
|
7
7
|
const constructs_1 = require("constructs");
|
|
8
8
|
const next_app_router_1 = require("../../shared/next-app-router");
|
|
9
9
|
const params_from_attachable_1 = require("../../shared/params-from-attachable");
|
|
10
|
-
const taskDefinitionImage_1 = require("../shared/taskDefinitionImage");
|
|
11
10
|
const public_bucket_1 = require("../../shared/public-bucket");
|
|
11
|
+
const taskDefinitionImage_1 = require("../shared/taskDefinitionImage");
|
|
12
12
|
class NextAppRouterConstruct extends constructs_1.Construct {
|
|
13
13
|
props;
|
|
14
14
|
container;
|
|
@@ -10,37 +10,9 @@ import { AppConstruct, AppProperties } from '../types';
|
|
|
10
10
|
declare const BuildParamsSchema: z.ZodObject<{
|
|
11
11
|
container: z.ZodOptional<z.ZodObject<{
|
|
12
12
|
file: z.ZodOptional<z.ZodString>;
|
|
13
|
-
cmd: z.ZodOptional<z.ZodArray<z.ZodString
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
18
|
-
file: z.ZodOptional<z.ZodString>;
|
|
19
|
-
cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
20
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
21
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
22
|
-
container: z.ZodOptional<z.ZodObject<{
|
|
23
|
-
file: z.ZodOptional<z.ZodString>;
|
|
24
|
-
cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
25
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
26
|
-
file: z.ZodOptional<z.ZodString>;
|
|
27
|
-
cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
29
|
-
file: z.ZodOptional<z.ZodString>;
|
|
30
|
-
cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
31
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
32
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
33
|
-
container: z.ZodOptional<z.ZodObject<{
|
|
34
|
-
file: z.ZodOptional<z.ZodString>;
|
|
35
|
-
cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
36
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
37
|
-
file: z.ZodOptional<z.ZodString>;
|
|
38
|
-
cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
39
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
40
|
-
file: z.ZodOptional<z.ZodString>;
|
|
41
|
-
cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
42
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
43
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
13
|
+
cmd: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
|
+
}, z.core.$loose>;
|
|
44
16
|
export declare class ImageAppConstruct extends Construct implements AppConstruct {
|
|
45
17
|
function: Function;
|
|
46
18
|
queue: Queue | undefined;
|
|
@@ -51,18 +23,14 @@ export declare class ImageAppConstruct extends Construct implements AppConstruct
|
|
|
51
23
|
cloudfront(path: string): Record<string, BehaviorOptions>;
|
|
52
24
|
cloudfrontPolicy(distributionId: string): void;
|
|
53
25
|
api(path: string): Record<string, HttpRouteIntegration>;
|
|
54
|
-
static parse(params: unknown):
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
file: z.ZodOptional<z.ZodString>;
|
|
63
|
-
cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
64
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
65
|
-
}, z.ZodTypeAny, "passthrough">;
|
|
26
|
+
static parse(params: unknown): {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
container?: {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
file?: string | undefined;
|
|
31
|
+
cmd?: string[] | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
};
|
|
66
34
|
}
|
|
67
35
|
export {};
|
|
68
36
|
//# sourceMappingURL=image-app-construct.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-app-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/lambda/apps/image-app-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAEL,eAAe,EAKhB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAEL,QAAQ,EAIT,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAK5E,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAMvD,QAAA,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"image-app-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/lambda/apps/image-app-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAEL,eAAe,EAKhB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAEL,QAAQ,EAIT,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAK5E,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAMvD,QAAA,MAAM,iBAAiB;;;;;iBAUP,CAAC;AAEjB,qBAAa,iBAAkB,SAAQ,SAAU,YAAW,YAAY;IAC/D,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;gBAG9B,KAAK,EAAE,SAAS,EAChB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAoDzD,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,IAAI;IAIpD,KAAK,CAAC,GAAG,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI;IAIvC,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,kBAAkB;IAW1D,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;IAqBzD,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAIvD,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;;;;;;;;CAG7B"}
|
|
@@ -9,11 +9,7 @@ import { z } from 'zod';
|
|
|
9
9
|
import { AppConstruct, AppProperties } from '../types';
|
|
10
10
|
declare const BuildParamsSchema: z.ZodObject<{
|
|
11
11
|
cmd: z.ZodString;
|
|
12
|
-
},
|
|
13
|
-
cmd: z.ZodString;
|
|
14
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
15
|
-
cmd: z.ZodString;
|
|
16
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
12
|
+
}, z.core.$loose>;
|
|
17
13
|
export declare class NextAppRouterConstruct extends Construct implements AppConstruct {
|
|
18
14
|
function: lambda.Function;
|
|
19
15
|
queue: sqs.Queue | undefined;
|
|
@@ -26,9 +22,10 @@ export declare class NextAppRouterConstruct extends Construct implements AppCons
|
|
|
26
22
|
attach(attachable: Record<string, Attachable>): void;
|
|
27
23
|
grant(...grants: Grantable[]): void;
|
|
28
24
|
subscription(): ITopicSubscription;
|
|
29
|
-
static parse(params: unknown):
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
static parse(params: unknown): {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
cmd: string;
|
|
28
|
+
};
|
|
32
29
|
}
|
|
33
30
|
export {};
|
|
34
31
|
//# sourceMappingURL=next-app-router-construct.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-app-router-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/lambda/apps/next-app-router-construct.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAEzD,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAIjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"next-app-router-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/lambda/apps/next-app-router-construct.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAEzD,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAIjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKvD,QAAA,MAAM,iBAAiB;;iBAA8C,CAAC;AAEtE,qBAAa,sBAAuB,SAAQ,SAAU,YAAW,YAAY;IACpE,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC;IAEpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAU;gBAG9B,KAAK,EAAE,SAAS,EAChB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAkDzD,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IAkBpE,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAgG3D,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAI7C,KAAK,CAAC,GAAG,MAAM,EAAE,SAAS,EAAE;IAI5B,YAAY,IAAI,kBAAkB;IAIlC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;;;;CAG7B"}
|
|
@@ -14,10 +14,10 @@ const s3Deploy = tslib_1.__importStar(require("aws-cdk-lib/aws-s3-deployment"));
|
|
|
14
14
|
const constructs_1 = require("constructs");
|
|
15
15
|
const zod_1 = require("zod");
|
|
16
16
|
const next_app_router_1 = require("../../shared/next-app-router");
|
|
17
|
+
const public_bucket_1 = require("../../shared/public-bucket");
|
|
17
18
|
const getDefaultLambda_1 = require("../utils/getDefaultLambda");
|
|
18
19
|
const lambda_attach_1 = require("../utils/lambda-attach");
|
|
19
20
|
const lambda_grant_1 = require("../utils/lambda-grant");
|
|
20
|
-
const public_bucket_1 = require("../../shared/public-bucket");
|
|
21
21
|
const BuildParamsSchema = zod_1.z.object({ cmd: zod_1.z.string() }).passthrough();
|
|
22
22
|
class NextAppRouterConstruct extends constructs_1.Construct {
|
|
23
23
|
function;
|
|
@@ -8,11 +8,7 @@ import { z } from 'zod';
|
|
|
8
8
|
import { AppConstruct, AppProperties } from '../types';
|
|
9
9
|
declare const BuildParamsSchema: z.ZodObject<{
|
|
10
10
|
cmd: z.ZodString;
|
|
11
|
-
},
|
|
12
|
-
cmd: z.ZodString;
|
|
13
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
14
|
-
cmd: z.ZodString;
|
|
15
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
11
|
+
}, z.core.$loose>;
|
|
16
12
|
export declare class NodeApiConstruct extends Construct implements AppConstruct {
|
|
17
13
|
function: lambda.Function;
|
|
18
14
|
queue: sqs.Queue | undefined;
|
|
@@ -35,9 +31,10 @@ export declare class NodeApiConstruct extends Construct implements AppConstruct
|
|
|
35
31
|
api(path: string): {
|
|
36
32
|
[x: string]: cdk.aws_apigatewayv2_integrations.HttpUrlIntegration;
|
|
37
33
|
};
|
|
38
|
-
static parse(params: unknown):
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
static parse(params: unknown): {
|
|
35
|
+
[x: string]: unknown;
|
|
36
|
+
cmd: string;
|
|
37
|
+
};
|
|
41
38
|
}
|
|
42
39
|
export {};
|
|
43
40
|
//# sourceMappingURL=node-api-construct.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-api-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/lambda/apps/node-api-construct.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AAGnC,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAMvD,QAAA,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"node-api-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/lambda/apps/node-api-construct.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AAGnC,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAMvD,QAAA,MAAM,iBAAiB;;iBAA8C,CAAC;AAEtE,qBAAa,gBAAiB,SAAQ,SAAU,YAAW,YAAY;IAC9D,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC;gBAGlC,KAAK,EAAE,SAAS,EAChB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAmDzD,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAI7C,KAAK,CAAC,GAAG,MAAM,EAAE,SAAS,EAAE;IAI5B,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,kBAAkB;IAI1D,UAAU,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;IAqBvB,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,CAAC,IAAI,EAAE,MAAM;;;IAIhB,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;;;;CAG7B"}
|
|
@@ -9,11 +9,7 @@ import { z } from 'zod';
|
|
|
9
9
|
import { AppConstruct, AppProperties } from '../types';
|
|
10
10
|
declare const BuildParamsSchema: z.ZodObject<{
|
|
11
11
|
handler: z.ZodOptional<z.ZodString>;
|
|
12
|
-
},
|
|
13
|
-
handler: z.ZodOptional<z.ZodString>;
|
|
14
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
15
|
-
handler: z.ZodOptional<z.ZodString>;
|
|
16
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
12
|
+
}, z.core.$loose>;
|
|
17
13
|
export declare class NodeAppConstruct extends Construct implements AppConstruct {
|
|
18
14
|
function: lambda.Function;
|
|
19
15
|
queue: sqs.Queue | undefined;
|
|
@@ -24,9 +20,10 @@ export declare class NodeAppConstruct extends Construct implements AppConstruct
|
|
|
24
20
|
cloudfront(path: string): Record<string, BehaviorOptions>;
|
|
25
21
|
cloudfrontPolicy(distributionId: string): void;
|
|
26
22
|
api(path: string): Record<string, HttpRouteIntegration>;
|
|
27
|
-
static parse(params: unknown):
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
static parse(params: unknown): {
|
|
24
|
+
[x: string]: unknown;
|
|
25
|
+
handler?: string | undefined;
|
|
26
|
+
};
|
|
30
27
|
}
|
|
31
28
|
export {};
|
|
32
29
|
//# sourceMappingURL=node-app-construct.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-app-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/lambda/apps/node-app-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKvD,QAAA,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"node-app-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/lambda/apps/node-app-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKvD,QAAA,MAAM,iBAAiB;;iBAEP,CAAC;AAEjB,qBAAa,gBAAiB,SAAQ,SAAU,YAAW,YAAY;IAC9D,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC;gBAGlC,KAAK,EAAE,SAAS,EAChB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAiCzD,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAI7C,KAAK,CAAC,GAAG,MAAM,EAAE,SAAS,EAAE;IAI5B,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,kBAAkB;IAU1D,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;IAIzD,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAcvD,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;;;;CAG7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-deployment.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/code-deployment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"code-deployment.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/code-deployment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,wBAAgB,cAAc,CAC5B,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,EAAE,CAAC,OAAO,EAClB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,UAqBhB"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.codeDeployment = codeDeployment;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const s3Deploy = tslib_1.__importStar(require("aws-cdk-lib/aws-s3-deployment"));
|
|
6
5
|
const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
|
|
6
|
+
const s3Deploy = tslib_1.__importStar(require("aws-cdk-lib/aws-s3-deployment"));
|
|
7
7
|
function codeDeployment(scope, bucket, output, version) {
|
|
8
8
|
const codeFiles = s3Deploy.Source.asset(output);
|
|
9
9
|
const codePrefix = `assets/code/${version}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as cdk from 'aws-cdk-lib';
|
|
2
2
|
import type { Construct } from 'constructs';
|
|
3
|
-
export declare function publicBucket(scope: Construct, id: string):
|
|
3
|
+
export declare function publicBucket(scope: Construct, id: string): cdk.aws_s3.Bucket;
|
|
4
4
|
//# sourceMappingURL=public-bucket.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-bucket.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/public-bucket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"public-bucket.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/public-bucket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AAEnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,qBAgBxD"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.publicBucket = publicBucket;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
|
|
6
5
|
const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
|
|
6
|
+
const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
|
|
7
7
|
function publicBucket(scope, id) {
|
|
8
8
|
return new s3.Bucket(scope, id, {
|
|
9
9
|
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { DockerImageAssetOptions } from 'aws-cdk-lib/aws-ecr-assets';
|
|
1
2
|
import { Construct } from 'constructs';
|
|
2
3
|
import type { StandaloneApp } from './types';
|
|
3
|
-
import type { DockerImageAssetOptions } from 'aws-cdk-lib/aws-ecr-assets';
|
|
4
4
|
export type ImageAppProps = StandaloneApp & {
|
|
5
5
|
container?: DockerImageAssetOptions;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-app-container.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/image-app-container.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image-app-container.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/image-app-container.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAI1E,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG;IAC1C,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa;CAiC/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-app-router-code.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/next-app-router-code.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"next-app-router-code.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/next-app-router-code.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAC/C,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB;CAoDpE"}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NextAppRouterCode = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
|
|
6
|
+
const node_path_1 = tslib_1.__importDefault(require("node:path"));
|
|
5
7
|
const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
|
|
6
8
|
const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
|
|
7
9
|
const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
|
|
8
10
|
const constructs_1 = require("constructs");
|
|
9
|
-
const next_app_router_1 = require("../shared/next-app-router");
|
|
10
11
|
const code_deployment_1 = require("../shared/code-deployment");
|
|
11
|
-
const
|
|
12
|
-
const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
|
|
12
|
+
const next_app_router_1 = require("../shared/next-app-router");
|
|
13
13
|
class NextAppRouterCode extends constructs_1.Construct {
|
|
14
14
|
constructor(scope, id, props) {
|
|
15
15
|
super(scope, id);
|
|
@@ -34,7 +34,7 @@ class NextAppRouterCode extends constructs_1.Construct {
|
|
|
34
34
|
parameterName: `/${stackName}/code`,
|
|
35
35
|
stringValue: code,
|
|
36
36
|
});
|
|
37
|
-
new ssm.StringParameter(this, '
|
|
37
|
+
new ssm.StringParameter(this, 'CodeCMDParam', {
|
|
38
38
|
parameterName: `/${stackName}/code/handler`,
|
|
39
39
|
stringValue: 'run.sh',
|
|
40
40
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { DockerImageAssetOptions } from 'aws-cdk-lib/aws-ecr-assets';
|
|
1
2
|
import { Construct } from 'constructs';
|
|
2
3
|
import type { StandaloneApp } from './types';
|
|
3
|
-
import type { DockerImageAssetOptions } from 'aws-cdk-lib/aws-ecr-assets';
|
|
4
4
|
export type NextAppRouterProps = StandaloneApp & {
|
|
5
5
|
container?: DockerImageAssetOptions;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-app-router-container.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/next-app-router-container.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"next-app-router-container.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/next-app-router-container.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAK1E,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAC/C,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB;CAuDpE"}
|
|
@@ -4,8 +4,8 @@ exports.NextAppRouterContainer = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
|
|
6
6
|
const ecr = tslib_1.__importStar(require("aws-cdk-lib/aws-ecr"));
|
|
7
|
-
const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
|
|
8
7
|
const ecrAssets = tslib_1.__importStar(require("aws-cdk-lib/aws-ecr-assets"));
|
|
8
|
+
const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
|
|
9
9
|
const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
|
|
10
10
|
const ecrDeployment = tslib_1.__importStar(require("cdk-ecr-deployment"));
|
|
11
11
|
const constructs_1 = require("constructs");
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import type { HttpRouteIntegration } from 'aws-cdk-lib/aws-apigatewayv2';
|
|
2
2
|
import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
|
|
3
3
|
import { Construct } from 'constructs';
|
|
4
|
-
import { z } from 'zod';
|
|
5
4
|
import { AppConstruct, AppProperties } from '../types';
|
|
6
|
-
declare const BuildParamsSchema: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
7
5
|
export declare class NextPagesExportConstruct extends Construct implements AppConstruct {
|
|
8
6
|
private readonly static;
|
|
9
|
-
constructor(scope: Construct, id: string, props: AppProperties
|
|
7
|
+
constructor(scope: Construct, id: string, props: AppProperties);
|
|
10
8
|
cloudfront(path: string): Record<string, cloudfront.BehaviorOptions>;
|
|
11
9
|
cloudfrontPolicy(distributionId: string): void;
|
|
12
10
|
api(): Record<string, HttpRouteIntegration>;
|
|
13
|
-
static parse(params:
|
|
11
|
+
static parse<T>(params: T): T;
|
|
14
12
|
}
|
|
15
|
-
export {};
|
|
16
13
|
//# sourceMappingURL=next-pages-export-construct.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-pages-export-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/static/apps/next-pages-export-construct.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"next-pages-export-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/static/apps/next-pages-export-construct.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvD,qBAAa,wBACX,SAAQ,SACR,YAAW,YAAY;IAEvB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;gBAEvB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa;IAiC9D,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IAmBpE,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAI3C,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;CAG1B"}
|
|
@@ -9,8 +9,6 @@ const cloudfrontOrigin = tslib_1.__importStar(require("aws-cdk-lib/aws-cloudfron
|
|
|
9
9
|
const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
|
|
10
10
|
const s3Deploy = tslib_1.__importStar(require("aws-cdk-lib/aws-s3-deployment"));
|
|
11
11
|
const constructs_1 = require("constructs");
|
|
12
|
-
const zod_1 = require("zod");
|
|
13
|
-
const BuildParamsSchema = zod_1.z.object({}).optional();
|
|
14
12
|
class NextPagesExportConstruct extends constructs_1.Construct {
|
|
15
13
|
static;
|
|
16
14
|
constructor(scope, id, props) {
|
|
@@ -63,7 +61,7 @@ class NextPagesExportConstruct extends constructs_1.Construct {
|
|
|
63
61
|
throw new Error('api not supported for this construct');
|
|
64
62
|
}
|
|
65
63
|
static parse(params) {
|
|
66
|
-
return
|
|
64
|
+
return params;
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
exports.NextPagesExportConstruct = NextPagesExportConstruct;
|
|
@@ -3,13 +3,9 @@ import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
|
|
|
3
3
|
import { Construct } from 'constructs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { AppConstruct, AppProperties } from '../types';
|
|
6
|
-
declare const BuildParamsSchema: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
declare const BuildParamsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
7
7
|
spa: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
-
},
|
|
9
|
-
spa?: boolean | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
spa?: boolean | undefined;
|
|
12
|
-
}>>;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
13
9
|
export declare class StaticWebsiteConstruct extends Construct implements AppConstruct {
|
|
14
10
|
private props;
|
|
15
11
|
private readonly static;
|
|
@@ -19,7 +15,7 @@ export declare class StaticWebsiteConstruct extends Construct implements AppCons
|
|
|
19
15
|
api(): Record<string, HttpRouteIntegration>;
|
|
20
16
|
static parse(params: unknown): {
|
|
21
17
|
spa?: boolean | undefined;
|
|
22
|
-
}
|
|
18
|
+
};
|
|
23
19
|
}
|
|
24
20
|
export {};
|
|
25
21
|
//# sourceMappingURL=static-website-construct.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static-website-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/static/apps/static-website-construct.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvD,QAAA,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"static-website-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/static/apps/static-website-construct.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvD,QAAA,MAAM,iBAAiB;;mBAKT,CAAC;AAEf,qBAAa,sBAAuB,SAAQ,SAAU,YAAW,YAAY;IAMzE,OAAO,CAAC,KAAK;IALf,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;gBAGjC,KAAK,EAAE,SAAS,EAChB,EAAE,EAAE,MAAM,EACF,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IA2BjE,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IA8DpE,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAI3C,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;;;CAG7B"}
|
|
@@ -9,7 +9,7 @@ export type App = {
|
|
|
9
9
|
output: string;
|
|
10
10
|
buildParams?: Record<string, unknown>;
|
|
11
11
|
};
|
|
12
|
-
export type AppProperties<BuildParams = Record<string, unknown
|
|
12
|
+
export type AppProperties<BuildParams extends Record<string, unknown> = Partial<Record<string, unknown>>> = {
|
|
13
13
|
buildParams: BuildParams;
|
|
14
14
|
output: string;
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/static/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9E,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,WAAW,EAAE,WAAW;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/static/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9E,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,WAAW,EAAE,WAAW;CAC7D;AAED,MAAM,MAAM,GAAG,GAAG;IAChB,IAAI,EAAE,OAAO,OAAO,CAAC,gBAAgB,GAAG,OAAO,OAAO,CAAC,cAAc,CAAC;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,aAAa,CACvB,WAAW,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAC5E;IACF,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -1,32 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ContainerAppFileSchema: z.ZodObject<{
|
|
3
3
|
key: z.ZodString;
|
|
4
|
-
},
|
|
5
|
-
key: string;
|
|
6
|
-
}, {
|
|
7
|
-
key: string;
|
|
8
|
-
}>;
|
|
4
|
+
}, z.core.$strip>;
|
|
9
5
|
export declare const ContainerAppSchema: z.ZodObject<{
|
|
10
6
|
repository: z.ZodString;
|
|
11
7
|
tag: z.ZodOptional<z.ZodString>;
|
|
12
8
|
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
13
9
|
key: z.ZodString;
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
}, {
|
|
17
|
-
key: string;
|
|
18
|
-
}>>>;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
repository: string;
|
|
21
|
-
tag?: string | undefined;
|
|
22
|
-
files?: Record<string, {
|
|
23
|
-
key: string;
|
|
24
|
-
}> | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
repository: string;
|
|
27
|
-
tag?: string | undefined;
|
|
28
|
-
files?: Record<string, {
|
|
29
|
-
key: string;
|
|
30
|
-
}> | undefined;
|
|
31
|
-
}>;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
32
12
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/util/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/util/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;iBAAgC,CAAC;AAEpE,eAAO,MAAM,kBAAkB;;;;;;iBAI7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fy-stack/app-construct",
|
|
3
|
-
"version": "0.0.147-alpha.
|
|
3
|
+
"version": "0.0.147-alpha.3066",
|
|
4
4
|
"repository": "https://github.com/festusyuma/fy-stack",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@fy-stack/types": "0.0.147-alpha.
|
|
6
|
+
"@fy-stack/types": "0.0.147-alpha.3066",
|
|
7
7
|
"tslib": "^2.3.0",
|
|
8
8
|
"zod": "^4.3.6"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"
|
|
11
|
+
"aws-cdk-lib": "^2.243.0",
|
|
12
|
+
"constructs": "^10.5.1",
|
|
13
|
+
"cdk-ecr-deployment": "^4.1.2"
|
|
12
14
|
},
|
|
13
15
|
"main": "./dist/index.js",
|
|
14
16
|
"module": "./dist/index.mjs",
|