@fy-stack/app-construct 0.0.12 → 0.0.122
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 +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/lib/deno-api-construct.d.ts +19 -0
- package/dist/lib/deno-api-construct.d.ts.map +1 -0
- package/dist/lib/deno-api-construct.js +74 -0
- package/dist/lib/nest-construct.d.ts +3 -0
- package/dist/lib/nest-construct.d.ts.map +1 -1
- package/dist/lib/nest-construct.js +6 -0
- package/dist/lib/next-app-router-construct.d.ts +4 -2
- package/dist/lib/next-app-router-construct.d.ts.map +1 -1
- package/dist/lib/next-app-router-construct.js +3 -0
- package/dist/lib/types.d.ts +2 -2
- package/dist/lib/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,4 +2,6 @@ export { NestApiConstruct } from './lib/nest-api-construct';
|
|
|
2
2
|
export { NestConstruct } from './lib/nest-construct';
|
|
3
3
|
export { NextAppRouterConstruct } from './lib/next-app-router-construct';
|
|
4
4
|
export type { AppConstruct, AppProperties } from "./lib/types";
|
|
5
|
+
export { lambdaAttach } from "./lib/utils/lambda-attach";
|
|
6
|
+
export { lambdaGrant } from "./lib/utils/lambda-grant";
|
|
5
7
|
//# 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,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NextAppRouterConstruct = exports.NestConstruct = exports.NestApiConstruct = void 0;
|
|
3
|
+
exports.lambdaGrant = exports.lambdaAttach = exports.NextAppRouterConstruct = exports.NestConstruct = exports.NestApiConstruct = void 0;
|
|
4
4
|
var nest_api_construct_1 = require("./lib/nest-api-construct");
|
|
5
5
|
Object.defineProperty(exports, "NestApiConstruct", { enumerable: true, get: function () { return nest_api_construct_1.NestApiConstruct; } });
|
|
6
6
|
var nest_construct_1 = require("./lib/nest-construct");
|
|
7
7
|
Object.defineProperty(exports, "NestConstruct", { enumerable: true, get: function () { return nest_construct_1.NestConstruct; } });
|
|
8
8
|
var next_app_router_construct_1 = require("./lib/next-app-router-construct");
|
|
9
9
|
Object.defineProperty(exports, "NextAppRouterConstruct", { enumerable: true, get: function () { return next_app_router_construct_1.NextAppRouterConstruct; } });
|
|
10
|
+
var lambda_attach_1 = require("./lib/utils/lambda-attach");
|
|
11
|
+
Object.defineProperty(exports, "lambdaAttach", { enumerable: true, get: function () { return lambda_attach_1.lambdaAttach; } });
|
|
12
|
+
var lambda_grant_1 = require("./lib/utils/lambda-grant");
|
|
13
|
+
Object.defineProperty(exports, "lambdaGrant", { enumerable: true, get: function () { return lambda_grant_1.lambdaGrant; } });
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Attachable, Grantable } from '@fy-stack/types';
|
|
2
|
+
import type { HttpRouteIntegration } from 'aws-cdk-lib/aws-apigatewayv2';
|
|
3
|
+
import { BehaviorOptions } from 'aws-cdk-lib/aws-cloudfront';
|
|
4
|
+
import { Function } from 'aws-cdk-lib/aws-lambda';
|
|
5
|
+
import { ITopicSubscription, SubscriptionProps } from 'aws-cdk-lib/aws-sns';
|
|
6
|
+
import { Queue } from 'aws-cdk-lib/aws-sqs';
|
|
7
|
+
import { Construct } from 'constructs';
|
|
8
|
+
import { AppConstruct, AppProperties } from './types';
|
|
9
|
+
export declare class DenoApiConstruct extends Construct implements AppConstruct {
|
|
10
|
+
function: Function;
|
|
11
|
+
queue: Queue | undefined;
|
|
12
|
+
constructor(scope: Construct, id: string, props: AppProperties);
|
|
13
|
+
attach(attachable: Record<string, Attachable>): void;
|
|
14
|
+
grant(...grantables: Grantable[]): void;
|
|
15
|
+
subscription(props: SubscriptionProps): ITopicSubscription;
|
|
16
|
+
cloudfront(path: string): Record<string, BehaviorOptions>;
|
|
17
|
+
api(path: string): Record<string, HttpRouteIntegration>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=deno-api-construct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deno-api-construct.d.ts","sourceRoot":"","sources":["../../src/lib/deno-api-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAEL,eAAe,EAKhB,MAAM,4BAA4B,CAAC;AAGpC,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;AAEvC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAItD,qBAAa,gBACX,SAAQ,SACR,YAAW,YAAY;IAEhB,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;gBAEpB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa;IA2B9D,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;IAQ1D,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;IAqBzD,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;CAUxD"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DenoApiConstruct = void 0;
|
|
4
|
+
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
5
|
+
const aws_apigatewayv2_integrations_1 = require("aws-cdk-lib/aws-apigatewayv2-integrations");
|
|
6
|
+
const aws_cloudfront_1 = require("aws-cdk-lib/aws-cloudfront");
|
|
7
|
+
const aws_cloudfront_origins_1 = require("aws-cdk-lib/aws-cloudfront-origins");
|
|
8
|
+
const aws_ecr_assets_1 = require("aws-cdk-lib/aws-ecr-assets");
|
|
9
|
+
const aws_lambda_1 = require("aws-cdk-lib/aws-lambda");
|
|
10
|
+
const aws_lambda_event_sources_1 = require("aws-cdk-lib/aws-lambda-event-sources");
|
|
11
|
+
const aws_sns_subscriptions_1 = require("aws-cdk-lib/aws-sns-subscriptions");
|
|
12
|
+
const aws_sqs_1 = require("aws-cdk-lib/aws-sqs");
|
|
13
|
+
const constructs_1 = require("constructs");
|
|
14
|
+
const lambda_attach_1 = require("./utils/lambda-attach");
|
|
15
|
+
const lambda_grant_1 = require("./utils/lambda-grant");
|
|
16
|
+
class DenoApiConstruct extends constructs_1.Construct {
|
|
17
|
+
function;
|
|
18
|
+
queue;
|
|
19
|
+
constructor(scope, id, props) {
|
|
20
|
+
super(scope, id);
|
|
21
|
+
this.function = new aws_lambda_1.Function(this, `AppFunction`, {
|
|
22
|
+
memorySize: 512,
|
|
23
|
+
timeout: aws_cdk_lib_1.Duration.seconds(30),
|
|
24
|
+
code: aws_lambda_1.Code.fromAssetImage(props.output, {
|
|
25
|
+
file: props.buildPaths.dockerFile,
|
|
26
|
+
platform: aws_ecr_assets_1.Platform.LINUX_AMD64,
|
|
27
|
+
}),
|
|
28
|
+
handler: aws_lambda_1.Handler.FROM_IMAGE,
|
|
29
|
+
runtime: aws_lambda_1.Runtime.FROM_IMAGE,
|
|
30
|
+
});
|
|
31
|
+
if (props.queue) {
|
|
32
|
+
this.queue = new aws_sqs_1.Queue(this, 'AppQueue', {
|
|
33
|
+
visibilityTimeout: aws_cdk_lib_1.Duration.seconds(59),
|
|
34
|
+
});
|
|
35
|
+
this.function.addEventSource(new aws_lambda_event_sources_1.SqsEventSource(this.queue, {
|
|
36
|
+
batchSize: props.queue.batchSize,
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
attach(attachable) {
|
|
41
|
+
return (0, lambda_attach_1.lambdaAttach)(this.function, attachable);
|
|
42
|
+
}
|
|
43
|
+
grant(...grantables) {
|
|
44
|
+
return (0, lambda_grant_1.lambdaGrant)(this.function, grantables);
|
|
45
|
+
}
|
|
46
|
+
subscription(props) {
|
|
47
|
+
if (this.queue) {
|
|
48
|
+
return new aws_sns_subscriptions_1.SqsSubscription(this.queue, props);
|
|
49
|
+
}
|
|
50
|
+
return new aws_sns_subscriptions_1.LambdaSubscription(this.function, props);
|
|
51
|
+
}
|
|
52
|
+
cloudfront(path) {
|
|
53
|
+
this.function.addEnvironment('BASE_PATH', path);
|
|
54
|
+
const apiUrl = this.function.addFunctionUrl({
|
|
55
|
+
authType: aws_lambda_1.FunctionUrlAuthType.NONE,
|
|
56
|
+
});
|
|
57
|
+
const apiBehavior = {
|
|
58
|
+
origin: new aws_cloudfront_origins_1.FunctionUrlOrigin(apiUrl),
|
|
59
|
+
cachePolicy: aws_cloudfront_1.CachePolicy.CACHING_DISABLED,
|
|
60
|
+
allowedMethods: aws_cloudfront_1.AllowedMethods.ALLOW_ALL,
|
|
61
|
+
compress: true,
|
|
62
|
+
viewerProtocolPolicy: aws_cloudfront_1.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,
|
|
63
|
+
originRequestPolicy: aws_cloudfront_1.OriginRequestPolicy.ALL_VIEWER_EXCEPT_HOST_HEADER,
|
|
64
|
+
responseHeadersPolicy: aws_cloudfront_1.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS_WITH_PREFLIGHT_AND_SECURITY_HEADERS,
|
|
65
|
+
};
|
|
66
|
+
return { [`${path}/*`]: apiBehavior };
|
|
67
|
+
}
|
|
68
|
+
api(path) {
|
|
69
|
+
this.function.addEnvironment('BASE_PATH', path);
|
|
70
|
+
const integration = new aws_apigatewayv2_integrations_1.HttpLambdaIntegration('AppIntegration', this.function);
|
|
71
|
+
return { [`${path}/*`]: integration };
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.DenoApiConstruct = DenoApiConstruct;
|
|
@@ -26,6 +26,9 @@ export declare class NestConstruct extends Construct implements AppConstruct {
|
|
|
26
26
|
responseHeadersPolicy: cdk.aws_cloudfront.IResponseHeadersPolicy;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
+
api(path: string): {
|
|
30
|
+
[x: string]: cdk.aws_apigatewayv2_integrations.HttpLambdaIntegration;
|
|
31
|
+
};
|
|
29
32
|
static clean(output: string, name: string, command: string): {
|
|
30
33
|
serverOutput: string;
|
|
31
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nest-construct.d.ts","sourceRoot":"","sources":["../../src/lib/nest-construct.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"nest-construct.d.ts","sourceRoot":"","sources":["../../src/lib/nest-construct.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AAInC,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAItD,UAAU,KAAM,SAAQ,aAAa;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,aAAc,SAAQ,SAAU,YAAW,YAAY;IAC3D,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC;gBAExB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK;IAqDtD,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;IAO1D,UAAU,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;IAqBvB,GAAG,CAAC,IAAI,EAAE,MAAM;;;IAWhB,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;;;CAuB3D"}
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const child_process = tslib_1.__importStar(require("node:child_process"));
|
|
6
6
|
const fs = tslib_1.__importStar(require("node:fs"));
|
|
7
7
|
const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
|
|
8
|
+
const aws_apigatewayv2_integrations_1 = require("aws-cdk-lib/aws-apigatewayv2-integrations");
|
|
8
9
|
const cloudfront = tslib_1.__importStar(require("aws-cdk-lib/aws-cloudfront"));
|
|
9
10
|
const cloudfrontOrigin = tslib_1.__importStar(require("aws-cdk-lib/aws-cloudfront-origins"));
|
|
10
11
|
const lambda = tslib_1.__importStar(require("aws-cdk-lib/aws-lambda"));
|
|
@@ -79,6 +80,11 @@ class NestConstruct extends constructs_1.Construct {
|
|
|
79
80
|
};
|
|
80
81
|
return { [`${path}/*`]: apiBehavior };
|
|
81
82
|
}
|
|
83
|
+
api(path) {
|
|
84
|
+
this.function.addEnvironment('BASE_PATH', path);
|
|
85
|
+
const integration = new aws_apigatewayv2_integrations_1.HttpLambdaIntegration('AppIntegration', this.function);
|
|
86
|
+
return { [`${path}/*`]: integration };
|
|
87
|
+
}
|
|
82
88
|
static clean(output, name, command) {
|
|
83
89
|
const destination = `./dist/${name}`;
|
|
84
90
|
/* Delete previous cleaned files */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Attachable, Grantable } from '@fy-stack/types';
|
|
2
2
|
import * as cdk from 'aws-cdk-lib';
|
|
3
|
+
import type { HttpRouteIntegration } from 'aws-cdk-lib/aws-apigatewayv2';
|
|
3
4
|
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
|
4
5
|
import { ITopicSubscription } from 'aws-cdk-lib/aws-sns';
|
|
5
6
|
import * as sqs from 'aws-cdk-lib/aws-sqs';
|
|
6
7
|
import { Construct } from 'constructs';
|
|
7
8
|
import { AppConstruct, AppProperties } from './types';
|
|
8
|
-
export declare class NextAppRouterConstruct extends Construct implements AppConstruct
|
|
9
|
+
export declare class NextAppRouterConstruct extends Construct implements AppConstruct {
|
|
9
10
|
function: lambda.Function;
|
|
10
11
|
queue: sqs.Queue | undefined;
|
|
11
12
|
private readonly static;
|
|
@@ -13,6 +14,7 @@ export declare class NextAppRouterConstruct extends Construct implements AppCons
|
|
|
13
14
|
cloudfront(path: string): {
|
|
14
15
|
[x: string]: cdk.aws_cloudfront.BehaviorOptions;
|
|
15
16
|
};
|
|
17
|
+
api(path: string): Record<string, HttpRouteIntegration>;
|
|
16
18
|
attach(attachable: Record<string, Attachable>): void;
|
|
17
19
|
grant(...grants: Grantable[]): void;
|
|
18
20
|
subscription(): ITopicSubscription;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-app-router-construct.d.ts","sourceRoot":"","sources":["../../src/lib/next-app-router-construct.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"next-app-router-construct.d.ts","sourceRoot":"","sources":["../../src/lib/next-app-router-construct.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AACnC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGzE,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAGjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAItD,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;gBAEvB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa;IAyD9D,UAAU,CAAC,IAAI,EAAE,MAAM;;;IAwCvB,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAIvD,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,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;;;;;CAgC3D"}
|
|
@@ -92,6 +92,9 @@ class NextAppRouterConstruct extends constructs_1.Construct {
|
|
|
92
92
|
[`${path}/*.ico`]: staticBehavior,
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
+
api(path) {
|
|
96
|
+
throw new Error('api not supported for this construct');
|
|
97
|
+
}
|
|
95
98
|
attach(attachable) {
|
|
96
99
|
return (0, lambda_attach_1.lambdaAttach)(this.function, attachable);
|
|
97
100
|
}
|
package/dist/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Attach, CDNResource, Event, Grant } from '@fy-stack/types';
|
|
1
|
+
import { ApiResource, Attach, CDNResource, Event, Grant } from '@fy-stack/types';
|
|
2
2
|
import type { Function } from 'aws-cdk-lib/aws-lambda';
|
|
3
3
|
import { Queue } from 'aws-cdk-lib/aws-sqs';
|
|
4
4
|
export type AppProperties = {
|
|
@@ -9,7 +9,7 @@ export type AppProperties = {
|
|
|
9
9
|
buildPaths: Record<string, string>;
|
|
10
10
|
output: string;
|
|
11
11
|
};
|
|
12
|
-
export interface AppConstruct extends Attach, Grant, CDNResource, Event {
|
|
12
|
+
export interface AppConstruct extends Attach, Grant, CDNResource, Event, ApiResource {
|
|
13
13
|
function: Function;
|
|
14
14
|
queue?: Queue;
|
|
15
15
|
}
|
package/dist/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW;IAClF,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAA;CACd"}
|
package/package.json
CHANGED