@maxim_mazurok/gapi.client.translate-v3 0.0.20220911 → 0.0.20221021

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 +8 -2
  2. package/package.json +1 -1
  3. package/tests.ts +3 -1
package/index.d.ts CHANGED
@@ -4,13 +4,12 @@
4
4
  // Nick Amoscato <https://github.com/namoscato>
5
5
  // Declan Vong <https://github.com/declanvong>
6
6
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
- // TypeScript Version: 2.8
8
7
 
9
8
  // IMPORTANT
10
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
11
  // Generated from: https://translation.googleapis.com/$discovery/rest?version=v3
13
- // Revision: 20220911
12
+ // Revision: 20221021
14
13
 
15
14
  /// <reference types="gapi.client" />
16
15
 
@@ -390,6 +389,11 @@ declare namespace gapi.client {
390
389
  languages?: SupportedLanguage[];
391
390
  }
392
391
  interface TranslateDocumentRequest {
392
+ /**
393
+ * Optional. This flag is to support user customized attribution. If not provided, the default is `Machine Translated by Google`. Customized attribution should follow rules in
394
+ * https://cloud.google.com/translate/attribution#attribution_and_logos
395
+ */
396
+ customizedAttribution?: string;
393
397
  /** Required. Input configurations. */
394
398
  documentInputConfig?: DocumentInputConfig;
395
399
  /**
@@ -399,6 +403,8 @@ declare namespace gapi.client {
399
403
  documentOutputConfig?: DocumentOutputConfig;
400
404
  /** Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned. */
401
405
  glossaryConfig?: TranslateTextGlossaryConfig;
406
+ /** Optional. is_translate_native_pdf_only field for external customers. If true, the page limit of online native pdf translation is 300 and only native pdf pages will be translated. */
407
+ isTranslateNativePdfOnly?: boolean;
402
408
  /**
403
409
  * Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters,
404
410
  * numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.translate-v3",
3
- "version": "0.0.20220911",
3
+ "version": "0.0.20221021",
4
4
  "description": "TypeScript typings for Cloud Translation API v3",
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: 20220911
6
+ // Revision: 20221021
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -174,6 +174,7 @@ gapi.load('client', async () => {
174
174
  await gapi.client.translate.projects.locations.translateDocument({
175
175
  parent: "Test string",
176
176
  }, {
177
+ customizedAttribution: "Test string",
177
178
  documentInputConfig: {
178
179
  content: "Test string",
179
180
  gcsSource: {
@@ -191,6 +192,7 @@ gapi.load('client', async () => {
191
192
  glossary: "Test string",
192
193
  ignoreCase: true,
193
194
  },
195
+ isTranslateNativePdfOnly: true,
194
196
  labels: {
195
197
  A: "Test string"
196
198
  },