@fy-stack/fullstack-construct 0.0.11 → 0.0.121

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.
@@ -4,6 +4,7 @@ import { AuthConstruct } from '@fy-stack/auth-construct';
4
4
  import { StorageConstruct } from '@fy-stack/storage-construct';
5
5
  import { DatabaseConstruct } from '@fy-stack/database-construct';
6
6
  import { EventConstruct } from '@fy-stack/event-construct';
7
+ import { SecretsConstruct } from '@fy-stack/secret-construct';
7
8
  import { CDNConstruct } from '@fy-stack/cdn-construct';
8
9
  import { type AppConstruct } from '@fy-stack/app-construct';
9
10
  export declare class FullStackConstruct extends Construct {
@@ -13,6 +14,7 @@ export declare class FullStackConstruct extends Construct {
13
14
  event?: EventConstruct;
14
15
  apps?: Record<string, AppConstruct>;
15
16
  cdn?: CDNConstruct;
17
+ secret: SecretsConstruct;
16
18
  constructor(scope: Construct, id: string, props: FullStackConstructProps);
17
19
  }
18
20
  //# sourceMappingURL=fullstack-construct.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fullstack-construct.d.ts","sourceRoot":"","sources":["../../src/lib/fullstack-construct.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAW,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,yBAAyB,CAAC;AAQjC,qBAAa,kBAAmB,SAAQ,SAAS;IACxC,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,OA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KAAK,EAAE,uBAAuB;CA8GzE"}
@@ -24,6 +24,7 @@ class FullStackConstruct extends constructs_1.Construct {
24
24
  event;
25
25
  apps;
26
26
  cdn;
27
+ secret;
27
28
  constructor(scope, id, props) {
28
29
  super(scope, id);
29
30
  if (props.auth) {
@@ -62,7 +63,7 @@ class FullStackConstruct extends constructs_1.Construct {
62
63
  events: props.events,
63
64
  });
64
65
  }
65
- const secret = new secret_construct_1.SecretsConstruct(this, 'SecretsStack', {
66
+ this.secret = new secret_construct_1.SecretsConstruct(this, 'SecretsStack', {
66
67
  resources: {
67
68
  auth: this.auth,
68
69
  database: this.database,
@@ -86,6 +87,8 @@ class FullStackConstruct extends constructs_1.Construct {
86
87
  storage: this.storage,
87
88
  database: this.database,
88
89
  auth: this.auth,
90
+ secrets: this.secret,
91
+ event: this.event
89
92
  };
90
93
  for (const i in props.apps) {
91
94
  this.apps?.[i]?.attach(Object.fromEntries(Object.entries(props.apps[i]?.attachment ?? {})
@@ -97,7 +100,7 @@ class FullStackConstruct extends constructs_1.Construct {
97
100
  }
98
101
  new cdk.CfnOutput(this, 'App Secrets', {
99
102
  key: 'appSecrets',
100
- value: secret.secrets.secretName,
103
+ value: this.secret.secrets.secretName,
101
104
  });
102
105
  }
103
106
  }
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@fy-stack/fullstack-construct",
3
- "version": "0.0.11",
3
+ "version": "0.0.121",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0",
6
- "@fy-stack/auth-construct": "0.0.11",
7
- "@fy-stack/storage-construct": "0.0.11",
8
- "@fy-stack/database-construct": "0.0.11",
9
- "@fy-stack/event-construct": "0.0.11",
10
- "@fy-stack/secret-construct": "0.0.11",
11
- "@fy-stack/cdn-construct": "0.0.11",
12
- "@fy-stack/types": "0.0.11"
6
+ "@fy-stack/app-construct": "0.0.121",
7
+ "@fy-stack/auth-construct": "0.0.121",
8
+ "@fy-stack/storage-construct": "0.0.121",
9
+ "@fy-stack/database-construct": "0.0.121",
10
+ "@fy-stack/event-construct": "0.0.121",
11
+ "@fy-stack/secret-construct": "0.0.121",
12
+ "@fy-stack/cdn-construct": "0.0.121",
13
+ "@fy-stack/types": "0.0.121"
13
14
  },
14
15
  "peerDependencies": {
15
16
  "aws-cdk-lib": "2.164.1",