@maxim_mazurok/gapi.client.retail-v2alpha 0.0.20241024 → 0.0.20241114

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 (2) hide show
  1. package/index.d.ts +12 -10
  2. package/package.json +1 -1
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: 20241024
12
+ // Revision: 20241114
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -182,7 +182,7 @@ declare namespace gapi.client {
182
182
  datasetId?: string;
183
183
  /** Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory. */
184
184
  gcsStagingDir?: string;
185
- /** BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. Only supported in ImportProductsRequest. */
185
+ /** BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. */
186
186
  partitionDate?: GoogleTypeDate;
187
187
  /** The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request. */
188
188
  projectId?: string;
@@ -240,7 +240,7 @@ declare namespace gapi.client {
240
240
  facetConfig?: GoogleCloudRetailV2alphaCatalogAttributeFacetConfig;
241
241
  /** When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if INDEXABLE_ENABLED attribute values are indexed so that it can be filtered, faceted, or boosted in SearchService.Search. Must be specified when AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. */
242
242
  indexableOption?: string;
243
- /** Output only. Indicates whether this attribute has been used by any products. `True` if at least one Product is using this attribute in Product.attributes. Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using CatalogService.AddCatalogAttribute, CatalogService.ImportCatalogAttributes, or CatalogService.UpdateAttributesConfig APIs. This field is `False` for pre-loaded CatalogAttributes. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request. After catalog changes, it takes about 10 minutes for this field to update. */
243
+ /** Output only. Indicates whether this attribute has been used by any products. `True` if at least one Product is using this attribute in Product.attributes. Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using CatalogService.AddCatalogAttribute or CatalogService.UpdateAttributesConfig APIs. This field is `False` for pre-loaded CatalogAttributes. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request. After catalog changes, it takes about 10 minutes for this field to update. */
244
244
  inUse?: boolean;
245
245
  /** Required. Attribute name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named `attributes.abc_xyz` can be indexed, but an attribute named `attributes.abc-xyz` cannot be indexed. If the attribute key starts with `attributes.`, then the attribute is a custom attribute. Attributes such as `brands`, `patterns`, and `title` are built-in and called system attributes. */
246
246
  key?: string;
@@ -432,7 +432,7 @@ declare namespace gapi.client {
432
432
  servingConfigExperiment?: GoogleCloudRetailV2alphaExperimentInfoServingConfigExperiment;
433
433
  }
434
434
  interface GoogleCloudRetailV2alphaExperimentInfoServingConfigExperiment {
435
- /** The fully qualified resource name of the serving config Experiment.VariantArm.serving_config_id responsible for generating the search response. For example: `projects/*‍/locations/*‍/catalogs/*‍/servingConfigs/*`. */
435
+ /** The fully qualified resource name of the serving config `Experiment.VariantArm.serving_config_id` responsible for generating the search response. For example: `projects/*‍/locations/*‍/catalogs/*‍/servingConfigs/*`. */
436
436
  experimentServingConfig?: string;
437
437
  /** The fully qualified resource name of the original SearchRequest.placement in the search request prior to reassignment by experiment API. For example: `projects/*‍/locations/*‍/catalogs/*‍/servingConfigs/*`. */
438
438
  originalServingConfig?: string;
@@ -670,13 +670,15 @@ declare namespace gapi.client {
670
670
  servingConfigs?: GoogleCloudRetailV2alphaServingConfig[];
671
671
  }
672
672
  interface GoogleCloudRetailV2alphaLocalInventory {
673
- /** Additional local inventory attributes, for example, store name, promotion tags, etc. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The key must be a UTF-8 encoded string with a length limit of 32 characters. * The key must match the pattern: `a-zA-Z0-9*`. For example, key0LikeThis or KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or number). * Only 1 value is allowed for each attribute. * For text values, the length limit is 256 UTF-8 characters. * The attribute does not support search. The `searchable` field should be unset or set to false. * The max summed total bytes of custom attribute keys and values per product is 5MiB. */
673
+ /** Optional. Additional local inventory attributes, for example, store name, promotion tags, etc. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The key must be a UTF-8 encoded string with a length limit of 32 characters. * The key must match the pattern: `a-zA-Z0-9*`. For example, key0LikeThis or KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or number). * Only 1 value is allowed for each attribute. * For text values, the length limit is 256 UTF-8 characters. * The attribute does not support search. The `searchable` field should be unset or set to false. * The max summed total bytes of custom attribute keys and values per product is 5MiB. */
674
674
  attributes?: {[P in string]: GoogleCloudRetailV2alphaCustomAttribute};
675
- /** Input only. Supported fulfillment types. Valid fulfillment type values include commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned. */
675
+ /** Optional. The availability of the Product at this place_id. Default to Availability.IN_STOCK. For primary products with variants set the availability of the primary as Availability.OUT_OF_STOCK and set the true availability at the variant level. This way the primary product will be considered "in stock" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability). */
676
+ availability?: string;
677
+ /** Optional. Supported fulfillment types. Valid fulfillment type values include commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned. */
676
678
  fulfillmentTypes?: string[];
677
- /** The place ID for the current set of inventory information. */
679
+ /** Required. The place ID for the current set of inventory information. */
678
680
  placeId?: string;
679
- /** Product price and cost information. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371). */
681
+ /** Optional. Product price and cost information. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371). */
680
682
  priceInfo?: GoogleCloudRetailV2alphaPriceInfo;
681
683
  }
682
684
  interface GoogleCloudRetailV2alphaLoggingConfig {
@@ -1354,7 +1356,7 @@ declare namespace gapi.client {
1354
1356
  conversationalSearchResult?: GoogleCloudRetailV2alphaSearchResponseConversationalSearchResult;
1355
1357
  /** 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. */
1356
1358
  correctedQuery?: string;
1357
- /** Metadata related to A/B testing Experiment associated with this response. Only exists when an experiment is triggered. */
1359
+ /** Metadata related to A/B testing experiment associated with this response. Only exists when an experiment is triggered. */
1358
1360
  experimentInfo?: GoogleCloudRetailV2alphaExperimentInfo[];
1359
1361
  /** Results of facets requested by user. */
1360
1362
  facets?: GoogleCloudRetailV2alphaSearchResponseFacet[];
@@ -1596,7 +1598,7 @@ declare namespace gapi.client {
1596
1598
  directUserRequest?: boolean;
1597
1599
  /** The end user's IP address. This field is used to extract location information for personalization. This field must be either an IPv4 address (e.g. "104.133.9.80") or an IPv6 address (e.g. "2001:0db8:85a3:0000:0000:8a2e:0370:7334"). Otherwise, an INVALID_ARGUMENT error is returned. This should not be set when: * setting SearchRequest.user_info. * using the JavaScript tag in UserEventService.CollectUserEvent or if direct_user_request is set. */
1598
1600
  ipAddress?: string;
1599
- /** User agent as included in the HTTP header. Required for getting SearchResponse.sponsored_results. The field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This should not be set when using the client side event reporting with GTM or JavaScript tag in UserEventService.CollectUserEvent or if direct_user_request is set. */
1601
+ /** User agent as included in the HTTP header. The field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This should not be set when using the client side event reporting with GTM or JavaScript tag in UserEventService.CollectUserEvent or if direct_user_request is set. */
1600
1602
  userAgent?: string;
1601
1603
  /** Highly recommended for logged-in users. Unique identifier for logged-in user, such as a user name. Don't set for anonymous users. Always use a hashed value for this ID. Don't set the field to the same fixed ID for different users. This mixes the event history of those users together, which results in degraded model quality. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
1602
1604
  userId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.retail-v2alpha",
3
- "version": "0.0.20241024",
3
+ "version": "0.0.20241114",
4
4
  "description": "TypeScript typings for Vertex AI Search for Retail API v2alpha",
5
5
  "repository": {
6
6
  "type": "git",