@maxim_mazurok/gapi.client.retail-v2alpha 0.0.20230413 → 0.0.20230420
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.
- package/index.d.ts +117 -75
- package/package.json +1 -1
- package/tests.ts +72 -12
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:
|
|
12
|
+
// Revision: 20230420
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -250,6 +250,15 @@ declare namespace gapi.client {
|
|
|
250
250
|
* exact-searchable. If unset, the server behavior defaults to EXACT_SEARCHABLE_DISABLED.
|
|
251
251
|
*/
|
|
252
252
|
exactSearchableOption?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Set manually for numerical attributes only. If the facet SearchResponse.FacetSpec.intervals are not set by the customer for a numerical attribute, then a weekly pipeline will
|
|
255
|
+
* calculate some intervals using some percentiles on the distribution of all its product numerical attribute values. The latter computed intervals might not be ideal for the use case
|
|
256
|
+
* of that attribute. For this reason, the customer can set them manually. As another option, for any numerical attribute that is passed as a facet key in the request along with some
|
|
257
|
+
* given intervals, then these given intervals will be the facet intervals returned in the response.
|
|
258
|
+
*/
|
|
259
|
+
facetIntervals?: GoogleCloudRetailV2alphaInterval[];
|
|
260
|
+
/** Each instance represents a list of attribute values to ignore as facet values for a specific time range. */
|
|
261
|
+
ignoredFacetValues?: GoogleCloudRetailV2alphaCatalogAttributeIgnoredFacetValues[];
|
|
253
262
|
/**
|
|
254
263
|
* 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
|
|
255
264
|
* SearchService.Search. Must be specified, otherwise throws INVALID_FORMAT error.
|
|
@@ -285,6 +294,18 @@ declare namespace gapi.client {
|
|
|
285
294
|
/** Output only. The type of this attribute. This is derived from the attribute in Product.attributes. */
|
|
286
295
|
type?: string;
|
|
287
296
|
}
|
|
297
|
+
interface GoogleCloudRetailV2alphaCatalogAttributeIgnoredFacetValues {
|
|
298
|
+
/** If start time is empty and end time is not empty, then ignore these facet values before end time. */
|
|
299
|
+
endTime?: string;
|
|
300
|
+
/**
|
|
301
|
+
* Time range for the current list of facet values to ignore. If multiple time ranges are specified for an facet value for the current attribute, consider all of them. If both are
|
|
302
|
+
* empty, ignore always. If start time and end time are set, then start time must be before end time. If start time is not empty and end time is empty, then will ignore these facet
|
|
303
|
+
* values after the start time.
|
|
304
|
+
*/
|
|
305
|
+
startTime?: string;
|
|
306
|
+
/** List of facet values to ignore for the following time range. The facet values are the same as the attribute values. */
|
|
307
|
+
values?: string[];
|
|
308
|
+
}
|
|
288
309
|
interface GoogleCloudRetailV2alphaColorInfo {
|
|
289
310
|
/**
|
|
290
311
|
* The standard color families. Strongly recommended to use the following standard color groups: "Red", "Pink", "Orange", "Yellow", "Purple", "Green", "Cyan", "Blue", "Brown", "White",
|
|
@@ -312,10 +333,10 @@ declare namespace gapi.client {
|
|
|
312
333
|
/** Results of the matching suggestions. The result list is ordered and the first result is top suggestion. */
|
|
313
334
|
completionResults?: GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult[];
|
|
314
335
|
/**
|
|
315
|
-
* Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature.
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
-
*
|
|
336
|
+
* Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This
|
|
337
|
+
* feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest
|
|
338
|
+
* to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More
|
|
339
|
+
* recent searches will be reserved when duplication happens.
|
|
319
340
|
*/
|
|
320
341
|
recentSearchResults?: GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult[];
|
|
321
342
|
}
|
|
@@ -360,7 +381,7 @@ declare namespace gapi.client {
|
|
|
360
381
|
lastAllowlistImportOperation?: string;
|
|
361
382
|
/** Output only. Name of the LRO corresponding to the latest denylist import. Can use GetOperation API to retrieve the latest state of the Long Running Operation. */
|
|
362
383
|
lastDenylistImportOperation?: string;
|
|
363
|
-
/** Output only. Name of the LRO corresponding to the latest suggestion terms list import. Can use GetOperation API to retrieve the latest state of the Long Running Operation. */
|
|
384
|
+
/** Output only. Name of the LRO corresponding to the latest suggestion terms list import. Can use GetOperation API method to retrieve the latest state of the Long Running Operation. */
|
|
364
385
|
lastSuggestionsImportOperation?: string;
|
|
365
386
|
/**
|
|
366
387
|
* Specifies the matching order for autocomplete suggestions, e.g., a query consisting of 'sh' with 'out-of-order' specified would suggest "women's shoes", whereas a query of 'red s'
|
|
@@ -630,8 +651,9 @@ declare namespace gapi.client {
|
|
|
630
651
|
inputConfig?: GoogleCloudRetailV2alphaProductInputConfig;
|
|
631
652
|
/**
|
|
632
653
|
* Full Pub/Sub topic name for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON
|
|
633
|
-
* string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has to be within the same project as ImportProductsRequest.parent. Make sure that
|
|
634
|
-
* `service-@gcp-sa-retail.iam.gserviceaccount.com`
|
|
654
|
+
* string of a Operation. Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has to be within the same project as ImportProductsRequest.parent. Make sure that both
|
|
655
|
+
* `cloud-retail-customer-data-access@system.gserviceaccount.com` and `service-@gcp-sa-retail.iam.gserviceaccount.com` have the `pubsub.topics.publish` IAM permission on the topic.
|
|
656
|
+
* Only supported when ImportProductsRequest.reconciliation_mode is set to `FULL`.
|
|
635
657
|
*/
|
|
636
658
|
notificationPubsubTopic?: string;
|
|
637
659
|
/** The mode of reconciliation between existing products and the products to be imported. Defaults to ReconciliationMode.INCREMENTAL. */
|
|
@@ -840,6 +862,8 @@ declare namespace gapi.client {
|
|
|
840
862
|
filteringOption?: string;
|
|
841
863
|
/** Output only. The timestamp when the latest successful tune finished. */
|
|
842
864
|
lastTuneTime?: string;
|
|
865
|
+
/** Optional. Additional model features config. */
|
|
866
|
+
modelFeaturesConfig?: GoogleCloudRetailV2alphaModelModelFeaturesConfig;
|
|
843
867
|
/**
|
|
844
868
|
* Required. The fully qualified resource name of the model. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` catalog_id has char
|
|
845
869
|
* limit of 50. recommendation_model_id has char limit of 40.
|
|
@@ -880,6 +904,14 @@ declare namespace gapi.client {
|
|
|
880
904
|
/** Output only. Timestamp the Recommendation Model was last updated. E.g. if a Recommendation Model was paused - this would be the time the pause was initiated. */
|
|
881
905
|
updateTime?: string;
|
|
882
906
|
}
|
|
907
|
+
interface GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig {
|
|
908
|
+
/** Optional. Specifies the context of the model when used in predict requests. Only settable for the `frequently-bought-together` type. Will default to MULTI_CONTEXT if not specified. */
|
|
909
|
+
contextProductsType?: string;
|
|
910
|
+
}
|
|
911
|
+
interface GoogleCloudRetailV2alphaModelModelFeaturesConfig {
|
|
912
|
+
/** Additional configs for frequently-bought-together models. */
|
|
913
|
+
frequentlyBoughtTogetherConfig?: GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig;
|
|
914
|
+
}
|
|
883
915
|
interface GoogleCloudRetailV2alphaModelPageOptimizationConfig {
|
|
884
916
|
/**
|
|
885
917
|
* Required. The type of UserEvent this page optimization is shown for. Each page has an associated event type - this will be the corresponding event type for the page that the page
|
|
@@ -1472,9 +1504,9 @@ declare namespace gapi.client {
|
|
|
1472
1504
|
}
|
|
1473
1505
|
interface GoogleCloudRetailV2alphaRuleFilterAction {
|
|
1474
1506
|
/**
|
|
1475
|
-
* A filter to apply on the matching condition results. Supported features: * filter must be set. * Filter syntax is identical to SearchRequest.filter.
|
|
1476
|
-
*
|
|
1477
|
-
*
|
|
1507
|
+
* A filter to apply on the matching condition results. Supported features: * filter must be set. * Filter syntax is identical to SearchRequest.filter. For more information, see
|
|
1508
|
+
* [Filter](/retail/docs/filter-and-order#filter). * To filter products with product ID "product_1" or "product_2", and color "Red" or "Blue": *(id: ANY("product_1", "product_2")) *
|
|
1509
|
+
* *AND * *(colorFamilies: ANY("Red", "Blue")) *
|
|
1478
1510
|
*/
|
|
1479
1511
|
filter?: string;
|
|
1480
1512
|
}
|
|
@@ -1508,7 +1540,7 @@ declare namespace gapi.client {
|
|
|
1508
1540
|
}
|
|
1509
1541
|
interface GoogleCloudRetailV2alphaSearchRequest {
|
|
1510
1542
|
/**
|
|
1511
|
-
* Boost specification to boost certain products.
|
|
1543
|
+
* Boost specification to boost certain products. For more information, see [Boost results](https://cloud.google.com/retail/docs/boosting). Notice that if both
|
|
1512
1544
|
* ServingConfig.boost_control_ids and SearchRequest.boost_spec are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the
|
|
1513
1545
|
* final boost score is equal to the sum of the boost scores from all matched boost conditions.
|
|
1514
1546
|
*/
|
|
@@ -1520,8 +1552,8 @@ declare namespace gapi.client {
|
|
|
1520
1552
|
branch?: string;
|
|
1521
1553
|
/**
|
|
1522
1554
|
* The default filter that is applied when a user performs a search without checking any filters on the search page. The filter applied to every search request when quality improvement
|
|
1523
|
-
* such as query expansion is needed. For example, if a query does not have enough results, an expanded query with SearchRequest.canonical_filter
|
|
1524
|
-
*
|
|
1555
|
+
* such as query expansion is needed. For example, if a query does not have enough results, an expanded query with SearchRequest.canonical_filter is returned as a supplement of the
|
|
1556
|
+
* original query. This field is strongly recommended to achieve high search quality. For more information about filter syntax, see SearchRequest.filter.
|
|
1525
1557
|
*/
|
|
1526
1558
|
canonicalFilter?: string;
|
|
1527
1559
|
/**
|
|
@@ -1537,16 +1569,16 @@ declare namespace gapi.client {
|
|
|
1537
1569
|
/** Facet specifications for faceted search. If empty, no facets are returned. A maximum of 200 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. */
|
|
1538
1570
|
facetSpecs?: GoogleCloudRetailV2alphaSearchRequestFacetSpec[];
|
|
1539
1571
|
/**
|
|
1540
|
-
* The filter syntax consists of an expression language for constructing a predicate from one or more fields of the products being filtered. Filter expression is case-sensitive.
|
|
1541
|
-
* more
|
|
1572
|
+
* The filter syntax consists of an expression language for constructing a predicate from one or more fields of the products being filtered. Filter expression is case-sensitive. For
|
|
1573
|
+
* more information, see [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter). If this field is unrecognizable, an INVALID_ARGUMENT is returned.
|
|
1542
1574
|
*/
|
|
1543
1575
|
filter?: string;
|
|
1544
1576
|
/**
|
|
1545
1577
|
* The labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys
|
|
1546
1578
|
* have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can
|
|
1547
1579
|
* contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a
|
|
1548
|
-
* label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character.
|
|
1549
|
-
*
|
|
1580
|
+
* label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. For more information, see
|
|
1581
|
+
* [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) in the Resource Manager documentation.
|
|
1550
1582
|
*/
|
|
1551
1583
|
labels?: { [P in string]: string };
|
|
1552
1584
|
/**
|
|
@@ -1555,8 +1587,8 @@ declare namespace gapi.client {
|
|
|
1555
1587
|
*/
|
|
1556
1588
|
offset?: number;
|
|
1557
1589
|
/**
|
|
1558
|
-
* The order in which products are returned. Products can be ordered by a field in an Product object. Leave it unset if ordered by relevance. OrderBy expression is case-sensitive.
|
|
1559
|
-
* more
|
|
1590
|
+
* The order in which products are returned. Products can be ordered by a field in an Product object. Leave it unset if ordered by relevance. OrderBy expression is case-sensitive. For
|
|
1591
|
+
* more information, see [Order](https://cloud.google.com/retail/docs/filter-and-order#order). If this field is unrecognizable, an INVALID_ARGUMENT is returned.
|
|
1560
1592
|
*/
|
|
1561
1593
|
orderBy?: string;
|
|
1562
1594
|
/**
|
|
@@ -1584,13 +1616,13 @@ declare namespace gapi.client {
|
|
|
1584
1616
|
/** Raw search query. If this field is empty, the request is considered a category browsing request and returned results are based on filter and page_categories. */
|
|
1585
1617
|
query?: string;
|
|
1586
1618
|
/**
|
|
1587
|
-
* The query expansion specification that specifies the conditions under which query expansion
|
|
1588
|
-
*
|
|
1619
|
+
* The query expansion specification that specifies the conditions under which query expansion occurs. For more information, see [Query
|
|
1620
|
+
* expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
|
|
1589
1621
|
*/
|
|
1590
1622
|
queryExpansionSpec?: GoogleCloudRetailV2alphaSearchRequestQueryExpansionSpec;
|
|
1591
1623
|
/**
|
|
1592
1624
|
* The relevance threshold of the search results. Defaults to RelevanceThreshold.HIGH, which means only the most relevant results are shown, and the least number of results are
|
|
1593
|
-
* returned.
|
|
1625
|
+
* returned. For more information, see [Adjust result size](https://cloud.google.com/retail/docs/result-size#relevance_thresholding).
|
|
1594
1626
|
*/
|
|
1595
1627
|
relevanceThreshold?: string;
|
|
1596
1628
|
/** The search mode of the search request. If not specified, a single search request triggers both product search and faceted search. */
|
|
@@ -1654,14 +1686,14 @@ declare namespace gapi.client {
|
|
|
1654
1686
|
}
|
|
1655
1687
|
interface GoogleCloudRetailV2alphaSearchRequestFacetSpec {
|
|
1656
1688
|
/**
|
|
1657
|
-
* Enables dynamic position for this facet. If set to true, the position of this facet among all facets in the response is determined by Google Retail Search. It
|
|
1658
|
-
*
|
|
1659
|
-
*
|
|
1660
|
-
*
|
|
1661
|
-
*
|
|
1662
|
-
*
|
|
1663
|
-
*
|
|
1664
|
-
*
|
|
1689
|
+
* Enables dynamic position for this facet. If set to true, the position of this facet among all facets in the response is determined by Google Retail Search. It is ordered together
|
|
1690
|
+
* with dynamic facets if dynamic facets is enabled. If set to false, the position of this facet in the response is the same as in the request, and it is ranked before the facets with
|
|
1691
|
+
* dynamic position enable and all dynamic facets. For example, you may always want to have rating facet returned in the response, but it's not necessarily to always display the rating
|
|
1692
|
+
* facet at the top. In that case, you can set enable_dynamic_position to true so that the position of rating facet in response is determined by Google Retail Search. Another example,
|
|
1693
|
+
* assuming you have the following facets in the request: * "rating", enable_dynamic_position = true * "price", enable_dynamic_position = false * "brands", enable_dynamic_position =
|
|
1694
|
+
* false And also you have a dynamic facets enable, which generates a facet "gender". Then, the final order of the facets in the response can be ("price", "brands", "rating", "gender")
|
|
1695
|
+
* or ("price", "brands", "gender", "rating") depends on how Google Retail Search orders "gender" and "rating" facets. However, notice that "price" and "brands" are always ranked at
|
|
1696
|
+
* first and second position because their enable_dynamic_position values are false.
|
|
1665
1697
|
*/
|
|
1666
1698
|
enableDynamicPosition?: boolean;
|
|
1667
1699
|
/**
|
|
@@ -1687,14 +1719,14 @@ declare namespace gapi.client {
|
|
|
1687
1719
|
caseInsensitive?: boolean;
|
|
1688
1720
|
/**
|
|
1689
1721
|
* Only get facet values that contains the given strings. For example, suppose "categories" has three values "Women > Shoe", "Women > Dress" and "Men > Shoe". If set "contains" to
|
|
1690
|
-
* "Shoe", the "categories" facet
|
|
1722
|
+
* "Shoe", the "categories" facet gives only "Women > Shoe" and "Men > Shoe". Only supported on textual fields. Maximum is 10.
|
|
1691
1723
|
*/
|
|
1692
1724
|
contains?: string[];
|
|
1693
1725
|
/**
|
|
1694
1726
|
* Set only if values should be bucketized into intervals. Must be set for facets with numerical values. Must not be set for facet with text values. Maximum number of intervals is 40.
|
|
1695
|
-
* For all numerical facet keys that appear in the list of products from the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are computed from their distribution weekly. If the
|
|
1696
|
-
* model assigns a high score to a numerical facet key and its intervals are not specified in the search request, these percentiles
|
|
1697
|
-
*
|
|
1727
|
+
* For all numerical facet keys that appear in the list of products from the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are computed from their distribution weekly. If the
|
|
1728
|
+
* model assigns a high score to a numerical facet key and its intervals are not specified in the search request, these percentiles become the bounds for its intervals and are returned
|
|
1729
|
+
* in the response. If the facet key intervals are specified in the request, then the specified intervals are returned instead.
|
|
1698
1730
|
*/
|
|
1699
1731
|
intervals?: GoogleCloudRetailV2alphaInterval[];
|
|
1700
1732
|
/**
|
|
@@ -1714,15 +1746,15 @@ declare namespace gapi.client {
|
|
|
1714
1746
|
orderBy?: string;
|
|
1715
1747
|
/**
|
|
1716
1748
|
* Only get facet values that start with the given string prefix. For example, suppose "categories" has three values "Women > Shoe", "Women > Dress" and "Men > Shoe". If set "prefixes"
|
|
1717
|
-
* to "Women", the "categories" facet
|
|
1749
|
+
* to "Women", the "categories" facet gives only "Women > Shoe" and "Women > Dress". Only supported on textual fields. Maximum is 10.
|
|
1718
1750
|
*/
|
|
1719
1751
|
prefixes?: string[];
|
|
1720
1752
|
/**
|
|
1721
|
-
* The query that is used to compute facet for the given facet key. When provided, it
|
|
1753
|
+
* The query that is used to compute facet for the given facet key. When provided, it overrides the default behavior of facet computation. The query syntax is the same as a filter
|
|
1722
1754
|
* expression. See SearchRequest.filter for detail syntax and limitations. Notice that there is no limitation on FacetKey.key when query is specified. In the response,
|
|
1723
|
-
* SearchResponse.Facet.values.value
|
|
1724
|
-
*
|
|
1725
|
-
*
|
|
1755
|
+
* SearchResponse.Facet.values.value is always "1" and SearchResponse.Facet.values.count is the number of results that match the query. For example, you can set a customized facet for
|
|
1756
|
+
* "shipToStore", where FacetKey.key is "customizedShipToStore", and FacetKey.query is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")". Then the facet counts the
|
|
1757
|
+
* products that are both in stock and ship to store "123".
|
|
1726
1758
|
*/
|
|
1727
1759
|
query?: string;
|
|
1728
1760
|
/**
|
|
@@ -2022,8 +2054,8 @@ declare namespace gapi.client {
|
|
|
2022
2054
|
/** The main auto-completion details related to the event. This field should be set for `search` event when autocomplete function is enabled and the user clicks a suggestion for search. */
|
|
2023
2055
|
completionDetail?: GoogleCloudRetailV2alphaCompletionDetail;
|
|
2024
2056
|
/**
|
|
2025
|
-
* The entity for customers that may run multiple different entities, domains, sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc.
|
|
2026
|
-
*
|
|
2057
|
+
* The entity for customers that may run multiple different entities, domains, sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We
|
|
2058
|
+
* recommend that you set this field to get better per-entity search, completion, and prediction results.
|
|
2027
2059
|
*/
|
|
2028
2060
|
entity?: string;
|
|
2029
2061
|
/** Only required for UserEventService.ImportUserEvents method. Timestamp of when the user event happened. */
|
|
@@ -2321,6 +2353,8 @@ declare namespace gapi.client {
|
|
|
2321
2353
|
filteringOption?: string;
|
|
2322
2354
|
/** Output only. The timestamp when the latest successful tune finished. */
|
|
2323
2355
|
lastTuneTime?: string;
|
|
2356
|
+
/** Optional. Additional model features config. */
|
|
2357
|
+
modelFeaturesConfig?: GoogleCloudRetailV2betaModelModelFeaturesConfig;
|
|
2324
2358
|
/**
|
|
2325
2359
|
* Required. The fully qualified resource name of the model. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` catalog_id has char
|
|
2326
2360
|
* limit of 50. recommendation_model_id has char limit of 40.
|
|
@@ -2359,6 +2393,14 @@ declare namespace gapi.client {
|
|
|
2359
2393
|
/** Output only. Timestamp the Recommendation Model was last updated. E.g. if a Recommendation Model was paused - this would be the time the pause was initiated. */
|
|
2360
2394
|
updateTime?: string;
|
|
2361
2395
|
}
|
|
2396
|
+
interface GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfig {
|
|
2397
|
+
/** Optional. Specifies the context of the model when used in predict requests. Only settable for the `frequently-bought-together` type. Will default to MULTI_CONTEXT if not specified. */
|
|
2398
|
+
contextProductsType?: string;
|
|
2399
|
+
}
|
|
2400
|
+
interface GoogleCloudRetailV2betaModelModelFeaturesConfig {
|
|
2401
|
+
/** Additional configs for frequently-bought-together models. */
|
|
2402
|
+
frequentlyBoughtTogetherConfig?: GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfig;
|
|
2403
|
+
}
|
|
2362
2404
|
interface GoogleCloudRetailV2betaModelServingConfigList {
|
|
2363
2405
|
/** Optional. A set of valid serving configs that may be used for `PAGE_OPTIMIZATION`. */
|
|
2364
2406
|
servingConfigIds?: string[];
|
|
@@ -2478,6 +2520,8 @@ declare namespace gapi.client {
|
|
|
2478
2520
|
filteringOption?: string;
|
|
2479
2521
|
/** Output only. The timestamp when the latest successful tune finished. */
|
|
2480
2522
|
lastTuneTime?: string;
|
|
2523
|
+
/** Optional. Additional model features config. */
|
|
2524
|
+
modelFeaturesConfig?: GoogleCloudRetailV2ModelModelFeaturesConfig;
|
|
2481
2525
|
/**
|
|
2482
2526
|
* Required. The fully qualified resource name of the model. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` catalog_id has char
|
|
2483
2527
|
* limit of 50. recommendation_model_id has char limit of 40.
|
|
@@ -2516,6 +2560,14 @@ declare namespace gapi.client {
|
|
|
2516
2560
|
/** Output only. Timestamp the Recommendation Model was last updated. E.g. if a Recommendation Model was paused - this would be the time the pause was initiated. */
|
|
2517
2561
|
updateTime?: string;
|
|
2518
2562
|
}
|
|
2563
|
+
interface GoogleCloudRetailV2ModelFrequentlyBoughtTogetherFeaturesConfig {
|
|
2564
|
+
/** Optional. Specifies the context of the model when used in predict requests. Only settable for the `frequently-bought-together` type. Will default to MULTI_CONTEXT if not specified. */
|
|
2565
|
+
contextProductsType?: string;
|
|
2566
|
+
}
|
|
2567
|
+
interface GoogleCloudRetailV2ModelModelFeaturesConfig {
|
|
2568
|
+
/** Additional configs for frequently-bought-together models. */
|
|
2569
|
+
frequentlyBoughtTogetherConfig?: GoogleCloudRetailV2ModelFrequentlyBoughtTogetherFeaturesConfig;
|
|
2570
|
+
}
|
|
2519
2571
|
interface GoogleCloudRetailV2ModelServingConfigList {
|
|
2520
2572
|
/** Optional. A set of valid serving configs that may be used for `PAGE_OPTIMIZATION`. */
|
|
2521
2573
|
servingConfigIds?: string[];
|
|
@@ -2913,12 +2965,12 @@ declare namespace gapi.client {
|
|
|
2913
2965
|
}
|
|
2914
2966
|
interface ProductsResource {
|
|
2915
2967
|
/**
|
|
2916
|
-
*
|
|
2917
|
-
* but provides more fine-grained control over ingesting local inventory data. Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is
|
|
2918
|
-
* not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a
|
|
2919
|
-
* response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The
|
|
2920
|
-
* will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale
|
|
2921
|
-
* marked as done until being obsolete.
|
|
2968
|
+
* We recommend that you use the ProductService.AddLocalInventories method instead of the ProductService.AddFulfillmentPlaces method. ProductService.AddLocalInventories achieves the
|
|
2969
|
+
* same results but provides more fine-grained control over ingesting local inventory data. Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is
|
|
2970
|
+
* asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a
|
|
2971
|
+
* consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The
|
|
2972
|
+
* returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale
|
|
2973
|
+
* updates will not be marked as done until being obsolete.
|
|
2922
2974
|
*/
|
|
2923
2975
|
addFulfillmentPlaces(request: {
|
|
2924
2976
|
/** V1 error format. */
|
|
@@ -3445,12 +3497,12 @@ declare namespace gapi.client {
|
|
|
3445
3497
|
},
|
|
3446
3498
|
body: GoogleCloudRetailV2alphaPurgeProductsRequest): Request<GoogleLongrunningOperation>;
|
|
3447
3499
|
/**
|
|
3448
|
-
*
|
|
3449
|
-
* results but provides more fine-grained control over ingesting local inventory data. Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This
|
|
3450
|
-
* asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed
|
|
3451
|
-
* consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or
|
|
3452
|
-
* The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the
|
|
3453
|
-
* stale updates will not be marked as done until being obsolete.
|
|
3500
|
+
* We recommend that you use the ProductService.RemoveLocalInventories method instead of the ProductService.RemoveFulfillmentPlaces method. ProductService.RemoveLocalInventories
|
|
3501
|
+
* achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This
|
|
3502
|
+
* process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed
|
|
3503
|
+
* downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or
|
|
3504
|
+
* ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the
|
|
3505
|
+
* Operations associated with the stale updates will not be marked as done until being obsolete.
|
|
3454
3506
|
*/
|
|
3455
3507
|
removeFulfillmentPlaces(request: {
|
|
3456
3508
|
/** V1 error format. */
|
|
@@ -3934,8 +3986,8 @@ declare namespace gapi.client {
|
|
|
3934
3986
|
body: GoogleCloudRetailV2alphaControl): Request<GoogleCloudRetailV2alphaControl>;
|
|
3935
3987
|
}
|
|
3936
3988
|
interface MerchantCenterAccountLinksResource {
|
|
3937
|
-
/** Creates a MerchantCenterAccountLink.
|
|
3938
|
-
|
|
3989
|
+
/** Creates a MerchantCenterAccountLink. */
|
|
3990
|
+
create(request: {
|
|
3939
3991
|
/** V1 error format. */
|
|
3940
3992
|
"$.xgafv"?: string;
|
|
3941
3993
|
/** OAuth access token. */
|
|
@@ -3948,15 +4000,10 @@ declare namespace gapi.client {
|
|
|
3948
4000
|
fields?: string;
|
|
3949
4001
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3950
4002
|
key?: string;
|
|
3951
|
-
/**
|
|
3952
|
-
* Output only. Immutable. Full resource name of the Merchant Center Account Link, such as
|
|
3953
|
-
* `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/merchant_center_account_link`.
|
|
3954
|
-
*/
|
|
3955
|
-
name: string;
|
|
3956
4003
|
/** OAuth 2.0 token for the current user. */
|
|
3957
4004
|
oauth_token?: string;
|
|
3958
4005
|
/** Required. The branch resource where this MerchantCenterAccountLink will be created. Format: projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}} */
|
|
3959
|
-
parent
|
|
4006
|
+
parent: string;
|
|
3960
4007
|
/** Returns response with indentations and line breaks. */
|
|
3961
4008
|
prettyPrint?: boolean;
|
|
3962
4009
|
/** 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. */
|
|
@@ -3968,7 +4015,7 @@ declare namespace gapi.client {
|
|
|
3968
4015
|
/** Request body */
|
|
3969
4016
|
resource: GoogleCloudRetailV2alphaMerchantCenterAccountLink;
|
|
3970
4017
|
}): Request<GoogleLongrunningOperation>;
|
|
3971
|
-
|
|
4018
|
+
create(request: {
|
|
3972
4019
|
/** V1 error format. */
|
|
3973
4020
|
"$.xgafv"?: string;
|
|
3974
4021
|
/** OAuth access token. */
|
|
@@ -3981,15 +4028,10 @@ declare namespace gapi.client {
|
|
|
3981
4028
|
fields?: string;
|
|
3982
4029
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3983
4030
|
key?: string;
|
|
3984
|
-
/**
|
|
3985
|
-
* Output only. Immutable. Full resource name of the Merchant Center Account Link, such as
|
|
3986
|
-
* `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/merchant_center_account_link`.
|
|
3987
|
-
*/
|
|
3988
|
-
name: string;
|
|
3989
4031
|
/** OAuth 2.0 token for the current user. */
|
|
3990
4032
|
oauth_token?: string;
|
|
3991
4033
|
/** Required. The branch resource where this MerchantCenterAccountLink will be created. Format: projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}} */
|
|
3992
|
-
parent
|
|
4034
|
+
parent: string;
|
|
3993
4035
|
/** Returns response with indentations and line breaks. */
|
|
3994
4036
|
prettyPrint?: boolean;
|
|
3995
4037
|
/** 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. */
|
|
@@ -4586,7 +4628,7 @@ declare namespace gapi.client {
|
|
|
4586
4628
|
/**
|
|
4587
4629
|
* Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the
|
|
4588
4630
|
* name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving
|
|
4589
|
-
* config name and the set of models that
|
|
4631
|
+
* config name and the set of models that are used to make the search.
|
|
4590
4632
|
*/
|
|
4591
4633
|
placement: string;
|
|
4592
4634
|
/** Returns response with indentations and line breaks. */
|
|
@@ -4618,7 +4660,7 @@ declare namespace gapi.client {
|
|
|
4618
4660
|
/**
|
|
4619
4661
|
* Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the
|
|
4620
4662
|
* name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving
|
|
4621
|
-
* config name and the set of models that
|
|
4663
|
+
* config name and the set of models that are used to make the search.
|
|
4622
4664
|
*/
|
|
4623
4665
|
placement: string;
|
|
4624
4666
|
/** Returns response with indentations and line breaks. */
|
|
@@ -5047,7 +5089,7 @@ declare namespace gapi.client {
|
|
|
5047
5089
|
/**
|
|
5048
5090
|
* Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the
|
|
5049
5091
|
* name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving
|
|
5050
|
-
* config name and the set of models that
|
|
5092
|
+
* config name and the set of models that are used to make the search.
|
|
5051
5093
|
*/
|
|
5052
5094
|
placement: string;
|
|
5053
5095
|
/** Returns response with indentations and line breaks. */
|
|
@@ -5079,7 +5121,7 @@ declare namespace gapi.client {
|
|
|
5079
5121
|
/**
|
|
5080
5122
|
* Required. The resource name of the Retail Search serving config, such as `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` or the
|
|
5081
5123
|
* name of the legacy placement resource, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. This field is used to identify the serving
|
|
5082
|
-
* config name and the set of models that
|
|
5124
|
+
* config name and the set of models that are used to make the search.
|
|
5083
5125
|
*/
|
|
5084
5126
|
placement: string;
|
|
5085
5127
|
/** Returns response with indentations and line breaks. */
|
|
@@ -5417,8 +5459,8 @@ declare namespace gapi.client {
|
|
|
5417
5459
|
/** If true, attribute suggestions are enabled and provided in response. This field is only available for "cloud-retail" dataset. */
|
|
5418
5460
|
enableAttributeSuggestions?: boolean;
|
|
5419
5461
|
/**
|
|
5420
|
-
* The entity for customers
|
|
5421
|
-
*
|
|
5462
|
+
* The entity for customers who run multiple entities, domains, sites, or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. If this is
|
|
5463
|
+
* set, it must be an exact match with UserEvent.entity to get per-entity autocomplete results.
|
|
5422
5464
|
*/
|
|
5423
5465
|
entity?: string;
|
|
5424
5466
|
/** Selector specifying which fields to include in a partial response. */
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230420
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -124,6 +124,23 @@ gapi.load('client', async () => {
|
|
|
124
124
|
A: {
|
|
125
125
|
dynamicFacetableOption: "Test string",
|
|
126
126
|
exactSearchableOption: "Test string",
|
|
127
|
+
facetIntervals: [
|
|
128
|
+
{
|
|
129
|
+
exclusiveMaximum: 42,
|
|
130
|
+
exclusiveMinimum: 42,
|
|
131
|
+
maximum: 42,
|
|
132
|
+
minimum: 42,
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
ignoredFacetValues: [
|
|
136
|
+
{
|
|
137
|
+
endTime: "Test string",
|
|
138
|
+
startTime: "Test string",
|
|
139
|
+
values: [
|
|
140
|
+
"Test string"
|
|
141
|
+
],
|
|
142
|
+
}
|
|
143
|
+
],
|
|
127
144
|
indexableOption: "Test string",
|
|
128
145
|
inUse: true,
|
|
129
146
|
key: "Test string",
|
|
@@ -198,6 +215,23 @@ gapi.load('client', async () => {
|
|
|
198
215
|
catalogAttribute: {
|
|
199
216
|
dynamicFacetableOption: "Test string",
|
|
200
217
|
exactSearchableOption: "Test string",
|
|
218
|
+
facetIntervals: [
|
|
219
|
+
{
|
|
220
|
+
exclusiveMaximum: 42,
|
|
221
|
+
exclusiveMinimum: 42,
|
|
222
|
+
maximum: 42,
|
|
223
|
+
minimum: 42,
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
ignoredFacetValues: [
|
|
227
|
+
{
|
|
228
|
+
endTime: "Test string",
|
|
229
|
+
startTime: "Test string",
|
|
230
|
+
values: [
|
|
231
|
+
"Test string"
|
|
232
|
+
],
|
|
233
|
+
}
|
|
234
|
+
],
|
|
201
235
|
indexableOption: "Test string",
|
|
202
236
|
inUse: true,
|
|
203
237
|
key: "Test string",
|
|
@@ -231,6 +265,23 @@ gapi.load('client', async () => {
|
|
|
231
265
|
catalogAttribute: {
|
|
232
266
|
dynamicFacetableOption: "Test string",
|
|
233
267
|
exactSearchableOption: "Test string",
|
|
268
|
+
facetIntervals: [
|
|
269
|
+
{
|
|
270
|
+
exclusiveMaximum: 42,
|
|
271
|
+
exclusiveMinimum: 42,
|
|
272
|
+
maximum: 42,
|
|
273
|
+
minimum: 42,
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
ignoredFacetValues: [
|
|
277
|
+
{
|
|
278
|
+
endTime: "Test string",
|
|
279
|
+
startTime: "Test string",
|
|
280
|
+
values: [
|
|
281
|
+
"Test string"
|
|
282
|
+
],
|
|
283
|
+
}
|
|
284
|
+
],
|
|
234
285
|
indexableOption: "Test string",
|
|
235
286
|
inUse: true,
|
|
236
287
|
key: "Test string",
|
|
@@ -250,12 +301,12 @@ gapi.load('client', async () => {
|
|
|
250
301
|
name: "Test string",
|
|
251
302
|
});
|
|
252
303
|
/**
|
|
253
|
-
*
|
|
254
|
-
* provides more fine-grained control over ingesting local inventory data. Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and
|
|
255
|
-
* require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a
|
|
256
|
-
* returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will
|
|
257
|
-
* after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as
|
|
258
|
-
* being obsolete.
|
|
304
|
+
* We recommend that you use the ProductService.AddLocalInventories method instead of the ProductService.AddFulfillmentPlaces method. ProductService.AddLocalInventories achieves the same
|
|
305
|
+
* results but provides more fine-grained control over ingesting local inventory data. Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and
|
|
306
|
+
* does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a
|
|
307
|
+
* response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will
|
|
308
|
+
* be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as
|
|
309
|
+
* done until being obsolete.
|
|
259
310
|
*/
|
|
260
311
|
await gapi.client.retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces({
|
|
261
312
|
product: "Test string",
|
|
@@ -889,8 +940,8 @@ gapi.load('client', async () => {
|
|
|
889
940
|
force: true,
|
|
890
941
|
});
|
|
891
942
|
/**
|
|
892
|
-
*
|
|
893
|
-
* results but provides more fine-grained control over ingesting local inventory data. Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is
|
|
943
|
+
* We recommend that you use the ProductService.RemoveLocalInventories method instead of the ProductService.RemoveFulfillmentPlaces method. ProductService.RemoveLocalInventories achieves
|
|
944
|
+
* the same results but provides more fine-grained control over ingesting local inventory data. Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is
|
|
894
945
|
* asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a
|
|
895
946
|
* consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The
|
|
896
947
|
* returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale
|
|
@@ -1367,9 +1418,8 @@ gapi.load('client', async () => {
|
|
|
1367
1418
|
"Test string"
|
|
1368
1419
|
],
|
|
1369
1420
|
});
|
|
1370
|
-
/** Creates a MerchantCenterAccountLink.
|
|
1371
|
-
await gapi.client.retail.projects.locations.catalogs.merchantCenterAccountLinks.
|
|
1372
|
-
name: "Test string",
|
|
1421
|
+
/** Creates a MerchantCenterAccountLink. */
|
|
1422
|
+
await gapi.client.retail.projects.locations.catalogs.merchantCenterAccountLinks.create({
|
|
1373
1423
|
parent: "Test string",
|
|
1374
1424
|
}, {
|
|
1375
1425
|
branchId: "Test string",
|
|
@@ -1405,6 +1455,11 @@ gapi.load('client', async () => {
|
|
|
1405
1455
|
displayName: "Test string",
|
|
1406
1456
|
filteringOption: "Test string",
|
|
1407
1457
|
lastTuneTime: "Test string",
|
|
1458
|
+
modelFeaturesConfig: {
|
|
1459
|
+
frequentlyBoughtTogetherConfig: {
|
|
1460
|
+
contextProductsType: "Test string",
|
|
1461
|
+
},
|
|
1462
|
+
},
|
|
1408
1463
|
name: "Test string",
|
|
1409
1464
|
optimizationObjective: "Test string",
|
|
1410
1465
|
pageOptimizationConfig: {
|
|
@@ -1462,6 +1517,11 @@ gapi.load('client', async () => {
|
|
|
1462
1517
|
displayName: "Test string",
|
|
1463
1518
|
filteringOption: "Test string",
|
|
1464
1519
|
lastTuneTime: "Test string",
|
|
1520
|
+
modelFeaturesConfig: {
|
|
1521
|
+
frequentlyBoughtTogetherConfig: {
|
|
1522
|
+
contextProductsType: "Test string",
|
|
1523
|
+
},
|
|
1524
|
+
},
|
|
1465
1525
|
name: "Test string",
|
|
1466
1526
|
optimizationObjective: "Test string",
|
|
1467
1527
|
pageOptimizationConfig: {
|