@googleapis/translate 3.5.0 → 4.0.1
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 +18 -0
- package/build/index.d.ts +1 -1
- package/build/index.js.map +1 -1
- package/build/v2.d.ts +11 -11
- package/build/v3.d.ts +101 -101
- package/build/v3.js.map +1 -1
- package/build/v3beta1.d.ts +41 -41
- package/build/v3beta1.js.map +1 -1
- package/index.ts +0 -1
- package/package.json +2 -2
- package/v2.ts +21 -21
- package/v3.ts +253 -175
- package/v3beta1.ts +101 -71
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/translate-v4.0.0...translate-v4.0.1) (2025-06-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
|
|
9
|
+
|
|
10
|
+
## [4.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/translate-v3.5.0...translate-v4.0.0) (2025-05-29)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ⚠ BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* upgrade to node 18
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
|
|
20
|
+
|
|
3
21
|
## [3.5.0](https://github.com/googleapis/google-api-nodejs-client/compare/translate-v3.4.0...translate-v3.5.0) (2025-05-05)
|
|
4
22
|
|
|
5
23
|
|
package/build/index.d.ts
CHANGED
|
@@ -19,4 +19,4 @@ export { auth };
|
|
|
19
19
|
export { translate_v2 };
|
|
20
20
|
export { translate_v3 };
|
|
21
21
|
export { translate_v3beta1 };
|
|
22
|
-
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions,
|
|
22
|
+
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,kCAAkC;AAElC,yDAAuE;AACvE,6BAAkC;AA0C1B,6FA1CA,iBAAY,OA0CA;AAzCpB,6BAAkC;AA0C1B,6FA1CA,iBAAY,OA0CA;AAzCpB,uCAA4C;AA0CpC,kGA1CA,2BAAiB,OA0CA;AAxCZ,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,iBAAY,CAAC,SAAS;IAC1B,EAAE,EAAE,iBAAY,CAAC,SAAS;IAC1B,OAAO,EAAE,2BAAiB,CAAC,SAAS;CACrC,CAAC;AAcF,SAAgB,SAAS,CAOvB,gBAM6B;IAE7B,OAAO,IAAA,0BAAM,EAAI,WAAW,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AAClE,CAAC;AAhBD,8BAgBC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAIZ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,kCAAkC;AAElC,yDAAuE;AACvE,6BAAkC;AA0C1B,6FA1CA,iBAAY,OA0CA;AAzCpB,6BAAkC;AA0C1B,6FA1CA,iBAAY,OA0CA;AAzCpB,uCAA4C;AA0CpC,kGA1CA,2BAAiB,OA0CA;AAxCZ,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,iBAAY,CAAC,SAAS;IAC1B,EAAE,EAAE,iBAAY,CAAC,SAAS;IAC1B,OAAO,EAAE,2BAAiB,CAAC,SAAS;CACrC,CAAC;AAcF,SAAgB,SAAS,CAOvB,gBAM6B;IAE7B,OAAO,IAAA,0BAAM,EAAI,WAAW,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AAClE,CAAC;AAhBD,8BAgBC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAIZ,uDAQ2B;AAPzB,6GAAA,QAAQ,OAAA"}
|
package/build/v2.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient,
|
|
2
|
+
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
|
3
3
|
import { Readable } from 'stream';
|
|
4
4
|
export declare namespace translate_v2 {
|
|
5
5
|
export interface Options extends GlobalOptions {
|
|
@@ -202,8 +202,8 @@ export declare namespace translate_v2 {
|
|
|
202
202
|
* @param callback - Optional callback that handles the response.
|
|
203
203
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
204
204
|
*/
|
|
205
|
-
detect(params: Params$Resource$Detections$Detect, options: StreamMethodOptions):
|
|
206
|
-
detect(params?: Params$Resource$Detections$Detect, options?: MethodOptions):
|
|
205
|
+
detect(params: Params$Resource$Detections$Detect, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
206
|
+
detect(params?: Params$Resource$Detections$Detect, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$DetectionsListResponse>>;
|
|
207
207
|
detect(params: Params$Resource$Detections$Detect, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
208
208
|
detect(params: Params$Resource$Detections$Detect, options: MethodOptions | BodyResponseCallback<Schema$DetectionsListResponse>, callback: BodyResponseCallback<Schema$DetectionsListResponse>): void;
|
|
209
209
|
detect(params: Params$Resource$Detections$Detect, callback: BodyResponseCallback<Schema$DetectionsListResponse>): void;
|
|
@@ -216,8 +216,8 @@ export declare namespace translate_v2 {
|
|
|
216
216
|
* @param callback - Optional callback that handles the response.
|
|
217
217
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
218
218
|
*/
|
|
219
|
-
list(params: Params$Resource$Detections$List, options: StreamMethodOptions):
|
|
220
|
-
list(params?: Params$Resource$Detections$List, options?: MethodOptions):
|
|
219
|
+
list(params: Params$Resource$Detections$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
220
|
+
list(params?: Params$Resource$Detections$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$DetectionsListResponse>>;
|
|
221
221
|
list(params: Params$Resource$Detections$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
222
222
|
list(params: Params$Resource$Detections$List, options: MethodOptions | BodyResponseCallback<Schema$DetectionsListResponse>, callback: BodyResponseCallback<Schema$DetectionsListResponse>): void;
|
|
223
223
|
list(params: Params$Resource$Detections$List, callback: BodyResponseCallback<Schema$DetectionsListResponse>): void;
|
|
@@ -247,8 +247,8 @@ export declare namespace translate_v2 {
|
|
|
247
247
|
* @param callback - Optional callback that handles the response.
|
|
248
248
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
249
249
|
*/
|
|
250
|
-
list(params: Params$Resource$Languages$List, options: StreamMethodOptions):
|
|
251
|
-
list(params?: Params$Resource$Languages$List, options?: MethodOptions):
|
|
250
|
+
list(params: Params$Resource$Languages$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
251
|
+
list(params?: Params$Resource$Languages$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$LanguagesListResponse>>;
|
|
252
252
|
list(params: Params$Resource$Languages$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
253
253
|
list(params: Params$Resource$Languages$List, options: MethodOptions | BodyResponseCallback<Schema$LanguagesListResponse>, callback: BodyResponseCallback<Schema$LanguagesListResponse>): void;
|
|
254
254
|
list(params: Params$Resource$Languages$List, callback: BodyResponseCallback<Schema$LanguagesListResponse>): void;
|
|
@@ -276,8 +276,8 @@ export declare namespace translate_v2 {
|
|
|
276
276
|
* @param callback - Optional callback that handles the response.
|
|
277
277
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
278
278
|
*/
|
|
279
|
-
list(params: Params$Resource$Translations$List, options: StreamMethodOptions):
|
|
280
|
-
list(params?: Params$Resource$Translations$List, options?: MethodOptions):
|
|
279
|
+
list(params: Params$Resource$Translations$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
280
|
+
list(params?: Params$Resource$Translations$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$TranslationsListResponse>>;
|
|
281
281
|
list(params: Params$Resource$Translations$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
282
282
|
list(params: Params$Resource$Translations$List, options: MethodOptions | BodyResponseCallback<Schema$TranslationsListResponse>, callback: BodyResponseCallback<Schema$TranslationsListResponse>): void;
|
|
283
283
|
list(params: Params$Resource$Translations$List, callback: BodyResponseCallback<Schema$TranslationsListResponse>): void;
|
|
@@ -290,8 +290,8 @@ export declare namespace translate_v2 {
|
|
|
290
290
|
* @param callback - Optional callback that handles the response.
|
|
291
291
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
292
292
|
*/
|
|
293
|
-
translate(params: Params$Resource$Translations$Translate, options: StreamMethodOptions):
|
|
294
|
-
translate(params?: Params$Resource$Translations$Translate, options?: MethodOptions):
|
|
293
|
+
translate(params: Params$Resource$Translations$Translate, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
294
|
+
translate(params?: Params$Resource$Translations$Translate, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$TranslationsListResponse>>;
|
|
295
295
|
translate(params: Params$Resource$Translations$Translate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
296
296
|
translate(params: Params$Resource$Translations$Translate, options: MethodOptions | BodyResponseCallback<Schema$TranslationsListResponse>, callback: BodyResponseCallback<Schema$TranslationsListResponse>): void;
|
|
297
297
|
translate(params: Params$Resource$Translations$Translate, callback: BodyResponseCallback<Schema$TranslationsListResponse>): void;
|