@aws-amplify/graphql-transformer-interfaces 3.3.0-rds-4.0 → 3.3.0-rds-5.0

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/API.md CHANGED
@@ -154,6 +154,17 @@ export interface DataSourceOptions {
154
154
  export interface DataSourceProvider extends BackedDataSource {
155
155
  }
156
156
 
157
+ // @public (undocumented)
158
+ export interface DatasourceType {
159
+ // (undocumented)
160
+ dbType: DBType;
161
+ // (undocumented)
162
+ provisionDB: boolean;
163
+ }
164
+
165
+ // @public (undocumented)
166
+ export type DBType = 'DDB' | 'MySQL' | 'Postgres';
167
+
157
168
  // @public (undocumented)
158
169
  export interface DynamoDbDataSourceOptions extends DataSourceOptions {
159
170
  // (undocumented)
@@ -424,8 +435,6 @@ export interface TransformerContextProvider {
424
435
  //
425
436
  // (undocumented)
426
437
  metadata: TransformerContextMetadataProvider;
427
- // Warning: (ae-forgotten-export) The symbol "DatasourceType" needs to be exported by the entry point index.d.ts
428
- //
429
438
  // (undocumented)
430
439
  modelToDatasourceMap: Map<string, DatasourceType>;
431
440
  // (undocumented)
package/CHANGELOG.md CHANGED
@@ -3,10 +3,12 @@
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
- # [3.3.0-rds-4.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.2.1...@aws-amplify/graphql-transformer-interfaces@3.3.0-rds-4.0) (2023-10-19)
6
+ # [3.3.0-rds-5.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.2.1...@aws-amplify/graphql-transformer-interfaces@3.3.0-rds-5.0) (2023-11-01)
7
7
 
8
8
  ### Features
9
9
 
10
+ - add postgres engine and update types as needed ([#1979](https://github.com/aws-amplify/amplify-category-api/issues/1979)) ([5257d53](https://github.com/aws-amplify/amplify-category-api/commit/5257d53f1d4d02be71b34ddf6757f22dd5d74aff))
11
+ - Add SQL database support to AmplifyGraphqlApi construct ([#1986](https://github.com/aws-amplify/amplify-category-api/issues/1986)) ([2ff63a5](https://github.com/aws-amplify/amplify-category-api/commit/2ff63a540387d96cf10d8ae1975858a76d9ba045)), closes [#1917](https://github.com/aws-amplify/amplify-category-api/issues/1917) [#1983](https://github.com/aws-amplify/amplify-category-api/issues/1983)
10
12
  - **api:** add vpc endpoints for ssm ([5a4ffc4](https://github.com/aws-amplify/amplify-category-api/commit/5a4ffc4c1889536c8e1fdd1f31fe28ca4326100f))
11
13
  - **api:** custom queries support using sql directive ([5214037](https://github.com/aws-amplify/amplify-category-api/commit/52140374ca974956c5d5eac09fec91a51cfc9027))
12
14
 
@@ -1,4 +1,4 @@
1
- export { DataSourceProvider, TransformerDataSourceManagerProvider, AppSyncDataSourceType, DataSourceInstance, } from './transformer-datasource-provider';
1
+ export { DataSourceProvider, TransformerDataSourceManagerProvider, AppSyncDataSourceType, DataSourceInstance, DBType, DatasourceType, } from './transformer-datasource-provider';
2
2
  export { TransformerContextOutputProvider } from './transformer-context-output-provider';
3
3
  export { TransformerProviderRegistry } from './transformer-provider-registry';
4
4
  export { TransformerResolverProvider, TransformerResolversManagerProvider } from './transformer-resolver-provider';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transformer-context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oCAAoC,EACpC,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,2BAA2B,EAAE,mCAAmC,EAAE,MAAM,iCAAiC,CAAC;AACnH,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EACL,0BAA0B,EAC1B,6CAA6C,EAC7C,oCAAoC,EACpC,qCAAqC,EACrC,yCAAyC,EACzC,wCAAwC,EACxC,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transformer-context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oCAAoC,EACpC,qBAAqB,EACrB,kBAAkB,EAClB,MAAM,EACN,cAAc,GACf,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,2BAA2B,EAAE,mCAAmC,EAAE,MAAM,iCAAiC,CAAC;AACnH,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EACL,0BAA0B,EAC1B,6CAA6C,EAC7C,oCAAoC,EACpC,qCAAqC,EACrC,yCAAyC,EACzC,wCAAwC,EACxC,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transformer-context/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qFAK2C;AAFzC,wIAAA,qBAAqB,OAAA;AAMvB,+DAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transformer-context/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qFAO2C;AAJzC,wIAAA,qBAAqB,OAAA;AAQvB,+DAA6C"}
@@ -22,7 +22,7 @@ export interface TransformerDataSourceManagerProvider {
22
22
  }
23
23
  export interface DataSourceProvider extends BackedDataSource {
24
24
  }
25
- export type DBType = 'MySQL' | 'DDB';
25
+ export type DBType = 'DDB' | 'MySQL' | 'Postgres';
26
26
  export interface DatasourceType {
27
27
  dbType: DBType;
28
28
  provisionDB: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"transformer-datasource-provider.d.ts","sourceRoot":"","sources":["../../src/transformer-context/transformer-datasource-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEhF,oBAAY,qBAAqB;IAC/B,eAAe,oBAAoB;IACnC,oBAAoB,yBAAyB;IAC7C,UAAU,eAAe;IACzB,mBAAmB,wBAAwB;IAC3C,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,cAAc,GAAG,SAAS,GAAG,sBAAsB,CAAC;AAE1G,MAAM,WAAW,oCAAoC;IACnD,GAAG,CAAC,IAAI,EAAE,wBAAwB,GAAG,2BAA2B,EAAE,kBAAkB,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAChH,GAAG,CAAC,IAAI,EAAE,wBAAwB,GAAG,2BAA2B,GAAG,kBAAkB,CAAC;IACtF,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;CAAG;AAE/D,MAAM,MAAM,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAErC,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;CACtB"}
1
+ {"version":3,"file":"transformer-datasource-provider.d.ts","sourceRoot":"","sources":["../../src/transformer-context/transformer-datasource-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEhF,oBAAY,qBAAqB;IAC/B,eAAe,oBAAoB;IACnC,oBAAoB,yBAAyB;IAC7C,UAAU,eAAe;IACzB,mBAAmB,wBAAwB;IAC3C,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,cAAc,GAAG,SAAS,GAAG,sBAAsB,CAAC;AAE1G,MAAM,WAAW,oCAAoC;IACnD,GAAG,CAAC,IAAI,EAAE,wBAAwB,GAAG,2BAA2B,EAAE,kBAAkB,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAChH,GAAG,CAAC,IAAI,EAAE,wBAAwB,GAAG,2BAA2B,GAAG,kBAAkB,CAAC;IACtF,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;CAAG;AAK/D,MAAM,MAAM,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,CAAC;AAMlD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;CACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-transformer-interfaces",
3
- "version": "3.3.0-rds-4.0",
3
+ "version": "3.3.0-rds-5.0",
4
4
  "description": "Amplify GraphQL transformer interface definitions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -49,5 +49,5 @@
49
49
  ],
50
50
  "collectCoverage": true
51
51
  },
52
- "gitHead": "6061315de250612308d4517fe794d28a97d3a961"
52
+ "gitHead": "ddbbff11d6a070cb4d2b9708c60c734a5d139bfc"
53
53
  }
@@ -3,6 +3,8 @@ export {
3
3
  TransformerDataSourceManagerProvider,
4
4
  AppSyncDataSourceType,
5
5
  DataSourceInstance,
6
+ DBType,
7
+ DatasourceType,
6
8
  } from './transformer-datasource-provider';
7
9
  export { TransformerContextOutputProvider } from './transformer-context-output-provider';
8
10
  export { TransformerProviderRegistry } from './transformer-provider-registry';
@@ -27,8 +27,15 @@ export interface TransformerDataSourceManagerProvider {
27
27
 
28
28
  export interface DataSourceProvider extends BackedDataSource {}
29
29
 
30
- export type DBType = 'MySQL' | 'DDB';
30
+ /**
31
+ * Supported transformable database types.
32
+ */
33
+ export type DBType = 'DDB' | 'MySQL' | 'Postgres';
31
34
 
35
+ /**
36
+ * Configuration for a datasource. Defines the underlying database engine, and instructs the tranformer whether to provision the database
37
+ * storage or whether it already exists.
38
+ */
32
39
  export interface DatasourceType {
33
40
  dbType: DBType;
34
41
  provisionDB: boolean;