@maxim_mazurok/gapi.client.retail-v2alpha 0.0.20250102 → 0.0.20250109
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 +9 -3
- package/package.json +2 -2
- package/readme.md +4 -4
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Type definitions for non-npm package Vertex AI Search for
|
|
1
|
+
/* Type definitions for non-npm package Vertex AI Search for commerce API v2alpha 0.0 */
|
|
2
2
|
// Project: https://cloud.google.com/recommendations
|
|
3
3
|
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
4
|
// Nick Amoscato <https://github.com/namoscato>
|
|
@@ -9,12 +9,12 @@
|
|
|
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: 20250109
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
16
16
|
declare namespace gapi.client {
|
|
17
|
-
/** Load Vertex AI Search for
|
|
17
|
+
/** Load Vertex AI Search for commerce API v2alpha */
|
|
18
18
|
function load(
|
|
19
19
|
urlOrObject: 'https://retail.googleapis.com/$discovery/rest?version=v2alpha'
|
|
20
20
|
): Promise<void>;
|
|
@@ -1154,6 +1154,8 @@ declare namespace gapi.client {
|
|
|
1154
1154
|
ignoreAction?: GoogleCloudRetailV2alphaRuleIgnoreAction;
|
|
1155
1155
|
/** Treats specific term as a synonym with a group of terms. Group of terms will not be treated as synonyms with the specific term. */
|
|
1156
1156
|
onewaySynonymsAction?: GoogleCloudRetailV2alphaRuleOnewaySynonymsAction;
|
|
1157
|
+
/** Pins one or more specified products to a specific position in the results. */
|
|
1158
|
+
pinAction?: GoogleCloudRetailV2alphaRulePinAction;
|
|
1157
1159
|
/** Redirects a shopper to a specific page. */
|
|
1158
1160
|
redirectAction?: GoogleCloudRetailV2alphaRuleRedirectAction;
|
|
1159
1161
|
/** Remove an attribute as a facet in the request (if present). */
|
|
@@ -1203,6 +1205,10 @@ declare namespace gapi.client {
|
|
|
1203
1205
|
/** Defines a set of synonyms. Cannot contain duplicates. Can specify up to 100 synonyms. */
|
|
1204
1206
|
synonyms?: string[];
|
|
1205
1207
|
}
|
|
1208
|
+
interface GoogleCloudRetailV2alphaRulePinAction {
|
|
1209
|
+
/** Required. A map of positions to product_ids. Partial matches per action are allowed, if a certain position in the map is already filled that `[position, product_id]` pair will be ignored but the rest may still be applied. This case will only occur if multiple pin actions are matched to a single request, as the map guarantees that pin positions are unique within the same action. Duplicate product_ids are not permitted within a single pin map. The max size of this map is 120, equivalent to the max [request page size](https://cloud.google.com/retail/docs/reference/rest/v2/projects.locations.catalogs.placements/search#request-body). */
|
|
1210
|
+
pinMap?: {[P in string]: string};
|
|
1211
|
+
}
|
|
1206
1212
|
interface GoogleCloudRetailV2alphaRuleRedirectAction {
|
|
1207
1213
|
/** URL must have length equal or less than 2000 characters. */
|
|
1208
1214
|
redirectUri?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxim_mazurok/gapi.client.retail-v2alpha",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "TypeScript typings for Vertex AI Search for
|
|
3
|
+
"version": "0.0.20250109",
|
|
4
|
+
"description": "TypeScript typings for Vertex AI Search for commerce API v2alpha",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
|
package/readme.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# TypeScript typings for Vertex AI Search for
|
|
1
|
+
# TypeScript typings for Vertex AI Search for commerce API v2alpha
|
|
2
2
|
|
|
3
|
-
Vertex AI Search for
|
|
3
|
+
Vertex AI Search for commerce API is made up of Retail Search, Browse and Recommendations. These discovery AI solutions help you implement personalized search, browse and recommendations, based on machine learning models, across your websites and mobile applications.
|
|
4
4
|
For detailed description please check [documentation](https://cloud.google.com/recommendations).
|
|
5
5
|
|
|
6
6
|
## Installing
|
|
7
7
|
|
|
8
|
-
Install typings for Vertex AI Search for
|
|
8
|
+
Install typings for Vertex AI Search for commerce API:
|
|
9
9
|
|
|
10
10
|
```
|
|
11
11
|
npm install @types/gapi.client.retail-v2alpha --save-dev
|
|
@@ -66,7 +66,7 @@ gapi.auth.authorize(
|
|
|
66
66
|
);
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
After that you can use Vertex AI Search for
|
|
69
|
+
After that you can use Vertex AI Search for commerce API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
70
70
|
|
|
71
71
|
```typescript
|
|
72
72
|
/*
|