@maxim_mazurok/gapi.client.retail-v2alpha 0.0.20220922 → 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.
Files changed (3) hide show
  1. package/index.d.ts +35 -19
  2. package/package.json +1 -1
  3. package/tests.ts +4 -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: 20220922
12
+ // Revision: 20221024
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -68,22 +68,10 @@ declare namespace gapi.client {
68
68
  catalogItem?: string;
69
69
  /** Cloud Storage file path of the import source. Can be set for batch operation error. */
70
70
  gcsPath?: string;
71
- /** The detailed content which caused the error on importing an inventory activity. http://cs/google3/google/cloud/retail/v2main/inventory_activity.proto */
72
- inventoryActivity?: string;
73
71
  /** Line number of the content in file. Should be empty for permission or batch operation error. */
74
72
  lineNumber?: string;
75
73
  /** The operation resource name of the LRO. */
76
74
  operationName?: string;
77
- /** The detailed content which caused the error on importing an order. http://cs/google3/google/cloud/retail/v2main/order.proto */
78
- order?: string;
79
- /** The detailed content which caused the error on importing a place. http://cs/google3/google/cloud/retail/v2main/place.proto */
80
- place?: string;
81
- /** The detailed content which caused the error on importing a place asset. http://cs/google3/google/cloud/retail/v2main/place_asset.proto */
82
- placeAsset?: string;
83
- /** The detailed content which caused the error on importing a place product price. http://cs/google3/google/cloud/retail/v2main/place_product_price.proto */
84
- placeProductPrice?: string;
85
- /** The detailed content which caused the error on importing a place product settings. http://cs/google3/google/cloud/retail/v2main/place_product_settings.proto */
86
- placeProductSettings?: string;
87
75
  /** The detailed content which caused the error on importing a product. */
88
76
  product?: string;
89
77
  /** The detailed content which caused the error on importing a user event. */
@@ -311,6 +299,8 @@ declare namespace gapi.client {
311
299
  colors?: string[];
312
300
  }
313
301
  interface GoogleCloudRetailV2alphaCompleteQueryResponse {
302
+ /** A map of matched attribute suggestions. Current supported keys: * `brands` * `categories` */
303
+ attributeResults?: { [P in string]: GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult };
314
304
  /**
315
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
316
306
  * model performance.
@@ -326,6 +316,10 @@ declare namespace gapi.client {
326
316
  */
327
317
  recentSearchResults?: GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult[];
328
318
  }
319
+ interface GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult {
320
+ /** The list of suggestions for the attribute. */
321
+ suggestions?: string[];
322
+ }
329
323
  interface GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult {
330
324
  /**
331
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
@@ -511,6 +505,10 @@ declare namespace gapi.client {
511
505
  */
512
506
  type?: string;
513
507
  }
508
+ interface GoogleCloudRetailV2alphaGcsOutputResult {
509
+ /** The uri of Gcs output */
510
+ outputUri?: string;
511
+ }
514
512
  interface GoogleCloudRetailV2alphaGcsSource {
515
513
  /**
516
514
  * The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid
@@ -826,8 +824,10 @@ declare namespace gapi.client {
826
824
  servingConfigIds?: string[];
827
825
  }
828
826
  interface GoogleCloudRetailV2alphaOutputResult {
829
- /** Export result in BigQuery. */
827
+ /** The BigQuery location where the result is stored. */
830
828
  bigqueryResult?: GoogleCloudRetailV2alphaBigQueryOutputResult[];
829
+ /** The Google Cloud Storage location where the result is stored. */
830
+ gcsResult?: GoogleCloudRetailV2alphaGcsOutputResult[];
831
831
  }
832
832
  // tslint:disable-next-line:no-empty-interface
833
833
  interface GoogleCloudRetailV2alphaPauseModelRequest {
@@ -863,7 +863,7 @@ declare namespace gapi.client {
863
863
  /**
864
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
865
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
866
- * `results.metadata` field in the prediction response. The given 'score' indicates the probability of an product being clicked/purchased given the user's context and history. *
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. *
867
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
868
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',
869
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,
@@ -1581,7 +1581,7 @@ declare namespace gapi.client {
1581
1581
  /** Required. The facet key specification. */
1582
1582
  facetKey?: GoogleCloudRetailV2alphaSearchRequestFacetSpecFacetKey;
1583
1583
  /**
1584
- * Maximum of facet values that should be returned for this facet. If unspecified, defaults to 20. The maximum allowed value is 300. Values above 300 will be coerced to 300. If this
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
1585
1585
  * field is negative, an INVALID_ARGUMENT is returned.
1586
1586
  */
1587
1587
  limit?: number;
@@ -2098,6 +2098,10 @@ declare namespace gapi.client {
2098
2098
  /** Output result indicating where the data were exported to. */
2099
2099
  outputResult?: GoogleCloudRetailV2betaOutputResult;
2100
2100
  }
2101
+ interface GoogleCloudRetailV2betaGcsOutputResult {
2102
+ /** The uri of Gcs output */
2103
+ outputUri?: string;
2104
+ }
2101
2105
  interface GoogleCloudRetailV2betaImportCompletionDataResponse {
2102
2106
  /** A sample of errors encountered while processing the request. */
2103
2107
  errorSamples?: GoogleRpcStatus[];
@@ -2201,8 +2205,10 @@ declare namespace gapi.client {
2201
2205
  servingConfigIds?: string[];
2202
2206
  }
2203
2207
  interface GoogleCloudRetailV2betaOutputResult {
2204
- /** Export result in BigQuery. */
2208
+ /** The BigQuery location where the result is stored. */
2205
2209
  bigqueryResult?: GoogleCloudRetailV2betaBigQueryOutputResult[];
2210
+ /** The Google Cloud Storage location where the result is stored. */
2211
+ gcsResult?: GoogleCloudRetailV2betaGcsOutputResult[];
2206
2212
  }
2207
2213
  // tslint:disable-next-line:no-empty-interface
2208
2214
  interface GoogleCloudRetailV2betaPurgeMetadata {
@@ -4732,10 +4738,17 @@ declare namespace gapi.client {
4732
4738
  oauth_token?: string;
4733
4739
  /** Required. The parent catalog name, such as `projects/1234/locations/global/catalogs/default_catalog`. */
4734
4740
  parent: string;
4741
+ /** The prebuilt rule name that can convert a specific type of raw_json. For example: "default_schema/v1.0" */
4742
+ prebuiltRule?: string;
4735
4743
  /** Returns response with indentations and line breaks. */
4736
4744
  prettyPrint?: boolean;
4737
4745
  /** 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. */
4738
4746
  quotaUser?: string;
4747
+ /**
4748
+ * An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note:
4749
+ * line-delimited JSON is not supported, a single JSON only.
4750
+ */
4751
+ rawJson?: string;
4739
4752
  /** Upload protocol for media (e.g. "raw", "multipart"). */
4740
4753
  upload_protocol?: string;
4741
4754
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
@@ -5007,10 +5020,13 @@ declare namespace gapi.client {
5007
5020
  */
5008
5021
  dataset?: string;
5009
5022
  /**
5010
- * The device type context for completion suggestions. It is useful to apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the
5011
- * suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
5023
+ * The device type context for completion suggestions. We recommend that you leave this field empty. It can apply different suggestions on different device types, e.g. `DESKTOP`,
5024
+ * `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with
5025
+ * `OTHER_`, e.g. `OTHER_IPHONE`.
5012
5026
  */
5013
5027
  deviceType?: string;
5028
+ /** If true, attribute suggestions are enabled and provided in response. */
5029
+ enableAttributeSuggestions?: boolean;
5014
5030
  /** Selector specifying which fields to include in a partial response. */
5015
5031
  fields?: string;
5016
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.retail-v2alpha",
3
- "version": "0.0.20220922",
3
+ "version": "0.0.20221024",
4
4
  "description": "TypeScript typings for Retail API v2alpha",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20220922
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",
@@ -2262,6 +2263,8 @@ gapi.load('client', async () => {
2262
2263
  await gapi.client.retail.projects.locations.catalogs.userEvents.collect({
2263
2264
  ets: "Test string",
2264
2265
  parent: "Test string",
2266
+ prebuiltRule: "Test string",
2267
+ rawJson: "Test string",
2265
2268
  uri: "Test string",
2266
2269
  userEvent: "Test string",
2267
2270
  });