@maxim_mazurok/gapi.client.retail-v2 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=v2
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. */
@@ -1568,7 +1568,7 @@ declare namespace gapi.client {
1568
1568
  interface GoogleCloudRetailV2ReplaceCatalogAttributeRequest {
1569
1569
  /** Required. The updated CatalogAttribute. */
1570
1570
  catalogAttribute?: GoogleCloudRetailV2CatalogAttribute;
1571
- /** Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated. */
1571
+ /** 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. */
1572
1572
  updateMask?: string;
1573
1573
  }
1574
1574
  interface GoogleCloudRetailV2ResumeModelRequest {}
@@ -1834,7 +1834,7 @@ declare namespace gapi.client {
1834
1834
  attributionToken?: string;
1835
1835
  /** This field specifies all related information that is needed on client side for UI rendering of conversational retail search. */
1836
1836
  conversationalSearchResult?: GoogleCloudRetailV2SearchResponseConversationalSearchResult;
1837
- /** 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. */
1837
+ /** 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. */
1838
1838
  correctedQuery?: string;
1839
1839
  /** Metadata related to A/B testing experiment associated with this response. Only exists when an experiment is triggered. */
1840
1840
  experimentInfo?: GoogleCloudRetailV2ExperimentInfo[];
@@ -2116,7 +2116,7 @@ declare namespace gapi.client {
2116
2116
  /** The status code, which should be an enum value of google.rpc.Code. */
2117
2117
  code?: number;
2118
2118
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
2119
- details?: Array<{[P in string]: any}>;
2119
+ details?: {[P in string]: any}[];
2120
2120
  /** 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. */
2121
2121
  message?: string;
2122
2122
  }
@@ -5036,7 +5036,7 @@ declare namespace gapi.client {
5036
5036
  prettyPrint?: boolean;
5037
5037
  /** 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. */
5038
5038
  quotaUser?: string;
5039
- /** Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. */
5039
+ /** Optional. Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. */
5040
5040
  updateMask?: string;
5041
5041
  /** Upload protocol for media (e.g. "raw", "multipart"). */
5042
5042
  upload_protocol?: string;
@@ -5067,7 +5067,7 @@ declare namespace gapi.client {
5067
5067
  prettyPrint?: boolean;
5068
5068
  /** 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. */
5069
5069
  quotaUser?: string;
5070
- /** Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. */
5070
+ /** Optional. Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. */
5071
5071
  updateMask?: string;
5072
5072
  /** Upload protocol for media (e.g. "raw", "multipart"). */
5073
5073
  upload_protocol?: string;
@@ -5156,7 +5156,7 @@ declare namespace gapi.client {
5156
5156
  prettyPrint?: boolean;
5157
5157
  /** 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. */
5158
5158
  quotaUser?: string;
5159
- /** 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. */
5159
+ /** 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. */
5160
5160
  updateMask?: string;
5161
5161
  /** Upload protocol for media (e.g. "raw", "multipart"). */
5162
5162
  upload_protocol?: string;
@@ -5187,7 +5187,7 @@ declare namespace gapi.client {
5187
5187
  prettyPrint?: boolean;
5188
5188
  /** 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. */
5189
5189
  quotaUser?: string;
5190
- /** 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. */
5190
+ /** 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. */
5191
5191
  updateMask?: string;
5192
5192
  /** Upload protocol for media (e.g. "raw", "multipart"). */
5193
5193
  upload_protocol?: string;
@@ -5218,7 +5218,7 @@ declare namespace gapi.client {
5218
5218
  prettyPrint?: boolean;
5219
5219
  /** 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. */
5220
5220
  quotaUser?: string;
5221
- /** 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. */
5221
+ /** 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. */
5222
5222
  updateMask?: string;
5223
5223
  /** Upload protocol for media (e.g. "raw", "multipart"). */
5224
5224
  upload_protocol?: string;
@@ -5249,7 +5249,7 @@ declare namespace gapi.client {
5249
5249
  prettyPrint?: boolean;
5250
5250
  /** 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. */
5251
5251
  quotaUser?: string;
5252
- /** 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. */
5252
+ /** 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. */
5253
5253
  updateMask?: string;
5254
5254
  /** Upload protocol for media (e.g. "raw", "multipart"). */
5255
5255
  upload_protocol?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.retail-v2",
3
- "version": "0.2.20260309",
3
+ "version": "0.2.20260604",
4
4
  "description": "TypeScript typings for Vertex AI Search for commerce API v2",
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-v2 --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-v2"]
22
+ }
23
+ }
24
+ ```
25
+
14
26
  ## Usage
15
27
 
16
28
  You need to initialize Google API client in your code: