@maxim_mazurok/gapi.client.retail-v2alpha 0.0.20230427 → 0.0.20230516
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 +15 -31
- package/package.json +1 -1
- package/tests.ts +1 -52
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: 20230516
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -303,19 +303,9 @@ declare namespace gapi.client {
|
|
|
303
303
|
*/
|
|
304
304
|
exactSearchableOption?:
|
|
305
305
|
string;
|
|
306
|
-
/**
|
|
307
|
-
* If you don't set the facet SearchRequest.FacetSpec.FacetKey.intervals to a numerical attribute, then a weekly pipeline calculates intervals using some percentiles on the
|
|
308
|
-
* distribution of all its product numerical attribute values. The calculated intervals might not be ideal for some attributes. Therefore, we give you the option the overwrite them.
|
|
309
|
-
* For any numerical attribute that is passed as a facet key in the request along with given intervals, the given intervals are the facet intervals returned in the response.
|
|
310
|
-
*/
|
|
311
|
-
facetIntervals?:
|
|
312
|
-
GoogleCloudRetailV2alphaInterval[];
|
|
313
|
-
/** Each instance represents a list of attribute values to ignore as facet values for a specific time range. */
|
|
314
|
-
ignoredFacetValues?:
|
|
315
|
-
GoogleCloudRetailV2alphaCatalogAttributeIgnoredFacetValues[];
|
|
316
306
|
/**
|
|
317
307
|
* 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
|
|
318
|
-
* SearchService.Search. Must be specified, otherwise throws INVALID_FORMAT error.
|
|
308
|
+
* SearchService.Search. Must be specified when AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error.
|
|
319
309
|
*/
|
|
320
310
|
indexableOption?:
|
|
321
311
|
string;
|
|
@@ -347,7 +337,7 @@ declare namespace gapi.client {
|
|
|
347
337
|
/**
|
|
348
338
|
* When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if SEARCHABLE_ENABLED, attribute values are searchable by text queries in SearchService.Search. If
|
|
349
339
|
* SEARCHABLE_ENABLED but attribute type is numerical, attribute values will not be searchable by text queries in SearchService.Search, as there are no text values associated to
|
|
350
|
-
* numerical attributes. Must be specified, otherwise throws INVALID_FORMAT error.
|
|
340
|
+
* numerical attributes. Must be specified, when AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error.
|
|
351
341
|
*/
|
|
352
342
|
searchableOption?:
|
|
353
343
|
string;
|
|
@@ -355,21 +345,6 @@ declare namespace gapi.client {
|
|
|
355
345
|
type?:
|
|
356
346
|
string;
|
|
357
347
|
}
|
|
358
|
-
interface GoogleCloudRetailV2alphaCatalogAttributeIgnoredFacetValues {
|
|
359
|
-
/** If start time is empty and end time is not empty, then ignore these facet values before end time. */
|
|
360
|
-
endTime?:
|
|
361
|
-
string;
|
|
362
|
-
/**
|
|
363
|
-
* 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
|
|
364
|
-
* 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
|
|
365
|
-
* values after the start time.
|
|
366
|
-
*/
|
|
367
|
-
startTime?:
|
|
368
|
-
string;
|
|
369
|
-
/** List of facet values to ignore for the following time range. The facet values are the same as the attribute values. */
|
|
370
|
-
values?:
|
|
371
|
-
string[];
|
|
372
|
-
}
|
|
373
348
|
interface GoogleCloudRetailV2alphaColorInfo {
|
|
374
349
|
/**
|
|
375
350
|
* The standard color families. Strongly recommended to use the following standard color groups: "Red", "Pink", "Orange", "Yellow", "Purple", "Green", "Cyan", "Blue", "Brown", "White",
|
|
@@ -1121,7 +1096,10 @@ declare namespace gapi.client {
|
|
|
1121
1096
|
string;
|
|
1122
1097
|
}
|
|
1123
1098
|
interface GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig {
|
|
1124
|
-
/**
|
|
1099
|
+
/**
|
|
1100
|
+
* Optional. Specifies the context of the model when it is used in predict requests. Can only be set for the `frequently-bought-together` type. If it isn't specified, it defaults to
|
|
1101
|
+
* MULTIPLE_CONTEXT_PRODUCTS.
|
|
1102
|
+
*/
|
|
1125
1103
|
contextProductsType?:
|
|
1126
1104
|
string;
|
|
1127
1105
|
}
|
|
@@ -2928,7 +2906,10 @@ declare namespace gapi.client {
|
|
|
2928
2906
|
string;
|
|
2929
2907
|
}
|
|
2930
2908
|
interface GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfig {
|
|
2931
|
-
/**
|
|
2909
|
+
/**
|
|
2910
|
+
* Optional. Specifies the context of the model when it is used in predict requests. Can only be set for the `frequently-bought-together` type. If it isn't specified, it defaults to
|
|
2911
|
+
* MULTIPLE_CONTEXT_PRODUCTS.
|
|
2912
|
+
*/
|
|
2932
2913
|
contextProductsType?:
|
|
2933
2914
|
string;
|
|
2934
2915
|
}
|
|
@@ -3134,7 +3115,10 @@ declare namespace gapi.client {
|
|
|
3134
3115
|
string;
|
|
3135
3116
|
}
|
|
3136
3117
|
interface GoogleCloudRetailV2ModelFrequentlyBoughtTogetherFeaturesConfig {
|
|
3137
|
-
/**
|
|
3118
|
+
/**
|
|
3119
|
+
* Optional. Specifies the context of the model when it is used in predict requests. Can only be set for the `frequently-bought-together` type. If it isn't specified, it defaults to
|
|
3120
|
+
* MULTIPLE_CONTEXT_PRODUCTS.
|
|
3121
|
+
*/
|
|
3138
3122
|
contextProductsType?:
|
|
3139
3123
|
string;
|
|
3140
3124
|
}
|
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: 20230516
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -124,23 +124,6 @@ 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
|
-
],
|
|
144
127
|
indexableOption: "Test string",
|
|
145
128
|
inUse: true,
|
|
146
129
|
key: "Test string",
|
|
@@ -215,23 +198,6 @@ gapi.load('client', async () => {
|
|
|
215
198
|
catalogAttribute: {
|
|
216
199
|
dynamicFacetableOption: "Test string",
|
|
217
200
|
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
|
-
],
|
|
235
201
|
indexableOption: "Test string",
|
|
236
202
|
inUse: true,
|
|
237
203
|
key: "Test string",
|
|
@@ -265,23 +231,6 @@ gapi.load('client', async () => {
|
|
|
265
231
|
catalogAttribute: {
|
|
266
232
|
dynamicFacetableOption: "Test string",
|
|
267
233
|
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
|
-
],
|
|
285
234
|
indexableOption: "Test string",
|
|
286
235
|
inUse: true,
|
|
287
236
|
key: "Test string",
|