@fy-stack/fullstack-construct 0.0.123 → 0.0.124

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.
@@ -1 +1 @@
1
- {"version":3,"file":"fullstack-construct.d.ts","sourceRoot":"","sources":["../../src/lib/fullstack-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EACL,KAAK,YAAY,EAIlB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAW,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAU3D,qBAAa,kBAAmB,SAAQ,SAAS;IACxC,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACpC,GAAG,CAAC,EAAE,YAAY,CAAC;IACnB,GAAG,CAAC,EAAE,mBAAmB,CAAC;IAC1B,MAAM,EAAE,gBAAgB,CAAC;gBAEpB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,uBAAuB;CA4HzE"}
1
+ {"version":3,"file":"fullstack-construct.d.ts","sourceRoot":"","sources":["../../src/lib/fullstack-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EACL,KAAK,YAAY,EAIlB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAW,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAU3D,qBAAa,kBAAmB,SAAQ,SAAS;IACxC,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACpC,GAAG,CAAC,EAAE,YAAY,CAAC;IACnB,GAAG,CAAC,EAAE,mBAAmB,CAAC;IAC1B,MAAM,EAAE,gBAAgB,CAAC;gBAEpB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,uBAAuB;CAwGzE"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FullStackConstruct = void 0;
4
- const tslib_1 = require("tslib");
5
4
  const apigateway_construct_1 = require("@fy-stack/apigateway-construct");
6
5
  const app_construct_1 = require("@fy-stack/app-construct");
7
6
  const auth_construct_1 = require("@fy-stack/auth-construct");
@@ -10,7 +9,6 @@ const database_construct_1 = require("@fy-stack/database-construct");
10
9
  const event_construct_1 = require("@fy-stack/event-construct");
11
10
  const secret_construct_1 = require("@fy-stack/secret-construct");
12
11
  const storage_construct_1 = require("@fy-stack/storage-construct");
13
- const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
14
12
  const constructs_1 = require("constructs");
15
13
  const types_1 = require("./types");
16
14
  const deno_api_construct_1 = require("@fy-stack/app-construct/dist/lib/deno-api-construct");
@@ -32,20 +30,16 @@ class FullStackConstruct extends constructs_1.Construct {
32
30
  constructor(scope, id, props) {
33
31
  super(scope, id);
34
32
  if (props.auth) {
35
- this.auth = new auth_construct_1.AuthConstruct(this, props.appId + 'AuthStack', {
33
+ this.auth = new auth_construct_1.AuthConstruct(this, props.appId + 'AuthConstruct', {
36
34
  groups: props.auth.groups,
37
35
  });
38
36
  }
39
37
  if (props.storage) {
40
- this.storage = new storage_construct_1.StorageConstruct(this, 'StorageStack', props.storage);
38
+ this.storage = new storage_construct_1.StorageConstruct(this, 'StorageConstruct', props.storage);
41
39
  }
42
40
  /* create secrets for test or production environments */
43
41
  if (props.database) {
44
- this.database = new database_construct_1.DatabaseConstruct(this, 'DatabaseStack');
45
- new cdk.CfnOutput(this, 'Database Secrets', {
46
- key: 'dbSecrets',
47
- value: this.database.dbSecrets.secretName,
48
- });
42
+ this.database = new database_construct_1.DatabaseConstruct(this, 'DatabaseConstruct');
49
43
  }
50
44
  if (props.apps) {
51
45
  const apps = {};
@@ -68,12 +62,12 @@ class FullStackConstruct extends constructs_1.Construct {
68
62
  this.apps = apps;
69
63
  }
70
64
  if (props.events) {
71
- this.event = new event_construct_1.EventConstruct(this, 'EventStack', {
65
+ this.event = new event_construct_1.EventConstruct(this, 'EventConstruct', {
72
66
  resources: this.apps,
73
67
  events: props.events,
74
68
  });
75
69
  }
76
- this.secret = new secret_construct_1.SecretsConstruct(this, 'SecretsStack', {
70
+ this.secret = new secret_construct_1.SecretsConstruct(this, 'SecretConstruct', {
77
71
  resources: {
78
72
  auth: this.auth,
79
73
  database: this.database,
@@ -83,24 +77,16 @@ class FullStackConstruct extends constructs_1.Construct {
83
77
  secrets: props.secrets,
84
78
  });
85
79
  if (props.cdn) {
86
- this.cdn = new cdn_construct_1.CDNConstruct(this, 'CDNStack', {
80
+ this.cdn = new cdn_construct_1.CDNConstruct(this, 'CDNConstruct', {
87
81
  routes: props.cdn.routes,
88
82
  resources: { ...this.apps, uploads: this.storage },
89
83
  });
90
- new cdk.CfnOutput(this, 'CDN Url', {
91
- key: 'cdnUrl',
92
- value: 'https://' + this.cdn.distribution.domainName,
93
- });
94
84
  }
95
85
  if (props.api) {
96
- this.api = new apigateway_construct_1.ApiGatewayConstruct(this, 'CDNStack', {
86
+ this.api = new apigateway_construct_1.ApiGatewayConstruct(this, 'ApiConstruct', {
97
87
  routes: props.api.routes,
98
88
  resources: this.apps,
99
89
  });
100
- new cdk.CfnOutput(this, 'Api Url', {
101
- key: 'apiUrl',
102
- value: this.api.api.apiEndpoint,
103
- });
104
90
  }
105
91
  const resources = {
106
92
  storage: this.storage,
@@ -117,10 +103,6 @@ class FullStackConstruct extends constructs_1.Construct {
117
103
  ?.map((val) => resources[val])
118
104
  .filter((v) => !!v) ?? []));
119
105
  }
120
- new cdk.CfnOutput(this, 'App Secrets', {
121
- key: 'appSecrets',
122
- value: this.secret.secrets.secretName,
123
- });
124
106
  }
125
107
  }
126
108
  exports.FullStackConstruct = FullStackConstruct;
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@fy-stack/fullstack-construct",
3
- "version": "0.0.123",
3
+ "version": "0.0.124",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0",
6
- "@fy-stack/auth-construct": "0.0.122",
7
- "@fy-stack/storage-construct": "0.0.122",
8
- "@fy-stack/database-construct": "0.0.122",
9
- "@fy-stack/event-construct": "0.0.122",
10
- "@fy-stack/secret-construct": "0.0.122",
11
- "@fy-stack/cdn-construct": "0.0.122",
12
- "@fy-stack/apigateway-construct": "0.0.122",
13
- "@fy-stack/types": "0.0.122",
14
- "@fy-stack/app-construct": "0.0.123"
6
+ "@fy-stack/auth-construct": "0.0.124",
7
+ "@fy-stack/storage-construct": "0.0.124",
8
+ "@fy-stack/database-construct": "0.0.124",
9
+ "@fy-stack/event-construct": "0.0.124",
10
+ "@fy-stack/secret-construct": "0.0.124",
11
+ "@fy-stack/cdn-construct": "0.0.124",
12
+ "@fy-stack/apigateway-construct": "0.0.124",
13
+ "@fy-stack/types": "0.0.124",
14
+ "@fy-stack/app-construct": "0.0.124"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "aws-cdk-lib": "2.164.1",