@maxim_mazurok/gapi.client.retail-v2alpha 0.0.20221014 → 0.0.20221024
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 +11 -3
- package/package.json +1 -1
- package/tests.ts +2 -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:
|
|
12
|
+
// Revision: 20221024
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -299,6 +299,8 @@ declare namespace gapi.client {
|
|
|
299
299
|
colors?: string[];
|
|
300
300
|
}
|
|
301
301
|
interface GoogleCloudRetailV2alphaCompleteQueryResponse {
|
|
302
|
+
/** A map of matched attribute suggestions. Current supported keys: * `brands` * `categories` */
|
|
303
|
+
attributeResults?: { [P in string]: GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult };
|
|
302
304
|
/**
|
|
303
305
|
* A unique complete token. This should be included in the UserEvent.completion_detail for search events resulting from this completion, which enables accurate attribution of complete
|
|
304
306
|
* model performance.
|
|
@@ -314,6 +316,10 @@ declare namespace gapi.client {
|
|
|
314
316
|
*/
|
|
315
317
|
recentSearchResults?: GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult[];
|
|
316
318
|
}
|
|
319
|
+
interface GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult {
|
|
320
|
+
/** The list of suggestions for the attribute. */
|
|
321
|
+
suggestions?: string[];
|
|
322
|
+
}
|
|
317
323
|
interface GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult {
|
|
318
324
|
/**
|
|
319
325
|
* Custom attributes for the suggestion term. * For "user-data", the attributes are additional custom attributes ingested through BigQuery. * For "cloud-retail", the attributes are
|
|
@@ -857,7 +863,7 @@ declare namespace gapi.client {
|
|
|
857
863
|
/**
|
|
858
864
|
* Additional domain specific parameters for the predictions. Allowed values: * `returnProduct`: Boolean. If set to true, the associated product object will be returned in the
|
|
859
865
|
* `results.metadata` field in the prediction response. * `returnScore`: Boolean. If set to true, the prediction 'score' corresponding to each returned product will be set in the
|
|
860
|
-
* `results.metadata` field in the prediction response. The given 'score' indicates the probability of
|
|
866
|
+
* `results.metadata` field in the prediction response. The given 'score' indicates the probability of a product being clicked/purchased given the user's context and history. *
|
|
861
867
|
* `strictFiltering`: Boolean. True by default. If set to false, the service will return generic (unfiltered) popular products instead of empty if your filter blocks all prediction
|
|
862
868
|
* results. * `priceRerankLevel`: String. Default empty. If set to be non-empty, then it needs to be one of {'no-price-reranking', 'low-price-reranking', 'medium-price-reranking',
|
|
863
869
|
* 'high-price-reranking'}. This gives request-level control and adjusts prediction results based on product price. * `diversityLevel`: String. Default empty. If set to be non-empty,
|
|
@@ -1575,7 +1581,7 @@ declare namespace gapi.client {
|
|
|
1575
1581
|
/** Required. The facet key specification. */
|
|
1576
1582
|
facetKey?: GoogleCloudRetailV2alphaSearchRequestFacetSpecFacetKey;
|
|
1577
1583
|
/**
|
|
1578
|
-
* Maximum of facet values that should be returned for this facet. If unspecified, defaults to
|
|
1584
|
+
* Maximum of facet values that should be returned for this facet. If unspecified, defaults to 50. The maximum allowed value is 300. Values above 300 will be coerced to 300. If this
|
|
1579
1585
|
* field is negative, an INVALID_ARGUMENT is returned.
|
|
1580
1586
|
*/
|
|
1581
1587
|
limit?: number;
|
|
@@ -5019,6 +5025,8 @@ declare namespace gapi.client {
|
|
|
5019
5025
|
* `OTHER_`, e.g. `OTHER_IPHONE`.
|
|
5020
5026
|
*/
|
|
5021
5027
|
deviceType?: string;
|
|
5028
|
+
/** If true, attribute suggestions are enabled and provided in response. */
|
|
5029
|
+
enableAttributeSuggestions?: boolean;
|
|
5022
5030
|
/** Selector specifying which fields to include in a partial response. */
|
|
5023
5031
|
fields?: string;
|
|
5024
5032
|
/** 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. */
|
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: 20221024
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -37,6 +37,7 @@ gapi.load('client', async () => {
|
|
|
37
37
|
catalog: "Test string",
|
|
38
38
|
dataset: "Test string",
|
|
39
39
|
deviceType: "Test string",
|
|
40
|
+
enableAttributeSuggestions: true,
|
|
40
41
|
languageCodes: "Test string",
|
|
41
42
|
maxSuggestions: 42,
|
|
42
43
|
query: "Test string",
|