@trayio/cdk-build 0.9.0 → 0.10.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.
@@ -1 +1 @@
1
- {"version":3,"file":"ConnectorOperationSchemaGenerator.d.ts","sourceRoot":"","sources":["../../../src/connector/operation/ConnectorOperationSchemaGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AASvC,qBAAa,iCAAiC;IAC7C,OAAO,CAAC,iBAAiB,CAA4B;;IAMrD,2BAA2B,CAC1B,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,GACnB,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC;IAgDlC,OAAO,CAAC,cAAc;CActB"}
1
+ {"version":3,"file":"ConnectorOperationSchemaGenerator.d.ts","sourceRoot":"","sources":["../../../src/connector/operation/ConnectorOperationSchemaGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AASvC,qBAAa,iCAAiC;IAC7C,OAAO,CAAC,iBAAiB,CAAsB;;IAM/C,2BAA2B,CAC1B,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,GACnB,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC;IAgDlC,OAAO,CAAC,cAAc;CActB"}
@@ -28,12 +28,12 @@ const TE = __importStar(require("fp-ts/TaskEither"));
28
28
  const function_1 = require("fp-ts/function");
29
29
  const pathLib = __importStar(require("path"));
30
30
  const StringExtensions_1 = require("@trayio/tray-commons/string/StringExtensions");
31
- const TJSTraySchemaTypeTransformer_1 = require("@trayio/tray-schema/schema/TJSTraySchemaTypeTransformer");
31
+ const TJSTraySchemaGenerator_1 = require("@trayio/tray-schema/schema/TJSTraySchemaGenerator");
32
32
  const fse = __importStar(require("fs-extra"));
33
33
  const DynamicType_1 = require("@trayio/tray-commons/dynamictype/DynamicType");
34
34
  class ConnectorOperationSchemaGenerator {
35
35
  constructor() {
36
- this.schemaTransformer = new TJSTraySchemaTypeTransformer_1.TJSTraySchemaTypeTransformer();
36
+ this.schemaTransformer = new TJSTraySchemaGenerator_1.TJSTraySchemaGenerator();
37
37
  }
38
38
  generateSchemasForOperation(operationPath, operationName) {
39
39
  console.log(`Generating schemas for operation ${operationName}`); // TODO: Remove this and use a logger
@@ -60,7 +60,7 @@ class ConnectorOperationSchemaGenerator {
60
60
  }));
61
61
  }
62
62
  generateSchema(filePath, typeName, schemaFilePath) {
63
- return (0, function_1.pipe)(TE.fromEither(this.schemaTransformer.generateFromTypes(typeName, filePath)), TE.chain((schema) => TE.fromEither(DynamicType_1.DynamicType.writeToFile(schemaFilePath, schema))));
63
+ return (0, function_1.pipe)(TE.fromEither(this.schemaTransformer.generateFromType(typeName, filePath)), TE.chain((schema) => TE.fromEither(DynamicType_1.DynamicType.writeToFile(schemaFilePath, schema))));
64
64
  }
65
65
  }
66
66
  exports.ConnectorOperationSchemaGenerator = ConnectorOperationSchemaGenerator;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trayio/cdk-build",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Build utilities for CDK projects",
5
5
  "exports": {
6
6
  "./*": "./dist/*.js"