@maxim_mazurok/gapi.client.retail-v2alpha 0.2.20260309 → 0.2.20260604

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 +11 -11
  2. package/package.json +1 -1
  3. package/readme.md +12 -0
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://retail.googleapis.com/$discovery/rest?version=v2alpha
12
- // Revision: 20260309
12
+ // Revision: 20260604
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -30,7 +30,7 @@ declare namespace gapi.client {
30
30
  /** The HTTP request/response body as raw binary. */
31
31
  data?: string;
32
32
  /** Application specific response metadata. Must be set in the first response for streaming APIs. */
33
- extensions?: Array<{[P in string]: any}>;
33
+ extensions?: {[P in string]: any}[];
34
34
  }
35
35
  interface GoogleCloudRetailLoggingErrorContext {
36
36
  /** The HTTP request which was processed when the error was triggered. */
@@ -1374,7 +1374,7 @@ declare namespace gapi.client {
1374
1374
  interface GoogleCloudRetailV2alphaReplaceCatalogAttributeRequest {
1375
1375
  /** Required. The updated CatalogAttribute. */
1376
1376
  catalogAttribute?: GoogleCloudRetailV2alphaCatalogAttribute;
1377
- /** Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated. */
1377
+ /** Optional. Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated. */
1378
1378
  updateMask?: string;
1379
1379
  }
1380
1380
  interface GoogleCloudRetailV2alphaResumeModelRequest {}
@@ -1649,7 +1649,7 @@ declare namespace gapi.client {
1649
1649
  attributionToken?: string;
1650
1650
  /** This field specifies all related information that is needed on client side for UI rendering of conversational retail search. */
1651
1651
  conversationalSearchResult?: GoogleCloudRetailV2alphaSearchResponseConversationalSearchResult;
1652
- /** Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search. */
1652
+ /** Contains the spell corrected query, if found. The search results are based on corrected_query by default. However, if SearchRequest.SpellCorrectionSpec.mode is set to SearchRequest.SpellCorrectionSpec.Mode.SUGGESTION_ONLY, the original query is used for search. */
1653
1653
  correctedQuery?: string;
1654
1654
  /** Metadata related to A/B testing experiment associated with this response. Only exists when an experiment is triggered. */
1655
1655
  experimentInfo?: GoogleCloudRetailV2alphaExperimentInfo[];
@@ -2307,7 +2307,7 @@ declare namespace gapi.client {
2307
2307
  /** The status code, which should be an enum value of google.rpc.Code. */
2308
2308
  code?: number;
2309
2309
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
2310
- details?: Array<{[P in string]: any}>;
2310
+ details?: {[P in string]: any}[];
2311
2311
  /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
2312
2312
  message?: string;
2313
2313
  }
@@ -5616,7 +5616,7 @@ declare namespace gapi.client {
5616
5616
  prettyPrint?: boolean;
5617
5617
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5618
5618
  quotaUser?: string;
5619
- /** Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. */
5619
+ /** Optional. Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. */
5620
5620
  updateMask?: string;
5621
5621
  /** Upload protocol for media (e.g. "raw", "multipart"). */
5622
5622
  upload_protocol?: string;
@@ -5647,7 +5647,7 @@ declare namespace gapi.client {
5647
5647
  prettyPrint?: boolean;
5648
5648
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5649
5649
  quotaUser?: string;
5650
- /** Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. */
5650
+ /** Optional. Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. */
5651
5651
  updateMask?: string;
5652
5652
  /** Upload protocol for media (e.g. "raw", "multipart"). */
5653
5653
  upload_protocol?: string;
@@ -5736,7 +5736,7 @@ declare namespace gapi.client {
5736
5736
  prettyPrint?: boolean;
5737
5737
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5738
5738
  quotaUser?: string;
5739
- /** Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. */
5739
+ /** Optional. Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. */
5740
5740
  updateMask?: string;
5741
5741
  /** Upload protocol for media (e.g. "raw", "multipart"). */
5742
5742
  upload_protocol?: string;
@@ -5767,7 +5767,7 @@ declare namespace gapi.client {
5767
5767
  prettyPrint?: boolean;
5768
5768
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5769
5769
  quotaUser?: string;
5770
- /** Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. */
5770
+ /** Optional. Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. */
5771
5771
  updateMask?: string;
5772
5772
  /** Upload protocol for media (e.g. "raw", "multipart"). */
5773
5773
  upload_protocol?: string;
@@ -5798,7 +5798,7 @@ declare namespace gapi.client {
5798
5798
  prettyPrint?: boolean;
5799
5799
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5800
5800
  quotaUser?: string;
5801
- /** Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. */
5801
+ /** Optional. Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. */
5802
5802
  updateMask?: string;
5803
5803
  /** Upload protocol for media (e.g. "raw", "multipart"). */
5804
5804
  upload_protocol?: string;
@@ -5829,7 +5829,7 @@ declare namespace gapi.client {
5829
5829
  prettyPrint?: boolean;
5830
5830
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5831
5831
  quotaUser?: string;
5832
- /** Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. */
5832
+ /** Optional. Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. */
5833
5833
  updateMask?: string;
5834
5834
  /** Upload protocol for media (e.g. "raw", "multipart"). */
5835
5835
  upload_protocol?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.retail-v2alpha",
3
- "version": "0.2.20260309",
3
+ "version": "0.2.20260604",
4
4
  "description": "TypeScript typings for Vertex AI Search for commerce API v2alpha",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,18 @@ Install typings for Vertex AI Search for commerce API:
11
11
  npm install @types/gapi.client.retail-v2alpha --save-dev
12
12
  ```
13
13
 
14
+ ## TypeScript 6.0+
15
+
16
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "types": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.retail-v2alpha"]
22
+ }
23
+ }
24
+ ```
25
+
14
26
  ## Usage
15
27
 
16
28
  You need to initialize Google API client in your code: