|
10 | 10 | "browser": "dist/cactus-cmd-api-server.web.umd.js",
|
11 | 11 | "browserMinified": "dist/cactus-cmd-api-server.web.umd.min.js",
|
12 | 12 | "module": "dist/lib/main/typescript/index.js",
|
13 |
| - "types": "dist/types/main/typescript/index.d.ts", |
| 13 | + "types": "dist/lib/main/typescript/index.d.ts", |
14 | 14 | "scripts": {
|
15 | 15 | "generate-sdk": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected",
|
16 | 16 | "codegen:openapi": "npm run generate-sdk",
|
| 17 | + "proto:openapi": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g protobuf-schema --additional-properties=packageName=org.hyperledger.cactus.cmd_api_server -o ./src/main/proto/generated/openapi/", |
| 18 | + "proto:protoc-gen-ts": "yarn run grpc_tools_node_protoc --plugin=protoc-gen-ts=../../node_modules/.bin/protoc-gen-ts --js_out=import_style=commonjs,binary:./src/main/typescript/generated/proto/protoc-gen-ts/ --ts_out=grpc_js:./src/main/typescript/generated/proto/protoc-gen-ts/ --grpc_out=grpc_js:./src/main/typescript/generated/proto/protoc-gen-ts/ --proto_path ./src/main/proto/generated/openapi/ --proto_path ./src/main/proto/generated/openapi/models/ --proto_path ./src/main/proto/generated/openapi/services/ ./src/main/proto/generated/openapi/models/*.proto ./src/main/proto/generated/openapi/services/*.proto", |
| 19 | + "codegen:proto": "run-s proto:openapi proto:protoc-gen-ts", |
17 | 20 | "codegen": "run-p 'codegen:*'",
|
18 | 21 | "watch": "npm-watch",
|
19 | 22 | "webpack": "npm-run-all webpack:dev webpack:prod",
|
|
72 | 75 | },
|
73 | 76 | "homepage": "https://github.com/hyperledger/cactus#readme",
|
74 | 77 | "dependencies": {
|
| 78 | + "@grpc/grpc-js": "1.3.6", |
| 79 | + "@grpc/proto-loader": "0.6.4", |
75 | 80 | "@hyperledger/cactus-common": "0.7.0",
|
76 | 81 | "@hyperledger/cactus-core": "0.7.0",
|
77 | 82 | "@hyperledger/cactus-core-api": "0.7.0",
|
|
108 | 113 | "@types/express": "4.17.8",
|
109 | 114 | "@types/express-http-proxy": "1.6.1",
|
110 | 115 | "@types/express-jwt": "6.0.1",
|
| 116 | + "@types/google-protobuf": "3.15.3", |
111 | 117 | "@types/jsonwebtoken": "8.5.1",
|
112 | 118 | "@types/multer": "1.4.5",
|
113 | 119 | "@types/node-forge": "0.9.3",
|
|
0 commit comments