@aws-amplify/graphql-transformer-interfaces 2.1.0-cdkv2.2 → 2.1.1-alpha.5

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/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.1.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.1.0-beta.4...@aws-amplify/graphql-transformer-interfaces@2.1.0) (2023-03-01)
7
+
8
+ **Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
9
+
10
+ # [2.1.0-beta.6](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.1.0-beta.4...@aws-amplify/graphql-transformer-interfaces@2.1.0-beta.6) (2023-02-21)
11
+
12
+ **Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
13
+
14
+ # [2.1.0-beta.5](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.1.0-beta.4...@aws-amplify/graphql-transformer-interfaces@2.1.0-beta.5) (2023-02-15)
15
+
16
+ **Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
17
+
18
+ # [2.1.0-beta.4](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@1.14.12...@aws-amplify/graphql-transformer-interfaces@2.1.0-beta.4) (2023-02-03)
19
+
20
+ ### Bug Fixes
21
+
22
+ - lock CDK v2 version ([#923](https://github.com/aws-amplify/amplify-category-api/issues/923)) ([2afe40c](https://github.com/aws-amplify/amplify-category-api/commit/2afe40cf13e7d1ee7db37988b9b3297768c7bd0a))
23
+
24
+ ### Features
25
+
26
+ - migrate index and model transformers to CDK v2 ([#860](https://github.com/aws-amplify/amplify-category-api/issues/860)) ([886ab6c](https://github.com/aws-amplify/amplify-category-api/commit/886ab6c1eb699f9a09f273c76b3c419c73004f9b))
27
+
28
+ # [2.1.0-beta.3](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.1.0-beta.0...@aws-amplify/graphql-transformer-interfaces@2.1.0-beta.3) (2022-12-27)
29
+
30
+ **Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
31
+
32
+ # [2.1.0-beta.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.1.0-beta.0...@aws-amplify/graphql-transformer-interfaces@2.1.0-beta.2) (2022-12-12)
33
+
34
+ **Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
35
+
36
+ # [2.1.0-beta.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.1.0-beta.0...@aws-amplify/graphql-transformer-interfaces@2.1.0-beta.1) (2022-11-30)
37
+
38
+ **Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
39
+
40
+ # [2.1.0-beta.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.1.0-cdkv2.2...@aws-amplify/graphql-transformer-interfaces@2.1.0-beta.0) (2022-11-18)
41
+
42
+ **Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
43
+
6
44
  # [2.1.0-cdkv2.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@1.14.9...@aws-amplify/graphql-transformer-interfaces@2.1.0-cdkv2.2) (2022-11-15)
7
45
 
8
46
  ### Bug Fixes
@@ -25,6 +63,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
25
63
 
26
64
  - migrate index and model transformers to CDK v2 ([#860](https://github.com/aws-amplify/amplify-category-api/issues/860)) ([886ab6c](https://github.com/aws-amplify/amplify-category-api/commit/886ab6c1eb699f9a09f273c76b3c419c73004f9b))
27
65
 
66
+ ## [1.14.12](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@1.14.11...@aws-amplify/graphql-transformer-interfaces@1.14.12) (2023-01-26)
67
+
68
+ **Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
69
+
70
+ ## [1.14.11](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@1.14.10...@aws-amplify/graphql-transformer-interfaces@1.14.11) (2023-01-12)
71
+
72
+ **Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
73
+
74
+ ## [1.14.10](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@1.14.9...@aws-amplify/graphql-transformer-interfaces@1.14.10) (2023-01-12)
75
+
76
+ **Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
77
+
28
78
  ## [1.14.9](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@1.14.8...@aws-amplify/graphql-transformer-interfaces@1.14.9) (2022-11-08)
29
79
 
30
80
  **Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
@@ -0,0 +1,34 @@
1
+ export interface Template {
2
+ AWSTemplateFormatVersion?: string;
3
+ Description?: string;
4
+ Metadata?: Record<string, any>;
5
+ Parameters?: Record<string, any>;
6
+ Mappings?: {
7
+ [key: string]: {
8
+ [key: string]: Record<string, string | number | string[]>;
9
+ };
10
+ };
11
+ Conditions?: Record<string, any>;
12
+ Transform?: any;
13
+ Resources?: Record<string, any>;
14
+ Outputs?: Record<string, any>;
15
+ }
16
+ export interface StackMapping {
17
+ [resourceId: string]: string;
18
+ }
19
+ export interface ResolversFunctionsAndSchema {
20
+ resolvers: Record<string, string>;
21
+ pipelineFunctions: Record<string, string>;
22
+ functions: Record<string, string>;
23
+ schema: string;
24
+ userOverriddenSlots: string[];
25
+ }
26
+ export interface NestedStacks {
27
+ rootStack: Template;
28
+ stacks: Record<string, Template>;
29
+ stackMapping: Record<string, string>;
30
+ }
31
+ export interface DeploymentResources extends ResolversFunctionsAndSchema, NestedStacks {
32
+ stackMapping: StackMapping;
33
+ }
34
+ //# sourceMappingURL=deployment-resources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-resources.d.ts","sourceRoot":"","sources":["../src/deployment-resources.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,QAAQ,CAAC,EAAE;QACT,CAAC,GAAG,EAAE,MAAM,GAAG;YACb,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;SAC3D,CAAC;KACH,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,YAAY;IAC3B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,2BAA2B;IAE1C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAElC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE1C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAElC,MAAM,EAAE,MAAM,CAAC;IAEf,mBAAmB,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,YAAY;IAE3B,SAAS,EAAE,QAAQ,CAAC;IAEpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAEjC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAKD,MAAM,WAAW,mBAAoB,SAAQ,2BAA2B,EAAE,YAAY;IAEpF,YAAY,EAAE,YAAY,CAAC;CAC5B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=deployment-resources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-resources.js","sourceRoot":"","sources":["../src/deployment-resources.ts"],"names":[],"mappings":""}
package/lib/index.d.ts CHANGED
@@ -4,4 +4,5 @@ export { MutationFieldType, QueryFieldType, SubscriptionFieldType, TransformerMo
4
4
  export { FeatureFlagProvider } from './feature-flag-provider';
5
5
  export { GraphQLAPIProvider, AppSyncFunctionConfigurationProvider, DataSourceOptions, MappingTemplateProvider, S3MappingTemplateProvider, S3MappingFunctionCodeProvider, InlineMappingTemplateProvider, APIIAMResourceProvider, TemplateType as MappingTemplateType, AppSyncAuthConfiguration, AppSyncAuthConfigurationAPIKeyEntry, AppSyncAuthConfigurationEntry, AppSyncAuthConfigurationIAMEntry, ApiKeyConfig, AppSyncAuthConfigurationOIDCEntry, AppSyncAuthConfigurationUserPoolEntry, AppSyncAuthMode, UserPoolConfig, SearchableDataSourceOptions, } from './graphql-api-provider';
6
6
  export { TransformHostProvider, DynamoDbDataSourceOptions } from './transform-host-provider';
7
+ export { DeploymentResources, NestedStacks, ResolversFunctionsAndSchema, StackMapping, Template, } from './deployment-resources';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;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AE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAE7F,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,2BAA2B,EAC3B,YAAY,EACZ,QAAQ,GACT,MAAM,wBAAwB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-transformer-interfaces",
3
- "version": "2.1.0-cdkv2.2",
3
+ "version": "2.1.1-alpha.5+d226d0be4",
4
4
  "description": "Amplify GraphQL transformer interface definitions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,13 +23,14 @@
23
23
  "scripts": {
24
24
  "build": "tsc",
25
25
  "watch": "tsc -w",
26
- "clean": "rimraf ./lib"
26
+ "clean": "rimraf ./lib",
27
+ "extract-api": "ts-node ../../scripts/extract-api.ts"
27
28
  },
28
29
  "dependencies": {
29
- "@aws-cdk/aws-appsync-alpha": "~2.44.0-alpha.0",
30
- "aws-cdk-lib": "~2.44.0",
30
+ "@aws-cdk/aws-appsync-alpha": "~2.53.0-alpha.0",
31
+ "aws-cdk-lib": "~2.53.0",
31
32
  "constructs": "^10.0.5",
32
- "graphql": "^14.5.8"
33
+ "graphql": "^15.5.0"
33
34
  },
34
35
  "jest": {
35
36
  "transform": {
@@ -47,5 +48,5 @@
47
48
  ],
48
49
  "collectCoverage": true
49
50
  },
50
- "gitHead": "a0a013970efc5e149997bdf1b6d67c22e8b7a3c8"
51
+ "gitHead": "d226d0be4bd07c92594122137b45b09a1954d525"
51
52
  }
@@ -0,0 +1,49 @@
1
+ export interface Template {
2
+ AWSTemplateFormatVersion?: string;
3
+ Description?: string;
4
+ Metadata?: Record<string, any>;
5
+ Parameters?: Record<string, any>;
6
+ Mappings?: {
7
+ [key: string]: {
8
+ [key: string]: Record<string, string | number | string[]>;
9
+ };
10
+ };
11
+ Conditions?: Record<string, any>;
12
+ Transform?: any;
13
+ Resources?: Record<string, any>;
14
+ Outputs?: Record<string, any>;
15
+ }
16
+
17
+ export interface StackMapping {
18
+ [resourceId: string]: string;
19
+ }
20
+
21
+ export interface ResolversFunctionsAndSchema {
22
+ // Resolver templates keyed by their filename.
23
+ resolvers: Record<string, string>;
24
+ // Contains mapping templates for pipeline functions.
25
+ pipelineFunctions: Record<string, string>;
26
+ // Code for any functions that need to be deployed.
27
+ functions: Record<string, string>;
28
+ // The full GraphQL schema.
29
+ schema: string;
30
+ // List of the user overridden slots
31
+ userOverriddenSlots: string[];
32
+ }
33
+
34
+ export interface NestedStacks {
35
+ // The root stack template.
36
+ rootStack: Template;
37
+ // All the nested stack templates.
38
+ stacks: Record<string, Template>;
39
+ // The full stack mapping for the deployment.
40
+ stackMapping: Record<string, string>;
41
+ }
42
+
43
+ /**
44
+ * The full set of resources needed for the deployment.
45
+ */
46
+ export interface DeploymentResources extends ResolversFunctionsAndSchema, NestedStacks {
47
+ // The full stack mapping for the deployment.
48
+ stackMapping: StackMapping;
49
+ }
@@ -7,7 +7,7 @@ import {
7
7
  import { Grant, IGrantable, IRole } from 'aws-cdk-lib/aws-iam';
8
8
  import { TransformHostProvider } from './transform-host-provider';
9
9
 
10
- // Auth Config
10
+ // Auth Config Modes
11
11
  export type AppSyncAuthMode = 'API_KEY' | 'AMAZON_COGNITO_USER_POOLS' | 'AWS_IAM' | 'OPENID_CONNECT' | 'AWS_LAMBDA';
12
12
  export type AppSyncAuthConfiguration = {
13
13
  defaultAuthentication: AppSyncAuthConfigurationEntry;
package/src/index.ts CHANGED
@@ -33,3 +33,11 @@ export {
33
33
  } from './graphql-api-provider';
34
34
 
35
35
  export { TransformHostProvider, DynamoDbDataSourceOptions } from './transform-host-provider';
36
+
37
+ export {
38
+ DeploymentResources,
39
+ NestedStacks,
40
+ ResolversFunctionsAndSchema,
41
+ StackMapping,
42
+ Template,
43
+ } from './deployment-resources';