@maxim_mazurok/gapi.client.translate-v3 0.0.20230224 → 0.0.20230303
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/index.d.ts +7 -7
- package/package.json +1 -1
- package/tests.ts +3 -7
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://translation.googleapis.com/$discovery/rest?version=v3
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230303
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -57,6 +57,11 @@ declare namespace gapi.client {
|
|
|
57
57
|
* https://cloud.google.com/translate/attribution#attribution_and_logos
|
|
58
58
|
*/
|
|
59
59
|
customizedAttribution?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Optional. If true, use the text removal server to remove the shadow text on background image for native pdf translation. Shadow removal feature can only be enabled when
|
|
62
|
+
* is_translate_native_pdf_only: false && pdf_native_only: false
|
|
63
|
+
*/
|
|
64
|
+
enableShadowRemovalNativePdf?: boolean;
|
|
60
65
|
/** Optional. */
|
|
61
66
|
formatConversions?: { [P in string]: string };
|
|
62
67
|
/** Optional. Glossaries to be applied. It's keyed by target language code. */
|
|
@@ -1604,12 +1609,7 @@ declare namespace gapi.client {
|
|
|
1604
1609
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1605
1610
|
uploadType?: string;
|
|
1606
1611
|
}): Request<Operation>;
|
|
1607
|
-
/**
|
|
1608
|
-
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
|
|
1609
|
-
* to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
1610
|
-
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
1611
|
-
* ensure the name binding is the parent resource, without the operations collection id.
|
|
1612
|
-
*/
|
|
1612
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
1613
1613
|
list(request?: {
|
|
1614
1614
|
/** V1 error format. */
|
|
1615
1615
|
"$.xgafv"?: string;
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230303
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -76,6 +76,7 @@ gapi.load('client', async () => {
|
|
|
76
76
|
parent: "Test string",
|
|
77
77
|
}, {
|
|
78
78
|
customizedAttribution: "Test string",
|
|
79
|
+
enableShadowRemovalNativePdf: true,
|
|
79
80
|
formatConversions: {
|
|
80
81
|
A: "Test string"
|
|
81
82
|
},
|
|
@@ -462,12 +463,7 @@ gapi.load('client', async () => {
|
|
|
462
463
|
await gapi.client.translate.projects.locations.operations.get({
|
|
463
464
|
name: "Test string",
|
|
464
465
|
});
|
|
465
|
-
/**
|
|
466
|
-
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
|
|
467
|
-
* override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
468
|
-
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
469
|
-
* ensure the name binding is the parent resource, without the operations collection id.
|
|
470
|
-
*/
|
|
466
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
471
467
|
await gapi.client.translate.projects.locations.operations.list({
|
|
472
468
|
filter: "Test string",
|
|
473
469
|
name: "Test string",
|