@goldstack/template-lambda-api 0.4.45 → 0.4.48

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.
@@ -2,47 +2,8 @@ import { AWSDeployment } from '@goldstack/infra-aws';
2
2
  import { TerraformDeployment } from '@goldstack/utils-terraform';
3
3
  import { Deployment, DeploymentConfiguration } from '@goldstack/infra';
4
4
  import { Package, Configuration } from '@goldstack/utils-package';
5
- /**
6
- * The prefix to be used for names of the generated lambdas for the API endpoints.
7
- *
8
- * @title Lambda Name Prefix
9
- * @pattern ^[A-Za-z0-9-_]*$
10
- */
11
- declare type LambdaNamePrefix = string;
12
- /**
13
- * The domain name that the API should be deployed to (e.g. api.mysite.com)
14
- *
15
- * @title API Domain
16
- * @pattern ^[^\s]*
17
- */
18
- export declare type APIDomain = string;
19
- /**
20
- * The domain name of the Route 53 hosted zone that the domain for this API should be added to.
21
- *
22
- * @title Hosted Zone Domain
23
- * @pattern ^[^\s]*
24
- */
25
- export declare type HostedZoneDomain = string;
26
- /**
27
- * Optional URL for an UI that should be allowed to access this server.
28
- *
29
- * @title CORS Header
30
- * @pattern ^[^\s]*
31
- */
32
- export declare type CorsHeader = string;
33
- export interface LambdaRouteConfig {
34
- function_name: string;
35
- route: string;
36
- }
37
- export declare type LambdaRoutesConfig = {
38
- [key: string]: LambdaRouteConfig;
39
- };
40
- export interface ThisDeploymentConfiguration extends DeploymentConfiguration {
41
- lambdaNamePrefix?: LambdaNamePrefix;
42
- apiDomain: APIDomain;
43
- hostedZoneDomain: HostedZoneDomain;
44
- cors?: CorsHeader;
45
- lambdas: LambdaRoutesConfig;
5
+ import { LambdaApiDeploymentConfiguration } from '@goldstack/utils-aws-lambda';
6
+ export interface ThisDeploymentConfiguration extends LambdaApiDeploymentConfiguration, DeploymentConfiguration {
46
7
  }
47
8
  export interface ThisDeployment extends Deployment, AWSDeployment, TerraformDeployment {
48
9
  configuration: ThisDeploymentConfiguration;
@@ -1 +1 @@
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gB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goldstack/template-lambda-api",
3
- "version": "0.4.45",
3
+ "version": "0.4.48",
4
4
  "description": "Companion for project templates for deploying Lambdas as a REST API",
5
5
  "keywords": [
6
6
  "goldstack",
@@ -41,16 +41,17 @@
41
41
  "version:apply:force": "yarn version $@ && yarn version apply"
42
42
  },
43
43
  "dependencies": {
44
- "@goldstack/infra": "0.3.37",
45
- "@goldstack/infra-aws": "0.3.46",
46
- "@goldstack/utils-package": "0.3.40",
47
- "@goldstack/utils-terraform": "0.3.70",
44
+ "@goldstack/infra": "0.3.38",
45
+ "@goldstack/infra-aws": "0.3.47",
46
+ "@goldstack/utils-aws-lambda": "0.1.34",
47
+ "@goldstack/utils-package": "0.3.41",
48
+ "@goldstack/utils-terraform": "0.3.71",
48
49
  "source-map-support": "^0.5.21"
49
50
  },
50
51
  "devDependencies": {
51
52
  "@goldstack/utils-docs-cli": "0.3.11",
52
- "@goldstack/utils-git": "0.1.35",
53
- "@goldstack/utils-package-config-generate": "0.2.16",
53
+ "@goldstack/utils-git": "0.1.36",
54
+ "@goldstack/utils-package-config-generate": "0.2.17",
54
55
  "@types/aws-lambda": "^8.10.88",
55
56
  "@types/jest": "^27.5.1",
56
57
  "@types/node": "^17.0.33",
@@ -60,8 +61,8 @@
60
61
  "rimraf": "^3.0.2",
61
62
  "ts-jest": "^28.0.2",
62
63
  "ts-json-schema-generator": "^1.0.0",
63
- "ts-node": "^10.8.0",
64
- "typescript": "^4.6.4"
64
+ "ts-node": "^10.9.1",
65
+ "typescript": "^4.7.4"
65
66
  },
66
67
  "publishConfig": {
67
68
  "main": "dist/src/templateLambdaApi.js"