@fy-stack/types 0.0.1

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/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # types
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build types` to build the library.
@@ -0,0 +1,2 @@
1
+ export type * from './lib/types';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,aAAa,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import type { BehaviorOptions } from 'aws-cdk-lib/aws-cloudfront';
2
+ import type { IGrantable } from 'aws-cdk-lib/aws-iam';
3
+ import type { ITopicSubscription } from 'aws-cdk-lib/aws-sns';
4
+ import type { SubscriptionProps } from 'aws-cdk-lib/aws-sns-subscriptions';
5
+ export interface Attachable {
6
+ attachable(): Record<string, string>;
7
+ }
8
+ export interface Attach {
9
+ attach(attachable: Record<string, Attachable>): void;
10
+ }
11
+ export interface Grantable {
12
+ grantable(grant: IGrantable): void;
13
+ }
14
+ export interface Grant {
15
+ grant(...grantables: Grantable[]): void;
16
+ }
17
+ export interface CDNResource {
18
+ cloudfront(path: string): Record<string, BehaviorOptions>;
19
+ }
20
+ export interface Event {
21
+ subscription(props: SubscriptionProps): ITopicSubscription;
22
+ }
23
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,MAAM,WAAW,UAAU;IACzB,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,MAAM;IACrB,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,IAAI,CAAC;CACtD;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,GAAG,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;CACzC;AAED,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAC3D;AAED,MAAM,WAAW,KAAK;IACpB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,kBAAkB,CAAC;CAC5D"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@fy-stack/types",
3
+ "version": "0.0.1",
4
+ "dependencies": {
5
+ "tslib": "^2.3.0",
6
+ "aws-cdk-lib": "2.164.1"
7
+ },
8
+ "type": "commonjs",
9
+ "main": "./dist/index.js",
10
+ "typings": "./dist/index.d.ts",
11
+ "files": [
12
+ "dist",
13
+ "!**/*.tsbuildinfo"
14
+ ],
15
+ "nx": {
16
+ "name": "types"
17
+ }
18
+ }