@maxim_mazurok/gapi.client.translate-v3beta1 0.0.20230224 → 0.0.20230310

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.
Files changed (3) hide show
  1. package/index.d.ts +7 -7
  2. package/package.json +1 -1
  3. 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=v3beta1
12
- // Revision: 20230224
12
+ // Revision: 20230310
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. */
@@ -752,12 +757,7 @@ declare namespace gapi.client {
752
757
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
753
758
  uploadType?: string;
754
759
  }): Request<Operation>;
755
- /**
756
- * 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
757
- * 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
758
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
759
- * ensure the name binding is the parent resource, without the operations collection id.
760
- */
760
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
761
761
  list(request?: {
762
762
  /** V1 error format. */
763
763
  "$.xgafv"?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.translate-v3beta1",
3
- "version": "0.0.20230224",
3
+ "version": "0.0.20230310",
4
4
  "description": "TypeScript typings for Cloud Translation API v3beta1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230224
6
+ // Revision: 20230310
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
  },
@@ -280,12 +281,7 @@ gapi.load('client', async () => {
280
281
  await gapi.client.translate.projects.locations.operations.get({
281
282
  name: "Test string",
282
283
  });
283
- /**
284
- * 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
285
- * 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
286
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
287
- * ensure the name binding is the parent resource, without the operations collection id.
288
- */
284
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
289
285
  await gapi.client.translate.projects.locations.operations.list({
290
286
  filter: "Test string",
291
287
  name: "Test string",