diff --git a/src/v1/text_to_speech_client.ts b/src/v1/text_to_speech_client.ts index a3bcf9ba..b715d4f8 100644 --- a/src/v1/text_to_speech_client.ts +++ b/src/v1/text_to_speech_client.ts @@ -322,9 +322,10 @@ export class TextToSpeechClient { ): Promise< [ protosTypes.google.cloud.texttospeech.v1.ISynthesizeSpeechResponse, - + ( | protosTypes.google.cloud.texttospeech.v1.ISynthesizeSpeechRequest - | undefined, + | undefined + ), {} | undefined ] >; @@ -375,9 +376,10 @@ export class TextToSpeechClient { ): Promise< [ protosTypes.google.cloud.texttospeech.v1.ISynthesizeSpeechResponse, - + ( | protosTypes.google.cloud.texttospeech.v1.ISynthesizeSpeechRequest - | undefined, + | undefined + ), {} | undefined ] > | void { diff --git a/src/v1beta1/text_to_speech_client.ts b/src/v1beta1/text_to_speech_client.ts index 3edde213..9eb54fbb 100644 --- a/src/v1beta1/text_to_speech_client.ts +++ b/src/v1beta1/text_to_speech_client.ts @@ -250,9 +250,10 @@ export class TextToSpeechClient { ): Promise< [ protosTypes.google.cloud.texttospeech.v1beta1.IListVoicesResponse, - + ( | protosTypes.google.cloud.texttospeech.v1beta1.IListVoicesRequest - | undefined, + | undefined + ), {} | undefined ] >; @@ -305,9 +306,10 @@ export class TextToSpeechClient { ): Promise< [ protosTypes.google.cloud.texttospeech.v1beta1.IListVoicesResponse, - + ( | protosTypes.google.cloud.texttospeech.v1beta1.IListVoicesRequest - | undefined, + | undefined + ), {} | undefined ] > | void { @@ -328,9 +330,10 @@ export class TextToSpeechClient { ): Promise< [ protosTypes.google.cloud.texttospeech.v1beta1.ISynthesizeSpeechResponse, - + ( | protosTypes.google.cloud.texttospeech.v1beta1.ISynthesizeSpeechRequest - | undefined, + | undefined + ), {} | undefined ] >; @@ -381,9 +384,10 @@ export class TextToSpeechClient { ): Promise< [ protosTypes.google.cloud.texttospeech.v1beta1.ISynthesizeSpeechResponse, - + ( | protosTypes.google.cloud.texttospeech.v1beta1.ISynthesizeSpeechRequest - | undefined, + | undefined + ), {} | undefined ] > | void { diff --git a/synth.metadata b/synth.metadata index 839dcb97..1ab17d7f 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,12 +1,12 @@ { - "updateTime": "2019-11-19T04:10:28.515707Z", + "updateTime": "2019-11-20T00:30:33.625930Z", "sources": [ { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "d8dd7fe8d5304f7bd1c52207703d7f27d5328c5a", - "internalRef": "281088257" + "sha": "328ebe76adb06128d12547ed70107fb841aebf4e", + "internalRef": "281402467" } }, { diff --git a/synth.py b/synth.py index 6a5ef6ef..a92784f5 100644 --- a/synth.py +++ b/synth.py @@ -30,7 +30,8 @@ library = gapic.typescript_library( 'texttospeech', generator_args={ - "grpc-service-config": f"google/cloud/texttospeech/{version}/texttospeech_grpc_service_config.json" + "grpc-service-config": f"google/cloud/texttospeech/{version}/texttospeech_grpc_service_config.json", + "package-name":f"@google-cloud/text-to-speech" }, proto_path=f'/google/cloud/texttospeech/{version}', version=version) @@ -44,10 +45,6 @@ templates = common_templates.node_library(source_location='build/src') s.copy(templates) -# Fix system tests -# TODO: must be a feature of pack-n-play -s.replace('system-test/fixtures/sample/src/index.*', "'texttospeech'", "'@google-cloud/text-to-speech'") - # Node.js specific cleanup subprocess.run(['npm', 'install']) subprocess.run(['npm', 'run', 'fix']) diff --git a/system-test/fixtures/sample/src/index.js b/system-test/fixtures/sample/src/index.js index e1636dae..d76868e9 100644 --- a/system-test/fixtures/sample/src/index.js +++ b/system-test/fixtures/sample/src/index.js @@ -16,6 +16,8 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** + +/* eslint-disable node/no-missing-require, no-unused-vars */ const texttospeech = require('@google-cloud/text-to-speech'); function main() { diff --git a/webpack.config.js b/webpack.config.js index 05026a2d..5b923b63 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -39,23 +39,23 @@ module.exports = { exclude: /node_modules/ }, { - test: /node_modules[\\\/]@grpc[\\\/]grpc-js/, + test: /node_modules[\\/]@grpc[\\/]grpc-js/, use: 'null-loader' }, { - test: /node_modules[\\\/]grpc/, + test: /node_modules[\\/]grpc/, use: 'null-loader' }, { - test: /node_modules[\\\/]retry-request/, + test: /node_modules[\\/]retry-request/, use: 'null-loader' }, { - test: /node_modules[\\\/]https-proxy-agent/, + test: /node_modules[\\/]https-proxy-agent/, use: 'null-loader' }, { - test: /node_modules[\\\/]gtoken/, + test: /node_modules[\\/]gtoken/, use: 'null-loader' }, ],